I am trying to make a script where Text will appear when you hit a winpad after an obby saying +10 points!, but For whatever reason it seems to not work. Is there a setting that could be on the text that makes it so it cannot change? The signals for "working" and "done" also work.
Here is what my StarterGui Folder looks like Here
db = false
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local add = game.StarterGui.Add.Points
if db == false then
print("working")
db = true
add.Text = "+10 points"
add.TextTransparency = 0
wait(3)
add.TextTransparency = 1
add.Text = "+0 points"
db = false
print("done")
end
end
end)

4 comments
you need to use players startergui
also local or serverside?
Do you think I need to use a LocalScript for this code? I don't want the changing message to appear for everyone, just the player
lemme answer