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

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

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.

5 comments

0

what is workspace.Killer[Killer.Name] supposed to be

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)

0

is the HockeyMask an accesory?

0

a hat or something?

0

It is a part. an Accessory messes it up for some reason.

1 answer

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.  

1 comment

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.

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