I am making a script where if you are a mod, then you will be given a kick gui, but it ends up giving me the gui when my name isn't in the if statement
Script:
local notification = script.Parent.Moderator
local Console = script.Parent.Mod
local button = script.Parent.ModButton
local exit = script.Parent.Mod.Exit
game.Players.LocalPlayer.CharacterAdded:Connect(function()
if game.Players.LocalPlayer.Name == 'toxiccitron123' or 'LexiPadmore' or 'stephencurry90909' then
notification:TweenPosition(UDim2.new(0.5, -244, 0, 0))
button:TweenPosition(UDim2.new(1, -105, 1, -55), 'In', 1)
wait(5)
notification:TweenPosition(UDim2.new(0.5, -244, -1, 0))
end
end)
button.MouseButton1Click:Connect(function()
Console:TweenPosition(UDim2.new(1, -150, 0.5, -119), 'In', 1)
end)
exit.MouseButton1Click:Connect(function()
Console:TweenPosition(UDim2.new(2, -150, 0.5, -119), 'Out', 1)
end)
LocalScript

2 comments
u should do it with the player's UserId
Thx! This table method will be alot more convient when you add more mods