Hello im having a issue with my server lock script.
I have 2 script for it a LocalScript (to check for join) and a ServerScript (to check if the server is locked) and a remoteevent called CheckEvent
-- LocalScript local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(plr) local ae = plr local remot = script.Parent.CheckEvent remot:FireServer(ae) print("YESSSS") end)
-- ServerScript script.Parent.CheckEvent.OnServerEvent:Connect(function(player, memer) print(memer) print(player) game.Players:FindFirstChild(memer):Kick("Server is locked !") print("user kicked !") end)
the localscript work and print the yes but the serverscript doesnt print memer, player and dont kick the player
there isnt any error in the console
What i tried Testing it in a non-studio game Change the <thing>:FireServer change plr to ae check if ae return player name