
Keyless

--[[
Supermarket Simulator Script
]]
-- Define the gold amount to add and other arguments
local goldAmount = 1 -- Set the amount of gold to change
local isFree = false -- Whether the action is marked as "free"
-- Function to invoke the gold change
local function changeGold(amount, free)
-- Check if the required services and objects exist
local replicatedStorage = game:GetService("ReplicatedStorage")
if not replicatedStorage then
warn("ReplicatedStorage not found. Exiting script.")
return
end
local events = replicatedStorage:FindFirstChild("Events")
if not events then
warn("Events folder not found in ReplicatedStorage. Exiting script.")
return
end
local gold = events:FindFirstChild("Gold")
if not gold then
warn("Gold folder not found in Events. Exiting script.")
return
end
local changeGoldRF = gold:FindFirstChild("ChangeGoldRF")
if not changeGoldRF then
warn("ChangeGoldRF RemoteFunction not found in Gold. Exiting script.")
return
end
-- Create arguments for the remote function
local args = {
[1] = "ChangeGold",
[2] = amount,
[3] = free
}
-- Safely invoke the server function
local success, result = pcall(function()
return changeGoldRF:InvokeServer(unpack(args))
end)
if success then
print("Gold successfully changed! Result:", result)
else
warn("Failed to change gold. Error:", result)
end
end
-- Execute the gold change
changeGold(goldAmount, isFree)
does it work with nezur? Becuase when I execute it dosen't do anything
@Maska I ran this on Xeno, You can always try switching executors, or try changing the goldAmount on ~Line 9. Hope this helped :)
@Facebook Oh... I just never thought of it like that T_T
thanks man
@Maska Np Man :)
chatgpt lookin ahh
doesnt work