Advertisement
Idkrandomthingyyyy

simple scripts

Sep 4th, 2023
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.82 KB | None | 0 0
  1. loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
  2. --[[
  3. Toggle : LeftAlt (Editable in script)
  4. Fast Fly : LeftControl (Editable in script)
  5. Movement : W A S D (Editable in script)
  6. Up / Down : E / Q (Editable in script)
  7. --]]
  8.  
  9.  
  10. local Settings = {
  11.  
  12. Speed = 5,
  13. SprintSpeed = 30,
  14. ToggleKey = Enum.KeyCode.LeftAlt,
  15. SprintKey = Enum.KeyCode.LeftControl,
  16.  
  17. ForwardKey = Enum.KeyCode.W,
  18. LeftKey = Enum.KeyCode.A,
  19. BackwardKey = Enum.KeyCode.S,
  20. RightKey = Enum.KeyCode.D,
  21. UpKey = Enum.KeyCode.E,
  22. DownKey = Enum.KeyCode.Q,
  23.  
  24. }
  25.  
  26. local Screen = Instance.new("ScreenGui",game.CoreGui)
  27. local Distance = Instance.new("TextLabel",Screen)
  28. Distance.BackgroundTransparency = 1
  29. Distance.Size = UDim2.new(0,10,0,10)
  30. Distance.ZIndex = 2
  31. Distance.Text = "0"
  32. Distance.TextStrokeTransparency = .5
  33. Distance.TextSize = 20
  34. Distance.TextStrokeColor3 = Color3.fromRGB(33, 33, 33)
  35. Distance.Font = Enum.Font.Gotham
  36. Distance.TextColor3 = Color3.new(1,1,1)
  37. Distance.TextXAlignment = Enum.TextXAlignment.Left
  38. Distance.TextYAlignment = Enum.TextYAlignment.Top
  39.  
  40.  
  41. local Mouse = game.Players.LocalPlayer:GetMouse()
  42. local Direction = Vector3.new(0,0,0)
  43. local InterpolatedDir = Direction
  44. local Tilt = 0
  45. local InterpolatedTilt = Tilt
  46. local RunService = game:GetService("RunService")
  47. local Toggled = false
  48. local Sprinting = false
  49. local CameraPos = game.Workspace.CurrentCamera.CFrame.Position
  50.  
  51. pcall(function()
  52. game.Players.LocalPlayer.DevCameraOcclusionMode = Enum.DevCameraOcclusionMode.Invisicam
  53. end)
  54.  
  55. function Lerp(a, b, t)
  56. return a + (b - a) * t
  57. end
  58.  
  59. local LastPos = nil
  60.  
  61. function KeyHandler(actionName, userInputState)
  62. if true and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  63. if actionName == "Toggle" and userInputState == Enum.UserInputState.Begin then
  64. Toggled = not Toggled
  65. if Toggled then
  66. LastPos = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  67. --game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  68. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  69. else
  70. LastPos = nil
  71. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
  72. --game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  73. end
  74. elseif actionName == "Forward" then
  75. Tilt = userInputState == Enum.UserInputState.Begin and -20 or 0
  76. Direction = Vector3.new(Direction.x,Direction.y,userInputState == Enum.UserInputState.Begin and -1 or 0)
  77. elseif actionName == "Left" then
  78. Direction = Vector3.new(userInputState == Enum.UserInputState.Begin and -1 or 0,Direction.y,Direction.z)
  79. elseif actionName == "Backward" then
  80. Tilt = userInputState == Enum.UserInputState.Begin and 20 or 0
  81. Direction = Vector3.new(Direction.x,Direction.y,userInputState == Enum.UserInputState.Begin and 1 or 0)
  82. elseif actionName == "Right" then
  83. Direction = Vector3.new(userInputState == Enum.UserInputState.Begin and 1 or 0,Direction.y,Direction.z)
  84. elseif actionName == "Up" then
  85. Direction = Vector3.new(Direction.x,userInputState == Enum.UserInputState.Begin and 1 or 0,Direction.z)
  86. elseif actionName == "Down" then
  87. Direction = Vector3.new(Direction.x,userInputState == Enum.UserInputState.Begin and -1 or 0,Direction.z)
  88. elseif actionName == "Sprint" then
  89. Sprinting = userInputState == Enum.UserInputState.Begin
  90. end
  91. end
  92. end
  93.  
  94.  
  95.  
  96. game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
  97.  
  98. if inputObject.KeyCode == Settings.ToggleKey then
  99. KeyHandler("Toggle", Enum.UserInputState.Begin, inputObject)
  100. elseif inputObject.KeyCode == Settings.ForwardKey then
  101. KeyHandler("Forward", Enum.UserInputState.Begin, inputObject)
  102. elseif inputObject.KeyCode == Settings.LeftKey then
  103. KeyHandler("Left", Enum.UserInputState.Begin, inputObject)
  104. elseif inputObject.KeyCode == Settings.BackwardKey then
  105. KeyHandler("Backward", Enum.UserInputState.Begin, inputObject)
  106. elseif inputObject.KeyCode == Settings.RightKey then
  107. KeyHandler("Right", Enum.UserInputState.Begin, inputObject)
  108. elseif inputObject.KeyCode == Settings.UpKey then
  109. KeyHandler("Up", Enum.UserInputState.Begin, inputObject)
  110. elseif inputObject.KeyCode == Settings.DownKey then
  111. KeyHandler("Down", Enum.UserInputState.Begin, inputObject)
  112. elseif inputObject.KeyCode == Settings.SprintKey then
  113. KeyHandler("Sprint", Enum.UserInputState.Begin, inputObject)
  114. end
  115.  
  116.  
  117. end)
  118.  
  119.  
  120. game:GetService("UserInputService").InputEnded:connect(function(inputObject, gameProcessedEvent)
  121.  
  122. if inputObject.KeyCode == Settings.ToggleKey then
  123. KeyHandler("Toggle", Enum.UserInputState.End, inputObject)
  124. elseif inputObject.KeyCode == Settings.ForwardKey then
  125. KeyHandler("Forward", Enum.UserInputState.End, inputObject)
  126. elseif inputObject.KeyCode == Settings.LeftKey then
  127. KeyHandler("Left", Enum.UserInputState.End, inputObject)
  128. elseif inputObject.KeyCode == Settings.BackwardKey then
  129. KeyHandler("Backward", Enum.UserInputState.End, inputObject)
  130. elseif inputObject.KeyCode == Settings.RightKey then
  131. KeyHandler("Right", Enum.UserInputState.End, inputObject)
  132. elseif inputObject.KeyCode == Settings.UpKey then
  133. KeyHandler("Up", Enum.UserInputState.End, inputObject)
  134. elseif inputObject.KeyCode == Settings.DownKey then
  135. KeyHandler("Down", Enum.UserInputState.End, inputObject)
  136. elseif inputObject.KeyCode == Settings.SprintKey then
  137. KeyHandler("Sprint", Enum.UserInputState.End, inputObject)
  138. end
  139.  
  140.  
  141. end)
  142.  
  143.  
  144. RunService.RenderStepped:Connect(function()
  145. if Toggled and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  146. for i,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  147. if v:IsA("BasePart") then
  148. v.Velocity = Vector3.new(0,0,0)
  149. end
  150. end
  151. local RootPart = game.Players.LocalPlayer.Character.HumanoidRootPart
  152. if LastPos then
  153. Distance.Text = math.floor((LastPos-RootPart.Position).Magnitude+.5)
  154. if (LastPos-RootPart.Position).Magnitude >= 350 then
  155. Distance.TextColor3 = Color3.new(1,0,0)
  156. else
  157. Distance.TextColor3 = Color3.new(1,1,1)
  158. end
  159. else
  160. Distance.TextColor3 = Color3.new(1,1,1)
  161. Distance.Text = 0
  162. end
  163. InterpolatedDir = InterpolatedDir:Lerp((Direction * (Sprinting and Settings.SprintSpeed or Settings.Speed)),.2)
  164. InterpolatedTilt = Lerp(InterpolatedTilt ,Tilt* (Sprinting and 2 or 1),Tilt == 0 and .2 or .1)
  165. RootPart.CFrame = RootPart.CFrame:Lerp(CFrame.new(RootPart.Position,RootPart.Position + Mouse.UnitRay.Direction) * CFrame.Angles(0,math.rad(00),0) * CFrame.new(InterpolatedDir) * CFrame.Angles(math.rad(InterpolatedTilt),0,0),.2)
  166. else
  167. Distance.TextColor3 = Color3.new(1,1,1)
  168. Distance.Text = 0
  169. end
  170. end)
  171. loadstring(game:HttpGet('https://raw.githubusercontent.com/LiverMods/raw/main/Invisible'))()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement