Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i make a new instance attached to the player's head a little right from the center?

I am trying to make a part which is attached to the player's head a little right from the center, but i have no idea how to do it, i'd be thankful to get an answer, Thanks!

Here's the beginning of the script:

local dt = Instance.new("Part")
dt.Transparency = 1
dt.Size = game.ReplicatedStorage.MarkAuraB.Size	
dt.Parent = chr.Head
dt.CanCollide = false

2 comments

0

Adjust the CFrame of the object to fit however you like, and change transparency down from 1 so you can see the object

0

I made it transparent on purpose, thank you for the advice!

1 answer

✓ Accepted answer

You would use welds.

weld = Instance.new(“Weld”)
weld.Part0 = dt
weld.Part1 = chr.Head
weld.C0 = weld.C0*CFrame.new(2, 0, 0) 
weld.Parent = dt

2 comments

0

Thank you!

0

You’re welcome.

This discussion is preserved as it was. New answers, comments, and votes are closed.