|
| 05 Dec 2015 06:36 PM |
btnon.MouseButton1Down:connect(function() local players = workspace:FindFirstChild(player.Name)
local obj = players:GetChildren() -- this part is broken, its suppose to find all hats in the player and delete it if obj.ClassName == "Hat" then obj:Destroy()
local hat = serverstorage:Clone() -- this part works, its suppose to clone the hat in server storage and give it to player hat.Parent = players end end)
please help it doesnt say anything in output this script starts when a player clicks the button, it deletes all of the players hats and gives him the one in server storage |
|
|
| Report Abuse |
|