I’m trying to make a hand that moves a player to a location if you hit them with it, but it doesn’t seem to work. I couldn’t find out what was wrong. if you have any ideas please tell me : )
script:
wait(.5)
local tool = script.Parent
local plr = game.Players.LocalPlayer
local sound = workspace.ThrowDestination.Sound
local TweenService = game:GetService("TweenService")
script.Parent.Handmesh.Touched:connect(function(object)
local hrp = object.Parent:FindFirstChild("HumanoidRootPart")
if not hrp or hrp.Parent == plr.Character
then
return end
local info = TweenInfo.new(.5)
local Animation = TweenService:Create(hrp, info, {CFrame = CFrame.new(workspace.ThrowDestination.Position)})
Animation:Play()
if not sound.IsPlaying
then
sound:Play()
end
end)