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

How do you make a checkpoint rotate or just expand and retract when someone touches it?

Asked by 3 years ago

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)``

1 answer

Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
3 years ago
Edited 3 years ago

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

Ad

Answer this question