How to give yourself money in roblox

1. u need an exploit (preferably a paid or an exploit that can run a remote spy and dex)

2. It depends on the game you wish to do it on, some games dont use remotes to add money. Like jailbreak remotes arnt used for cash (pretty sure) but games like some raise a cute baby or something like that typically use remotes to add money (sorry for my bas explanation I'm pretty sure someone can explain better.

3. Here is a following example most adopt and raise cute baby use: (writing in my phone)

game.ReplicatedStorage.Cash:FireServer(9999)

4. There should he plenty of tutorials on these, search up "Roblox Remote Spy Tutorial" a few vids should show up.

Hope this helped! :)

Log in to vote

0

Answered by

Hello. You could do something like this: I have made two commands, !setmoney player value and !addmoney player value !addmoney increments the value given by the current amount of money you have

You could add this to an admin script too:

local function NameShortening(nameString) local matches= {} for _, player in ipairs (game.Players:GetPlayers()) do if string.lower(player.Name):match(string.lower(nameString)) then table.insert(matches, player) end end if #matches== 1 then return matches[1] else return nil end end local function onChatted(msg, speaker) if string.find(msg:lower(), "!setmoney") then local a,b,name,amount = string.find(msg, "!setmoney (%S+) (%S+)") local name2 = NameShortening(name) if name2 ~= nil then if typeof(tonumber(amount)) == "number" then game.Players:FindFirstChild(tostring(name2)).leaderstats:FindFirstChild("Cash").Value = tonumber(amount) else print("Invalid input entered!") end else print("Invalid player entered!") end end if string.find(msg:lower(), "!addmoney") then local a,b,name,amount = string.find(msg, "!addmoney (%S+) (%S+)") local name2 = NameShortening(name) if name2 ~= nil then if typeof(tonumber(amount)) == "number" then game.Players:FindFirstChild(tostring(name2)).leaderstats:FindFirstChild("Cash").Value = game.Players:FindFirstChild(tostring(name2)).leaderstats:FindFirstChild("Cash").Value + tonumber(amount) else print("Invalid input entered!") end else print("Invalid player entered!") end end end game.Players.PlayerAdded:connect(function(player) player.Chatted:Connect(function(msg) onChatted(msg, player) end) end)

For an admin script, you could change the bottom bit too:

game.Players.PlayerAdded:connect(function(player) player.Chatted:Connect(function(msg) if tostring(player) == "AdminPlayerName" then onChatted(msg, player) end end) end)

So I was wondering if I could give my self the i game currency or points (the thing in the top right corner that should be {currency}) for example In a fighting game it would be levels or exp, and I was wondering if there was a way to give yourself said points with infinite yield. I use krnl but I’m also very new to exploits and only know how to open up the infinite yield menu with krnl and use the basic commands. Any help is much appreciated

Help and Feedback Scripting Support

Hi I have a question so I’m trying to make an admin command but it’s an admin command that gives you cash now I know how to make that but I want to make it so that you enter the command which will be “;cash” but after cash I want to make so you chose how much amount of money you get so if someone enters “;cash 1320” and they get 1320 cash please reply would appreciate and would really helpful

How to give yourself money in roblox
thank you

5 Likes

The easiest way to do this is pattern matching, which is a way of matching a specific pattern in a string. In this case, you want to match against a series of digits after “;cash” which is thankfully pretty easy:

local function GetMoneyFromCommand(command) local money = command:match(";cash (%d+)") return tonumber(money) end

In the match method there, we capture “%d+” which means that we want all digits at that location returned in our variable. If it fails to match, it will return nil. This is important to check for.

We could then use it as such:

player.Chatted:Connect(function(message) local money = GetMoneyFromCommand(message) if money then -- Do something with `money` here end end)

Use a PlayerAdded event and Chatted event, split the message, check if it was the correct command, and increase the player’s currency value.

local Players = game:GetService('Players') -- Get the "Players" service local admins = { -- A table of people that can run the command game.CreatorId } Players.PlayerAdded:Connect(function(player) -- Connect the PlayerAdded event if not table.find(admins, player.UserId) then -- Check if the player can run the command. return -- If not then we'll skip connecting the Chatted event end player.Chatted:Connect(function(message) -- Connect a Chatted event so we can detect if the player has chatted. local split = string.split(message, ' ') -- Turn the message to a table if split[1] == ';cash' then -- If our first index matches to ";cash" player.leaderstats.Cash.Value += tonumber(split[2]) or 100 --[[ Increase the cash by the number of cash we are giving, if it the 2nd index was nil then it will automatically be 100 ]] end end) end)
I have no idea why I put that many comments in the code.

Also I think that @sleitnick’s solution is better than mine.

edit: I think I read the title incorrectly lol.
edit 2: Alright, fixed it so that it gives it to yourself.

4 Likes

Is that the only code I need to use?

2 Likes

Yo tysm it actually worked saved me a lot of time thx i really appreciate it