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

Does these function scripts work?

So I am just checking.

Jugg Script

function PlayerOnJuggTeam()
	if PlayerOnJuggTeam == true then
		game.Workspace.PlayerOnJuggTeam.Humanoid.Health = 250
	else
		if PlayerOnJuggTeam == false then
			game.Workspace.PlayerOnRunnersTeam = true
		end
	end
end

Runners Script

function PlayerOnRunnersTeam()
	if PlayerOnRunnersTeam == true then
		game.Workspace.PlayerOnRunnersTeam.Humanoid.Health = 100
	else
		if PlayersOnRunnerTeam== false then
			game.Workspace.PlayerOnJuggTeam = true
		end
	end
end

I'm just seeing if it's the right script. No errors. no nothing. Just checking.

2 answers

Test it, we're not here to look over something every time you are uncertain, we are here to teach, and to fix. If you find a problem, come back, otherwise don't post here.

PlayerOnJuggTeam and PlayerOnRunnersTeam will always be thread/function values rather than bool leans since that's the name of a variable -- the function.

In other words, it does not equal true or false.

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