Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait() -- Wait for character if not loaded
- local humanoid = character:WaitForChild("Humanoid")
- local localroot = character:WaitForChild("HumanoidRootPart")
- local questOne = game.Workspace.NPCs.Quests_Npc["Floppa Quest 1"]
- local questTwo = game.Workspace.NPCs.Quests_Npc["Floppa Quest 2"]
- local questThree = game.Workspace.NPCs.Quests_Npc["Floppa Quest 3"]
- local questFour = game.Workspace.NPCs.Quests_Npc["Floppa Quest 4"]
- local function LV()
- return player.PlayerData.Level.Value
- end
- local QuestGUI = player.PlayerGui.QuestGui.Holder.QuestSlot1
- local function QuestOne()
- repeat
- game:GetService("RunService").RenderStepped:Wait()
- if not QuestGUI.Visible and questOne and questOne.PrimaryPart then
- localroot.CFrame = questOne.PrimaryPart.CFrame
- fireproximityprompt(questOne.Block:FindFirstChildOfClass("ProximityPrompt"))
- end
- until QuestGUI.Visible or humanoid.Health <= 0 or LV() >= 50
- end
- local function QuestTwo()
- repeat
- game:GetService("RunService").RenderStepped:Wait()
- if not QuestGUI.Visible and questTwo and questTwo.PrimaryPart then
- localroot.CFrame = questTwo.PrimaryPart.CFrame
- fireproximityprompt(questTwo.Block:FindFirstChildOfClass("ProximityPrompt"))
- end
- until QuestGUI.Visible or humanoid.Health <= 0 or LV() >= 150
- end
- local function QuestThree()
- repeat
- game:GetService("RunService").RenderStepped:Wait()
- if not QuestGUI.Visible and questThree and questThree.PrimaryPart then
- localroot.CFrame = questThree.PrimaryPart.CFrame
- fireproximityprompt(questThree.Block:FindFirstChildOfClass("ProximityPrompt"))
- end
- until QuestGUI.Visible or humanoid.Health <= 0 or LV() >= 200
- end
- local function QuestFour()
- repeat
- game:GetService("RunService").RenderStepped:Wait()
- if not QuestGUI.Visible and questFour and questFour.PrimaryPart then
- localroot.CFrame = questFour.PrimaryPart.CFrame
- fireproximityprompt(questFour.Block:FindFirstChildOfClass("ProximityPrompt"))
- end
- until QuestGUI.Visible or humanoid.Health <= 0 or LV() >= 300
- end
- spawn(function()
- pcall(function()
- repeat
- if LV() < 50 then
- QuestOne()
- elseif LV() >= 50 and LV() < 150 then
- QuestTwo()
- elseif LV() >= 150 and LV() < 200 then
- QuestThree()
- elseif LV() >= 200 and LV() < 300 then
- QuestFour()
- end
- until humanoid.Health <= 0
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement