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

Cloning Hats To Player in FE?

This is currently a server script but I tried it as a local as well and they both worked in studio but neither work in-game

script.Parent.MouseButton1Click:connect(function()
local player = script.Parent.Parent.Parent.Parent.Parent
local char = game.Workspace[player.Name]
local hat = game.ReplicatedFirst:FindFirstChild(script.Parent.Name)
local cutie = hat:Clone()
cutie.Parent = char
end)

1 answer

Someone told me to use remote events and now it works

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