Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
1,500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2.  
  3. game:GetService("UserInputService").InputBegan:connect(function(input)
  4. if input.KeyCode == Enum.KeyCode.Z then
  5. if game.Workspace.Dungeon:FindFirstChild("Colossal Dungeon Defender") then
  6. game.Workspace.Dungeon["Colossal Dungeon Defender"].Head:Destroy()
  7. elseif game.Workspace.Dungeon:FindFirstChild("Stonetroid Temple Guardian") then
  8. game.Workspace.Dungeon["Stonetroid Temple Guardian"].Head:Destroy()
  9. end
  10. elseif input.KeyCode == Enum.KeyCode.X then
  11. for i,v in pairs(game.Workspace.Dungeon:GetDescendants()) do
  12. if v.Name == "Chest" then
  13. game.Workspace[plr.Name].HumanoidRootPart.CFrame = v.KeyHole.CFrame + Vector3.new(0,5,0)
  14. wait(.7)
  15. end
  16. end
  17. elseif input.KeyCode == Enum.KeyCode.C then
  18. for i,v in pairs(game.Workspace.Dungeon:GetChildren()) do
  19. if string.match(v.Name, "BossStart") then
  20. game.Workspace[plr.Name].HumanoidRootPart.CFrame = v.Start.CFrame + Vector3.new(0,5,0)
  21. end
  22. end
  23. end
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement