Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- XYZ = false
- game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
- if key == "j" then
- if XYZ == true then XYZ = false print("Disabled")
- elseif
- XYZ == false then XYZ = true print("Enabled")
- end
- end
- Part1 = Instance.new("Part", workspace)
- Part1.Size = Vector3.new(7,2,7)
- Part1.CFrame = CFrame.new(-1801.00, 40.45, 20.16)
- Part1.Anchored = true
- Part2 = Instance.new("Part", workspace)
- Part2.Size = Vector3.new(7,2,7)
- Part2.CFrame = CFrame.new(-1601.72, 36, 31.25)
- Part2.Anchored = true
- Part3 = Instance.new("Part", workspace)
- Part3.Size = Vector3.new(7,2,7)
- Part3.CFrame = CFrame.new(-1377.76, 36, 27.77)
- Part3.Anchored = true
- Part4 = Instance.new("Part", workspace)
- Part4.Size = Vector3.new(7,2,7)
- Part4.CFrame = CFrame.new(-1169.58, 36, 27.09)
- Part4.Anchored = true
- Part5 = Instance.new("Part", workspace)
- Part5.Size = Vector3.new(7,2,7)
- Part5.CFrame = CFrame.new(-968.14, 36, 6.76)
- Part5.Anchored = true
- Part6 = Instance.new("Part", workspace)
- Part6.Size = Vector3.new(7,2,7)
- Part6.CFrame = CFrame.new(-755.95, 36, 2.98)
- Part6.Anchored = true
- Part7 = Instance.new("Part", workspace)
- Part7.Size = Vector3.new(7,2,7)
- Part7.CFrame = CFrame.new(-548.74, 36, 9.42)
- Part7.Anchored = true
- Part8 = Instance.new("Part", workspace)
- Part8.Size = Vector3.new(7,2,7)
- Part8.CFrame = CFrame.new(-348.77, 36, 10.23)
- Part8.Anchored = true
- Part9 = Instance.new("Part", workspace)
- Part9.Size = Vector3.new(7,2,7)
- Part9.CFrame = CFrame.new(-139.50, 36.5, 9.81)
- Part9.Anchored = true
- function Check()
- coins = string.gsub(game.Players.LocalPlayer.PlayerGui.MainGui.SideMenu.Coins.Amount.Text, ",", "")
- print(coins)
- if workspace.Walls:FindFirstChild("EgyptWall") then
- if tonumber(coins) >= 10000 then
- game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 2)
- end
- Area = 1
- MOB = "Enemy" MOB2 = "Crook"
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-139.37, 40.66, 9.87)
- elseif workspace.Walls:FindFirstChild("GraveyardWall")
- and not workspace.Walls:FindFirstChild("EgyptWall") then
- if tonumber(coins) >= 500000 then
- game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 3)
- end
- Area = 2
- MOB = "Mummy" MOB2 = "Pharoah"
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-348.74, 40.16, 10.38)
- elseif workspace.Walls:FindFirstChild("BeachWall")
- and not workspace.Walls:FindFirstChild("GraveyardWall") then
- if tonumber(coins) >= 5000000 then
- game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 4)
- end
- Area = 3
- MOB = "Zombie" MOB2 = "Zombie Boss"
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-548.31, 40.16, 9.29)
- elseif workspace.Walls:FindFirstChild("PirateWall")
- and not workspace.Walls:FindFirstChild("BeachWall") then
- if tonumber(coins) >= 50000000 then
- game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 6)
- end
- Area = 4
- MOB = "Beach Bigfoot" MOB2 = "Wicked Diver"
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-756.12, 40.16, 3.15)
- elseif workspace.Walls:FindFirstChild("WinterWall")
- and not workspace.Walls:FindFirstChild("PiateWall") then
- if tonumber(coins) >= 500000000 then
- game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 7)
- end
- Area = 5
- MOB = "Pirate" MOB2 = "Squid Pirate"
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-968.09, 40.16, 6.58)
- elseif workspace.Walls:FindFirstChild("CityWall")
- and not workspace.Walls:FindFirstChild("WinterWall") then
- if tonumber(coins) >= 5000000000 then
- game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 8)
- end
- Area = 6
- MOB = "Winter Warlock" MOB2 = "Yeti"
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1169.79, 40.16, 27.11)
- elseif workspace.Walls:FindFirstChild("JungleWall")
- and not workspace.Walls:FindFirstChild("CityWall") then
- if tonumber(coins) >= 50000000000 then
- game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 9)
- end
- Area = 7
- MOB = "Criminal" MOB2 = "Police Officer"
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1377.52, 40.16, 27.64)
- elseif workspace.Walls:FindFirstChild("VolcanoWall")
- and not workspace.Walls:FindFirstChild("JungleWall") then
- if tonumber(coins) >= 500000000000 then
- game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Purchase Area", 10)
- end
- Area = 8
- MOB = "Tiger" MOB2 = "Evil Explorer"
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1601.66, 40.16, 31.22)
- elseif not workspace.Walls:FindFirstChild("VolcanoWall") then
- Area = 9
- MOB = "Lava Insect" MOB2 = "Magma"
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-1800.22, 44.61, 20.03)
- end
- end
- function Type()
- for _,v in pairs(game.Players.LocalPlayer.Backpack:GetDescendants()) do
- if v.Name == "TypeId" then
- number = v.Value
- end
- end
- end
- function Char()
- for _,v in pairs(workspace:GetDescendants()) do
- if v.Name == "CharId" then
- if v.parent.Name == MOB
- or v.parent.Name == MOB2 then
- game:GetService("ReplicatedStorage").RemoteEvent:FireServer("Shoot", number, v.Value)
- end
- end
- end
- end
- while XYZ == true do
- wait(0.01)
- Check()
- Type()
- Char()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement