Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local FUNTAIN = workspace.Levels.Forest.SpawnPoint
- if player.Level.Value ~= Magma then
- game:GetService("ReplicatedStorage").Remote.SetLevel:FireServer("Magma")
- end
- while wait() do
- player.Character.HumanoidRootPart.CFrame=workspace.Levels.Magma.MagmaGolem.MagmaGolem.CFrame+Vector3.new(0,0,0)
- wait(1)
- game:GetService("ReplicatedStorage").Remote.FightBoss:FireServer(workspace.Levels.Magma.MagmaGolem.MagmaGolem)
- wait(5)
- for i,v in pairs(workspace.BossArenas:GetDescendants()) do
- if v.ClassName == "Model" and v.Name == "MagmaGolem" and v:FindFirstChild("HumanoidRootPart") then
- v.HumanoidRootPart.Anchored = true
- repeat wait()
- player.Character.HumanoidRootPart.CFrame=v.HumanoidRootPart.CFrame+Vector3.new(0,0,-5)
- game:GetService("ReplicatedStorage").Remote.CastSpell:FireServer(1, v)
- game:GetService("ReplicatedStorage").Remote.CastSpell:FireServer(2, v)
- FUNTAIN.CFrame=player.Character.HumanoidRootPart.CFrame+Vector3.new(0,0,0)
- if string.find(player.PlayerGui.GameGui.Quest.QuestName.Text, "bla bla") then
- game:GetService("ReplicatedStorage").Remote.AcceptQuest:FireServer("OM:11")
- elseif string.find(player.PlayerGui.GameGui.Quest.Info.QuestText.Text, "1/1") then
- player.PlayerGui.GameGui.Quest.QuestName.Text = "bla bla"
- end
- until v.Health.Value == 0
- if v.Health.Value == 0 then
- game:GetService("ReplicatedStorage").Remote.SetLevel:FireServer("Magma")
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement