Advertisement
PasteScriptsWebsite

New Pew Pew Simulator Script

May 30th, 2019
2,521
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. XYZ = false
  2. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  3. if key == "j" then
  4. if XYZ == true then XYZ = false print("Disabled")
  5. elseif
  6. XYZ == false then XYZ = true print("Enabled")
  7. end
  8. end
  9.  
  10. Part1 = Instance.new("Part", workspace)
  11. Part1.Size = Vector3.new(7,2,7)
  12. Part1.CFrame = CFrame.new(-1801.00, 40.45, 20.16)
  13. Part1.Anchored = true
  14.  
  15. Part2 = Instance.new("Part", workspace)
  16. Part2.Size = Vector3.new(7,2,7)
  17. Part2.CFrame = CFrame.new(-1601.72, 36, 31.25)
  18. Part2.Anchored = true
  19.  
  20. Part3 = Instance.new("Part", workspace)
  21. Part3.Size = Vector3.new(7,2,7)
  22. Part3.CFrame = CFrame.new(-1377.76, 36, 27.77)
  23. Part3.Anchored = true
  24.  
  25. Part4 = Instance.new("Part", workspace)
  26. Part4.Size = Vector3.new(7,2,7)
  27. Part4.CFrame = CFrame.new(-1169.58, 36, 27.09)
  28. Part4.Anchored = true
  29.  
  30. Part5 = Instance.new("Part", workspace)
  31. Part5.Size = Vector3.new(7,2,7)
  32. Part5.CFrame = CFrame.new(-968.14, 36, 6.76)
  33. Part5.Anchored = true
  34.  
  35. Part6 = Instance.new("Part", workspace)
  36. Part6.Size = Vector3.new(7,2,7)
  37. Part6.CFrame = CFrame.new(-755.95, 36, 2.98)
  38. Part6.Anchored = true
  39.  
  40. Part7 = Instance.new("Part", workspace)
  41. Part7.Size = Vector3.new(7,2,7)
  42. Part7.CFrame = CFrame.new(-548.74, 36, 9.42)
  43. Part7.Anchored = true
  44.  
  45. Part8 = Instance.new("Part", workspace)
  46. Part8.Size = Vector3.new(7,2,7)
  47. Part8.CFrame = CFrame.new(-348.77, 36, 10.23)
  48. Part8.Anchored = true
  49.  
  50. Part9 = Instance.new("Part", workspace)
  51. Part9.Size = Vector3.new(7,2,7)
  52. Part9.CFrame = CFrame.new(-139.50, 36.5, 9.81)
  53. Part9.Anchored = true
  54.  
  55. function Check()
  56. coins = string.gsub(game.Players.LocalPlayer.PlayerGui.MainGui.SideMenu.Coins.Amount.Text, ",", "")
  57. print(coins)
  58. if workspace.Walls:FindFirstChild("EgyptWall") then
  59. if tonumber(coins) >= 10000 then
  60. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 2)
  61. end
  62. Area = 1
  63. MOB = "Enemy" MOB2 = "Crook"
  64. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-139.37, 40.66, 9.87)
  65. elseif workspace.Walls:FindFirstChild("GraveyardWall")
  66. and not workspace.Walls:FindFirstChild("EgyptWall") then
  67.  
  68. if tonumber(coins) >= 500000 then
  69. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 3)
  70. end
  71. Area = 2
  72. MOB = "Mummy" MOB2 = "Pharoah"
  73. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-348.74, 40.16, 10.38)
  74. elseif workspace.Walls:FindFirstChild("BeachWall")
  75. and not workspace.Walls:FindFirstChild("GraveyardWall") then
  76. if tonumber(coins) >= 5000000 then
  77. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 4)
  78. end
  79. Area = 3
  80. MOB = "Zombie" MOB2 = "Zombie Boss"
  81. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-548.31, 40.16, 9.29)
  82. elseif workspace.Walls:FindFirstChild("PirateWall")
  83. and not workspace.Walls:FindFirstChild("BeachWall") then
  84. if tonumber(coins) >= 50000000 then
  85. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 6)
  86. end
  87. Area = 4
  88. MOB = "Beach Bigfoot" MOB2 = "Wicked Diver"
  89. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-756.12, 40.16, 3.15)
  90. elseif workspace.Walls:FindFirstChild("WinterWall")
  91. and not workspace.Walls:FindFirstChild("PiateWall") then
  92. if tonumber(coins) >= 500000000 then
  93. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 7)
  94. end
  95. Area = 5
  96. MOB = "Pirate" MOB2 = "Squid Pirate"
  97. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-968.09, 40.16, 6.58)
  98. elseif workspace.Walls:FindFirstChild("CityWall")
  99. and not workspace.Walls:FindFirstChild("WinterWall") then
  100. if tonumber(coins) >= 5000000000 then
  101. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 8)
  102. end
  103. Area = 6
  104. MOB = "Winter Warlock" MOB2 = "Yeti"
  105. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1169.79, 40.16, 27.11)
  106. elseif workspace.Walls:FindFirstChild("JungleWall")
  107. and not workspace.Walls:FindFirstChild("CityWall") then
  108. if tonumber(coins) >= 50000000000 then
  109. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 9)
  110. end
  111. Area = 7
  112. MOB = "Criminal" MOB2 = "Police Officer"
  113. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1377.52, 40.16, 27.64)
  114. elseif workspace.Walls:FindFirstChild("VolcanoWall")
  115. and not workspace.Walls:FindFirstChild("JungleWall") then
  116. if tonumber(coins) >= 500000000000 then
  117. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 10)
  118. end
  119. Area = 8
  120. MOB = "Tiger" MOB2 = "Evil Explorer"
  121. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1601.66, 40.16, 31.22)
  122. elseif not workspace.Walls:FindFirstChild("VolcanoWall") then
  123. Area = 9
  124. MOB = "Lava Insect" MOB2 = "Magma"
  125. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1800.22, 44.61, 20.03)
  126. end
  127. end
  128.  
  129. function Type()
  130. for _,v in pairs(game.Players.LocalPlayer.Backpack:GetDescendants()) do
  131. if v.Name == "TypeId" then
  132. number = v.Value
  133. end
  134. end
  135. end
  136.  
  137. function Char()
  138. for _,v in pairs(workspace:GetDescendants()) do
  139. if v.Name == "CharId" then
  140. if v.parent.Name == MOB
  141. or v.parent.Name == MOB2 then
  142. game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Shoot", number, v.Value)
  143. end
  144. end
  145. end
  146. end
  147.  
  148. while XYZ == true do
  149. wait(0.01)
  150. Check()
  151. Type()
  152. Char()
  153. end
  154. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement