How do you make a checkpoint rotate or just expand and retract when someone touches it? For example: A players just touched a checkpoint and as a indicator the checkpoint would either play a sound or expand while rotating and retract while rotating. Right Now I was Using the Sound System but it played the sound for the whole server which i wasnt satisfied with i hope you devs can help me code i was using
local played = false script.Parent.Touched:Connect(function(hit) if played == false then workspace.Misc.Sound:Play() --these are Sounds and The Folder in the workspace played = true wait (180) --This Is delay after first play, you can change it if you want to played = false end end)``
make the sound locally for the user, using a local script will help. also you can use for loop to loop the orientation of the cloned part and also use for loop to loop the expand and retract, also make the cloned part parent to workspace, every properties gets cloned except for parent
using touched event might help