New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
1

How can I improve this simple checkpoint brick?

Asked by 9 days 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 9 days ago

Switch the script to a LocalScript

0
I tried it, but it doesn't work. Maybe there are more steps? CaptionDemon 17 — 8d
Ad

Answer this question