LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 18 Apr 2015 07:47 AM |
local humanoid = game.Workspace.LocalPlayer.FindFirstChild("Humanoid")
while true do humanoid.Jump = true wait(1) end
Doesn't work for some reason :l
Tried like this also
local humanoid = game.Workspace.LocalPlayer.FindFirstChild("Humanoid")
function Jump() while true do humanoid.Jump = true wait(1) end end
Jump()
|
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 18 Apr 2015 07:59 AM |
player = game.Players.LocalPlayer char = player.Character or player.CharacterAdded:wait()
humanoid = char:WaitForChild("Humanoid")
while wait(1) do humanoid.Jump = true end |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
|
| 18 Apr 2015 09:44 AM |
| ^ Script looks fine, but doesn't work for me. |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2015 09:47 AM |
repeat wait() until game.Players.LocalPlayer player = game.Players.LocalPlayer char = player.Character or player.CharacterAdded:wait() humanoid = char:WaitForChild("Humanoid") while wait() do humanoid.Jump = true end
God grant me the wisdom to not punch stupid ppl, for I know I will go to prison. |
|
|
| Report Abuse |
|
|
LeikaZ
|
  |
| Joined: 31 Jan 2008 |
| Total Posts: 595 |
|
| |
|
|
| 18 Apr 2015 10:18 AM |
game.Players.PlayerAdded:connect(function() repeat wait() until game.Players.LocalPlayer.Character:FindFirstChild('Torso') human = game.Players.LocalPlayer.Character.Humanoid while true do human.Jump = true wait() human.Jump = false end end)
~ All you need to know is that I'm an otaku |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 18 Apr 2015 10:22 AM |
--Tested it out myself, works great. Put it in a LocalScript inside the StarterGui.
local players = game:GetService('Players') local player = players.LocalPlayer local character = player.Character or player.CharacterAdded;wait() local humanoid = character.Humanoid
while wait(.3) do humanoid.Jump = true end |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 18 Apr 2015 10:25 AM |
Btw, pro tip guys:
You never have to wait for the Humanoid in a normal circumstance, because it is loaded with the Character.
character = player.Character or player.CharacterAdded:wait() humanoid = character.Humanoid |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 18 Apr 2015 10:27 AM |
Oops! I accidentally used a semicolon instead of a colon! Bad me.
local players = game:GetService('Players') local player = players.LocalPlayer local character = player.Character or player.CharacterAdded:wait() local humanoid = character.Humanoid
while wait(.3) do humanoid.Jump = true end |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2015 10:40 AM |
mine works, tested choob God grant me the wisdom to not punch stupid ppl, for I know I will go to prison. |
|
|
| Report Abuse |
|
|