Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local Character = game.Players.LocalPlayer.Character
- local Camera = workspace.CurrentCamera
- local ForwardButton = Instance.new("ImageButton")
- local ForwardButtonUICorner = Instance.new("UICorner")
- local BackwardButton = Instance.new("ImageButton")
- local BackwardButtonUICorner = Instance.new("UICorner")
- local RightButton = Instance.new("ImageButton")
- local RightButtonUICorner = Instance.new("UICorner")
- local LeftButton = Instance.new("ImageButton")
- local LeftButtonUICorner = Instance.new("UICorner")
- local KillGuiButton = Instance.new("ImageButton")
- local KillGuiButtonUICorner = Instance.new("UICorner")
- ScreenGui.Parent = game.CoreGui
- local PartCamera = Instance.new("Part")
- PartCamera.Parent = workspace
- PartCamera.Anchored = true
- PartCamera.Size = Vector3.new(1, 1, 1)
- PartCamera.CanCollide = false
- PartCamera.Position = Vector3.new(0, 0, 0)
- PartCamera.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(Vector3.new(0, -2.5, 10))
- PartCamera.Transparency = 1
- Camera.CameraSubject = PartCamera
- brick = PartCamera
- moveX = 0
- moveY = 0
- moveZ = 0
- KillGuiButton.Name = "KillGuiButton"
- KillGuiButton.Parent = ScreenGui
- KillGuiButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- KillGuiButton.Position = UDim2.new(0.2, 0, 0.4, 0)
- KillGuiButton.Size = UDim2.new(0, 55, 0, 55)
- KillGuiButton.Image = "rbxassetid://15294456972"
- KillGuiButton.Transparency = 0
- KillGuiButton.MouseButton1Down:connect(function()
- Camera.CameraSubject = Character
- ScreenGui:Destroy()
- end)
- KillGuiButtonUICorner.Parent = KillGuiButton
- ForwardButton.Name = "ForwardButton"
- ForwardButton.Parent = ScreenGui
- ForwardButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ForwardButton.Position = UDim2.new(0.2, 0, 0.2, 0)
- ForwardButton.Size = UDim2.new(0, 55, 0, 55)
- ForwardButton.Image = "rbxassetid://15294461446"
- ForwardButton.Transparency = 0
- ForwardButton.MouseButton1Down:connect(function()
- moveZ = moveZ + 0.5
- brick.CFrame = brick.CFrame - Vector3.new (moveX, moveY, moveZ)
- end)
- ForwardButtonUICorner.Parent = ForwardButton
- BackwardButton.Name = "BackwardButton"
- BackwardButton.Parent = ScreenGui
- BackwardButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- BackwardButton.Position = UDim2.new(0.2, 0, 0.6, 0)
- BackwardButton.Size = UDim2.new(0, 55, 0, 55)
- BackwardButton.Image = "rbxassetid://15294460178"
- BackwardButton.Transparency = 0
- BackwardButton.MouseButton1Down:connect(function()
- moveZ = moveZ + 0.5
- brick.CFrame = brick.CFrame + Vector3.new (moveX, moveY, moveZ)
- end)
- BackwardButtonUICorner.Parent = BackwardButton
- LeftButton.Name = "LeftButton"
- LeftButton.Parent = ScreenGui
- LeftButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- LeftButton.Position = UDim2.new(0.1, 0, 0.4, 0)
- LeftButton.Size = UDim2.new(0, 55, 0, 55)
- LeftButton.Image = "rbxassetid://15294457932"
- LeftButton.Transparency = 0
- LeftButton.MouseButton1Down:connect(function()
- moveX = moveX + 0.5
- brick.CFrame = brick.CFrame - Vector3.new (moveX, moveY, moveZ)
- end)
- LeftButtonUICorner.Parent = LeftButton
- RightButton.Name = "RightButton"
- RightButton.Parent = ScreenGui
- RightButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- RightButton.Position = UDim2.new(0.3, 0, 0.4, 0)
- RightButton.Size = UDim2.new(0, 55, 0, 55)
- RightButton.Image = "rbxassetid://15294459137"
- RightButton.Transparency = 0
- RightButton.MouseButton1Down:connect(function()
- moveX = moveX + 0.5
- brick.CFrame = brick.CFrame + Vector3.new (moveX, moveY, moveZ)
- end)
- RightButtonUICorner.Parent = RightButton
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement