I’m trying to use a Remote Function to check for the value of a Boolean object located inside of the player, I want to do this by calling the Remote Function from the client, then on the server, checking the value of the Boolean object and returning it’s value (true/false).
For some reason, the remote function seems to be returning an empty string or a “blank”, not sure what’s going on but here is a screen shot of the return value I print from the client:
![]()
Here’s the code from the client:
uis.InputBegan:Connect(function(input, gpe)
if gpe then return end
if input.UserInputType == Enum.UserInputType.MouseButton1 then
print(getStatus:InvokeServer({Status = "Blocking"}))
changeStatus:InvokeServer({Status = "Blocking", Value = "True"})
print(getStatus:InvokeServer({Status = "Blocking"}))
end
end)
Here’s the code from the server:
local changeStatus = rs.GetStatus
local getStatus = rs.ChangeStatus
local function returnStatus(plr, args)
return plr.StatusFolder:WaitForChild(args.Status).Value
end
local function changeStatusValue(plr, args)
plr.StatusFolder:WaitForChild(args.Status).Value = args.Value
end
getStatus.OnServerInvoke = returnStatus
changeStatus.OnServerInvoke = changeStatusValue
I’ve tried printing out the return value for “returnStatus” server-side and it is true/false, however, when the client attempts to print/use the value it doesn’t work.
Help appreciated, thank you!