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

How can I improve this simple checkpoint brick?

Asked by 3 years ago

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

Log in to vote
1
Answered by
OhManXDXD 445 Moderation Voter
3 years ago

Switch the script to a LocalScript

0
I tried it, but it doesn't work. Maybe there are more steps? CaptionDemon 21 — 3y
Ad

Answer this question