This here code piece doesn't work in a real server, and it's in a localscript. I've tried changing the code up a little bit but it still wouldn't work, Here it is:
local damagemultiplier = 1 local passes = {{"Peeta's Perks", 146508254}} for _, pass in pairs(passes) do if Game:GetService("GamePassService"):PlayerHasPass(Game.Players.LocalPlayer, pass[2]) then local m = Instance.new("Message", Tool.Parent) m.Text = "You have the " .. pass[1] .. " gamepass!" if pass[1] == "Peeta's Perks" then damagemultiplier = damagemultiplier + (Game.Players.LocalPlayer.District.Value == 12 and 0.46 or 0.23) end end end damage = maindamage * damagemultiplier
Try putting a wait()
at the start of it. I'm not sure if they fixed it yet or not, but it can start early sometimes.
If we take a look at the documentation, we can see that the PlayerHasPass
method does not work in LocalScripts.