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

How can I improve this simple checkpoint brick?

I made a checkpoint brick for my game and had it so it turns green once you step on it, and red once you get off:

script.Parent.Touched:connect(function()
	script.Parent.BrickColor = BrickColor.new("Camo")
wait (2)
	script.Parent.BrickColor = BrickColor.new("Maroon")
end)

I was wondering how I could make it so it stays green, but is only shown to the player who stepped on it. In other words, if player 2 were to see player 1 step on it, it would stay red for player 2 until he/she stepped on it, but green for player 1. Thanks in advance!

1 answer

Switch the script to a LocalScript

1 comment

0

I tried it, but it doesn't work. Maybe there are more steps?

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