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

How do you put a hat on a player?

Asked by
Mystdar 352 Moderation Voter
9 years ago

Not an actual hat, a hat you have created with a handle (It's basic object is a hat) when it is in the lighting?

0
Just clone it and weld it to the player. Aethex 256 — 9y
0
How would you do that? Mystdar 352 — 9y

1 answer

Log in to vote
1
Answered by 9 years ago

Hmm, I'd probly do this;

repeat wait(0)until game and game:FindService("Lighting")and game.Lighting:FindFirstChild("HATNAME") --Replace HATNAME with the name of the hat
local lighting=game:GetService("Lighting")
local hat=lighting:FindFirstChild("HATNAME") --Replace HATNAME with the name of the hat
if hat then
givehat=hat:Clone()
givehat.Parent=PARENTHERE --Switch this out with that Parent you want the hat to be in
end

Hope this helped!

Ad

Answer this question