I want to change "damage" if player is wearing an accessory. No idea how to check if player is wearing accessory but tried this.
local Player = game.Players.LocalPlayer
repeat wait() until Player.Character~= nil
local Char = Player.Character
if Char:FindFirstChild("MagicTopHat")~= nil then
damage = damage * 50
end
This is a localscript inserted into starterpack.
Any help would be appreciated. Thanks :D

3 comments
if Char:FindFirstChild("MagicTopHat")~= nil then 6 damage = damage * 50 7 end try using if Char.MagicTopHat then damage = damage * 50 end
Sorry, i don't know how to use markup text for the code
null * 50 ? , I think not .