generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Hmm ? Joining the server and start jumping?

Previous Thread :: Next Thread 
LeikaZ is not online. 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 is not online. 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 is not online. 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
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
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 is not online. LeikaZ
Joined: 31 Jan 2008
Total Posts: 595
18 Apr 2015 10:04 AM
Doesn't work either lol
Report Abuse
MajikkuSoul is not online. MajikkuSoul
Joined: 15 Feb 2014
Total Posts: 196
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 is not online. 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 is not online. 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 is not online. 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
TheNewChicken is not online. TheNewChicken
Joined: 18 Mar 2015
Total Posts: 1997
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image