no this still doesn’t work
32323232323232
no this still doesn’t work
32323232323232
I am not quietly sure if you want to move a NPC that has a humanoid but, try checking these.
https://developer.roblox.com/en-us/api-reference/function/Humanoid/MoveTo
https://developer.roblox.com/en-us/api-reference/property/Humanoid/WalkToPart
I want to move a model with the player as if it is part of the player
WeldConstraint every part in the model to the player’s HumanoidRootPart.
Is this what you want?
If you want this just create a part in workspace and create this script, if there gonna be multiple players in game, don’t forget to use :Clone()!
(I tried explaining it but I am not really good at explaining)
game.Players.PlayerAdded:Connect(function(plr) – We gonna wait to a player come to game
plr.CharacterAdded:Connect(function(plrc) – Player came! But did his character came?
script.Parent.CanCollide = false – We must disable cancollide, self explainable.
local bodyp = Instance.new(“BodyPosition”, script.Parent) – Players character is here, we must create a bodyposition!
bodyp.MaxForce = Vector3.new(math.huge, math.huge, math.huge) – We must have infinite max force to do not get any problems.
while true do – We’re creating a infinite loop
wait() – We must wait a bit, or we gonna crash.
bodyp.Position = plrc.HumanoidRootPart.Position + Vector3.new(2,2,3) – We gonna set a vector to our Part or it gonna directly try to enter our characters humanoidrootpart.
end
end)
end)
https://developer.roblox.com/en-us/api-reference/class/BodyPosition
https://developer.roblox.com/en-us/api-reference/function/Instance/Clone
Ideally, you just want to move the CFrame of the object to the desired CFrame of the player and add an offset. You can repeat this process using while loops or for loops.
How do i get it to go in front of the player??
Use CFrame lookvectors. Look it up on Youtube.