When the player gets a key, I want the image color to change to white!
1 | function onTouched() |
2 | game.Workspace.Door.key.Value = true |
3 | game.StarterGui.KEYS.key 1. ImageColor 3 = Color 3. new( 255 , 255 , 255 ) |
4 | script.Parent:Destroy() |
5 | end |
6 |
7 | script.Parent.ClickDetector.MouseClick:connect(onTouched) |