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

Script that changes text of GUI when players team changes?

Asked by 3 years ago
Edited 3 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

Is there a property that can tell when to change the text of the text labels??

local player  = game.Players.LocalPlayer

if workspace:FindFirstChild("MapChosen") then
if player.Team == game.Teams.Blue then
    script.Parent.Text = "Your statue (Protect it)"
elseif player.Team == game.Teams.Blue then
    script.Parent.Text = "Attack this statue!"
end
0
Can you clarify what you're trying to do here? Warphi 51 — 3y

Answer this question