Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't this work?

Asked by 8 years ago

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

0
Is it a SurfaceGui or a ScreenGui? joalars2 107 — 8y
0
ScreenGui creatorstorm 8 — 8y
0
Try renaming the local player variable to not be identical maybe? like "LPlr = game.Players.LocalPlayer" *might work idk* joalars2 107 — 8y
0
Yeah I forgot BrickColor.new before the TeamColor creatorstorm 8 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

NVM GUYS I FORGOT BRICKCOLOR.NEW XDD

Ad

Answer this question