local char = player.Character or player.CharacterAdded:Wait()
local hum = char.Humanoid
local Replicated = game:GetService("ReplicatedStorage")
local hatone = Replicated:WaitForChild("tophat"):Clone()
local hattwo = Replicated:WaitForChild("partyhat"):Clone()
local hatthree = Replicated:WaitForChild("bananahat"):Clone()
local hatfour = Replicated:WaitForChild("BCHardHat"):Clone()
local hatfive = Replicated:WaitForChild("traffichat"):Clone()
if player.leaderstats.Hat.Value == 1 then
hatone.Parent = char
else if player.leaderstats.Hat.Value == 2 then
hattwo.Parent = char
else if player.leaderstats.Hat.Value == 3 then
hatthree.Parent = char
else if player.leaderstats.Hat.Value == 4 then
hatfour.Parent = char
else if player.leaderstats.Hat.Value == 5 then
hatfive.Parent = char
end
end
end
end
end
end```
#Hatify function does nothing 4 some reason when called?
1 messages · Page 1 of 1 (latest)
Could you imply some context? What are you trying to do?
Unless you have modulescripts running, there must be more that defines what unknown variables like "player" are