HandsomelyMario34

Untitled

Jul 11th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. game:GetObjects("rbxassetid://501559112")[1].Parent=game.Workspace
  2. wait(0.5)
  3. game.Workspace.Towers:MoveTo(game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector* 30)
  4. wait(2)
  5. x = game:GetService("InsertService"):LoadAsset(163348575)
  6. for i,v in pairs(x:GetChildren()) do
  7. v.Parent = game.Players.LocalPlayer.Backpack
  8. end
  9.  
  10. Instance.new("ForceField" ,game.Players.LocalPlayer.Character)
  11.  
  12. kek = game.Players.LocalPlayer.Name
  13.  
  14. local children = game.Workspace.Towers.Tower2:GetChildren()
  15. for _, child in pairs(children) do
  16. for _, child in pairs(child:GetChildren()) do
  17. table.insert(children, child)
  18. end
  19.  
  20. if child:IsA("BasePart") then
  21.  
  22.  
  23. local function handleTouch(otherPart)
  24. local character = otherPart.Parent
  25. local humanoid = character:FindFirstChild(kek.."'s Plane")
  26. if humanoid then
  27. child.Anchored = false
  28. fire2 = Instance.new("Fire")
  29. fire2.Parent = child
  30. explo1 = Instance.new("Explosion")
  31. explo1.Parent = child
  32. explo1.BlastPressure = 10
  33. explo1.Position = child.Position
  34. end
  35. end
  36.  
  37. child.Touched:connect(handleTouch)
  38. end
  39. end
  40.  
  41. local children = game.Workspace.Towers.Tower1:GetChildren()
  42. for _, child in pairs(children) do
  43. for _, child in pairs(child:GetChildren()) do
  44. table.insert(children, child)
  45. end
  46.  
  47. if child:IsA("BasePart") then
  48.  
  49.  
  50. local function handleTouch(otherPart)
  51. local character = otherPart.Parent
  52. local humanoid = character:FindFirstChild(kek.."'s Plane")
  53. if humanoid then
  54. child.Anchored = false
  55. fire1 = Instance.new("Fire")
  56. fire1.Parent = child
  57. explo2 = Instance.new("Explosion")
  58. explo2.Parent = child
  59. explo2.BlastPressure = 10
  60. explo2.Position = child.Position
  61. end
  62. end
  63.  
  64. child.Touched:connect(handleTouch)
  65. end
  66. end
Add Comment
Please, Sign In to add comment