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
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