I'm trying to make an NPC that'll teleport the player when the upper torso is played, and I want the player to take 50 damage but I can't figure out how to make it work.
script.Parent.Touched:connect(function(p)
local humanoid = p.Parent:findFirstChild("Humanoid")
if (humanoid ~= nil) then
humanoid.LowerTorso.CFrame = CFrame.new(51.56, 3.2, 184.24)
humanoid.Health = humanoid.Health - 50
wait(.2)
script.Parent.Parent.Head.Laugh:Play()
end
end)
Thanks if you can help

2 comments
use vectors in the cframe
Didn't work