I am difficulty scripting. (This is like my second time.) And I am following pighead100s tutorial and I am stuck on step #2 in which you make nuke/meteor that breaks the joints. I am though a bit confused on this for there were practically no mentions of spawning a brick, making it unanchored and then having remove your torso. (There was an anchoring torso but I don't get how a nuke would anchor a torso.)
function touch(hit)
if script.Parent.Touched then
game.Players.Position = Vector3.new ((7, 0.59, 16))
if game.Players.Position = (7, 0.59, 16) false
workspace.Players.Humanoid.Anchored = True
wait(5)
p.Parent = game.Workspace
p.Position = Vector3.new ((7, 258, 16))
p.BrickColor = BrickColor.new (21)
p.Transparency = 0
p.Reflectance = .2
p.Shape = "Ball"
p.Locked = true
p.Anchored = false
p.CanCollide = true
script.Parent.remove()
wait(40)
end
the only error I get from output window is then expected near false
|