Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LP = game.Players.LocalPlayer
- game.StarterGui.ResetPlayerGuiOnSpawn = false
- game:GetService("TeleportService").CustomizedTeleportUI = true
- local CurrentArena, Global_CanTP = nil, false
- local RepStorage = game.ReplicatedStorage
- RepStorage.ServerConnection:WaitForChild("SetTouch"):FireServer(game:GetService("UserInputService").TouchEnabled)
- local UserAssetRequest = RepStorage.ServerConnection:WaitForChild("HasGamepass")
- local pConnectFolder = LP:WaitForChild("Connection")
- repeat
- wait()
- until LP:FindFirstChild("PlayerGui")
- local ScreenGui = LP.PlayerGui:WaitForChild("ScreenGui")
- local ResultFrame = ScreenGui:WaitForChild("SummaryFrame")
- local ResultBody = ResultFrame:WaitForChild("body"):WaitForChild("stats")
- local SettingsGui = ScreenGui:WaitForChild("ArenaSettings")
- local PingFrame = ScreenGui:WaitForChild("PingFrame")
- local PromoFrame = ScreenGui:WaitForChild("PromoFrame")
- local LeagueFrame = ScreenGui:WaitForChild("LeagueFrame")
- local LeagueInvFrame = ScreenGui:WaitForChild("LeagueInvFrame")
- local ChatService = game:GetService("Chat")
- local function filterForBroadcast(chat)
- local filtered
- local success, e = pcall(function()
- filtered = ChatService:FilterStringForBroadcast(chat, LP)
- end)
- if success and filtered then
- return filtered
- else
- return "Unable to filter"
- end
- end
- HumChanges = {
- JumpPower = 50,
- HipHeight = 0,
- MaxHealth = 100,
- WalkSpeed = 16,
- MaxSlopeAngle = 89
- }
- LP.CharacterAppearanceLoaded:connect(function©
- local hum = c:WaitForChild("Humanoid")
- hum.Changed:connect(function(prop)
- if HumChanges[prop] then
- hum[prop] = HumChanges[prop]
- end
- end)
- end)
- game.ReplicatedStorage.Builds.V7Lock:Clone().Parent = workspace.CurrentCamera
- game.ReplicatedStorage.Builds.Holiday_Decorations:Clone().Parent = workspace.CurrentCamera
- SettingsGui.InDuel.wb2.Select.MouseButton1Down:connect(function()
- if CurrentArena then
- if SettingsGui.InDuel.wb2.Current.Text == "X" then
- CurrentArena.Events.Client.DuelSettings:FireServer("wb", 0)
- else
- CurrentArena.Events.Client.DuelSettings:FireServer("wb", 2)
- end
- end
- end)
- SettingsGui.InDuel.playingto.Select.MouseButton1Down:connect(function()
- if CurrentArena then
- CurrentArena.Events.Client.DuelSettings:FireServer("NextPlayingTo")
- end
- end)
- SettingsGui.InDuel.map.Select.MouseButton1Down:connect(function()
- if SettingsGui.InDuel.map.Choices.Visible == false then
- SettingsGui.InDuel.map.Choices.Visible = true
- SettingsGui.InDuel.reset.Position = UDim2.new(1, -120, 1, -172)
- else
- SettingsGui.InDuel.map.Choices.Visible = false
- SettingsGui.InDuel.reset.Position = UDim2.new(1, -120, 1, -77)
- end
- end)
- for _, map in ipairs(SettingsGui.InDuel.map.Choices:GetChildren()) do
- map.MouseButton1Up:connect(function()
- if CurrentArena then
- CurrentArena.Events.Client.DuelSettings:FireServer("CurrentMap", map.Name)
- SettingsGui.InDuel.map.Choices.Visible = false
- SettingsGui.InDuel.reset.Position = UDim2.new(1, -120, 1, -77)
- end
- end)
- end
- SettingsGui.InDuel.reset.MouseButton1Up:connect(function()
- if CurrentArena then
- CurrentArena.Events.Client.EndDuel:FireServer()
- end
- end)
- SettingsGui.OutDuel.StartDuel.MouseButton1Up:connect(function()
- if CurrentArena then
- CurrentArena.Events.Client.StartDuel:FireServer()
- end
- end)
- SettingsGui.ArenaTP.TP.MouseButton1Down:connect(function()
- if CurrentArena and Global_CanTP then
- local TPed = CurrentArena.Events.Client.RequestTP:InvokeServer()
- if TPed then
- SettingsGui.ArenaTP:TweenPosition(UDim2.new(0, 0, 0, 10), "Out", "Quad", 0.2, true)
- end
- end
- end)
- local IsOnPart = function(torso, part)
- if torso.Position.X > part.Position.X - 3 and torso.Position.X < part.Position.X + 3 and torso.Position.Z > part.Position.Z - 3 and torso.Position.Z < part.Position.Z + 3 then
- return true
- end
- return false
- end
- local aFolder = game.Workspace.ArenaWorkspace
- repeat
- wait()
- until #aFolder.Arenas:GetChildren() == 6
- for _, a in ipairs(aFolder.Arenas:GetChildren()) do
- if a:FindFirstChild("Bricks") then
- for _, pad in ipairs(a.Bricks.Plates:GetChildren()) do
- do
- local function handle()
- local torso
- if LP.Character then
- torso = LP.Character:FindFirstChild("Torso")
- end
- if torso then
- if IsOnPart(torso, pad.join) then
- a.Events.Client.HandlePad:FireServer("join", pad.Name)
- else
- a.Events.Client.HandlePad:FireServer("leave", pad.Name)
- end
- end
- end
- pad.join.Touched:connect(function()
- handle()
- end)
- pad.join.TouchEnded:connect(function()
- handle()
- end)
- end
- end
- end
- end
- workspace.TipJar.ClickDetector.MouseClick:connect(function()
- if LP.PlayerGui:FindFirstChild("TipGui") then
- else
- game.ReplicatedStorage.UI.TipGui:Clone().Parent = LP.PlayerGui
- end
- end)
- workspace.MapPurchaser.ClickDetector.MouseClick:connect(function()
- if LP.PlayerGui:FindFirstChild("MapGui") then
- elseif game.ReplicatedStorage.UI:FindFirstChild("MapGui") then
- game.ReplicatedStorage.UI.MapGui:Clone().Parent = LP.PlayerGui
- end
- end)
- local CurrentLeague, SelectedName, NoticeMethod
- local Working = false
- local LeaveID, LastInv = 0, 0
- function LeagueTrim(s)
- s = s:gsub("|", "")
- s = sConfusedub(0, 20)
- return s:match("^%s*(.-)%s*$")
- end
- local function UpdateLeagueFrame()
- CurrentLeague = workspace.StatService.gLeagueOfUser:InvokeServer(LP.userId)
- if CurrentLeague ~= "None" then
- if CurrentLeague.name ~= "None" then
- local leagueName = filterForBroadcast(CurrentLeague.name)
- if CurrentLeague.owner ~= LP.userId then
- LeagueFrame.CannotEdit.Visible = true
- LeagueFrame.LeagueMembers.Delete.Visible = false
- LeagueFrame.LeagueName.Back.EnterName.Text = "Enter League Name"
- LeagueFrame.LeagueMembers.title.Text = "LEAGUE MEMBERS"
- LeagueFrame.LeagueMembers.Members.AddMembers.Visible = false
- LeagueFrame.LeagueMembers.Members.ManageMembers.Visible = false
- else
- LeagueFrame.CannotEdit.Visible = false
- LeagueFrame.LeagueMembers.Delete.Visible = true
- LeagueFrame.LeagueName.Back.EnterName.Text = leagueName
- for _, m in pairs(LeagueFrame.LeagueMembers.Members.ManageMembers:GetChildren()) do
- if m.Name ~= "UserExample" then
- mBig Grinestroy()
- end
- end
- local leagueP_today = workspace.StatService.gLeague:InvokeServer(CurrentLeague.name)
- local leagueP_alltime = workspace.StatService.Storage.Leagues:WaitForChild(CurrentLeague.name:lower())
- repeat
- wait()
- until leagueP_alltime.Value ~= 7777777777777
- leagueP_alltime = leagueP_alltime.Value
- LeagueFrame.LeagueName.points.Text = leagueP_today + leagueP_alltime .. " league points (" .. leagueP_today .. " today)"
- local MaxMembers = 10
- if UserAssetRequest:InvokeServer(394793196) then
- MaxMembers = 20
- LeagueFrame.ProLeague.Check.Text = "LEARN MORE"
- LeagueFrame.ProLeague.Status.Text = "Yes"
- LeagueFrame.ProFrame.BuyPro.Visible = false
- end
- LeagueFrame.LeagueMembers.title.Text = "LEAGUE MEMBERS (" .. #CurrentLeague.members .. "/" .. MaxMembers .. ")"
- for i, user in pairs(CurrentLeague.members) do
- do
- local frame = LeagueFrame.LeagueMembers.Members.ManageMembers.UserExample:Clone()
- frame.Username.Text = game.Players:GetNameFromUserIdAsync(user)
- frame.Name = user
- frame.Position = UDim2.new(0, 0, 0, (i - 1) * 25)
- frame.Parent = LeagueFrame.LeagueMembers.Members.ManageMembers
- frame.Visible = true
- if user == CurrentLeague.owner then
- frame.RemoveMemberBig Grinestroy()
- else
- frame.RemoveMember.MouseButton1Down:connect(function()
- LeaveID = user
- NoticeMethod = "League/Leave"
- LeagueFrame.notice.text.Text = "Are you sure you want to kick this user?"
- LeagueFrame.notice.yes.Visible = true
- LeagueFrame.notice.no.Visible = true
- LeagueFrame.notice.Visible = true
- end)
- end
- end
- end
- LeagueFrame.LeagueMembers.Members.ManageMembers.CanvasSize = UDim2.new(0, 0, 0, #CurrentLeague.members * 25 + 2)
- LeagueFrame.LeagueMembers.Members.AddMembers.Visible = true
- LeagueFrame.LeagueMembers.Members.ManageMembers.Visible = true
- end
- else
- LeagueFrame.CannotEdit.Visible = false
- LeagueFrame.LeagueMembers.Delete.Visible = false
- LeagueFrame.LeagueName.Back.EnterName.Text = "Enter League Name"
- LeagueFrame.LeagueMembers.title.Text = "LEAGUE MEMBERS"
- LeagueFrame.LeagueMembers.Members.AddMembers.Visible = false
- LeagueFrame.LeagueMembers.Members.ManageMembers.Visible = false
- end
- else
- LeagueFrame.CannotEdit.Visible = false
- LeagueFrame.LeagueMembers.Delete.Visible = false
- LeagueFrame.LeagueName.Back.EnterName.Text = "Enter League Name"
- LeagueFrame.LeagueMembers.title.Text = "LEAGUE MEMBERS"
- LeagueFrame.LeagueMembers.Members.AddMembers.Visible = false
- LeagueFrame.LeagueMembers.Members.ManageMembers.Visible = false
- end
- end
- LeagueFrame.ProLeague.Check.MouseButton1Down:connect(function()
- LeagueFrame.ProFrame.Visible = true
- end)
- LeagueFrame.ProFrame.Back.MouseButton1Down:connect(function()
- LeagueFrame.ProFrame.Visible = false
- end)
- LeagueFrame.ProFrame.BuyPro.MouseButton1Down:connect(function()
- LeagueFrame:TweenPosition(UDim2.new(0.5, -200, 1, 30), "Out", "Quad", 0.5, true)
- game:GetService("MarketplaceService")TongueromptProductPurchase(LP, 394793196)
- end)
- LeagueFrame.notice.yes.MouseButton1Up:connect(function()
- LeagueFrame.WorkingFrame.Visible = true
- if NoticeMethod == "LeagueName/Success/" then
- if Working == false then
- Working = true
- LeagueFrame.notice.Visible = false
- workspace.StatService.createLeague:InvokeServer(SelectedName)
- UpdateLeagueFrame()
- Working = false
- end
- elseif NoticeMethod == "LeagueName/Fail/Exists" or NoticeMethod == "League/Invited" then
- LeagueFrame.notice.Visible = false
- elseif NoticeMethod == "League/Leave" and Working == false and CurrentLeague and CurrentLeague.name ~= "None" then
- Working = true
- LeagueFrame.notice.Visible = false
- workspace.StatService.leaveLeague:InvokeServer(LeaveID, CurrentLeague.name)
- UpdateLeagueFrame()
- Working = false
- end
- LeagueFrame.WorkingFrame.Visible = false
- end)
- LeagueFrame.notice.no.MouseButton1Up:connect(function()
- LeagueFrame.notice.Visible = false
- end)
- LeagueFrame.CannotEdit.leave.MouseButton1Down:connect(function()
- LeaveID = LP.userId
- NoticeMethod = "League/Leave"
- LeagueFrame.notice.text.Text = "Are you sure you want to leave your current league? You'll have to be invited back."
- LeagueFrame.notice.yes.Visible = true
- LeagueFrame.notice.no.Visible = true
- LeagueFrame.notice.Visible = true
- end)
- LeagueFrame.LeagueMembers.Delete.MouseButton1Down:connect(function()
- if not LeagueFrame.WorkingFrame.Visible then
- LeaveID = LP.userId
- NoticeMethod = "League/Leave"
- LeagueFrame.notice.text.Text = "Are you sure you want to delete your league? Your members will be reset."
- LeagueFrame.notice.yes.Visible = true
- LeagueFrame.notice.no.Visible = true
- LeagueFrame.notice.Visible = true
- end
- end)
- LeagueFrame.LeagueMembers.Members.AddMembers.Submit.MouseButton1Down:connect(function()
- LeagueFrame.LeagueMembers.Members.AddMembers.Username.Text = filterForBroadcast(LeagueFrame.LeagueMembers.Members.AddMembers.Username.Text)
- if CurrentLeague ~= nil and not LeagueFrame.CannotEdit.Visible and not LeagueFrame.WorkingFrame.Visible then
- if tick() - LastInv > 30 and CurrentLeague.name ~= "None" and type(CurrentLeague) ~= "string" then
- local match
- for _, p in ipairs(game.Players:GetPlayers()) do
- if p.Name:lower() == LeagueFrame.LeagueMembers.Members.AddMembers.Username.Text:lower() and p.userId > 0 then
- LastInv = tick()
- LeagueFrame.LeagueMembers.Members.AddMembers.Username.Text = "Type username here"
- match = true
- local inv = game.ReplicatedStorage.ServerConnection:WaitForChild("LeagueInv"):InvokeServer(p, CurrentLeague.name, "You've been invited to the league " .. CurrentLeague.name .. " owned by " .. LP.Name .. ".")
- if inv == "Already in league" then
- NoticeMethod = "League/Invited"
- LeagueFrame.notice.text.Text = "This user is already in a league."
- LeagueFrame.notice.yes.Visible = true
- LeagueFrame.notice.no.Visible = false
- LeagueFrame.notice.Visible = true
- elseif inv == "Max members reached" then
- NoticeMethod = "League/Invited"
- LeagueFrame.notice.text.Text = "You have max members already."
- LeagueFrame.notice.yes.Visible = true
- LeagueFrame.notice.no.Visible = false
- LeagueFrame.notice.Visible = true
- else
- NoticeMethod = "League/Invited"
- LeagueFrame.notice.text.Text = "This user has been invited."
- LeagueFrame.notice.yes.Visible = true
- LeagueFrame.notice.no.Visible = false
- LeagueFrame.notice.Visible = true
- end
- end
- end
- if not match then
- LeagueFrame.LeagueMembers.Members.AddMembers.Username.Text = "Type username here"
- NoticeMethod = "League/Invited"
- LeagueFrame.notice.text.Text = "Cannot find user that you entered."
- LeagueFrame.notice.yes.Visible = true
- LeagueFrame.notice.no.Visible = false
- LeagueFrame.notice.Visible = true
- end
- else
- LeagueFrame.LeagueMembers.Members.AddMembers.Username.Text = "Type username here"
- NoticeMethod = "League/Invited"
- LeagueFrame.notice.text.Text = "Wait 30 seconds between invites."
- LeagueFrame.notice.yes.Visible = true
- LeagueFrame.notice.no.Visible = false
- LeagueFrame.notice.Visible = true
- end
- end
- end)
- LeagueFrame.LeagueName.Back.Check.MouseButton1Down:connect(function()
- local filteredName = filterForBroadcast(LeagueFrame.LeagueName.Back.EnterName.Text)
- LeagueFrame.LeagueName.Back.EnterName.Text = filteredName
- LeagueFrame.LeagueName.Back.Check.Text = "Filtered"
- spawn(function()
- wait(2)
- LeagueFrame.LeagueName.Back.Check.Text = "Change"
- end)
- if CurrentLeague ~= nil and not LeagueFrame.CannotEdit.Visible and not LeagueFrame.WorkingFrame.Visible and LeagueFrame.LeagueName.Back.EnterName.Text ~= "" then
- LeagueFrame.LeagueName.Back.EnterName.Text = LeagueTrim(LeagueFrame.LeagueName.Back.EnterName.Text)
- SelectedName = LeagueTrim(LeagueFrame.LeagueName.Back.EnterName.Text)
- if SelectedName ~= CurrentLeague.name then
- local exists = workspace.StatService.gLeagueStats:InvokeServer(SelectedName) or "None"
- if exists ~= "None" then
- if exists.owner ~= "None" then
- NoticeMethod = "LeagueName/Fail/Exists"
- LeagueFrame.notice.text.Text = "A league with that name already exists."
- LeagueFrame.notice.yes.Visible = true
- LeagueFrame.notice.no.Visible = false
- LeagueFrame.notice.Visible = true
- else
- NoticeMethod = "LeagueName/Success/"
- LeagueFrame.notice.text.Text = "If you change your league's name, your old league's members will be reset."
- LeagueFrame.notice.yes.Visible = true
- LeagueFrame.notice.no.Visible = true
- LeagueFrame.notice.Visible = true
- end
- else
- NoticeMethod = "LeagueName/Success/"
- LeagueFrame.notice.text.Text = "If you change your league's name, your old league's members will be reset."
- LeagueFrame.notice.yes.Visible = true
- LeagueFrame.notice.no.Visible = true
- LeagueFrame.notice.Visible = true
- end
- else
- NoticeMethod = "LeagueName/Fail/Exists"
- LeagueFrame.notice.text.Text = "The whole idea of changing the league's name is to actually change it."
- LeagueFrame.notice.yes.Visible = true
- LeagueFrame.notice.no.Visible = false
- LeagueFrame.notice.Visible = true
- end
- end
- end)
- LeagueFrame.header.close.MouseButton1Up:connect(function()
- LeagueFrame:TweenPosition(UDim2.new(0.5, -200, 1, 30), "Out", "Quad", 0.5, true)
- end)
- local JoinName = ""
- local joined = false
- LeagueInvFrame.body.yes.MouseButton1Up:connect(function()
- if JoinName ~= "" and joined == false then
- joined = true
- LeagueInvFrame:TweenPosition(UDim2.new(0, -350, 0.5, -50), "Out", "Quad", 0.5, true)
- game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", {
- Text = "[Server]: Working on it...",
- Color = Color3.new(0.9, 0.9, 0.9)
- })
- local val = workspace.StatService.joinLeague:InvokeServer(JoinName)
- if val == nil or val == "Already max members" then
- game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", {
- Text = "[Server]: Failed to join league",
- Color = Color3.new(0.9, 0.9, 0.9)
- })
- else
- game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", {
- Text = "[Server]: Successfully joined league",
- Color = Color3.new(0.9, 0.9, 0.9)
- })
- end
- wait(1)
- joined = false
- end
- end)
- LeagueInvFrame.body.no.MouseButton1Up:connect(function()
- LeagueInvFrame:TweenPosition(UDim2.new(0, -350, 0.5, -50), "Out", "Quad", 0.5, true)
- end)
- LeagueInvFrame.header.close.MouseButton1Up:connect(function()
- LeagueInvFrame:TweenPosition(UDim2.new(0, -350, 0.5, -50), "Out", "Quad", 0.5, true)
- end)
- pConnectFolder:WaitForChild("JoinLeagueInv").OnClientEvent:connect(function(name, text)
- LeagueInvFrame.body.text.Text = text
- JoinName = name
- LeagueInvFrame:TweenPosition(UDim2.new(0, 20, 0.5, -50), "Out", "Quad", 0.5, true)
- end)
- pConnectFolder:WaitForChild("ClientPing").OnClientEvent:connect(function(ping)
- if not ping then
- game.ReplicatedStorage.ServerConnection:WaitForChild("PingServer"):FireServer()
- else
- PingFrame.TextLabel.Text = ping
- PingFrame:TweenPosition(UDim2.new(0.5, -75, 0, 30), "Out", "Quad", 0.5, true)
- end
- end)
- PingFrame.close.MouseButton1Up:connect(function()
- PingFrame:TweenPosition(UDim2.new(0.5, -75, 0, -100), "Out", "Quad", 0.5, true)
- end)
- pConnectFolder:WaitForChild("PromoLocal").OnClientEvent:connect(function(site, tier)
- local Message1 = "Failed to promote you in the Auto Duels group"
- local Message2 = "We'll try again when you leave the game"
- if string.find(site, "{\"success\":true}") and not string.find(site, "No Promotion") then
- Message1 = "You've been promoted to tier " .. tier .. " in the Auto Duels group"
- if string.find(site, "Sent message Auto Duels rank up to") then
- Message2 = "Check your PMs for a confirmation"
- elseif string.find(site, "because demotion") then
- Message2 = "We didn't PM you a confirmation"
- elseif string.find(site, "RecipientPrivacySettingsTooHigh") then
- Message2 = "We didn't PM you a confirmation due to your privacy settings"
- else
- Message2 = "We didn't PM you a confirmation due to a server error"
- end
- PromoFrame.success.TextLabel.Text = Message1 .. "\n" .. Message2
- PromoFrame:TweenPosition(UDim2.new(0.5, -200, 1, -150), "Out", "Quad", 0.5, true)
- wait(0.5)
- PromoFrame.success.check.p1:TweenSize(UDim2.new(0, 20, 0, 3), "Out", "Linear", 0.3, true)
- wait(0.3)
- PromoFrame.success.check.p2:TweenSizeAndPosition(UDim2.new(0, 3, 0, 40), UDim2.new(1, -3, 0, -10), "Out", "Linear", 0.3, true)
- wait(5)
- PromoFrame:TweenPosition(UDim2.new(0.5, -200, 1, 30), "Out", "Quad", 0.5, true)
- end
- end)
- pConnectFolder:WaitForChild("SetArena").OnClientEvent:connect(function(arena, mapname, to, wb, dueling, canstart, timereset, cantp)
- CurrentArena = arena
- if arena then
- Global_CanTP = cantp
- if dueling == true then
- SettingsGui.InDuel:TweenPosition(UDim2.new(0, 0, 0, -75), "Out", "Quad", 0.2, true)
- SettingsGui.OutDuel:TweenPosition(UDim2.new(0, 0, 0, 10), "Out", "Quad", 0.2, true)
- spawn(function()
- SettingsGui.InDuel.map.Current.Text = mapname
- SettingsGui.InDuel.playingto.Current.Text = to
- if wb == 2 then
- SettingsGui.InDuel.wb2.Current.Text = "X"
- else
- SettingsGui.InDuel.wb2.Current.Text = ""
- end
- if timereset <= 0 then
- SettingsGui.InDuel.reset.Text = ""
- else
- SettingsGui.InDuel.reset.Text = "Reset Arena (" .. timereset .. ")"
- end
- end)
- if cantp == true then
- SettingsGui.ArenaTP:TweenPosition(UDim2.new(0, 0, 0, -75), "Out", "Quad", 0.2, true)
- else
- SettingsGui.ArenaTP:TweenPosition(UDim2.new(0, 0, 0, 10), "Out", "Quad", 0.2, true)
- end
- else
- SettingsGui.InDuel:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad", 0.2, true)
- SettingsGui.ArenaTP:TweenPosition(UDim2.new(0, 0, 0, 10), "Out", "Quad", 0.2, true)
- if canstart == true then
- SettingsGui.OutDuel:TweenPosition(UDim2.new(0, 0, 0, -75), "Out", "Quad", 0.2, true)
- else
- SettingsGui.OutDuel:TweenPosition(UDim2.new(0, 0, 0, 10), "Out", "Quad", 0.2, true)
- end
- end
- else
- Global_CanTP = false
- SettingsGui.ArenaTP:TweenPosition(UDim2.new(0, 0, 0, 10), "Out", "Quad", 0.2, true)
- SettingsGui.InDuel:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad", 0.2, true)
- SettingsGui.OutDuel:TweenPosition(UDim2.new(0, 0, 0, 10), "Out", "Quad", 0.2, true)
- end
- end)
- pConnectFolder:WaitForChild("MatchResults").OnClientEvent:connect(function(result, kos, ties, wos)
- ResultBody.result.Text = result
- ResultBody.kos.Text = kos
- ResultBody.ties.Text = ties
- ResultBody.wos.Text = wos
- spawn(function()
- ResultFrame:TweenPosition(UDim2.new(1, -350, 1, -100), "Out", "Quad", 0.5, true)
- wait(10)
- ResultFrame:TweenPosition(UDim2.new(1, -350, 1, 30), "Out", "Quad", 0.5, true)
- end)
- end)
- ResultFrame:WaitForChild("header"):WaitForChild("close").MouseButton1Up:connect(function()
- ResultFrame:TweenPosition(UDim2.new(1, -350, 1, 30), "Out", "Quad", 0.5, true)
- end)
- LP.Chatted:connect(function©
- if c:lower() == "decorations/off" then
- if workspace.CurrentCamera:FindFirstChild("Holiday_Decorations") then
- workspace.CurrentCamera.Holiday_DecorationsBig Grinestroy()
- end
- elseif c:lower() == "decorations/on" then
- if workspace.CurrentCamera:FindFirstChild("Holiday_Decorations") then
- else
- game.ReplicatedStorage.Builds.Holiday_Decorations:Clone().Parent = workspace.CurrentCamera
- end
- elseif c:lower() == "!league" then
- UpdateLeagueFrame()
- LeagueFrame:TweenPosition(UDim2.new(0.5, -200, 0.5, -135), "Out", "Quad", 0.5, true)
- elseif c:lower() == "!hub" then
- game:GetService("TeleportService"):Teleport(255985604)
- end
- end)
- local AdFrame = ScreenGui:WaitForChild("AdPurchaseFrame")
- local LastAdBrickName
- for _, ad in ipairs(workspace.Ads:GetChildren()) do
- ad.adGui.Purch.Buy.MouseButton1Down:connect(function()
- LastAdBrickName = ad.Name
- AdFrame:TweenPosition(UDim2.new(0.5, -150, 0.5, -75), "Out", "Quad", 0.5, true)
- end)
- end
- AdFrame:WaitForChild("body"):WaitForChild("Submit").MouseButton1Up:connect(function()
- AdFrame.body.TextBox.Text = filterForBroadcast(AdFrame.body.TextBox.Text)
- if tonumber(AdFrame.body:WaitForChild("TextBox").Text) then
- AdFrame:TweenPosition(UDim2.new(0.5, -150, 1, 30), "Out", "Quad", 0.5, true)
- game.ReplicatedStorage.ServerConnection:WaitForChild("CreateGroupAd"):FireServer(LastAdBrickName, tonumber(AdFrame.body.TextBox.Text))
- else
- AdFrame.body:WaitForChild("ErrorText").Text = "Error: Enter a valid number"
- spawn(function()
- wait(2)
- if AdFrame.body.ErrorText.Text == "Error: Enter a valid number" then
- AdFrame.body.ErrorText.Text = ""
- end
- end)
- end
- end)
- AdFrame:WaitForChild("header"):WaitForChild("close").MouseButton1Up:connect(function()
- AdFrame:TweenPosition(UDim2.new(0.5, -150, 1, 30), "Out", "Quad", 0.5, true)
- end)
- local dropHats = function()
- local localPlayer = game:GetService("Players").LocalPlayer
- if localPlayer and localPlayer.Character then
- for _, obj in pairs(localPlayer.Character:GetChildren()) do
- if obj:IsA("Accoutrement") then
- obj.Parent = game.Workspace
- end
- end
- end
- end
- game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
- if not gameProcessedEvent and inputObject.KeyCode == Enum.KeyCode.Equals then
- dropHats()
- end
- end)
- print("Local setup complete")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement