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

Spawn With A Hat?

Asked by 10 years ago

So, I have a game in which I want all players to spawn without their hats, but with the Classic ROBLOX Pumpkin Head. How would you do this?

0
Use the 'PlayerAdded', 'CharacterAdded', and ':Clone()' methods or 'InsertService', all I can say. :/ TheeDeathCaster 2368 — 10y
0
KK fight4money -2 — 10y
0
Could I use a morph but make it invisible? fight4money -2 — 10y

1 answer

Log in to vote
2
Answered by
Merely 2122 Moderation Voter Community Moderator
10 years ago

If you know the ID of a hat, you can insert it with InsertService. Then, whenever a player spawns, you should clone the hat and parent it into the character of the player.

local hatId = 38438432
local hat = game:GetService("InsertService"):LoadAsset(hatId):GetChildren()[1]

--in CharacterAdded function
hat:Clone().Parent = character
0
OMG Its Merely :D :D :D :D fight4money -2 — 10y
Ad

Answer this question