Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local part=Instance.new("Part",Workspace)
- part.Size=Vector3.new(1,1,1)
- part.Position=Workspace.Nickoplier.Head.Position
- local cd=Instance.new("ClickDetector",part)
- local t=true
- local sound=Instance.new("Sound",part)
- function set(id)
- sound.SoundId="rbxassetid://"..id
- end
- cd.MouseClick:connect(function()
- if t==true then
- num=math.random(1,4)
- if num==1 then set(155319906)
- elseif num==2 then set(151667588)
- elseif num==3 then set(143204341)
- elseif num==4 then set(158406889)
- end
- sound:Play()
- sound.Pitch=math.random(75,125)/100
- t=false
- else
- t=true
- sound:Stop()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment