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

How do I fix my script that makes player not jump when they are in a certain team?

if game.Players.AllPlayers.Team == Lobby then
	game.Players.AllPlayers.JumpPower = 50
else if
	game.Workspace.AllPlayers.Team == USA or Brazil then
		game.Players.AllPlayrers.JumpPower = 0

I made this script that makes players not jump when they are in a certain team. The teams are USA and Brazil. I want players from both teams not to have any jump power. If they change to the team which has jump power, Lobby, then the can jump. This script did not work. Please help me fix it. This is a server script.

1 answer

Imsorrywhat the heck is "AllPlayers"

A better way to do this would be to use a characteradded event, then check the players team within the character added event, make sure to use arguments and put the characteradded inside a playeradded to get the player!

2 comments

0

How do I do that? XD

0

Im not here to spoonfeed you, do some resarch learn yourself

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