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

Why doesn't this work?

This is a LocalScript located in a TextLabel :

LocalPlayer = game.Players.LocalPlayer
while true do
	wait()
	
	if LocalPlayer.TeamColor == "Bright blue" then 
		script.Parent.Text = "O C C U P A T I O N : Job1"
		
	elseif LocalPlayer.TeamColor == "Bright yellow" then
		script.Parent.Text = "O C C U P A T I O N : Job2"
	end
	
	
	
end

Instead of showing"O C C U P A T I O N : Job2 /Job1" it shows what I initially set the TextLabel as which is just "O C C U P A T I O N :"

Help will be appreciated :)

4 comments

0

Is it a SurfaceGui or a ScreenGui?

0

ScreenGui

0

Try renaming the local player variable to not be identical maybe? like "LPlr = game.Players.LocalPlayer" might work idk

0

Yeah I forgot BrickColor.new before the TeamColor

1 answer

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