Hi I made a script which when a Player other then the carrier touches the part it deals them 30 Damage and sends them flying back whilst rotating, But I don't know how to change the CFrame of a Player can you help me Please?
local WindSphere = script.Parent
WindSphere.Touched:connect(function(Brick)
local Hum = Brick.Parent:findFirstChild("Humanoid")
local Player = game:GetService'Players'.LocalPlayer
if (Hum ~= nil)then
Hum.Health = Hum.Health - 30
Player.CFrame = 0 -- I know that's how how you do it, so I'm leaving it like that on purpose
end
end)

1 comment
instead of player.CFrame you would have to do something like, Player.Vector3.new = 0 something like that