Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getgenv().KillAll = true
- --[[
- Made by Guilder#9476
- Was published in Synapse X discord
- Free to use,
- Status as 10/07/22: working
- Game Link: https://www.roblox.com/games/8123652942/UPDATE-0-5-Legend-Piece#!/game-instances
- --]]
- local Quests = require(game:GetService("ReplicatedStorage").Informations).Mob
- local function Quest()
- for i,v in next, Quests do
- if tostring(i) ~= "MobNum" and tostring(i) ~= "SeaBeast" and tostring(i) ~= "SeaSoldier" and tostring(i) ~= "DarkPirate" then
- if game:GetService("Players").LocalPlayer.Data.Level.Value >= v.QuestLevel then
- Mob = v.Name
- break
- end
- end
- end
- if Mob ~= nil then
- game:GetService("ReplicatedStorage").Remotes.NPC:FireServer("Quest", Mob)
- game.Players.LocalPlayer.PlayerGui:WaitForChild("QuestGui").Frame.Accept.RemoteEvent:FireServer()
- repeat
- task.wait()
- until game:GetService("Players").LocalPlayer.PlayerGui.QuestBar.MainFrame.Visible
- end
- end
- while getgenv().KillAll do task.wait()
- if not game:GetService("Players").LocalPlayer.PlayerGui.QuestBar.MainFrame.Visible then
- Quest()
- end
- if #game:GetService("Workspace").Monster:GetChildren() > 0 then
- for i,v in next, game:GetService("Workspace").Monster:GetChildren() do
- if v ~= nil and v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") and v.Name == game:GetService("Players").LocalPlayer.PlayerGui.QuestBar.MainFrame.Frame.Defeat.Text:split(" ")[3] and v.Humanoid.Health > 0 then
- local WasTime = os.time()
- repeat
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.HumanoidRootPart.Position - Vector3.new(0, 7, 0), v.HumanoidRootPart.Position)
- game:GetService("ReplicatedStorage").Remotes.DamageRemoteEvent:FireServer("Damage1", {
- position = v.HumanoidRootPart.Position,
- damage = v.Humanoid.Health,
- max = 15,
- weapon = "Combat"
- })
- task.wait()
- until v == nil or not v:FindFirstChild("Humanoid") or v.Humanoid.Health <= 0 or os.time() - WasTime > 2
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment