local LocalPlayer = game:GetService("Players").LocalPlayer local part = game.ReplicatedStorage.Model.Bodypos local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait() local Orb = game:GetService("ReplicatedStorage"):WaitForChild("Model"):Clone() Orb.Parent = Character local BodyPosition = Instance.new("BodyPosition", part) while wait(0) do BodyPosition.Position = Character.Head.CFrame:pointToWorldSpace(Vector3.new(2, 1, 0)) end
Create the part as you want it and put it in replicated storage:
local Orb = game:GetService("ReplicatedStorage"):WaitForChild("Orb"):Clone() -- change "Orb" to the name of your part Orb.Parent = Character
Update to the follow-up questions in chat:
You're setting the parent of the BodyPosition to part
which is a part in the model still in ReplicatedStorage since the model we're using is a clone of that one. Change the parent to the part inside our cloned model instead
local Orb = game:GetService("ReplicatedStorage"):WaitForChild("Model"):Clone() Orb.Parent = Character local BodyPosition = Instance.new("BodyPosition") BodyPosition.Parent = Orb.Bodypos
Also you might want to give context to future readers about the edits you make.