|
| 14 Apr 2013 12:52 PM |
this script works but only for the first player that enters the game and i dont know how to fix it so that it does it for all players please help
game.Players.PlayerAdded:connect(function(ply) ply.CharacterAdded:connect(function(char) Instance.new("BodyForce", char.Torso).force = Vector3.new(0,2500,0) end) end) |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2013 12:52 PM |
| That's odd...Are you testing in play-solo? |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2013 12:56 PM |
| no im testing in online mode with a freind |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2013 12:58 PM |
the orginal script that didn't work was this
function makeLowGrav(torso) print("Low grav", torso) local b = Instance.new("BodyForce") b.Name = "LowGrav" b.force = Vector3.new(0,2500,0) b.Parent = torso end
function onPlayerRespawn(property, player)
if property == "Character" and player.Character ~= nil then makeLowGrav(player.Character.Torso) end end
function onPlayerEntered(newPlayer) while true do if newPlayer.Character ~= nil then break end wait(5) end
newPlayer.Changed:connect(function(property) onPlayerRespawn(property, newPlayer) end )
makeLowGrav(newPlayer.Character.Torso) end
game.Players.ChildAdded:connect(onPlayerEntered) |
|
|
| Report Abuse |
|
|