KienZino

DUNGEON

Mar 11th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. local DungeonName = "Desert Temple" -- or "Winter Outpost"
  2. local Difficulty = "Nightmare" -- "Easy" or "Medium" or "Hard" or "Insane" or "Nightmare"
  3. -- Hardcore Mode is automatically enabled!
  4.  
  5. if tonumber(game.CreatorId) == 306209 then
  6. if game.Workspace:FindFirstChild("dungeon") then
  7. wait(4)
  8. function FireSwingRemote()
  9. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  10. if v:FindFirstChild("Weapon") and v:FindFirstChild("swing") then
  11. return v.swing:FireServer()
  12. end
  13. end
  14. end
  15. game.ReplicatedStorage.remotes.changeStartValue:FireServer()
  16. while wait() do
  17. for a,b in pairs(game.Workspace:GetChildren()) do
  18. if b:IsA("Folder") then
  19. for c,d in pairs(b:GetChildren()) do
  20. if d:FindFirstChild("enemyFolder") then
  21. for e,f in pairs(d.enemyFolder:GetChildren()) do
  22. if f:FindFirstChild("HumanoidRootPart") and f:FindFirstChild("Humanoid") then
  23. if game.Players.LocalPlayer.Backpack:FindFirstChild("Battle Shout") then
  24. game.Players.LocalPlayer.Backpack["Battle Shout"].abilityEvent:FireServer()
  25. end
  26. f.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 3.5
  27. f.HumanoidRootPart.Anchored = true
  28. FireSwingRemote()
  29. game.Players.LocalPlayer.Character.Humanoid.Jump = true
  30. end
  31. end
  32. end
  33. end
  34. end
  35. end
  36. end
  37. elseif not game.Workspace:FindFirstChild("dungeon") then
  38. wait(5)
  39. game.ReplicatedStorage.remotes.createLobby:InvokeServer(DungeonName, Difficulty, 0, true, false)
  40. wait()
  41. game.ReplicatedStorage.remotes.startDungeon:FireServer()
  42. end
  43. end
Add Comment
Please, Sign In to add comment