Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local button = script.Parent.Parent
- local prox = script.Parent
- prox.Triggered:Connect(function()
- local myvalue = button:FindFirstChild("MyValue")
- if myvalue then
- myvalue.Value = myvalue.Value + 1
- if myvalue.Value == 5 then
- workspace.Wall:Destroy()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement