| |
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 27 Nov 2011 08:12 AM |
Have a copy of the hat in game.Lighting, and when they spawn, put the hat on them.
Give me a sec and ill make a script for you. |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2011 08:14 AM |
Put the hat in game.Lighting Put this script in Workspace: function onPlayerEntered(newPlayer)
hc = game.Lighting:findFirstChild("HAT NAME HERE"):Clone() hc.Parent = newPlayer.Character
end game.Players.PlayerAdded:connect(onPlayerEntered) |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 27 Nov 2011 08:23 AM |
local function onRespawn(character) h = Instance.new("Hat") p = Instance.new("Part") h.Name = "Bucket Hat" p.Parent = h p.Position = character:FindFirstChild("Head").Position p.Name = "Handle" p.formFactor = 0 p.Size = Vector3.new(2, 1, 1) p.BottomSurface = 0 p.TopSurface = 0 p.Locked = true game.Lighting.Hat.Mesh:clone().Parent = p h.Parent = character h.AttachmentPos = Vector3.new(0, 0.15, 0) end
local function onPlayerEntered(newPlayer) newPlayer.CharacterAdded:connect(onRespawn) end
game.Players.PlayerAdded:connect(onPlayerEntered)
That creates a hat inside the players' character when he spawns, and then clones the hat mesh from the object 'hat' in game.Lighting. |
|
|
| Report Abuse |
|
|