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

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

Asked by
Echtic 128
5 years ago

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
0
Adjust the CFrame of the object to fit however you like, and change transparency down from 1 so you can see the object chomboghai 2044 — 5y
0
I made it transparent on purpose, thank you for the advice! Echtic 128 — 5y

1 answer

Log in to vote
0
Answered by
T1mes 230 Moderation Voter
5 years ago
Edited 5 years ago

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
0
Thank you! Echtic 128 — 5y
0
You’re welcome. T1mes 230 — 5y
Ad

Answer this question