Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Created by Cow
- -- Created: 2/25/19
- -- Updated: 3/1/19 v1.3 Fixed auto farm. Added WalkSpeed,JumpPower and Gravity.
- -- Test with Synapse X v1.2.7
- -- Game: https://www.roblox.com/games/510411669
- local game_name = "Fantastic_Frontier"
- local storage = game:GetService("ReplicatedStorage")
- local players = game:GetService("Players")
- local lighting = game:GetService("Lighting")
- local player = players.LocalPlayer
- local character = player.character
- player.CharacterAdded:Connect(function()
- character = player.character
- end)
- local playerGui = player:FindFirstChild("PlayerGui")
- local mouse = player:GetMouse()
- local start_Position = UDim2.new(0.2, 0, 0.45, 0)
- _G.esp = false
- _G.espSettings = {
- plants = true;
- minPlantValue = 0;
- birds = false;
- monsters = false;
- npc = false;
- click_teleport = false;
- }
- _G.auto_farm = false
- _G.autoFarmSettings = {
- fireflies = false;
- numOfFireflies = math.huge;
- plants = true;
- minPlantValue = 0;
- }
- _G.miscSettings = {
- walkSpeed = 0;
- jumpPower = character:FindFirstChild("Humanoid").JumpPower;
- gravity = math.floor(workspace.Gravity);
- }
- local max_teleport_distance = 50
- local teleport_delay = 0.25
- local subFrame1 = nil
- local subFrame2 = nil
- local subFrame3 = nil
- for i, v in pairs(game.CoreGui:GetChildren()) do
- if v.Name == "Cow's_"..game_name.."_Gui" then
- v:Destroy()
- end
- end
- local screenGui = Instance.new("ScreenGui", game.CoreGui)
- screenGui.Name = "Cow's_"..game_name.."_Gui"
- function createGui()
- local frame = Instance.new("ImageLabel", screenGui)
- frame.Size = UDim2.new(0, 236, 0, 36)
- frame.Position = start_Position
- frame.BackgroundTransparency = 0
- frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- frame.Active = true
- frame.Draggable = true
- frame.Name = "main_frame"
- local version = Instance.new("TextLabel", frame)
- version.Size = UDim2.new(0, 90, 0, 20)
- version.Position = UDim2.new(0.5, -45, 0, 8)
- version.TextColor3 = Color3.fromRGB(255, 255, 255)
- version.Font = Enum.Font.SourceSansBold
- version.TextScaled = true
- version.Text = "FF Fister v1.3"
- version.BackgroundTransparency = 1
- local bc = Instance.new("Frame", frame)
- bc.Size = UDim2.new(1, 0, 0, 0)
- bc.Position = UDim2.new(0, 0, 0, 36)
- bc.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(1, -51, 0, 36)
- button.Position = UDim2.new(0, 5, 0, 5)
- button.Text = "Auto Farm"
- button.Font = Enum.Font.SourceSansBold
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- button.MouseButton1Click:Connect(function()
- for i, v in pairs(bc:GetChildren()) do
- if (v:IsA("TextLabel") or v:IsA("TextButton")) and v.TextColor3 == Color3.fromRGB(125, 125, 125) then
- v.TextColor3 = Color3.fromRGB(255, 255, 255)
- end
- end
- if subFrame1 then
- if subFrame1.Name == "auto_farm" then
- subFrame1:Destroy()
- updateSubFrame()
- else
- subFrame1:Destroy()
- updateSubFrame()
- button.TextColor3 = Color3.fromRGB(125, 125, 125)
- createAutoFarmGui(frame)
- end
- else
- button.TextColor3 = Color3.fromRGB(125, 125, 125)
- createAutoFarmGui(frame)
- end
- end)
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(0, 36, 0, 36)
- button.Position = UDim2.new(1, -41, 0, 5)
- button.Text = "Off"
- button.Font = Enum.Font.SourceSansBold
- button.TextColor3 = Color3.fromRGB(255, 0, 0)
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- button.MouseButton1Click:Connect(function()
- if _G.auto_farm then
- button.Text = "Off"
- button.TextColor3 = Color3.fromRGB(255, 0, 0)
- _G.auto_farm = false
- else
- button.Text = "On"
- button.TextColor3 = Color3.fromRGB(0, 255, 0)
- _G.auto_farm = true
- autoFarmFunc()
- end
- end)
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(1, -51, 0, 36)
- button.Position = UDim2.new(0, 5, 0, 46)
- button.Text = "Auto Tower"
- button.Font = Enum.Font.SourceSansBold
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- button.MouseButton1Click:Connect(function()
- for i, v in pairs(bc:GetChildren()) do
- if (v:IsA("TextLabel") or v:IsA("TextButton")) and v.TextColor3 == Color3.fromRGB(125, 125, 125) then
- v.TextColor3 = Color3.fromRGB(255, 255, 255)
- end
- end
- if subFrame1 then
- if subFrame1.Name == "auto_tower" then
- subFrame1:Destroy()
- updateSubFrame()
- else
- subFrame1:Destroy()
- updateSubFrame()
- button.TextColor3 = Color3.fromRGB(125, 125, 125)
- createAutoTowerGui(frame)
- end
- else
- button.TextColor3 = Color3.fromRGB(125, 125, 125)
- createAutoTowerGui(frame)
- end
- end)
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(0, 36, 0, 36)
- button.Position = UDim2.new(1, -41, 0, 46)
- button.Text = "Off"
- button.Font = Enum.Font.SourceSansBold
- button.TextColor3 = Color3.fromRGB(255, 0, 0)
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- local antiClick = Instance.new("ImageButton", button)
- antiClick.Size = UDim2.new(1, 0, 1, 0)
- antiClick.BackgroundTransparency = 0.2
- antiClick.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(1, -51, 0, 36)
- button.Position = UDim2.new(0, 5, 0, 87)
- button.Text = "'Esp'"
- button.Font = Enum.Font.SourceSansBold
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- button.MouseButton1Click:Connect(function()
- for i, v in pairs(bc:GetChildren()) do
- if (v:IsA("TextLabel") or v:IsA("TextButton")) and v.TextColor3 == Color3.fromRGB(125, 125, 125) then
- v.TextColor3 = Color3.fromRGB(255, 255, 255)
- end
- end
- if subFrame1 then
- if subFrame1.Name == "esp" then
- subFrame1:Destroy()
- updateSubFrame()
- else
- subFrame1:Destroy()
- updateSubFrame()
- button.TextColor3 = Color3.fromRGB(125, 125, 125)
- createEspGui(frame)
- end
- else
- button.TextColor3 = Color3.fromRGB(125, 125, 125)
- createEspGui(frame)
- end
- end)
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(0, 36, 0, 36)
- button.Position = UDim2.new(1, -41, 0, 87)
- button.Text = "Off"
- button.Font = Enum.Font.SourceSansBold
- button.TextColor3 = Color3.fromRGB(255, 0, 0)
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- local antiClick = Instance.new("ImageButton", button)
- antiClick.Size = UDim2.new(1, 0, 1, 0)
- antiClick.BackgroundTransparency = 0.2
- antiClick.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(1, -10, 0, 36)
- button.Position = UDim2.new(0, 5, 0, 128)
- button.Text = "Misc."
- button.Font = Enum.Font.SourceSansBold
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- button.MouseButton1Click:Connect(function()
- for i, v in pairs(bc:GetChildren()) do
- if (v:IsA("TextLabel") or v:IsA("TextButton")) and v.TextColor3 == Color3.fromRGB(125, 125, 125) then
- v.TextColor3 = Color3.fromRGB(255, 255, 255)
- end
- end
- if subFrame1 then
- if subFrame1.Name == "misc" then
- subFrame1:Destroy()
- updateSubFrame()
- else
- subFrame1:Destroy()
- updateSubFrame()
- button.TextColor3 = Color3.fromRGB(125, 125, 125)
- createMiscGui(frame)
- end
- else
- button.TextColor3 = Color3.fromRGB(125, 125, 125)
- createMiscGui(frame)
- end
- end)
- local point = 0
- for i, v in pairs(bc:GetChildren()) do
- if point < v.Position.Y.Offset + v.Size.Y.Offset then
- point = v.Position.Y.Offset + v.Size.Y.Offset
- end
- end
- bc.Size = UDim2.new(1, 0, 0, point + 5)
- local text = Instance.new("TextLabel", bc)
- text.Size = UDim2.new(1, 0, 0, 36)
- text.Position = UDim2.new(0, 0, 1, 0)
- text.TextColor3 = Color3.fromRGB(255, 255, 255)
- text.BackgroundTransparency = 1
- text.Text = "This Script is Discontinued"
- end
- createGui()
- function createAutoFarmGui(frame)
- local frame = Instance.new("ImageLabel", frame)
- frame.Size = UDim2.new(0, 236, 0, 36)
- frame.Position = UDim2.new(0, frame.AbsoluteSize.X + 5, 0, 0)
- frame.BackgroundTransparency = 0
- frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- frame.Name = "auto_farm"
- local header = Instance.new("TextLabel", frame)
- header.Size = UDim2.new(1, 0, 0.75, 0)
- header.Position = UDim2.new(0, 0, 0.125, 0)
- header.Text = "Auto Farm"
- header.Font = Enum.Font.SourceSansBold
- header.TextScaled = true
- header.TextColor3 = Color3.fromRGB(255, 255, 255)
- header.BackgroundTransparency = 1
- local bc = Instance.new("Frame", frame)
- bc.Size = UDim2.new(1, 0, 0, 0)
- bc.Position = UDim2.new(0, 0, 0, 36)
- bc.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- local label = Instance.new("TextLabel", bc)
- label.Size = UDim2.new(1, -51, 0, 36)
- label.Position = UDim2.new(0, 5, 0, 5)
- label.Text = "Fireflies"
- label.Font = Enum.Font.SourceSansBold
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- label.TextScaled = true
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(0, 36, 0, 36)
- button.Position = UDim2.new(1, -41, 0, 5)
- if _G.autoFarmSettings.fireflies then
- button.Text = "On"
- button.TextColor3 = Color3.fromRGB(0, 255, 0)
- else
- button.Text = "Off"
- button.TextColor3 = Color3.fromRGB(255, 0, 0)
- end
- button.Font = Enum.Font.SourceSansBold
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- button.MouseButton1Click:Connect(function()
- if _G.autoFarmSettings.fireflies then
- button.Text = "Off"
- button.TextColor3 = Color3.fromRGB(255, 0, 0)
- _G.autoFarmSettings.fireflies = false
- else
- button.Text = "On"
- button.TextColor3 = Color3.fromRGB(0, 255, 0)
- _G.autoFarmSettings.fireflies = true
- end
- end)
- local label = Instance.new("TextLabel", bc)
- label.Size = UDim2.new(1, -85, 0, 25)
- label.Position = UDim2.new(0, 5, 0, 46)
- label.Text = "Num. of Fireflies"
- label.Font = Enum.Font.SourceSansItalic
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- label.TextScaled = true
- local textBox = Instance.new("TextBox", bc)
- textBox.Size = UDim2.new(0, 70, 0, 25)
- textBox.Position = UDim2.new(1, -75, 0, 46)
- textBox.Text = _G.autoFarmSettings.numOfFireflies
- textBox.Font = Enum.Font.SourceSansItalic
- textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- textBox.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- textBox.TextScaled = true
- textBox.FocusLost:Connect(function()
- if typeof(tonumber(textBox.Text)) == "number" then
- _G.autoFarmSettings.numOfFireflies = tonumber(textBox.Text)
- else
- textBox.Text = _G.autoFarmSettings.numOfFireflies
- end
- end)
- local value = Instance.new("NumberValue", frame)
- value.Name = "numOfFirefliesValue"
- value.Value = _G.autoFarmSettings.numOfFireflies
- value.Changed:Connect(function()
- textBox.Text = _G.autoFarmSettings.numOfFireflies
- end)
- local label = Instance.new("TextLabel", bc)
- label.Size = UDim2.new(1, -51, 0, 36)
- label.Position = UDim2.new(0, 5, 0, 76)
- label.Text = "Plants"
- label.Font = Enum.Font.SourceSansBold
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- label.TextScaled = true
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(0, 36, 0, 36)
- button.Position = UDim2.new(1, -41, 0, 76)
- if _G.autoFarmSettings.plants then
- button.Text = "On"
- button.TextColor3 = Color3.fromRGB(0, 255, 0)
- else
- button.Text = "Off"
- button.TextColor3 = Color3.fromRGB(255, 0, 0)
- end
- button.Font = Enum.Font.SourceSansBold
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- button.MouseButton1Click:Connect(function()
- if _G.autoFarmSettings.plants then
- button.Text = "Off"
- button.TextColor3 = Color3.fromRGB(255, 0, 0)
- _G.autoFarmSettings.plants = false
- else
- button.Text = "On"
- button.TextColor3 = Color3.fromRGB(0, 255, 0)
- _G.autoFarmSettings.plants = true
- end
- end)
- local label = Instance.new("TextLabel", bc)
- label.Size = UDim2.new(1, -85, 0, 25)
- label.Position = UDim2.new(0, 5, 0, 117)
- label.Text = "Min. Plant Value"
- label.Font = Enum.Font.SourceSansItalic
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- label.TextScaled = true
- local textBox = Instance.new("TextBox", bc)
- textBox.Size = UDim2.new(0, 70, 0, 25)
- textBox.Position = UDim2.new(1, -75, 0, 117)
- textBox.Text = _G.autoFarmSettings.minPlantValue
- textBox.Font = Enum.Font.SourceSansItalic
- textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- textBox.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- textBox.TextScaled = true
- textBox.FocusLost:Connect(function()
- if typeof(tonumber(textBox.Text)) == "number" then
- _G.autoFarmSettings.minPlantValue = tonumber(textBox.Text)
- else
- textBox.Text = _G.autoFarmSettings.minPlantValue
- end
- end)
- subFrame1 = frame
- local point = 0
- for i, v in pairs(bc:GetChildren()) do
- if point < v.Position.Y.Offset + v.Size.Y.Offset then
- point = v.Position.Y.Offset + v.Size.Y.Offset
- end
- end
- bc.Size = UDim2.new(1, 0, 0, point + 5)
- end
- local can = true
- function autoFarmFunc()
- if can then
- can = false
- if _G.auto_farm and _G.autoFarmSettings.fireflies and workspace:FindFirstChild("Fireflies") then
- for i, v in pairs(workspace:FindFirstChild("Fireflies"):GetChildren()) do
- if _G.autoFarmSettings.numOfFireflies ~= nil and _G.autoFarmSettings.numOfFireflies > 0 then
- _G.autoFarmSettings.numOfFireflies = _G.autoFarmSettings.numOfFireflies - 1
- if screenGui:FindFirstChild("main_frame"):FindFirstChild("auto_farm") and screenGui.main_frame.auto_farm:FindFirstChild("numOfFirefliesValue") then
- screenGui:FindFirstChild("main_frame"):FindFirstChild("auto_farm"):FindFirstChild("numOfFirefliesValue").Value = _G.autoFarmSettings.numOfFireflies
- end
- else
- break
- end
- teleport(v)
- wait(0.25)
- v.CollectEvent:FireServer()
- wait()
- if not _G.auto_farm or not _G.autoFarmSettings.fireflies then
- break
- end
- end
- end
- if _G.auto_farm and _G.autoFarmSettings.plants then
- local spawners = workspace:FindFirstChild("Spawners")
- for i, v in pairs(spawners:GetChildren()) do
- if string.match(v.Name, "Mushrooms") then
- for i2, v2 in pairs(v:GetChildren()) do
- if v2:FindFirstChild("Collectible") and v2.Collectible:FindFirstChild("HitBox") and v2:FindFirstChild("Category") and v2.Category.Value == "Plants" then
- repeat
- local c = v2:FindFirstChild("Collectible")
- local check = checkValue(c)
- if check < _G.autoFarmSettings.minPlantValue then
- break
- end
- teleport(c.HitBox)
- wait()
- c.InteractEvent:FireServer()
- inv_full = true
- local inv = player:FindFirstChild("Inventory")
- if c:FindFirstChild("remove") then
- c:FindFirstChild("remove").Value = c:FindFirstChild("remove").Value + 1
- if c:FindFirstChild("remove").Value >= 5 then
- c:Destroy()
- end
- else
- local value = Instance.new("NumberValue", c)
- value.Name = "remove"
- value.Value = 1
- end
- for i, v in pairs(inv:GetChildren()) do
- if v.Value == 0 then
- inv_full = false
- break
- end
- end
- if inv_full then
- autoSell()
- end
- until not v2:FindFirstChild("Collectible") or not _G.auto_farm or not _G.autoFarmSettings.plants
- end
- end
- end
- end
- autoSell()
- end
- delay(0.25, function()
- can = true
- if _G.auto_farm then
- autoFarmFunc()
- end
- end)
- end
- end
- function createAutoTowerGui(frame)
- local frame = Instance.new("ImageLabel", frame)
- frame.Size = UDim2.new(0, 236, 0, 36)
- frame.Position = UDim2.new(0, frame.AbsoluteSize.X + 5, 0, 0)
- frame.BackgroundTransparency = 0
- frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- frame.Name = "auto_tower"
- local header = Instance.new("TextLabel", frame)
- header.Size = UDim2.new(1, 0, 0.75, 0)
- header.Position = UDim2.new(0, 0, 0.125, 0)
- header.Text = "Auto Tower"
- header.Font = Enum.Font.SourceSansBold
- header.TextScaled = true
- header.TextColor3 = Color3.fromRGB(255, 255, 255)
- header.BackgroundTransparency = 1
- local bc = Instance.new("Frame", frame)
- bc.Size = UDim2.new(1, 0, 0, 0)
- bc.Position = UDim2.new(0, 0, 0, 36)
- bc.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- subFrame1 = frame
- local point = 0
- for i, v in pairs(bc:GetChildren()) do
- if point < v.Position.Y.Offset + v.Size.Y.Offset then
- point = v.Position.Y.Offset + v.Size.Y.Offset
- end
- end
- bc.Size = UDim2.new(1, 0, 0, point + 5)
- end
- function createEspGui(frame)
- local frame = Instance.new("ImageLabel", frame)
- frame.Size = UDim2.new(0, 236, 0, 36)
- frame.Position = UDim2.new(0, frame.AbsoluteSize.X + 5, 0, 0)
- frame.BackgroundTransparency = 0
- frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- frame.Name = "esp"
- local header = Instance.new("TextLabel", frame)
- header.Size = UDim2.new(1, 0, 0.75, 0)
- header.Position = UDim2.new(0, 0, 0.125, 0)
- header.Text = "'Esp'"
- header.Font = Enum.Font.SourceSansBold
- header.TextScaled = true
- header.TextColor3 = Color3.fromRGB(255, 255, 255)
- header.BackgroundTransparency = 1
- local bc = Instance.new("Frame", frame)
- bc.Size = UDim2.new(1, 0, 0, 0)
- bc.Position = UDim2.new(0, 0, 0, 36)
- bc.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- local label = Instance.new("TextLabel", bc)
- label.Size = UDim2.new(1, -51, 0, 36)
- label.Position = UDim2.new(0, 5, 0, 5)
- label.Text = "Plants"
- label.Font = Enum.Font.SourceSansBold
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- label.TextScaled = true
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(0, 36, 0, 36)
- button.Position = UDim2.new(1, -41, 0, 5)
- button.Text = "On"
- button.Font = Enum.Font.SourceSansBold
- button.TextColor3 = Color3.fromRGB(0, 255, 0)
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- local antiClick = Instance.new("ImageButton", button)
- antiClick.Size = UDim2.new(1, 0, 1, 0)
- antiClick.BackgroundTransparency = 0.2
- antiClick.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- local label = Instance.new("TextLabel", bc)
- label.Size = UDim2.new(1, -85, 0, 25)
- label.Position = UDim2.new(0, 5, 0, 46)
- label.Text = "Min. Plant Value"
- label.Font = Enum.Font.SourceSansItalic
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- label.TextScaled = true
- local textBox = Instance.new("TextBox", bc)
- textBox.Size = UDim2.new(0, 70, 0, 25)
- textBox.Position = UDim2.new(1, -75, 0, 46)
- textBox.Text = _G.espSettings.minPlantValue
- textBox.Font = Enum.Font.SourceSansItalic
- textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- textBox.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- textBox.TextScaled = true
- local label = Instance.new("TextLabel", bc)
- label.Size = UDim2.new(1, -51, 0, 36)
- label.Position = UDim2.new(0, 5, 0, 76)
- label.Text = "Birds"
- label.Font = Enum.Font.SourceSansBold
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- label.TextScaled = true
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(0, 36, 0, 36)
- button.Position = UDim2.new(1, -41, 0, 76)
- button.Text = "Off"
- button.Font = Enum.Font.SourceSansBold
- button.TextColor3 = Color3.fromRGB(255, 0, 0)
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- local antiClick = Instance.new("ImageButton", button)
- antiClick.Size = UDim2.new(1, 0, 1, 0)
- antiClick.BackgroundTransparency = 0.2
- antiClick.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- local label = Instance.new("TextLabel", bc)
- label.Size = UDim2.new(1, -51, 0, 36)
- label.Position = UDim2.new(0, 5, 0, 117)
- label.Text = "Monsters"
- label.Font = Enum.Font.SourceSansBold
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- label.TextScaled = true
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(0, 36, 0, 36)
- button.Position = UDim2.new(1, -41, 0, 117)
- button.Text = "Off"
- button.Font = Enum.Font.SourceSansBold
- button.TextColor3 = Color3.fromRGB(255, 0, 0)
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- local antiClick = Instance.new("ImageButton", button)
- antiClick.Size = UDim2.new(1, 0, 1, 0)
- antiClick.BackgroundTransparency = 0.2
- antiClick.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- local label = Instance.new("TextLabel", bc)
- label.Size = UDim2.new(1, -51, 0, 36)
- label.Position = UDim2.new(0, 5, 0, 158)
- label.Text = "NPCs"
- label.Font = Enum.Font.SourceSansBold
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- label.TextScaled = true
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(0, 36, 0, 36)
- button.Position = UDim2.new(1, -41, 0, 158)
- button.Text = "Off"
- button.Font = Enum.Font.SourceSansBold
- button.TextColor3 = Color3.fromRGB(255, 0, 0)
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- local antiClick = Instance.new("ImageButton", button)
- antiClick.Size = UDim2.new(1, 0, 1, 0)
- antiClick.BackgroundTransparency = 0.2
- antiClick.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- local label = Instance.new("TextLabel", bc)
- label.Size = UDim2.new(1, -51, 0, 36)
- label.Position = UDim2.new(0, 5, 0, 199)
- label.Text = "Gifts"
- label.Font = Enum.Font.SourceSansBold
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- label.TextScaled = true
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(0, 36, 0, 36)
- button.Position = UDim2.new(1, -41, 0, 199)
- button.Text = "Off"
- button.Font = Enum.Font.SourceSansBold
- button.TextColor3 = Color3.fromRGB(255, 0, 0)
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- local antiClick = Instance.new("ImageButton", button)
- antiClick.Size = UDim2.new(1, 0, 1, 0)
- antiClick.BackgroundTransparency = 0.2
- antiClick.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- subFrame1 = frame
- local point = 0
- for i, v in pairs(bc:GetChildren()) do
- if point < v.Position.Y.Offset + v.Size.Y.Offset then
- point = v.Position.Y.Offset + v.Size.Y.Offset
- end
- end
- bc.Size = UDim2.new(1, 0, 0, point + 5)
- end
- function createMiscGui(frame)
- local frame = Instance.new("ImageLabel", frame)
- frame.Size = UDim2.new(0, 236, 0, 36)
- frame.Position = UDim2.new(0, frame.AbsoluteSize.X + 5, 0, 0)
- frame.BackgroundTransparency = 0
- frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- frame.Name = "misc"
- local header = Instance.new("TextLabel", frame)
- header.Size = UDim2.new(1, 0, 0.75, 0)
- header.Position = UDim2.new(0, 0, 0.125, 0)
- header.Text = "Misc."
- header.Font = Enum.Font.SourceSansBold
- header.TextScaled = true
- header.TextColor3 = Color3.fromRGB(255, 255, 255)
- header.BackgroundTransparency = 1
- local bc = Instance.new("Frame", frame)
- bc.Size = UDim2.new(1, 0, 0, 0)
- bc.Position = UDim2.new(0, 0, 0, 36)
- bc.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(1, -10, 0, 36)
- button.Position = UDim2.new(0, 5, 0, 5)
- button.Text = "Remove Fog"
- button.Font = Enum.Font.SourceSansBold
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- button.MouseButton1Click:Connect(function()
- removeFog()
- end)
- local button = Instance.new("TextButton", bc)
- button.Size = UDim2.new(1, -10, 0, 36)
- button.Position = UDim2.new(0, 5, 0, 46)
- button.Text = "Day"
- button.Font = Enum.Font.SourceSansBold
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- button.TextScaled = true
- button.MouseButton1Click:Connect(function()
- day()
- end)
- local label = Instance.new("TextLabel", bc)
- label.Size = UDim2.new(1, -85, 0, 25)
- label.Position = UDim2.new(0, 5, 0, 87)
- label.Text = "WalkSpeed"
- label.Font = Enum.Font.SourceSansItalic
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- label.TextScaled = true
- local textBox = Instance.new("TextBox", bc)
- textBox.Size = UDim2.new(0, 70, 0, 25)
- textBox.Position = UDim2.new(1, -75, 0, 87)
- textBox.Text = _G.miscSettings.walkSpeed
- textBox.Font = Enum.Font.SourceSansItalic
- textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- textBox.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- textBox.TextScaled = true
- textBox.FocusLost:Connect(function()
- if typeof(tonumber(textBox.Text)) == "number" then
- _G.miscSettings.walkSpeed = tonumber(textBox.Text)
- character.Humanoid.WalkSpeed = _G.miscSettings.walkSpeed
- else
- textBox.Text = _G.miscSettings.walkSpeed
- end
- end)
- local label = Instance.new("TextLabel", bc)
- label.Size = UDim2.new(1, -85, 0, 25)
- label.Position = UDim2.new(0, 5, 0, 117)
- label.Text = "JumpPower"
- label.Font = Enum.Font.SourceSansItalic
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- label.TextScaled = true
- local textBox = Instance.new("TextBox", bc)
- textBox.Size = UDim2.new(0, 70, 0, 25)
- textBox.Position = UDim2.new(1, -75, 0, 117)
- textBox.Text = _G.miscSettings.jumpPower
- textBox.Font = Enum.Font.SourceSansItalic
- textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- textBox.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- textBox.TextScaled = true
- textBox.FocusLost:Connect(function()
- if typeof(tonumber(textBox.Text)) == "number" then
- _G.miscSettings.jumpPower = tonumber(textBox.Text)
- character.Humanoid.JumpPower = _G.miscSettings.jumpPower
- else
- textBox.Text = _G.miscSettings.jumpPower
- end
- end)
- local label = Instance.new("TextLabel", bc)
- label.Size = UDim2.new(1, -85, 0, 25)
- label.Position = UDim2.new(0, 5, 0, 147)
- label.Text = "Gravity"
- label.Font = Enum.Font.SourceSansItalic
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- label.TextScaled = true
- local textBox = Instance.new("TextBox", bc)
- textBox.Size = UDim2.new(0, 70, 0, 25)
- textBox.Position = UDim2.new(1, -75, 0, 147)
- textBox.Text = _G.miscSettings.gravity
- textBox.Font = Enum.Font.SourceSansItalic
- textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- textBox.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
- textBox.TextScaled = true
- textBox.FocusLost:Connect(function()
- if typeof(tonumber(textBox.Text)) == "number" then
- _G.miscSettings.gravity = tonumber(textBox.Text)
- workspace.Gravity = _G.miscSettings.gravity
- else
- textBox.Text = _G.miscSettings.gravity
- end
- end)
- subFrame1 = frame
- local point = 0
- for i, v in pairs(bc:GetChildren()) do
- if point < v.Position.Y.Offset + v.Size.Y.Offset then
- point = v.Position.Y.Offset + v.Size.Y.Offset
- end
- end
- bc.Size = UDim2.new(1, 0, 0, point + 5)
- end
- function removeFog()
- local pScripts = player:FindFirstChild("PlayerScripts")
- pScripts:FindFirstChild("Fog"):Destroy()
- character:FindFirstChild("Fogbox"):Destroy()
- for i, v in pairs(lighting:GetChildren()) do
- if v.Name == "Sky" or v.Name == "OutSideLighting" then
- v:Destroy()
- end
- end
- end
- function day()
- lighting.ClockTime = 10.75
- lighting.OutdoorAmbient = Color3.fromRGB(90, 111, 116)
- lighting.OutsideLighting.TintColor = Color3.fromRGB(230, 231, 244)
- end
- character.Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
- if _G.miscSettings.walkSpeed ~= 0 then
- character.Humanoid.WalkSpeed = _G.miscSettings.walkSpeed
- end
- end)
- character.Humanoid:GetPropertyChangedSignal("JumpPower"):Connect(function()
- character.Humanoid.JumpPower = _G.miscSettings.jumpPower
- end)
- function updateSubFrame()
- if not subFrame1.Parent then
- subFrame1 = nil
- subFrame2 = nil
- subFrame3 = nil
- elseif not subFrame2.Parent then
- subFrame2 = nil
- subFrame3 = nil
- elseif not subFrame3.Parent then
- subFrame3 = nil
- end
- end
- function autoSell()
- local inv = player:FindFirstChild("Inventory")
- --
- if workspace.PassiveNPCs.NPC_LittleRed:FindFirstChild("Head") then
- teleport(workspace.PassiveNPCs.NPC_LittleRed.Head)
- else
- local part = Instance.new("Part")
- part.Position = Vector3.new(1096, 101, -3140)
- teleport(part)
- end
- --[[
- if workspace.PassiveNPCs:FindFirstChild("Raiken Profits"):FindFirstChild("PotPart") then
- teleport(workspace.PassiveNPCs:FindFirstChild("Raiken Profits"):FindFirstChild("HedPart"))
- else
- local part = Instance.new("Part")
- part.Position = Vector3.new(713, 230, -482)
- teleport(part)
- end--]]
- wait(0.25)
- for i, v in pairs(inv:GetChildren()) do
- if v.Value ~= 0 and v.Value ~= 1313 and v.Value ~= 250 and v.Value ~= 251 and v.Value ~= 252 and v.Value ~= 351 and v.Value ~= 350 then
- game:GetService("ReplicatedStorage").Events.SellShop:FireServer(v.Value, workspace.Shops.SellersTwo, 1)
- --game:GetService("ReplicatedStorage").Events.SellShop:FireServer(v.Value, workspace.Shops.Sellers, 1)
- end
- end
- end
- function checkValue(object)
- if object then
- if object:FindFirstChild("Info") and object.Info:FindFirstChild("Item") then
- if storage.ItemInfo:FindFirstChild(object.Info.Item.Value) then
- return storage.ItemInfo:FindFirstChild(object.Info.Item.Value).SellValue.Value
- end
- else
- return 0
- end
- else
- return 0
- end
- end
- function teleport(part)
- local distance = getDistance(character.Head, part)
- if not distance then
- warn("teleport() : missing distance of part1 and part2")
- return
- end
- if distance < max_teleport_distance then
- character:MoveTo(part.Position)
- wait(0.1)
- else
- local x = (part.Position.X - character.Head.Position.X) / (distance / max_teleport_distance)
- local z = (part.Position.Z - character.Head.Position.Z) / (distance / max_teleport_distance)
- for i = 1, distance / max_teleport_distance do
- if _G.auto_farm or _G.espSettings.click_teleport then
- character:MoveTo(Vector3.new(character.Head.Position.X + x, part.Position.Y, character.Head.Position.Z + z))
- wait()
- local part = Instance.new("Part")
- part.Size = Vector3.new(6, 1, 6)
- part.Position = character.Head.Position + Vector3.new(0, -6, 0)
- part.Parent = workspace
- part.Anchored = true
- wait(teleport_delay)
- part:Destroy()
- else
- return
- end
- end
- local distance = getDistance(character.Head, part)
- if not distance then
- warn("teleport() : missing distance of part1 and part2")
- return
- end
- if distance < max_teleport_distance * 1.5 then
- character:MoveTo(part.Position)
- wait(0.1)
- end
- end
- end
- function getDistance(part1, part2)
- --Only gets distance on x and z plane
- if part1 and part2 then
- local distance = (part1.Position - part2.Position).Magnitude
- --local distance = math.sqrt(math.pow(part1.Position.X - part2.Position.X, 2) + math.pow(part1.Position.Z - part2.Position.Z, 2))
- return distance
- else
- warn("getDistance() : missing part1 or part2")
- return
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement