-- Services
local plrs = game:GetService("Players")
local rs = game:GetService("ReplicatedStorage")
-- Vars
local getData = rs:WaitForChild("GetData")
-- Gui Vars
-- Init
local function Init()
getData:InvokeServer()
end
Init()
Server:
rs.GetData.OnServerInvoke = HandleRequest
Getting error (‘Argument 1 missing or nil’) on getData:InvokeServer()
Then you will not get an answer because that is where the error is. In the future if you have a problem sharing your code then you can’t expect to get help.
Can you show us the actual error - screenshot the output log for that particular error showing the stack trace.
Can you also stop editing your code so heavily - the problem is with your code how it is in the game - if you keep redacting huge portions there’s absolutely no way to find the issue. Replace any sensitive keys or URLs with empty strings or, as per best practice, these should be set to constants/variables rather than being hardcoded in.
By the time you’ve handwritten the error, edited the code, and formatted it inconsistently, it’s so far removed from what you actually have that you’re not going to get any solid answers.