Better to use this:
local Player = Players:GetPlayerFromCharacter(tool.Parent)
i didnt test in studio, i tested in roblox
i think i know a problem.
i was reading the wiki and it says " he badge must be awarded from a server-side Script
or a ModuleScript
eventually required by a Script
, not from a LocalScript
."
i had it in a localscript.