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

Hat giving GUI spawning the hat into Workspace and not the character?

I managed to make a working hat giver script for a part. When you stood on the part, it would clone the hat from Lighting and set it's parent to the character. This worked. When trying to make it into a GUI, it clones the hat sets it's parent to player.Character, but it isn't on the character's head. Here is the LocalScript in the TextButton:

local player = game.Players.LocalPlayer
local button = script.Parent

button.MouseButton1Click:connect(function()
    local hat = game.Lighting.TopHat:Clone()
	hat.Parent = player.Character
end)

1 answer

✓ Accepted answer

This plugin helps edit the grips on accessories. Which means that is a hat doesn't go on you head, you can make the hat do so using this plugin. I suggested this because your script appears to be correct. I hope this answers your question.

1 comment

0

Worked, thanks!

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