Hi, I have been working on an obby and I wanted to make the checkpoints change in color when a player steps on it. but there was one problem, my checkpoints were named with numbers - like 1,2,3 etc. The problem is that whenever i put the numbers in it turns yellow, because its a number, and it doesnt work. there’s probably a way to do it with parent or something but i cant seem to figure it out.
Here’s the script - pretty simple:
local part =
part.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild(“Humanoid”) then
part.BrickColor = BrickColor.new(“Lime green”)
end
end)
Thanks to everyone who helps!