function onTouched(hit)
human = hit.Parent:FindFirstChild("Humanoid") -- returns "Humanoid" if exists, else returns nil
if human ~= nil then
human.Health = human.Health -25
local Buzz = Instance.new("BodyPosition")
Buzz.Parent = human.Parent.Torso
Buzz.D = 1250
Buzz.MaxForce = Vector3.new (0,8999999488,0)
Buzz.P = 10000
Buzz.Position = Vector3.new (-92,200,10)
wait(1.5)
human.PlatformStand = true
Buzz:Destroy()
wait(2)
human.PlatformStand = false
end
--Enter code here
end
script.Parent.Touched:connect(onTouched)
COMMUNITY QUESTION
script works until Buzz:Destroy() where it doesn't destroy the bodyposition, any reason why?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
Is this a local script or a script?
https://gyazo.com/2c8c04a21909341afdf9a258d2d95d57.gif works for me
Same here.
Connect not connect. Also you should assign Parent as the last property. Also, you don't need the ~= nil