Like I was about to do with the version 367 of the game.
But then at the Version 370 of the game i decided to remove it.
But I did it with 50 —> 37 lines.
It’s still insane, right.
task.wait(0.1)
---------- Locals ----------
local Clicks = script.Clicks
local ClicksLimit = 5
----------------------------
-------------------- Scripting the text -------------------
script.Parent.Text = "You clicked "..Clicks.Value.." times"
-----------------------------------------------------------
script.Parent.Activated:Connect(function()
Clicks.Value = Clicks.Value + 1
repeat
task.wait(0)
script.Parent.Text = "You clicked "..Clicks.Value.." times"
print(Clicks.Value.." out of "..ClicksLimit)
if Clicks.Value == 0 then
while task.wait(0.02) do
print(Clicks.Value.." out of "..ClicksLimit)
end
end
until Clicks.Value == 5
if Clicks.Value >= ClicksLimit then -- ClicksLimit is 5 (You see at line 5)
script.Parent.Visible = false
script.Parent.Parent.OpenTheFrame.Visible = true
end
if Clicks.Value >= ClicksLimit+1 then
script.Parent.MouseButton1Click:Once(function()
warn("You clicked too much times \n\n You clicked "..Clicks.Value.." times instead of "..ClicksLimit)
end)
wait(5)
game.Players.LocalPlayer:Kick("You have been kicked for clicking "..Clicks.Value.." times. \n \n The limit is "..ClicksLimit)
end
end)
However, the \n \n is not working on the Kicks.
Because of this topic and this topic and many many many more (Can’t list them all)