I have this script and want to know how many loops like this it can have. They need to work on the same time. Can it hold 1, 2 or more?
Wait(7)
local vipamount = 4 -- This variable is the amount of RIX Vips will get each time.
local amount = 2 -- This variable is the amount of RIX we will give each time.
local timedelay = 2 -- (600)This variable is the amount of seconds in between each time the RIX is rewarded
local currencyname = "RIX" -- This is the name of our Currency
local groupId = 3141417 -- Group ID from the Group ranks will be taken from
while wait(5) do
for _, player in ipairs(game.Players:GetPlayers()) do
if player:InGroup(groupId) then
if player:FindFirstChild("lederstats") then
if player:RoleInGroup(groupId) = "RIX VIP" then
player.leaderstats.RIX.Value = player.leaderstats.RIX.Value + vipamount
end
end
end
end
end
while wait(5) do
for _, player in ipairs(game.Players:GetPlayers()) do
if player:InGroup(groupId) then
if player:FindFirstChild("lederstats") then
if player:RoleInGroup(groupID) = "RIX Earner" then
player.leaderstats.RIX.Value = player.leaderstats.RIX.Value + amount
end
end
end
end
end
while wait(5) do
for _, player in ipairs(game.Players:GetPlayers()) do
if player:InGroup(groupId) then
if player:FindFirstChild("leaderstats") then
if player:RoleInGroup(groupId) = "RIXER" then
player.leaderstats.RIX.Value = player.leaderstats.RIX.Value + vipamount
end
end
end
end
end

1 comment
Nice script tho