Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script 1
- put this inside button
- --
- local blockName = "Block"
- local door = game.Workspace.Door
- script.Parent.Touched:Connect(function(part)
- if part.Name == blockName then
- door.CanCollide = false
- door.Transparency = 1
- end
- end)
- script 2
- put this inside block
- --
- local Button = workspace.Button
- local Sound = game.Workspace.Sound
- script.Parent.Touched:Connect(function(hit)
- if hit == Button then
- Sound:Play()
- script:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment