
318 Views
31 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Toggleable freecam
--// Services
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
--// Player
local player = Players.LocalPlayer
local camera = workspace.CurrentCamera
--// State
local freeCamEnabled = false
local renderConnection
local currentCharacter = player.Character or player.CharacterAdded:Wait()
player.CharacterAdded:Connect(function(char)
currentCharacter = char
end)
--// =========================
--// GUI
--// =========================
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "FreeCamGui"
screenGui.ResetOnSpawn = false
screenGui.IgnoreGuiInset = true
screenGui.Parent = player:WaitForChild("PlayerGui")
-- Main Window
local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.fromOffset(280, 140)
mainFrame.Position = UDim2.fromScale(0.5, 0.5)
mainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
mainFrame.BackgroundColor3 = Color3.fromRGB(255,255,255)
mainFrame.BorderSizePixel = 0
mainFrame.Parent = screenGui
Instance.new("UICorner", mainFrame).CornerRadius = UDim.new(0,12)
-- Title










ww
W