if game:GetService("CoreGui"):FindFirstChild("ToraScript") then game:GetService("CoreGui").ToraScript:Destroy() end local lib = loadstring(game:HttpGet("https://raw.githubusercontent.com/liebertsx/Tora-Library/main/src/librarynew", true))() local win = lib:CreateWindow("Survive Wave Z") local dist = 6 win:AddSlider({text="Zombie Distance",min=2,max=20,value=6,callback=function(v) dist=v end}) local bringOn = false win:AddToggle({text="Bring Mobs",callback=function(t) bringOn = t if t then spawn(function() while bringOn do task.wait() for _,z in workspace.ServerZombies:GetDescendants() do if z.Name=="Humanoid" and z.Health>0 and z.RootPart then z.RootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame*CFrame.new(0,0,-dist) z.RootPart.Anchored = true end end task.wait(.15) end for _,z in workspace.ServerZombies:GetDescendants() do if z.Name=="Humanoid" and z.RootPart then z.RootPart.Anchored=false end end end) end end}) local shootOn = false win:AddToggle({text="Auto Shoot",callback=function(t) shootOn = t if t then spawn(function() while shootOn do task.wait() local gun = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Model") if gun and workspace.ServerZombies:FindFirstChildOfClass("Model") then gun:SetAttribute("IsShooting",true) task.wait() gun:SetAttribute("IsShooting",false) end end end) end end}) local collectOn = false win:AddToggle({text="Auto Collect",callback=function(t) collectOn = t if t then spawn(function() while collectOn do task.wait() for _,p in workspace:GetChildren() do if p:IsA("Part") and p.Name~="Part" and p.Name~="Terrain" then p.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame end end end end) end end}) win:AddSlider({text="HipHeight",min=2,max=50,value=2,callback=function(v) if game.Players.LocalPlayer.Character then game.Players.LocalPlayer.Character.Humanoid.HipHeight = v end end}) local flying = false local speed = 120 local keys = {w=false,s=false,a=false,d=false} local velo, gyro local function fly() local plr = game.Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() local root = char:FindFirstChild("HumanoidRootPart") or char:WaitForChild("HumanoidRootPart") if velo then velo:Destroy() end if gyro then gyro:Destroy() end velo = Instance.new("BodyVelocity",root) velo.MaxForce = Vector3.new(1e9,1e9,1e9) velo.Velocity = Vector3.new() gyro = Instance.new("BodyGyro",root) gyro.MaxTorque = Vector3.new(1e9,1e9,1e9) gyro.P = 15000 gyro.CFrame = root.CFrame flying = true spawn(function() while flying and root.Parent do task.wait() local cam = workspace.CurrentCamera local dir = Vector3.new( (keys.d and 1 or 0) - (keys.a and 1 or 0), 0, -( (keys.w and 1 or 0) - (keys.s and 1 or 0) ) ) if dir.Magnitude > 0 then velo.Velocity = cam.CFrame:VectorToWorldSpace(dir.Unit * speed) else velo.Velocity = Vector3.new() end gyro.CFrame = cam.CFrame end if velo then velo:Destroy() end if gyro then gyro:Destroy() end end) end game:GetService("UserInputService").InputBegan:Connect(function(k,gp) if gp or not flying then return end if k.KeyCode == Enum.KeyCode.W then keys.w = true end if k.KeyCode == Enum.KeyCode.S then keys.s = true end if k.KeyCode == Enum.KeyCode.A then keys.a = true end if k.KeyCode == Enum.KeyCode.D then keys.d = true end end) game:GetService("UserInputService").InputEnded:Connect(function(k) if not flying then return end if k.KeyCode == Enum.KeyCode.W then keys.w = false end if k.KeyCode == Enum.KeyCode.S then keys.s = false end if k.KeyCode == Enum.KeyCode.A then keys.a = false end if k.KeyCode == Enum.KeyCode.D then keys.d = false end end) win:AddToggle({text="Fly (WASD)",callback=function(t) flying = t if t then fly() end end}) win:AddLabel({text="YouTube: Tora IsMe"}) lib:Init()