So I'm trying to make a script that gives people with a tester rank a 2x exp boost in my game. Is there any way I can do this? I tried doing it like it is in the following, but it doesn't work, I tested changing the 10x exp one to a name other than mine, and it just gave me 1x exp.
local testers = {"FoxOwO","S_naZY","jurassicsonic","Knineteen19"}
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function()
local multi = script:WaitForChild("XP Multiplier")
local multiplier = multi:Clone()
if player.Name == "Knineteen19" then
multiplier.Value = 10
elseif player.Name == testers[1] or player.Name == testers[2] or player.Name == testers[3] then
multiplier.Value = 2
else
multiplier.Value = 1
end
multiplier.Parent = game.Workspace:WaitForChild(player.Name).Humanoid
end)
end)

1 comment
print "table(testers)" possibly?