This is the only remote event I have that isn't doing anything. I can't figure out what's wrong, It's not printing at all.
Local Script
local Player = game.Players.LocalPlayer local InviteEvent = workspace.CharacterEvents.InvitePlayerEvent script.Parent.FocusLost:Connect(function(enterPressed) for i, v in pairs(game.Players:GetChildren()) do local Player2 = script.Parent.Text if enterPressed and Player.Team ~= game.Teams.Rogues and v.Name == Player2 then local Player2 = v InviteEvent:FireServer(Player2) script.Parent.Parent.Sound:Play() print("Invite Sent") elseif Player.Team == game.Teams.Rogues then script.Parent.Parent.TextLabel.Text = "You need to be in a pack!" wait(1) script.Parent.Parent.TextLabel.Text = "Invite player to your pack." print("Invite Not Sent") end end end)
Server Script
script.Parent.OnServerEvent:Connect(function(Player, Player2) print("I'm confused") end)