Advertisement
Guest User

Fe laggy guy by Jinxx

a guest
Jul 1st, 2024
983
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.66 KB | None | 0 0
  1. -- script made by jinxx
  2. local H = Instance.new("Hint", game.Workspace)
  3. H.Parent = game.Workspace
  4. H.Text = ("L")
  5. wait(.1)
  6. H.Text = ("La")
  7. wait(.1)
  8. H.Text = ("Lag")
  9. wait(.1)
  10. H.Text = ("Lagg")
  11. wait(.1)
  12. H.Text = ("Laggy")
  13. wait(.1)
  14. H.Text = ("Laggy g")
  15. wait(.1)
  16. H.Text = ("Laggy gu")
  17. wait(.1)
  18. H.Text = ("Laggy guy")
  19. wait(.1)
  20. H.Text = ("Laggy guy l")
  21. wait(.1)
  22. H.Text = ("Laggy guy lo")
  23. wait(.1)
  24. H.Text = ("Laggy guy loa")
  25. wait(.1)
  26. H.Text = ("Laggy guy load")
  27. wait(.1)
  28. H.Text = ("Laggy guy loade")
  29. wait(.1)
  30. H.Text = ("Laggy guy loaded")
  31. wait(5)
  32. H:Destroy()
  33. local riseHeight = 10 -- Adjust this value to change the total rise height
  34. local riseSpeed = 5 -- Adjust this value to change the rise speed
  35. local fallSpeed = 10 -- Adjust this value to change the fall speed
  36.  
  37. -- Get the player's character and HumanoidRootPart
  38. local player = game.Players.LocalPlayer
  39. local character = player.Character or player.CharacterAdded:Wait()
  40. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  41.  
  42. -- Function to lift the character up and then bring them back down
  43. local function liftAndFall()
  44. local initialPosition = humanoidRootPart.Position
  45.  
  46. -- Lift character up
  47. while humanoidRootPart.Position.Y < initialPosition.Y + riseHeight do
  48. humanoidRootPart.Velocity = Vector3.new(0, riseSpeed, 0)
  49. wait()
  50. end
  51.  
  52. humanoidRootPart.Velocity = Vector3.new(0, 0, 0) -- Stop movement
  53.  
  54. -- Bring character back down
  55. while humanoidRootPart.Position.Y > initialPosition.Y do
  56. humanoidRootPart.Velocity = Vector3.new(0, -fallSpeed, 0)
  57. wait()
  58. end
  59.  
  60. humanoidRootPart.Velocity = Vector3.new(0, 0, 0) -- Stop movement
  61.  
  62. -- Repeat the process
  63. liftAndFall()
  64. end
  65.  
  66. -- Start the lift and fall process
  67. liftAndFall()
  68. local riseHeight = 10 -- Adjust this value to change the total rise height
  69. local riseSpeed = 5 -- Adjust this value to change the rise speed
  70. local fallSpeed = 10 -- Adjust this value to change the fall speed
  71.  
  72. -- Get the player's character and HumanoidRootPart
  73. local player = game.Players.LocalPlayer
  74. local character = player.Character or player.CharacterAdded:Wait()
  75. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  76.  
  77. -- Function to lift the character up and then bring them back down
  78. local function liftAndFall()
  79. local initialPosition = humanoidRootPart.Position
  80.  
  81. -- Lift character up
  82. while humanoidRootPart.Position.Y < initialPosition.Y + riseHeight do
  83. humanoidRootPart.Velocity = Vector3.new(0, riseSpeed, 0)
  84. wait()
  85. end
  86.  
  87. humanoidRootPart.Velocity = Vector3.new(0, 0, 0) -- Stop movement
  88.  
  89. -- Bring character back down
  90. while humanoidRootPart.Position.Y > initialPosition.Y do
  91. humanoidRootPart.Velocity = Vector3.new(0, -fallSpeed, 0)
  92. wait()
  93. end
  94.  
  95. humanoidRootPart.Velocity = Vector3.new(0, 0, 0) -- Stop movement
  96.  
  97. -- Repeat the process
  98. liftAndFall()
  99. end
  100.  
  101. -- Start the lift and fall process
  102. liftAndFall()
  103. local player = game.Players.LocalPlayer
  104. local character = player.Character or player.CharacterAdded:Wait()
  105. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  106. local humanoid = character:WaitForChild("Humanoid")
  107.  
  108. local reachedHeight = 20 -- Adjust this value to set the height threshold
  109. local actionKey = Enum.KeyCode.F -- Use the 'F' key to trigger action
  110.  
  111. -- Flag to track if action has been triggered
  112. local actionTriggered = false
  113.  
  114. -- Function to check if character has reached the specified height
  115. local function checkReachedHeight()
  116. if humanoidRootPart.Position.Y >= reachedHeight and not actionTriggered then
  117. actionTriggered = true
  118. -- Perform your action here
  119. print("Character reached up! Perform action here.")
  120.  
  121. -- Example action: Reset character position and action flag
  122. humanoidRootPart.CFrame = CFrame.new(Vector3.new(0, 0, 0)) -- Reset position to origin
  123. actionTriggered = false -- Reset action flag
  124.  
  125. -- You can add more actions here, like resetting health or performing other tasks
  126. end
  127. end
  128.  
  129. -- Listen for key press to trigger action
  130. game:GetService("UserInputService").InputBegan:Connect(function(input)
  131. if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == actionKey then
  132. checkReachedHeight()
  133. end
  134. end)
  135.  
  136. -- Function to continuously check character position
  137. local function monitorCharacterPosition()
  138. while true do
  139. checkReachedHeight()
  140. wait(0.1) -- Adjust the frequency of position checking as needed
  141. end
  142. end
  143.  
  144. -- Start monitoring character position
  145. monitorCharacterPosition()
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement