#can anyone help me with this give cash cmd?

1 messages · Page 1 of 1 (latest)

marble iron
#

local Players = game:GetService("Players")

-- Allowed usernames
local allowed = {
["okani4"] = true,
["IJustDevRBLX"] = true,
}

Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if not allowed[player.Name] then return end

    local args = msg:split(" ")

    if args[1]:lower() == "/givecash" and args[2] and args[3] then
        local targetName = args[2]
        local amount = tonumber(args[3])

        if not amount then return end

        local targetPlayer = Players:FindFirstChild(targetName)
        if targetPlayer then
            local cash = targetPlayer:FindFirstChild("leaderstats") and targetPlayer.leaderstats:FindFirstChild("Cash")
            if cash then
                cash.Value = cash.Value + amount
            end
        end
    end
end)

end)

marble iron
compact currentBOT
#

studio** You are now Level 1! **studio

solar thicket
#

its ;add me (leaderstats) 1234142

marble iron
#

tyyyy

clear pier
bleak cliff
clear pier
raw needle
bleak cliff
bleak cliff
#

types go brrrrrrr lua type Query_API={ Get:(dstore:DataStoreDef_T,key:string,opts:(Query_OPTS<CallbackFetch_T> & {opts:DataStoreGetOptions?})?,...any?)->(DataStoreRequest_T<QueryGet_T>); Set:(dstore:DataStoreDef_T,key:string,value:any,opts:(Query_OPTS<CallbackFetch_T> & {opts:DataStoreSetOptions?})?,...any?)->(DataStoreRequest_T<QuerySet_T>); Update:(dstore:DataStoreDef_T,key:string,transform:Transform_T,opts:Query_OPTS<CallbackFetch_T>?,...any?)->(DataStoreRequest_T<QueryUpdate_T>); Increment:(dstore:DataStoreDef_T,key:string,delta:number,opts:Query_OPTS<CallbackIncrement_T>?,...any?)->(DataStoreRequest_T<QueryIncrement_T>); Remove:(dstore:DataStoreDef_T,key:string,opts:Query_OPTS<CallbackFetch_T>?,...any?)->(DataStoreRequest_T<QueryRemove_T>); Sort:(dstore:DataStoreDef_T,opts:Query_OPTS<CallbackSort_T>?,...any?)->(DataStoreRequest_T<QuerySort_T>); }

raw needle
#

what

#

is this shit still lua

bleak cliff
#

so i have to make a wrapper around the 30 request limit plus all the other limits 🤪

raw needle
#

tf is a wrapper