I have made a script, which I thought would work but it doesn't.
while script.Parent.Touched do
workspace.TimeSwap.Dark.Color = Color3.fromRGB(255, 0, 0)
workspace.TimeSwap.DarkVal.Value = true
end
When the player touches the block, another block changes color and a value becomes true, but I don't want them to stay like that I just want them to work while the player is touching it.

1 comment
part.TouchEnded