I was trying to send Bool value state from local to server but for some reason server side thinks that bool value is in my player instance
--client
local BoolVal = player.Character.ExampleBool
BoolVal.Value = true
Event.OnClientEvent:Connect(function()
Event:FireServer(BoolVal)
end)
--client
--server
ClickDetector.MouseClick:Connect(function(plr)
Event:FireClient(plr)
Event.OnServerEvent:Connect(function(BoolVal)
if BoolVal.Value == true then
BoolVal = false
end
end)
end
--server
Error Message:Value is not a valid member of Player "Players.kubapro213748"

4 comments
Isn't this a way too overengineered solution to a simple issue?
Thanks, now I know what remote functions are for
No it's not. Using a RemoteEvent IS OVERENGINEERING
You're welcome! :D