Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3
- -- Instances:
- local WorldHax = Instance.new("ScreenGui")
- local AutoFarm = Instance.new("Frame")
- local Main = Instance.new("Frame")
- local Candy = Instance.new("TextLabel")
- local Coins = Instance.new("TextLabel")
- local Strength = Instance.new("TextLabel")
- local Auto = Instance.new("TextButton")
- local Auto_2 = Instance.new("TextButton")
- local Auto_3 = Instance.new("TextButton")
- local BuySword = Instance.new("TextButton")
- local BuyDNA = Instance.new("TextButton")
- local Sword = Instance.new("TextLabel")
- local DNA = Instance.new("TextLabel")
- local Sell = Instance.new("TextLabel")
- local AutoSell = Instance.new("TextButton")
- local Note = Instance.new("TextLabel")
- local Bar = Instance.new("Frame")
- local Name = Instance.new("TextLabel")
- local AutoFarmTab = Instance.new("TextButton")
- local Credits = Instance.new("Frame")
- local Main_2 = Instance.new("Frame")
- local WorldHax_2 = Instance.new("TextLabel")
- local Credits_2 = Instance.new("TextLabel")
- local Bar_2 = Instance.new("Frame")
- local CreditsTab = Instance.new("TextButton")
- local Name_2 = Instance.new("TextLabel")
- local Teleport = Instance.new("Frame")
- local Main_3 = Instance.new("Frame")
- local Shop = Instance.new("TextButton")
- local Spawn = Instance.new("TextButton")
- local CrownShop = Instance.new("TextButton")
- local King = Instance.new("TextButton")
- local Arena = Instance.new("TextButton")
- local Bar_3 = Instance.new("Frame")
- local Name_3 = Instance.new("TextLabel")
- local TeleportTab = Instance.new("TextButton")
- --Properties:
- WorldHax.Name = "WorldHax"
- WorldHax.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- WorldHax.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- AutoFarm.Name = "AutoFarm"
- AutoFarm.Parent = WorldHax
- AutoFarm.BackgroundColor3 = Color3.new(0.211765, 0.211765, 0.211765)
- AutoFarm.BorderSizePixel = 0
- AutoFarm.Position = UDim2.new(0.190693438, 0, 0.0414601788, 0)
- AutoFarm.Size = UDim2.new(0.204379559, 0, 0.0428849906, 0)
- Main.Name = "Main"
- Main.Parent = AutoFarm
- Main.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(-6.81195971e-08, 0, 0.999999046, 0)
- Main.Size = UDim2.new(1.00000024, 0, 9.85838604, 0)
- Candy.Name = "Candy"
- Candy.Parent = Main
- Candy.BackgroundColor3 = Color3.new(1, 1, 1)
- Candy.BackgroundTransparency = 1
- Candy.Position = UDim2.new(0.0458562002, 0, 0.0528092086, 0)
- Candy.Size = UDim2.new(0.656000018, 0, 0.111000001, 0)
- Candy.Font = Enum.Font.SourceSans
- Candy.Text = "Auto Farm Candy"
- Candy.TextColor3 = Color3.new(1, 1, 1)
- Candy.TextSize = 20
- Candy.TextWrapped = true
- Candy.TextXAlignment = Enum.TextXAlignment.Left
- Coins.Name = "Coins"
- Coins.Parent = Main
- Coins.BackgroundColor3 = Color3.new(1, 1, 1)
- Coins.BackgroundTransparency = 1
- Coins.Position = UDim2.new(0.0458561927, 0, 0.163783565, 0)
- Coins.Size = UDim2.new(0.655743599, 0, 0.110642344, 0)
- Coins.Font = Enum.Font.SourceSans
- Coins.Text = "Auto Farm Coins"
- Coins.TextColor3 = Color3.new(1, 1, 1)
- Coins.TextSize = 20
- Coins.TextWrapped = true
- Coins.TextXAlignment = Enum.TextXAlignment.Left
- Strength.Name = "Strength"
- Strength.Parent = Main
- Strength.BackgroundColor3 = Color3.new(1, 1, 1)
- Strength.BackgroundTransparency = 1
- Strength.Position = UDim2.new(0.0413919166, 0, 0.270046294, 0)
- Strength.Size = UDim2.new(0.656000018, 0, 0.111000001, 0)
- Strength.Font = Enum.Font.SourceSans
- Strength.Text = "Auto Farm Strength"
- Strength.TextColor3 = Color3.new(1, 1, 1)
- Strength.TextSize = 20
- Strength.TextWrapped = true
- Strength.TextXAlignment = Enum.TextXAlignment.Left
- Auto.Name = "Auto"
- Auto.Parent = Main
- Auto.BackgroundColor3 = Color3.new(1, 1, 1)
- Auto.BackgroundTransparency = 1
- Auto.Position = UDim2.new(0.793554902, 0, 0.0487793386, 0)
- Auto.Size = UDim2.new(0.133000001, 0, 0.111000001, 0)
- Auto.Font = Enum.Font.SourceSans
- Auto.Text = "OFF"
- Auto.TextColor3 = Color3.new(1, 0, 0)
- Auto.TextScaled = true
- Auto.TextSize = 14
- Auto.TextWrapped = true
- Auto_2.Name = "Auto"
- Auto_2.Parent = Main
- Auto_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Auto_2.BackgroundTransparency = 1
- Auto_2.Position = UDim2.new(0.793554783, 0, 0.16380918, 0)
- Auto_2.Size = UDim2.new(0.133000001, 0, 0.102316238, 0)
- Auto_2.Font = Enum.Font.SourceSans
- Auto_2.Text = "OFF"
- Auto_2.TextColor3 = Color3.new(1, 0, 0)
- Auto_2.TextScaled = true
- Auto_2.TextSize = 14
- Auto_2.TextWrapped = true
- Auto_3.Name = "Auto"
- Auto_3.Parent = Main
- Auto_3.BackgroundColor3 = Color3.new(1, 1, 1)
- Auto_3.BackgroundTransparency = 1
- Auto_3.Position = UDim2.new(0.793554902, 0, 0.272600919, 0)
- Auto_3.Size = UDim2.new(0.133000001, 0, 0.111000001, 0)
- Auto_3.Font = Enum.Font.SourceSans
- Auto_3.Text = "OFF"
- Auto_3.TextColor3 = Color3.new(1, 0, 0)
- Auto_3.TextScaled = true
- Auto_3.TextSize = 14
- Auto_3.TextWrapped = true
- BuySword.Name = "BuySword"
- BuySword.Parent = Main
- BuySword.BackgroundColor3 = Color3.new(1, 1, 1)
- BuySword.BackgroundTransparency = 1
- BuySword.Position = UDim2.new(0.793554783, 0, 0.592581272, 0)
- BuySword.Size = UDim2.new(0.133000001, 0, 0.102316238, 0)
- BuySword.Font = Enum.Font.SourceSans
- BuySword.Text = "OFF"
- BuySword.TextColor3 = Color3.new(1, 0, 0)
- BuySword.TextScaled = true
- BuySword.TextSize = 14
- BuySword.TextWrapped = true
- BuyDNA.Name = "BuyDNA"
- BuyDNA.Parent = Main
- BuyDNA.BackgroundColor3 = Color3.new(1, 1, 1)
- BuyDNA.BackgroundTransparency = 1
- BuyDNA.Position = UDim2.new(0.793554902, 0, 0.701373041, 0)
- BuyDNA.Size = UDim2.new(0.133000001, 0, 0.111000001, 0)
- BuyDNA.Font = Enum.Font.SourceSans
- BuyDNA.Text = "OFF"
- BuyDNA.TextColor3 = Color3.new(1, 0, 0)
- BuyDNA.TextScaled = true
- BuyDNA.TextSize = 14
- BuyDNA.TextWrapped = true
- Sword.Name = "Sword"
- Sword.Parent = Main
- Sword.BackgroundColor3 = Color3.new(1, 1, 1)
- Sword.BackgroundTransparency = 1
- Sword.Position = UDim2.new(0.0413919166, 0, 0.58995229, 0)
- Sword.Size = UDim2.new(0.656000018, 0, 0.111000001, 0)
- Sword.Font = Enum.Font.SourceSans
- Sword.Text = "Auto Buy Sword"
- Sword.TextColor3 = Color3.new(1, 1, 1)
- Sword.TextSize = 20
- Sword.TextWrapped = true
- Sword.TextXAlignment = Enum.TextXAlignment.Left
- DNA.Name = "DNA"
- DNA.Parent = Main
- DNA.BackgroundColor3 = Color3.new(1, 1, 1)
- DNA.BackgroundTransparency = 1
- DNA.Position = UDim2.new(0.0413919091, 0, 0.700926661, 0)
- DNA.Size = UDim2.new(0.655743599, 0, 0.110642344, 0)
- DNA.Font = Enum.Font.SourceSans
- DNA.Text = "Auto Buy DNA"
- DNA.TextColor3 = Color3.new(1, 1, 1)
- DNA.TextSize = 20
- DNA.TextWrapped = true
- DNA.TextXAlignment = Enum.TextXAlignment.Left
- Sell.Name = "Sell"
- Sell.Parent = Main
- Sell.BackgroundColor3 = Color3.new(1, 1, 1)
- Sell.BackgroundTransparency = 1
- Sell.Position = UDim2.new(0.036927633, 0, 0.807189405, 0)
- Sell.Size = UDim2.new(0.656000018, 0, 0.111000001, 0)
- Sell.Font = Enum.Font.SourceSans
- Sell.Text = "Auto Sell"
- Sell.TextColor3 = Color3.new(1, 1, 1)
- Sell.TextSize = 20
- Sell.TextWrapped = true
- Sell.TextXAlignment = Enum.TextXAlignment.Left
- AutoSell.Name = "AutoSell"
- AutoSell.Parent = Main
- AutoSell.BackgroundColor3 = Color3.new(1, 1, 1)
- AutoSell.BackgroundTransparency = 1
- AutoSell.Position = UDim2.new(0.793554842, 0, 0.814035058, 0)
- AutoSell.Size = UDim2.new(0.133000001, 0, 0.102316238, 0)
- AutoSell.Font = Enum.Font.SourceSans
- AutoSell.Text = "OFF"
- AutoSell.TextColor3 = Color3.new(1, 0, 0)
- AutoSell.TextScaled = true
- AutoSell.TextSize = 14
- AutoSell.TextWrapped = true
- Note.Name = "Note"
- Note.Parent = Main
- Note.BackgroundColor3 = Color3.new(1, 1, 1)
- Note.BorderSizePixel = 0
- Note.Position = UDim2.new(0, 0, 0.496211767, 0)
- Note.Size = UDim2.new(0.999999821, 0, 0.00262909429, 0)
- Note.Font = Enum.Font.SourceSans
- Note.Text = ""
- Note.TextColor3 = Color3.new(1, 1, 1)
- Note.TextSize = 20
- Note.TextWrapped = true
- Note.TextXAlignment = Enum.TextXAlignment.Left
- Bar.Name = "Bar"
- Bar.Parent = AutoFarm
- Bar.BackgroundColor3 = Color3.new(0.666667, 1, 0)
- Bar.BorderSizePixel = 0
- Bar.Position = UDim2.new(0, 0, 1, 0)
- Bar.Size = UDim2.new(1, 0, 0.09, 0)
- Name.Name = "Name"
- Name.Parent = AutoFarm
- Name.BackgroundColor3 = Color3.new(1, 1, 1)
- Name.BackgroundTransparency = 1
- Name.Position = UDim2.new(0.325892866, 0, 0.363636374, 0)
- Name.Size = UDim2.new(0.34375, 0, 0.227272734, 0)
- Name.Font = Enum.Font.SourceSans
- Name.Text = "Auto Farm"
- Name.TextColor3 = Color3.new(1, 1, 1)
- Name.TextSize = 20
- Name.TextWrapped = true
- AutoFarmTab.Name = "AutoFarmTab"
- AutoFarmTab.Parent = AutoFarm
- AutoFarmTab.BackgroundColor3 = Color3.new(1, 1, 1)
- AutoFarmTab.BackgroundTransparency = 1
- AutoFarmTab.Position = UDim2.new(0.901785731, 0, 0, 0)
- AutoFarmTab.Size = UDim2.new(0.0982142836, 0, 0.590909064, 0)
- AutoFarmTab.Font = Enum.Font.SourceSans
- AutoFarmTab.Text = "-"
- AutoFarmTab.TextColor3 = Color3.new(1, 1, 1)
- AutoFarmTab.TextSize = 30
- AutoFarmTab.TextWrapped = true
- Credits.Name = "Credits"
- Credits.Parent = WorldHax
- Credits.BackgroundColor3 = Color3.new(0.211765, 0.211765, 0.211765)
- Credits.BorderSizePixel = 0
- Credits.Position = UDim2.new(0.604693413, 0, 0.0414601788, 0)
- Credits.Size = UDim2.new(0.204379559, 0, 0.0428849906, 0)
- Main_2.Name = "Main"
- Main_2.Parent = Credits
- Main_2.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Main_2.BorderSizePixel = 0
- Main_2.Position = UDim2.new(0, 0, 1, 0)
- Main_2.Size = UDim2.new(1, 0, 2.31818175, 0)
- WorldHax_2.Name = "WorldHax"
- WorldHax_2.Parent = Main_2
- WorldHax_2.BackgroundColor3 = Color3.new(1, 1, 1)
- WorldHax_2.BackgroundTransparency = 1
- WorldHax_2.Position = UDim2.new(0.0758928582, 0, 0.549019635, 0)
- WorldHax_2.Size = UDim2.new(0.419642866, 0, 0.274509817, 0)
- WorldHax_2.Font = Enum.Font.SourceSans
- WorldHax_2.Text = "WorldHax#1413"
- WorldHax_2.TextColor3 = Color3.new(1, 1, 1)
- WorldHax_2.TextSize = 17
- WorldHax_2.TextWrapped = true
- WorldHax_2.TextXAlignment = Enum.TextXAlignment.Left
- Credits_2.Name = "Credits"
- Credits_2.Parent = Main_2
- Credits_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Credits_2.BackgroundTransparency = 1
- Credits_2.Position = UDim2.new(0.0758928582, 0, 0.137254909, 0)
- Credits_2.Size = UDim2.new(0.25, 0, 0.411764711, 0)
- Credits_2.Font = Enum.Font.SourceSans
- Credits_2.Text = "Credits"
- Credits_2.TextColor3 = Color3.new(1, 1, 1)
- Credits_2.TextScaled = true
- Credits_2.TextSize = 14
- Credits_2.TextWrapped = true
- Credits_2.TextXAlignment = Enum.TextXAlignment.Left
- Bar_2.Name = "Bar"
- Bar_2.Parent = Credits
- Bar_2.BackgroundColor3 = Color3.new(0.666667, 1, 0)
- Bar_2.BorderSizePixel = 0
- Bar_2.Position = UDim2.new(0, 0, 1, 0)
- Bar_2.Size = UDim2.new(1, 0, 0.09, 0)
- CreditsTab.Name = "CreditsTab"
- CreditsTab.Parent = Credits
- CreditsTab.BackgroundColor3 = Color3.new(1, 1, 1)
- CreditsTab.BackgroundTransparency = 1
- CreditsTab.Position = UDim2.new(0.901785731, 0, 0, 0)
- CreditsTab.Size = UDim2.new(0.0982142836, 0, 0.590909064, 0)
- CreditsTab.Font = Enum.Font.SourceSans
- CreditsTab.Text = "-"
- CreditsTab.TextColor3 = Color3.new(1, 1, 1)
- CreditsTab.TextSize = 30
- CreditsTab.TextWrapped = true
- Name_2.Name = "Name"
- Name_2.Parent = Credits
- Name_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Name_2.BackgroundTransparency = 1
- Name_2.Position = UDim2.new(0.325892866, 0, 0.363636374, 0)
- Name_2.Size = UDim2.new(0.34375, 0, 0.227272734, 0)
- Name_2.Font = Enum.Font.SourceSans
- Name_2.Text = "Credits"
- Name_2.TextColor3 = Color3.new(1, 1, 1)
- Name_2.TextSize = 20
- Name_2.TextWrapped = true
- Teleport.Name = "Teleport"
- Teleport.Parent = WorldHax
- Teleport.BackgroundColor3 = Color3.new(0.211765, 0.211765, 0.211765)
- Teleport.BorderSizePixel = 0
- Teleport.Position = UDim2.new(0.397693455, 0, 0.0414601788, 0)
- Teleport.Size = UDim2.new(0.204379559, 0, 0.0428849906, 0)
- Main_3.Name = "Main"
- Main_3.Parent = Teleport
- Main_3.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Main_3.BorderSizePixel = 0
- Main_3.Position = UDim2.new(0, 0, 0.999999762, 0)
- Main_3.Size = UDim2.new(1, 0, 4.89402866, 0)
- Shop.Name = "Shop"
- Shop.Parent = Main_3
- Shop.BackgroundColor3 = Color3.new(1, 1, 1)
- Shop.BackgroundTransparency = 1
- Shop.Position = UDim2.new(0.0491071418, 0, 0.110527799, 0)
- Shop.Size = UDim2.new(0.892857134, 0, 0.151860371, 0)
- Shop.Font = Enum.Font.SourceSans
- Shop.Text = "Shop"
- Shop.TextColor3 = Color3.new(1, 1, 1)
- Shop.TextSize = 20
- Shop.TextXAlignment = Enum.TextXAlignment.Left
- Spawn.Name = "Spawn"
- Spawn.Parent = Main_3
- Spawn.BackgroundColor3 = Color3.new(1, 1, 1)
- Spawn.BackgroundTransparency = 1
- Spawn.Position = UDim2.new(0.0535714291, 0, 0.256211996, 0)
- Spawn.Size = UDim2.new(0.892857134, 0, 0.151860371, 0)
- Spawn.Font = Enum.Font.SourceSans
- Spawn.Text = "Spawn"
- Spawn.TextColor3 = Color3.new(1, 1, 1)
- Spawn.TextSize = 20
- Spawn.TextXAlignment = Enum.TextXAlignment.Left
- CrownShop.Name = "CrownShop"
- CrownShop.Parent = Main_3
- CrownShop.BackgroundColor3 = Color3.new(1, 1, 1)
- CrownShop.BackgroundTransparency = 1
- CrownShop.Position = UDim2.new(0.0535714291, 0, 0.563247859, 0)
- CrownShop.Size = UDim2.new(0.892857134, 0, 0.151860371, 0)
- CrownShop.Font = Enum.Font.SourceSans
- CrownShop.Text = "Crown Shop"
- CrownShop.TextColor3 = Color3.new(1, 1, 1)
- CrownShop.TextSize = 20
- CrownShop.TextXAlignment = Enum.TextXAlignment.Left
- King.Name = "King"
- King.Parent = Main_3
- King.BackgroundColor3 = Color3.new(1, 1, 1)
- King.BackgroundTransparency = 1
- King.Position = UDim2.new(0.0535714291, 0, 0.414702624, 0)
- King.Size = UDim2.new(0.892857134, 0, 0.151860371, 0)
- King.Font = Enum.Font.SourceSans
- King.Text = "King Of The Hill"
- King.TextColor3 = Color3.new(1, 1, 1)
- King.TextSize = 20
- King.TextXAlignment = Enum.TextXAlignment.Left
- Arena.Name = "Arena"
- Arena.Parent = Main_3
- Arena.BackgroundColor3 = Color3.new(1, 1, 1)
- Arena.BackgroundTransparency = 1
- Arena.Position = UDim2.new(0.0535714291, 0, 0.712247193, 0)
- Arena.Size = UDim2.new(0.892857134, 0, 0.151860371, 0)
- Arena.Font = Enum.Font.SourceSans
- Arena.Text = "Arena"
- Arena.TextColor3 = Color3.new(1, 1, 1)
- Arena.TextSize = 20
- Arena.TextXAlignment = Enum.TextXAlignment.Left
- TeleportTab.Name = "TeleportTab"
- TeleportTab.Parent = Teleport
- TeleportTab.BackgroundColor3 = Color3.new(1, 1, 1)
- TeleportTab.BackgroundTransparency = 1
- TeleportTab.Position = UDim2.new(0.901785731, 0, 0, 0)
- TeleportTab.Size = UDim2.new(0.0982142836, 0, 0.590909064, 0)
- TeleportTab.Font = Enum.Font.SourceSans
- TeleportTab.Text = "-"
- TeleportTab.TextColor3 = Color3.new(1, 1, 1)
- TeleportTab.TextSize = 30
- TeleportTab.TextWrapped = true
- Bar_3.Name = "Bar"
- Bar_3.Parent = Teleport
- Bar_3.BackgroundColor3 = Color3.new(0.666667, 1, 0)
- Bar_3.BorderSizePixel = 0
- Bar_3.Position = UDim2.new(0, 0, 1, 0)
- Bar_3.Size = UDim2.new(1, 0, 0.09, 0)
- Name_3.Name = "Name"
- Name_3.Parent = Teleport
- Name_3.BackgroundColor3 = Color3.new(1, 1, 1)
- Name_3.BackgroundTransparency = 1
- Name_3.Position = UDim2.new(0.325892866, 0, 0.363636374, 0)
- Name_3.Size = UDim2.new(0.34375, 0, 0.227272734, 0)
- Name_3.Font = Enum.Font.SourceSans
- Name_3.Text = "Teleports"
- Name_3.TextColor3 = Color3.new(1, 1, 1)
- Name_3.TextSize = 20
- Name_3.TextWrapped = true
- WorldHax.ResetOnSpawn = false
- Credits.Active = true
- Credits.Draggable = true
- Teleport.Active = true
- Teleport.Draggable = true
- AutoFarm.Active = true
- AutoFarm.Draggable = true
- AutoFarmTab.MouseButton1Click:Connect(function()
- Main.Visible = not Main.Visible
- end)
- TeleportTab.MouseButton1Click:Connect(function()
- Main_3.Visible = not Main_3.Visible
- end)
- CreditsTab.MouseButton1Click:Connect(function()
- Main_2.Visible = not Main_2.Visible
- end)
- sell = 1
- sellactiv = false
- AutoSell.MouseButton1Click:Connect(function()
- if sell == 1 then
- sell = 0
- sellactiv = true
- AutoSell.Text = "ON"
- AutoSell.TextColor3 = Color3.new(0,255,0)
- while wait(.7) do
- if sellactiv then
- if game.Players.LocalPlayer.PlayerGui.Gui.Submenus.BackpackFull.Visible == true then
- lastCF = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.Sell.CFrame
- wait(.7)
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = lastCF
- end
- else
- print("Failed")
- end
- end
- else
- sell = 1
- sellactiv = false
- AutoSell.Text = "OFF"
- AutoSell.TextColor3 = Color3.new(255,0,0)
- end
- end)
- dna = 1
- dnaactiv = false
- BuyDNA.MouseButton1Click:Connect(function()
- if dna == 1 then
- dna = 0
- dnaactiv = true
- BuyDNA.Text = "ON"
- BuyDNA.TextColor3 = Color3.new(0,255,0)
- while wait(.7) do
- if dnaactiv then
- game.ReplicatedStorage.Events.BuyAll:FireServer("Backpacks")
- else
- print("Failed")
- end
- end
- else
- dna = 1
- dnaactiv = false
- BuyDNA.Text = "OFF"
- BuyDNA.TextColor3 = Color3.new(255,0,0)
- end
- end)
- candy = 1
- candyactiv = false
- Auto.MouseButton1Click:Connect(function()
- if candy == 1 then
- candy = 0
- candyactiv = true
- Auto.Text = "ON"
- Auto.TextColor3 = Color3.new(0,255,0)
- while wait() do
- wait(.1)
- if candyactiv then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.CandyHolder.Candy.CFrame
- else
- print("Failed")
- end
- end
- else
- candy = 1
- candyactiv = false
- Auto.Text = "OFF"
- Auto.TextColor3 = Color3.new(255,0,0)
- end
- end)
- coin = 1
- coinactiv = false
- Auto_2.MouseButton1Click:Connect(function()
- if coin == 1 then
- coin = 0
- coinactiv = true
- Auto_2.Text = "ON"
- Auto_2.TextColor3 = Color3.new(0,255,0)
- while wait(.1) do
- if coinactiv then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.CoinsHolder.Coin.CFrame
- else
- print("Failed")
- end
- end
- else
- coin = 1
- coinactiv = false
- Auto_2.Text = "OFF"
- Auto_2.TextColor3 = Color3.new(255,0,0)
- end
- end)
- strength = 1
- strengthactiv = false
- Auto_3.MouseButton1Click:Connect(function()
- if strength == 1 then
- strength = 0
- strengthactiv = true
- Auto_3.Text = "ON"
- Auto_3.TextColor3 = Color3.new(0,255,0)
- while wait(.2) do
- if strengthactiv then
- game.ReplicatedStorage.Events.Clicked:FireServer()
- end
- end
- else
- strength = 1
- strengthactiv = false
- Auto_3.Text = "OFF"
- Auto_3.TextColor3 = Color3.new(255,0,0)
- end
- end)
- sword = 1
- swordactive = false
- BuySword.MouseButton1Click:Connect(function()
- if sword == 1 then
- sword = 0
- swordactive = true
- BuySword.Text = "ON"
- BuySword.TextColor3 = Color3.new(0,255,0)
- while wait(.7) do
- if swordactive then
- game.ReplicatedStorage.Events.BuyAll:FireServer("Swords")
- else
- print("Failed")
- end
- end
- else
- sword = 1
- swordactive = false
- BuySword.Text = "OFF"
- BuySword.TextColor3 = Color3.new(255,0,0)
- end
- end)
- CrownShop.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.CrownShop.CFrame
- end)
- King.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.KingArea.CFrame
- end)
- Shop.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.Shop.CFrame
- end)
- Arena.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.ArenaBase.CFrame
- end)
- Spawn.MouseButton1Click:Connect(function()
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Locations.FirstSpawns.FirstSpawn.CFrame
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement