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

Mask not showing on players head, how do I fix this?

Asked by
xEiffel 280 Moderation Voter
6 years ago

Basically, I made a script where once the round starts you get a mask on, the mask has a weld in it and inside the mask are 2 eyes which also have welding. This is the script where It puts it on the players model

local HockeyMask = KillerModel.Mask:clone()
HockeyMask.Parent = workspace.Killer[Killer.Name]

But however, It's not showing on the player, I'm not sure how to fix this If anyone can help, It would majorly be appreciated.

0
what is `workspace.Killer[Killer.Name]` supposed to be connor12260311 383 — 6y
0
That is the player. [workspace.Killer] meaning a object in the workspace called killer and the [Killer.Name] is the Name of the Killer, (the Killer is a variable that chooses a killer at random) xEiffel 280 — 6y
0
is the HockeyMask an accesory? connor12260311 383 — 6y
0
a hat or something? connor12260311 383 — 6y
0
It is a part. an Accessory messes it up for some reason. xEiffel 280 — 6y

1 answer

Log in to vote
0
Answered by
Radstar1 270 Moderation Voter
6 years ago

When you put the mask in the player you have to weld the actual mask to the player's head. Refer to http://wiki.roblox.com/index.php?title=Weld for help. I would suggest inside you script you weld it like this.

local Weld = Instance.new("Weld")
Weld.Parent = Mask
Weld.Part0 = Mask
Weld.Part1 = Character.Head
Weld.C0 = weld.C0 * CFrame.new(0,0,0)* CFrame.Angles(0,0,0) -- CFrame.new  This is to adjust how the mask is position on the face  -- CFrame.Angles Rotates the mask on the player's head.  

0
The only thing that doesn't work is that it isn't connecting with the head, It's not following it. And yes, I've set the Part0 to Mask and Part1 to Head. xEiffel 280 — 6y
Ad

Answer this question