Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Made by xLTango Enjoy")
- local RunService = game:GetService("RunService")
- local mouse = game.Players.LocalPlayer:GetMouse()
- local Char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
- local UIS = game:GetService("UserInputService")
- local enabled = false
- local head = nil
- local wdown = false
- local adown = false
- local sdown = false
- local ddown = false
- local updown = false
- local downdown = false
- function hanfgdjhgftkjgtyjkgykgykfkkfdler (input, gpe)
- if gpe then return end
- if input.KeyCode ==Enum.KeyCode.X then
- Disconnect()
- end
- if input.KeyCode == Enum.KeyCode.Q then
- if not head then
- head = Instance.new("Part")
- head.Parent = workspace
- head.CFrame = Char.HumanoidRootPart.CFrame
- head.Anchored = true
- workspace.CurrentCamera.CameraSubject = head
- Char.HumanoidRootPart.Anchored = true
- head.Transparency = 1
- else -- head true
- head:Destroy()
- head = nil
- Char.HumanoidRootPart.Anchored = false
- workspace.CurrentCamera.CameraSubject = Char.Humanoid
- end
- end--tango
- if input.KeyCode == Enum.KeyCode.Space then
- if head then
- updown = true
- end
- end
- if input.KeyCode == Enum.KeyCode.LeftControl then
- if head then
- downdown = true
- end
- end
- if input.KeyCode == Enum.KeyCode.D then
- if head then
- ddown = true
- end
- end
- if input.KeyCode == Enum.KeyCode.A then
- if head then
- adown = true
- end
- end
- if input.KeyCode == Enum.KeyCode.S then
- if head then
- sdown = true
- end
- end
- if input.KeyCode == Enum.KeyCode.W then
- if head then
- wdown = true
- end
- end
- end
- function gsdhdfrdrtudtfujdgsdrf(input, gpe)
- if gpe then return end
- if input.KeyCode == Enum.KeyCode.Space then
- updown = false
- end
- if input.KeyCode == Enum.KeyCode.LeftControl then
- downdown = false
- end
- if input.KeyCode == Enum.KeyCode.A then
- adown = false
- end
- if input.KeyCode == Enum.KeyCode.D then
- ddown = false
- end
- if input.KeyCode == Enum.KeyCode.W then
- wdown = false
- end
- if input.KeyCode == Enum.KeyCode.S then
- sdown = false
- end
- end
- function rdsafaghturujdrfjnh()
- if head then
- if downdown then
- head.CFrame = head.CFrame + Vector3.new(0,-1,0)
- end
- if updown then
- head.CFrame = head.CFrame + Vector3.new(0,1,0)
- end
- if wdown then
- head.CFrame = head.CFrame + workspace.Camera.CFrame.LookVector * 2
- elseif adown then
- head.CFrame = head.CFrame + workspace.Camera.CFrame.RightVector * -2
- elseif sdown then
- head.CFrame = head.CFrame + workspace.Camera.CFrame.LookVector * -2
- elseif ddown then
- head.CFrame = head.CFrame + workspace.Camera.CFrame.RightVector * 2
- end
- end
- end
- function ch65346345764575687566585865856hr(c)
- if head then
- c.HumanoidRootPart.Anchored = true
- end
- end
- local gg = Instance.new("ScreenGui")
- gg.Parent = game.CoreGui
- local ff = Instance.new("TextLabel")
- ff.Parent = gg
- ff.Size = UDim2.new(0, 136,0, 31)
- ff.Text = "FreeCam by xLTango"
- ff.BackgroundTransparency = 1
- ff.Font = Enum.Font.Arcade
- ff.TextColor3 = Color3.fromRGB(255,255,255)
- game.StarterGui:SetCore("SendNotification", {
- Title = "xLTango's Freecam";
- Text = "'Q' to toggle freecam mode and 'X' disconnects all events within the script";
- Icon = "";
- Duration = 5;
- Callback = bindableFunction;
- Button1 = "okok";
- })
- local conn = UIS.InputBegan:Connect(hanfgdjhgftkjgtyjkgykgykfkkfdler)
- local conn2 = UIS.InputEnded:Connect(gsdhdfrdrtudtfujdgsdrf)
- local conn3 = RunService.RenderStepped:Connect(rdsafaghturujdrfjnh)
- local conn4 = game.Players.LocalPlayer.CharacterAdded:Connect(ch65346345764575687566585865856hr)
- function Disconnect()
- local conns = {conn, conn2, conn3, conn4}
- for i,v in pairs(conns) do
- v:Disconnect()
- end
- gg:Destroy()
- end
Advertisement
Add Comment
Please, Sign In to add comment