Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why doesn't this work in a real server?

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

2 answers

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.

2 comments

0

Still didn't work..

0

Okay, was just saying it could POSSIBLY be that.

This discussion is preserved as it was. New answers, comments, and votes are closed.