Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tbrick = Instance.new("Part")
- tbrick.Parent = workspace
- tbrick.Name = "IMTRIGGERED"
- tbrick.Size = Vector3.new(3,2,1)
- tbrick.Position = Vector3.new(math.random(-300,300),math.random(28,40),math.random(-300,300))
- tbrick.Material = "Pebble"
- tbrick.BrickColor = BrickColor.new("White")
- rt = Instance.new("Decal")
- rt.Parent = tbrick
- rt.Texture = "http://www.roblox.com/asset/?id=1015432183"
- function touchy(hit)
- if hit.Parent:FindFirstChild("Humanoid") then
- local scream = Instance.new("Sound")
- scream.Parent = tbrick
- scream.SoundId = "rbxassetid://606862847"
- scream:Play()
- wait(1)
- scream:Destroy()
- local explode = Instance.new("Explosion")
- explode.Parent = tbrick
- explode.Position = tbrick.Position
- local sound = Instance.new("Sound")
- sound.Parent = tbrick
- sound.SoundId = "rbxassetid://133680244"
- sound:Play()
- wait(10)
- sound:Destroy()
- end
- end
- tbrick.Touched:connect(touchy)
Add Comment
Please, Sign In to add comment