local Distance = 100 local Debounce = false local Player = game.Players.LocalPlayer wait(3) local Humanoid = Player:WaitForChild("Humanoid", 4) local TeleportingAnim = script:WaitForChild("TeleportingAnim", 4)
script.Parent.Activated:Connect(function() local TeleportingAnimLoad = Humanoid:LoadAnimation(TeleportingAnim) local MousePos = Player:GetMouse().Hit.Position local Plr,MousePos = Player.Character.PrimaryPart.Position,MousePos local Magnitude = (Plr - MousePos).Magnitude if Debounce == false then if Magnitude <Distance then TeleportingAnimLoad:Play() Debounce = true wait(2) Player.Character.PrimaryPart.CFrame = CFrame.new(MousePos) wait(1.5) Debounce = false end end end)

2 comments
humanoid is in the character, not the player.
humanoid is in the character, not the player.