I'm trying to spawn in a brick that will kill the player when touched. Here is my best effort so far! Any help would be incredible.
part = Instance.new("Part")
part.Position = Vector3.new(275.08,0.5,-295.075)
part.Anchored = true
part.Parent = game.Workspace.Tsunami
part.BrickColor = BrickColor.Blue()
part.Size = Vector3.new(205.89,1,79.77)
part.TopSurface = 0
if 2+2==4 then do
Parent.Touched:connect(function(part)
if part.Parent:FindFirstChild("Humanoid") then
part.Parent.Humanoid.Health = 0
(wait(.5)
end`

1 comment
I learned so much from this! Thank you times a million. :)