Advertisement
quan22111

Untitled

Jun 10th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. --Made by Ars#1818
  2.  
  3. game.Workspace.dungeon.initialRoom.barrier:Destroy()
  4. function QSkill(inputObject, gameProcessedEvent)
  5. if inputObject.KeyCode == Enum.KeyCode.T and gameProcessedEvent == false then
  6. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  7. if v:IsA("Tool") and v:FindFirstChild("abilitySlot") then
  8. if v.abilitySlot.Value == "q" then
  9. v:FindFirstChildWhichIsA("RemoteEvent"):FireServer()
  10. v.cooldown.Changed:Connect(function()
  11. v.cooldown.Value = 0
  12. end)
  13. end
  14. end
  15. end
  16. end
  17. end
  18.  
  19.  
  20.  
  21. function ESkill(inputObject, gameProcessedEvent)
  22. if inputObject.KeyCode == Enum.KeyCode.T and gameProcessedEvent == false then
  23. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  24. if v:IsA("Tool") and v:FindFirstChild("abilitySlot") then
  25. if v.abilitySlot.Value == "e" then
  26. v:FindFirstChildWhichIsA("RemoteEvent"):FireServer()
  27. v.cooldown.Changed:Connect(function()
  28. v.cooldown.Value = 0
  29. end)
  30.  
  31. end
  32. end
  33. end
  34. end
  35. end
  36.  
  37. game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
  38. wait(1)
  39. char.busyCasting.Changed:Connect(function()
  40. char.busyCasting.Value = false
  41. end)
  42. for _,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  43. if (v:IsA("Tool")) then
  44. v.cooldown.Changed:Connect(function()
  45. v.cooldown.Value = 0
  46. end)
  47. end
  48. end
  49. end)
  50.  
  51.  
  52. game.Players.LocalPlayer.Character.busyCasting.Changed:Connect(function()
  53. game.Players.LocalPlayer.Character.busyCasting.Value = false
  54. end)
  55.  
  56. function ForceStart(inputObject, gameProcessedEvent)
  57. if inputObject.KeyCode == Enum.KeyCode.Z and gameProcessedEvent == false then
  58. game.ReplicatedStorage.remotes.changeStartValue:FireServer()
  59. end
  60. end
  61.  
  62. local function EnemyTele(instance)
  63. for i,v in pairs(instance:GetChildren()) do
  64. lowername = string.lower(v.Name)
  65. if string.find(lowername, "enemyfolder") then
  66. for i,x in pairs(v:GetChildren()) do
  67. if x:FindFirstChild("HumanoidRootPart") then
  68. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = x.HumanoidRootPart.CFrame * CFrame.new(0,0,3)
  69. end
  70. end
  71.  
  72. end
  73. EnemyTele(v)
  74. end
  75.  
  76. end
  77.  
  78.  
  79. function GotoEnemies(inputObject, gameProcessedEvent)
  80. if inputObject.KeyCode == Enum.KeyCode.G and gameProcessedEvent == false then
  81. EnemyTele(game.Workspace)
  82. end
  83. end
  84.  
  85.  
  86. game:GetService("UserInputService").InputBegan:connect(GotoEnemies) -- G Key (Goes to a spawned enemy)
  87. game:GetService("UserInputService").InputBegan:connect(QSkill) -- R Key (Mass-fires your Q skill)
  88. game:GetService("UserInputService").InputBegan:connect(ESkill) -- T Key (Mass-fires your E skill)
  89. game:GetService("UserInputService").InputBegan:connect(ForceStart) -- Z Key (Force start round)
  90.  
  91. game:GetService('RunService').RenderStepped:connect(function()
  92. local Player = game.Players.LocalPlayer
  93. Player.Character.Humanoid.WalkSpeed = 100
  94. end)
  95.  
  96. local Player = game.Players.LocalPlayer
  97. while wait(10) do
  98. for index, value in next, workspace:GetDescendants() do
  99. if (value:FindFirstChildOfClass("Humanoid") and value ~= Player.Character) then
  100. value.Humanoid.Health = 0
  101. end
  102. end
  103. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement