The problem is that that is not ALL the code I have in there.
local config = require(game:GetService("ServerScriptService"):WaitForChild("Read Me // Configuration"))
local groupid = config.GroupID
local minRank = config.minRank
local banDataStore = game:GetService("DataStoreService"):GetDataStore(config.banDataStore)
local introSpecIsAwesome = config.introspecIsAwesome
local debounce = false
local open = false
if introSpecIsAwesome then
print("Introspec is awesome!")
else
print("Wow you don't think Introspec is awesome.. :(")
end
game.Players.PlayerAdded:Connect(function(plr)
if plr:GetRankInGroup(groupid) >= minRank then
script.Parent:Clone().Parent = plr:WaitForChild("PlayerGUI")
else
print("Nope!")
end
end)
script.Parent.ImageButton.MouseButton1Click:Connect(function()
if debounce == false then
if open == false then
debounce = true
script.Parent.MainScreen.Visible = true
wait(.0001)
script.Parent.MainScreen:TweenSize(UDim2.new(0.519, 0,0.685, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce)
wait(1)
for _,v in pairs(script.Parent.MainScreen:GetChildren()) do
if v.ClassName ~= "UICorner" then
v.Visible = true
end
end
open = true
debounce = false
elseif open == true then
debounce = true
for _,v in pairs(script.Parent.MainScreen:GetChildren()) do
if v.ClassName ~= "UICorner" then
v.Visible = false
end
end
wait(.0001)
script.Parent.MainScreen:TweenSize(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce)
wait(1)
script.Parent.MainScreen.Visible = false
open = false
debounce = false
end
end
end)
function openWarn()
-- Close Ban GUI
for _,v in pairs(script.Parent.ReasonPromptBan:GetChildren()) do
if v.ClassName ~= "UICorner" then
local Info = TweenInfo.new(1)
local Tween = game:GetService("TweenService"):Create(v,Info,{TextTransparency=1})
Tween:Play()
wait()
v.Visible = true
end
end
script.Parent.ReasonPromptBan:TweenSize(UDim2.new(0.202, 0,0.685, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce)
script.Parent.ReasonPromptBan.Visible = false
-- Close Kick GUI
for _,v in pairs(script.Parent.ReasonPromptKick:GetChildren()) do
if v.ClassName ~= "UICorner" then
local Info = TweenInfo.new(1)
local Tween = game:GetService("TweenService"):Create(v,Info,{TextTransparency=1})
Tween:Play()
wait()
v.Visible = true
end
end
script.Parent.ReasonPromptKick:TweenSize(UDim2.new(0.202, 0,0.685, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce)
script.Parent.ReasonPromptKick.Visible = false
-- Open Warn GUI
script.Parent.ReasonPromptWarn.Visible = true
script.Parent.ReasonPromptWarn:TweenSize(UDim2.new(0.202, 0,0.685, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce)
for _,v in pairs(script.Parent.ReasonPromptWarn:GetChildren()) do
if v.ClassName ~= "UICorner" then
v.Visible = true
local Info = TweenInfo.new(1)
local Tween = game:GetService("TweenService"):Create(v,Info,{TextTransparency=0})
Tween:Play()
end
end
end
function openKick()
-- Close Warn GUI
for _,v in pairs(script.Parent.ReasonPromptWarn:GetChildren()) do
if v.ClassName ~= "UICorner" then
local Info = TweenInfo.new(1)
local Tween = game:GetService("TweenService"):Create(v,Info,{TextTransparency=1})
Tween:Play()
v.Visible = true
end
end
script.Parent.ReasonPromptWarn:TweenSize(UDim2.new(0.202, 0,0.685, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce)
script.Parent.ReasonPromptWarn.Visible = false
-- Close Ban GUI
for _,v in pairs(script.Parent.ReasonPromptBan:GetChildren()) do
if v.ClassName ~= "UICorner" then
local Info = TweenInfo.new(1)
local Tween = game:GetService("TweenService"):Create(v,Info,{TextTransparency=1})
Tween:Play()
wait()
v.Visible = true
end
end
script.Parent.ReasonPromptBan:TweenSize(UDim2.new(0.202, 0,0.685, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce)
script.Parent.ReasonPromptBan.Visible = false
-- Open Kick GUI
script.Parent.ReasonPromptKick.Visible = true
script.Parent.ReasonPromptKick:TweenSize(UDim2.new(0.202, 0,0.685, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce)
for _,v in pairs(script.Parent.ReasonPromptKick:GetChildren()) do
if v.ClassName ~= "UICorner" then
v.Visible = true
local Info = TweenInfo.new(1)
local Tween = game:GetService("TweenService"):Create(v,Info,{TextTransparency=0})
Tween:Play()
end
end
end
function openBan()
-- Close Warn GUI
for _,v in pairs(script.Parent.ReasonPromptWarn:GetChildren()) do
if v.ClassName ~= "UICorner" then
local Info = TweenInfo.new(1)
local Tween = game:GetService("TweenService"):Create(v,Info,{TextTransparency=1})
Tween:Play()
wait(1)
v.Visible = true
end
end
script.Parent.ReasonPromptWarn:TweenSize(UDim2.new(0.202, 0,0.685, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce)
script.Parent.ReasonPromptWarn.Visible = false
-- Close Kick GUI
for _,v in pairs(script.Parent.ReasonPromptKick:GetChildren()) do
if v.ClassName ~= "UICorner" then
local Info = TweenInfo.new(1)
local Tween = game:GetService("TweenService"):Create(v,Info,{TextTransparency=1})
Tween:Play()
wait()
v.Visible = true
end
end
script.Parent.ReasonPromptKick:TweenSize(UDim2.new(0.202, 0,0.685, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce)
script.Parent.ReasonPromptKick.Visible = false
-- Open ban GUI
script.Parent.ReasonPromptBan.Visible = true
script.Parent.ReasonPromptBan:TweenSize(UDim2.new(0.202, 0,0.685, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce)
for _,v in pairs(script.Parent.ReasonPromptBan:GetChildren()) do
if v.ClassName ~= "UICorner" then
v.Visible = true
local Info = TweenInfo.new(1)
local Tween = game:GetService("TweenService"):Create(v,Info,{TextTransparency=0})
Tween:Play()
end
end
end
script.Parent.MainScreen.Warn.MouseButton1Click:Connect(function()
if debounce then
print("Debouncing!")
else
debounce = true
openWarn()
wait(2)
debounce = false
end
end)
script.Parent.MainScreen.Kick.MouseButton1Click:Connect(function()
if debounce then
print("Debouncing!")
else
debounce = true
openKick()
wait(2)
debounce = false
end
end)
script.Parent.MainScreen.Ban.MouseButton1Click:Connect(function()
if debounce then
print("Debouncing!")
else
debounce = true
openBan()
wait(2)
debounce = false
end
end)
I don’t want to change it incase anything here breaks when I do .