I'm trying to get a horse model to move the player's position, here is the code that I'm using:
script.Spawn.OnServerEvent:Connect(function(Player)
if workspace:FindFirstChild("".. Player.Name .. "'s Horse") == nil and Player.Stats.HasHorse.Value == 1 then
local Horse = game.ReplicatedStorage.Horses.BasicHorse:Clone()
local Part = Player.Character.HumanoidRootPart.Position
Horse.Name = "".. Player.Name .. "'s Horse"
Horse:MoveTo(Part)
Horse.Parent = workspace
elseif workspace:FindFirstChild("".. Player.Name .. "'s Horse") ~= nil and Player.Stats.HasHorse.Value == 1 then
workspace:FindFirstChild("".. Player.Name .. "'s Horse"):Destroy()
end
end)
Instead of moving it to the Player's RootPart, it just moves it to some random place in the workspace. Example
Thanks for reading, and I'd appreciate any help that you can offer

1 comment
Edited'