Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

my script doesnt fire remoteEvent? (server lock script) [Solved]

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 :FireServer change plr to ae check if ae return player name

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.