Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can I attach something to my character so it follows me?

Asked by
opiahh -5
7 years ago

So, I'm trying to make something so I can push it around and control it, and I thought I might be able to attach it to my character. I might sound stupid, but I'm new to scripting. If this is possible, can someone tell me how to do it? If not, how else can I control and move a model?

1 answer

Log in to vote
0
Answered by 7 years ago

Yes this is very possible. To attach something to your character, we can use a Weld. Welds can be used like so:

local Player = game:GetService("Players").LocalPlayer

local Weld = Instance.new("Weld")
Weld.Part0 = Player.Character.HumanoidRootPart
Weld.C0 = Weld.Part0.CFrame:inverse()
Weld.Part1 = WHATEVERYOUWANTTOWELD
Weld.C1 = Weld.Part1.CFrame:inverse()
Ad

Answer this question