Palazikaka

Untitled

Jan 18th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | None | 0 0
  1. print("Made by xLTango Enjoy")
  2. local RunService = game:GetService("RunService")
  3. local mouse = game.Players.LocalPlayer:GetMouse()
  4. local Char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
  5. local UIS = game:GetService("UserInputService")
  6. local enabled = false
  7. local head = nil
  8.  
  9. local wdown = false
  10. local adown = false
  11. local sdown = false
  12. local ddown = false
  13. local updown = false
  14. local downdown = false
  15.  
  16. function hanfgdjhgftkjgtyjkgykgykfkkfdler (input, gpe)
  17. if gpe then return end
  18. if input.KeyCode ==Enum.KeyCode.X then
  19. Disconnect()
  20. end
  21.  
  22. if input.KeyCode == Enum.KeyCode.Q then
  23. if not head then
  24. head = Instance.new("Part")
  25. head.Parent = workspace
  26. head.CFrame = Char.HumanoidRootPart.CFrame
  27. head.Anchored = true
  28. workspace.CurrentCamera.CameraSubject = head
  29. Char.HumanoidRootPart.Anchored = true
  30. head.Transparency = 1
  31. else -- head true
  32. head:Destroy()
  33. head = nil
  34. Char.HumanoidRootPart.Anchored = false
  35. workspace.CurrentCamera.CameraSubject = Char.Humanoid
  36. end
  37. end--tango
  38. if input.KeyCode == Enum.KeyCode.Space then
  39. if head then
  40. updown = true
  41. end
  42. end
  43. if input.KeyCode == Enum.KeyCode.LeftControl then
  44. if head then
  45. downdown = true
  46. end
  47. end
  48. if input.KeyCode == Enum.KeyCode.D then
  49. if head then
  50. ddown = true
  51. end
  52. end
  53. if input.KeyCode == Enum.KeyCode.A then
  54. if head then
  55. adown = true
  56. end
  57. end
  58. if input.KeyCode == Enum.KeyCode.S then
  59. if head then
  60. sdown = true
  61. end
  62. end
  63. if input.KeyCode == Enum.KeyCode.W then
  64. if head then
  65. wdown = true
  66. end
  67. end
  68.  
  69. end
  70.  
  71. function gsdhdfrdrtudtfujdgsdrf(input, gpe)
  72. if gpe then return end
  73. if input.KeyCode == Enum.KeyCode.Space then
  74. updown = false
  75. end
  76. if input.KeyCode == Enum.KeyCode.LeftControl then
  77. downdown = false
  78. end
  79. if input.KeyCode == Enum.KeyCode.A then
  80. adown = false
  81. end
  82. if input.KeyCode == Enum.KeyCode.D then
  83. ddown = false
  84. end
  85. if input.KeyCode == Enum.KeyCode.W then
  86. wdown = false
  87. end
  88. if input.KeyCode == Enum.KeyCode.S then
  89. sdown = false
  90. end
  91. end
  92.  
  93. function rdsafaghturujdrfjnh()
  94. if head then
  95. if downdown then
  96. head.CFrame = head.CFrame + Vector3.new(0,-1,0)
  97. end
  98. if updown then
  99. head.CFrame = head.CFrame + Vector3.new(0,1,0)
  100. end
  101. if wdown then
  102. head.CFrame = head.CFrame + workspace.Camera.CFrame.LookVector * 2
  103. elseif adown then
  104. head.CFrame = head.CFrame + workspace.Camera.CFrame.RightVector * -2
  105. elseif sdown then
  106. head.CFrame = head.CFrame + workspace.Camera.CFrame.LookVector * -2
  107. elseif ddown then
  108. head.CFrame = head.CFrame + workspace.Camera.CFrame.RightVector * 2
  109. end
  110. end
  111. end
  112.  
  113. function ch65346345764575687566585865856hr(c)
  114. if head then
  115. c.HumanoidRootPart.Anchored = true
  116. end
  117. end
  118. local gg = Instance.new("ScreenGui")
  119. gg.Parent = game.CoreGui
  120. local ff = Instance.new("TextLabel")
  121. ff.Parent = gg
  122. ff.Size = UDim2.new(0, 136,0, 31)
  123. ff.Text = "FreeCam by xLTango"
  124. ff.BackgroundTransparency = 1
  125. ff.Font = Enum.Font.Arcade
  126. ff.TextColor3 = Color3.fromRGB(255,255,255)
  127.  
  128. game.StarterGui:SetCore("SendNotification", {
  129. Title = "xLTango's Freecam";
  130. Text = "'Q' to toggle freecam mode and 'X' disconnects all events within the script";
  131. Icon = "";
  132. Duration = 5;
  133. Callback = bindableFunction;
  134. Button1 = "okok";
  135. })
  136.  
  137.  
  138. local conn = UIS.InputBegan:Connect(hanfgdjhgftkjgtyjkgykgykfkkfdler)
  139. local conn2 = UIS.InputEnded:Connect(gsdhdfrdrtudtfujdgsdrf)
  140. local conn3 = RunService.RenderStepped:Connect(rdsafaghturujdrfjnh)
  141. local conn4 = game.Players.LocalPlayer.CharacterAdded:Connect(ch65346345764575687566585865856hr)
  142.  
  143. function Disconnect()
  144. local conns = {conn, conn2, conn3, conn4}
  145. for i,v in pairs(conns) do
  146. v:Disconnect()
  147. end
  148. gg:Destroy()
  149. end
Advertisement
Add Comment
Please, Sign In to add comment