MoveTo: not working on player's character

Hello im trying to make the player character move to the corner flag of a stadium to celebrate. But the MoveTo seems to cancel when player moves their character, How do I make the moveto uninterruptable? Thanks.

	local Character = player.Character
    local Humanoid = Character.Humanoid
	Humanoid:MoveTo(workspace.AwayCelebrateCam.Position + Vector3.new(0,0,-8))	
	Humanoid.MoveToFinished:Wait()

put this inside StarterCharacterScripts:

local Chr = script.Parent
local Hmd = Chr:WaitForChild("Humanoid", 3)

Hmd:MoveTo(workspace.AwayCelebrateCam.Position + Vector3.new(0,0,-8))
Hmd.MoveToFinished:Wait()
1 Like

Tried but It still gets interrupted when the player moves their character

Disable the players movement.

local Controller = require(game.Players.LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule")):GetControls()
--Disable Controls
Controller:Disable()
--Enable Controls
Controller:Enable()

If your trying to do this on the server, fire this to the client thats moving by using RemoteEvent:FireClient(player)
Put this script in StarterPlayerScripts.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.