I have looked for simple answers but no promising results. I just want a dummy to follow a player from any distance, that’s all. Any help is appreciated.
(I also don’t know where to put the script)
I have looked for simple answers but no promising results. I just want a dummy to follow a player from any distance, that’s all. Any help is appreciated.
(I also don’t know where to put the script)
You could use humanoid.WalkToPoint() and set the point to where the players torso is
I will try that, but where would I put the script?
Get a dummy out of the build rig tab, and write this
local Animations = Instance.new("Configuration")
Animations.Parent = script.Parent
local walk = Instance.new("Animation")
WalkAnim.Parent = Animations
WalkAnim.AnimationId = "rbxassetid://507777826"
-----------------------------------------------------
local plr = game.Players.LocalPlayer
local character = game.Workspace:WaitForChild(Player.Name) -- not display name!
local Bot = script.Parent
Bot.Humanoid:MoveTo(character.HumanoidRootPart.Position)
local humanoid = script.Parent:WaitForChild('Humanoid')
local walk = humanoid:LoadAnimation(WalkAnim)
walk:Play()
My script wont work, sorry man :(
local dummy = script.Parent
local playerToChase: Model = -- the player to chase
while task.wait(.25) do
dummy.Humanoid:MoveTo(playerToChase.HumanoidRootPart.Position)
end
(this is just the bare bones, you need to specify the player character yourself.)
Sorry for the late response, but would this be a local or server script?
Also, if you dont want a player to chase
local plr_name = game.Players.LocalPlayer.Name
local char = game.Workspace:WaitForChild(plr_name)
local dummy = script.Parent
local playerToChase: char = -- the player to chase
task.wait(.25)
dummy.Humanoid:MoveTo(playerToChase.HumanoidRootPart.Position)
Try this and place this as a localscript.