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

Cloning Hats To Player in FE?

Asked by
UPumpkin -34
6 years ago

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

Log in to vote
0
Answered by
UPumpkin -34
6 years ago

Someone told me to use remote events and now it works

Ad

Answer this question