I made a script where if the player drops their hat/s this script is suppose to destroy them. My only issue is how would I define it in the workspace so when the hat object appears in workspace its destroyed.
local Hat = Instance.new ("Hat")
if game.Workspace.Hat == true then
game.Workspace.Hat:Destroy()
end
Its an issue with the "Hat" and I don't know how I would define a hat object

2 comments
Mine is better lel.
Answers, Answers! Questions, Questions! REPUTATIONS, REPUTATIONS! Your script can be chopped down by using a ChildAdded event, second What is that for in there,and finally MY GAME IS LAGGY!