The error I get is attempt to index local 'z'(a nil value). Can someone help please thx.
local z = Player:GetMouse() local v = Instance.new("BodyVelocity", Player.Character.UpperTorso) v.MaxForce = Vector3.new(math.huge, math.huge, math.huge) v.Velocity = z.hit.lookVector * 100
The :GetMouse() Function only works in localscripts, if it is in one already, check any errors with the Player variable. | If this was the answer, please mark it as the answer so I can get more reputation so I can help others as well.