Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
fardxD 9
4 years ago

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

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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
0
Thanks, it's working! Now all I need to do is add a while true do loop. fardxD 9 — 4y
0
Glad to hear that, don't forget to add wait() because if you don't it'll break Xx_XSanderPlayXx 160 — 4y
Ad

Answer this question