local gui = script.Parent:WaitForChild("JoinGui") local button = gui:WaitForChild("JoinButton") local event = script.Parent:WaitForChild("Join") button.MouseButton1Click:Connect(function() event:FireServer(1) end)
I do not know what your server script looks like but I think mistake you possibly might have is that when you are sending 1 value on on server event you are doing this
local event = --wherever event is located event.OnServerEvent:Connect(function(sentValue) -- whatever you are doing end)
but first one here is always automatically player and then comes whatever you sent from localscript
so basically if you sent :FireServer(1) then you have to do OnServerEvent(player, sentValue)
and sent value there will be that 1 you sent
I apologize for bad english, just thought this might help you because this mistake is very common
hey you! have you ever heard of enes? if you are in trouble, better call enes!