Hello,
I do not know why but I am getting an error about an argument in a Remote function.
Local:
local rs = game:GetService("ReplicatedStorage")
local plr = game:GetService("Players").LocalPlayer
while wait(2) do
if rs.Events.InDivision:InvokeServer("redacted") then script.Parent.Visible = true
else script.Parent.Visible = false
end
end
Script (remote function)
local rs = game:GetService("ReplicatedStorage")
local REDACTED_Management = require(game:GetService("ServerScriptService").Modules.ManagementREDACTED)
local function eventServerInvoke(player, division)
if division == "redacted" then
return REDACTED_Management.inDiv(player.UserId)
end
return false
end
rs.Events.InDivision.OnServerInvoke = eventServerInvoke