I've been trying to add a double experience script for hours and i've yet to figure out how it works ...If anyone could help it would be greatly appreciated!
local GamePassService = game:GetService("GamePassService") local GamePassId = 989673709 local Humanoid = script.Parent.Humanoid local Player = game.Players.LocalPlayer function PwntX_X() local tag = Humanoid:FindFirstChild("creator") if tag ~= nil then if tag.Value ~= nil then local Leaderstats = tag.Value:FindFirstChild("leaderstats") if Leaderstats ~= nil then Leaderstats.XP.Value = Leaderstats.XP.Value + 25 elseif GamePassService:PlayerHasPass(Player, GamePassId) then if Leaderstats ~= nil then Leaderstats.XP.Value = Leaderstats.XP.Value + 50 end wait(0.1) script:Remove() end end end end Humanoid.Died:Connect(PwntX_X)