Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Main = Instance.new("Frame")
- local Frame = Instance.new("Frame")
- local Frame_2 = Instance.new("Frame")
- local AutoFarm = Instance.new("TextButton")
- local Walkspeed = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local Noclip = Instance.new("TextButton")
- local Jumppower = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- Main.Name = "Main"
- Main.Parent = ScreenGui
- Main.AnchorPoint = Vector2.new(0.5, 0.5)
- Main.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(0.217362911, 0, 0.287848592, 0)
- Main.Size = UDim2.new(0.163185373, 0, 0.0458167344, 0)
- Frame.Parent = Main
- Frame.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.499999911, 0, 1.15217388, 0)
- Frame.Size = UDim2.new(0.999999881, 0, 0.304347813, 0)
- Main.Draggable = true
- Frame_2.Parent = Main
- Frame_2.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame_2.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- Frame_2.BorderSizePixel = 0
- Frame_2.Position = UDim2.new(0.497362912, 0, 4.26610947, 0)
- Frame_2.Size = UDim2.new(1.00000012, 0, 6, 0)
- AutoFarm.Name = "AutoFarm"
- AutoFarm.Parent = ScreenGui
- AutoFarm.AnchorPoint = Vector2.new(0.5, 0.5)
- AutoFarm.BackgroundColor3 = Color3.new(1, 1, 1)
- AutoFarm.BackgroundTransparency = 1
- AutoFarm.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- AutoFarm.BorderSizePixel = 0
- AutoFarm.Position = UDim2.new(0.214751959, 0, 0.355577648, 0)
- AutoFarm.Size = UDim2.new(0.160574406, 0, 0.0657370538, 0)
- AutoFarm.Font = Enum.Font.GothamSemibold
- AutoFarm.Text = "Auto Farm"
- AutoFarm.TextColor3 = Color3.new(1, 1, 1)
- AutoFarm.TextSize = 14
- AutoFarm.MouseButton1Down:connect(function()
- local groundDistance = 8
- local Player = game:GetService("Players").LocalPlayer
- local function getNearest()
- local nearest, dist = nil, 99999
- for _,v in pairs(game.Workspace.BossFolder:GetChildren()) do
- if(v:FindFirstChild("Head")~=nil)then
- local m =(Player.Character.Head.Position-v.Head.Position).magnitude
- if(m<dist)then
- dist = m
- nearest = v
- end
- end
- end
- for _,v in pairs(game.Workspace.enemies:GetChildren()) do
- if(v:FindFirstChild("Head")~=nil)then
- local m =(Player.Character.Head.Position-v.Head.Position).magnitude
- if(m<dist)then
- dist = m
- nearest = v
- end
- end
- end
- return nearest
- end
- _G.farm2 = true
- Player.Chatted:Connect(function(m)
- if(m==";autofarm false")then
- _G.farm2 = false
- elseif(m==";autofarm true")then
- _G.farm2 = true
- end
- end)
- _G.globalTarget = nil
- game:GetService("RunService").RenderStepped:Connect(function()
- if(_G.farm2==true)then
- local target = getNearest()
- if(target~=nil)then
- game:GetService("Workspace").CurrentCamera.CFrame = CFrame.new(game:GetService("Workspace").CurrentCamera.CFrame.p, target.Head.Position)
- Player.Character.HumanoidRootPart.CFrame = (target.HumanoidRootPart.CFrame * CFrame.new(0, groundDistance, 9))
- _G.globalTarget = target
- end
- end
- end)
- spawn(function()
- while wait() do
- game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(0,0,0)
- game.Players.LocalPlayer.Character.Torso.Velocity = Vector3.new(0,0,0)
- end
- end)
- while wait() do
- if(_G.farm2==true and _G.globalTarget~=nil and _G.globalTarget:FindFirstChild("Head") and Player.Character:FindFirstChildOfClass("Tool"))then
- local target = _G.globalTarget
- game.ReplicatedStorage.Gun:FireServer({["Normal"] = Vector3.new(0, 0, 0), ["Direction"] = target.Head.Position, ["Name"] = Player.Character:FindFirstChildOfClass("Tool").Name, ["Hit"] = target.Head, ["Origin"] = target.Head.Position, ["Pos"] = target.Head.Position,})
- wait()
- end
- end
- end)
- Walkspeed.Name = "Walkspeed"
- Walkspeed.Parent = ScreenGui
- Walkspeed.AnchorPoint = Vector2.new(0.5, 0.5)
- Walkspeed.BackgroundColor3 = Color3.new(1, 1, 1)
- Walkspeed.BackgroundTransparency = 1
- Walkspeed.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- Walkspeed.BorderSizePixel = 0
- Walkspeed.Position = UDim2.new(0.214751959, 0, 0.421314716, 0)
- Walkspeed.Size = UDim2.new(0.160574406, 0, 0.0657370538, 0)
- Walkspeed.Font = Enum.Font.GothamSemibold
- Walkspeed.Text = "Walkspeed"
- Walkspeed.TextColor3 = Color3.new(1, 1, 1)
- Walkspeed.TextSize = 14
- Walkspeed.MouseButton1Down:connect(function()
- game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = 100
- end)
- TextLabel.Parent = ScreenGui
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0.0861618817, 0, 0.2370518, 0)
- TextLabel.Size = UDim2.new(0.261096597, 0, 0.0996015966, 0)
- TextLabel.Font = Enum.Font.GothamSemibold
- TextLabel.Text = "Zombie Attack GUI"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextSize = 12
- Noclip.Name = "Noclip"
- Noclip.Parent = ScreenGui
- Noclip.AnchorPoint = Vector2.new(0.5, 0.5)
- Noclip.BackgroundColor3 = Color3.new(1, 1, 1)
- Noclip.BackgroundTransparency = 1
- Noclip.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- Noclip.BorderSizePixel = 0
- Noclip.Position = UDim2.new(0.216057435, 0, 0.487051785, 0)
- Noclip.Size = UDim2.new(0.160574406, 0, 0.0657370538, 0)
- Noclip.Font = Enum.Font.GothamSemibold
- Noclip.Text = "Noclip \"n\""
- Noclip.TextColor3 = Color3.new(1, 1, 1)
- Noclip.TextSize = 14
- Noclip.MouseButton1Down:connect(function()
- local plr = game:service'Players'.LocalPlayer
- local char = plr.Character
- local hum = char:FindFirstChildOfClass'Humanoid'
- local mouse = plr:GetMouse()
- on = false
- mouse.KeyDown:connect(function(key)
- if key == "n" then
- if not on then
- on = true
- elseif on then
- on = false
- end
- end
- end)
- while wait() do
- if char then
- hum = char:FindFirstChildOfClass'Humanoid'
- end
- if on then
- hum:ChangeState(11)
- end
- end
- end)
- Jumppower.Name = "Jumppower"
- Jumppower.Parent = ScreenGui
- Jumppower.AnchorPoint = Vector2.new(0.5, 0.5)
- Jumppower.BackgroundColor3 = Color3.new(1, 1, 1)
- Jumppower.BackgroundTransparency = 1
- Jumppower.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- Jumppower.BorderSizePixel = 0
- Jumppower.Position = UDim2.new(0.217362911, 0, 0.552788854, 0)
- Jumppower.Size = UDim2.new(0.160574406, 0, 0.0657370538, 0)
- Jumppower.Font = Enum.Font.GothamSemibold
- Jumppower.Text = "Jumppower"
- Jumppower.TextColor3 = Color3.new(1, 1, 1)
- Jumppower.TextSize = 14
- Jumppower.MouseButton1Down:connect(function()
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 200
- end)
- -- Scripts:
- local function WMCKGDS_fake_script() -- Frame.Script
- local script = Instance.new('Script', Frame)
- while true do
- for a = 1,360,1 do wait(.01)
- script.Parent.BackgroundColor3 = Color3.fromHSV(a/360,1,1)
- end
- end
- end
- coroutine.wrap(WMCKGDS_fake_script)()
- local function CCWVQGB_fake_script() -- TextLabel.Script
- local script = Instance.new('Script', TextLabel)
- while true do
- for a = 1,360,1 do wait(.01)
- script.Parent.TextColor3 = Color3.fromHSV(a/360,1,1)
- end
- end
- end
- coroutine.wrap(CCWVQGB_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement