#Can someone help me with my script

45 messages · Page 1 of 1 (latest)

gloomy osprey
#

studio** You are now Level 6! **studio

pure niche
#

whats the problem?

shrewd summit
#

what

#

why are u deleting

pure niche
#

cuz they are all wrong

hidden nebula
#

loop = true

pure niche
#

yeah whats with that

#

what is the problem with the script

shrewd summit
#

im trying to make a script that gives 5k for premuim members every 3 mins

pure niche
#

how i would do it

#

is that I would add the player to an array when they join

#

and remove them when they leave

shrewd summit
#

what

#

idk scripting

pure niche
shrewd summit
#

oh okie dokie

pure niche
#

okay so you can use playerservice:getallplayers() to get all of the players every 3 minutes and give them the points that way

shrewd summit
#

but i need only the premuim

pure niche
#

you can check if they are premium

hidden nebula
#
play.PlayerAdded:Connect(function(player)
    local premiumMembers = {} 
    for i, v in ipairs(players) do
        if v.MembershipType == Enum.MembershipType.Premium then 
            table.insert(v, premiumMembers) 
        end
    end
end)
#

premium member table

#

i guess

pure niche
hidden nebula
#

then just add + 5k to every member

#

shit

shrewd summit
#

but how do i make it so they earn cash evety 3 mins

pure niche
#

gimme a minute

#
local Players=game:GetService("Players")
local leaderstats = -- forgor how to do this so do it yourself
while true do
    for _, i in Players:getPlayers() do
        if i.MembershipType == Enum.MembershipType.Premium then
            local cash = leaderstats:waitforchilds("Cash") 
            cash.Value = cash.Value + 5000

        end
    end
    wait(180)
end```
#

every 3 minutes it goes through all the players, and checks if they are premium, then gives them the cash

shrewd summit
#

okay do u have premuim

#

i have no one to test it on

pure niche
#

you can give it to yourself in studio I think

shrewd summit
#

wdym

pure niche
#

gimme a second to find it

#

oh nevermind

shrewd summit
#

huh

pure niche
#

so uh

#

remove the if that checks if its premium

shrewd summit
#

nah dont worry ill prb find some one kind in jailbreak

pure niche
#

and if it works fine put it back and hope and pray

shrewd summit
#

lol

shrewd summit
#

yo the script dont work

#

@pure niche

pure niche