Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I tried making an infinite jump script for VSB 2, but it's not working, can you help?

So basically, I'm attempting to make a script that forces everybody to jump forever, I'm trying to use people as a variable for everything in the workspace, but it's not working. Here is my script.

 local people = game.Workspace:GetChildren()

while true do 
wait(0.5)
game.Workspace.people.Humanoid.Jump = true

  end

1 answer

✓ Accepted answer

your variable people doesn't really have the character of the players. You should get all the players from game.Players using the function :GetPlayers(), then you can iterate over the list of players and get every player character

local Players = game:GetService("Players")

local AllPlayers = Players:GetPlayers() --Get list of players

for _, plr in pairs(AllPlayers) do --Iterate over the list 
	local plrCharacter = plr.Character --Get player character...
	plrCharacter.Humanoid.Jump = true --Make character jump.
end

2 comments

0

Thanks, it's working! Now all I need to do is add a while true do loop.

0

Glad to hear that, don't forget to add wait() because if you don't it'll break

This discussion is preserved as it was. New answers, comments, and votes are closed.