This script works 100% perfect, but now is my question is their a way to make of everything between the green line in a function or something such as adding more events without have to put each time that mount of lines. I prefer to make it short of possible because over 150 events are like 1650 lines.
Event script in workspace
game.Players.PlayerAdded:wait()
local player = game.Players.LocalPlayer
while true do
local Players = game:GetService("Players")
Choos = math.random(1)
wait(15)
if Choos == 1 then
wait(2)
---------------------------------------------------------
if player.leaderstats.Level.Value >= 24 then
print("IT WORKS")
else
if player.leaderstats.Level.Value <= 25 then
local GuiEvent = script:findFirstChild("Easy"):Clone()
GuiEvent.Parent = player.PlayerGui
end
end
---------------------------------------------------------
game.ServerStorage:findFirstChild("DUCK"):clone().Parent = game.Workspace
wait(500)
game.Workspace:FindFirstChild("DUCK"):Destroy()
wait(5)
end
end

2 comments
Remove the comments you'll shave 2 lines.
The green lines were to show you