V33S
(lunar)
1
I’m making an admin panel and I’ve made a bit where it loads a model and the model just stays where it originally was when it was inserted.
script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr)
local model = script.Parent.Parent.Parent.Parent.Parent.Needed_Stuff["Model"]:Clone()
model.Parent = game.Workspace
model.HumanoidRootPart.Position = game.Workspace[plr.Name].HumanoidRootPart.Position
end)
But the model stays where it is but you get pushed a bit forward, is there a fix?
1 Like
Are you sure there is not any accidental welds in the model that should not be there.
V33S
(lunar)
3
No I don’t see any welds in the model
you need to move the model using CFrame not position
script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr)
local model = script.Parent.Parent.Parent.Parent.Parent.Needed_Stuff["Model"]:Clone()
model.Parent = game.Workspace
model.HumanoidRootPart.CFrame = game.Workspace[plr.Name].HumanoidRootPart.CFrame
end)
1 Like