Hello guys once again, i found another issue but this time it’s a BIG issue…
local username = script.Parent.Parent.Username local reason = script.Parent.Parent.Reason local Player = game:GetService("Players").LocalPlayer -- You can ignore these 3 but i recommend to keep it to make it as a shorten way on the lines. script.Parent.MouseButton1Click:Connect(function() if username.Text == game.Players then print("You kicked "..username.Text) if game.Players:FindFirstChild(username.Text) then game.ReplicatedStorage.KickPlayer:FireServer(username.Text, reason.Text) game.Players.LocalPlayer:Kick(reason.Text) end else if username.Text ~= game.Players then warn("You tried to kick "..username.Text.." but it's an invalid username !") end if reason.Text == "" then game.Players.LocalPlayer:Kick("Unknow reason") else game.Players.LocalPlayer:Kick(reason.Text) end end end)
Warning, it’s a LocalScript, it’s in the KickButton and the AdminPanel Gui it’s on the Handler Script which is in the ServerScriptService.
Instead of “be” it’s “me”.
Image of the warn no prints:
If it’s marked as a blue thing, it means you don’t count it.
So yeah guys, any help is appreciated.
I just realized that it could be really hard, the bug.