Advertisement
Piter900

fwefwfgthrth

Jul 19th, 2019
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.97 KB | None | 0 0
  1. if game.PlaceId == 2414851778 and tonumber(game.CreatorId) == 306209 then
  2.     repeat wait() until game.ReplicatedStorage:FindFirstChild("remotes")
  3.     repeat wait() until game.ReplicatedStorage.remotes:FindFirstChild('loadPlayerCharacter')
  4.     game:GetService("ReplicatedStorage").remotes.loadPlayerCharacter:FireServer()
  5.     wait(3)
  6.     local Event = game.ReplicatedStorage:WaitForChild('remotes').reloadInvy:InvokeServer()
  7.     jumlah = 0
  8.     repeat wait(0.5)
  9.     local Event = game.ReplicatedStorage:WaitForChild('remotes').reloadInvy:InvokeServer()
  10.     until Event ~= nil
  11.     for i,v in pairs(Event) do
  12.         for j,g in pairs(v) do
  13.             if game.Players.LocalPlayer.Name == 'imExotics' then
  14.                 z,x = string.find(tostring(j), '_', 1, true)
  15.                 local Type = (string.sub(j,1,z-1))
  16.                 local SkillID = tonumber(string.sub(j,z+1,(string.len(j))))
  17.                 local SellRemote = game:GetService("ReplicatedStorage").remotes.sellItemEvent
  18.                 jumlah=jumlah+1
  19.                 --Weapons
  20.                 if Type == 'weapon' and g['equipped'] ~= true and g['rarity'] ~= 'legendary' and g['rarity'] ~= 'epic' and not string.match(g['name'], "Sakura") and not string.match(g['name'], "Overlord")  then
  21.                     if g['physicalDamage'] > g['spellPower'] and g['physicalDamage'] < 90000 and not string.match(g['name'], "Sakura") and not string.match(g['name'], "Overlord")  then
  22.                         SellRemote:FireServer({["ability"] = {}, ["helmet"] = {}, ["chest"] = {}, ["weapon"] = {[1] = SkillID}})
  23.                     elseif g['spellPower'] > g['physicalDamage'] and g['spellPower'] < 90000 and not string.match(g['name'], "Sakura") and not string.match(g['name'], "Overlord") then
  24.                         SellRemote:FireServer({["ability"] = {}, ["helmet"] = {}, ["chest"] = {}, ["weapon"] = {[1] = SkillID}})
  25.                     end
  26.                 end
  27.                 if Type == 'weapon' and g['equipped'] ~= true and g['rarity'] ~= 'legendary' and g['rarity'] ~= 'epic' and g['rarity'] ~= 'rare' and not string.match(g['name'], "Sakura") and not string.match(g['name'], "Overlord") then
  28.                     SellRemote:FireServer({["ability"] = {}, ["helmet"] = {}, ["chest"] = {}, ["weapon"] = {[1] = SkillID}})
  29.                 end
  30.                 --Chests
  31.                 if Type == 'chest' and g['equipped'] ~= true and g['rarity'] ~= 'epic' and g['rarity'] ~= 'rare' and not string.match(g['name'], "Godly") and not string.match(g['name'], "Titan") and not string.match(g['name'], "Glorious") and not string.match(g['name'], "Ancestral") and not string.match(g['name'], "Overlord") then
  32.                     SellRemote:FireServer({["ability"] = {}, ["helmet"] = {}, ["chest"] = {[1] = SkillID}, ["weapon"] = {}})
  33.                 end
  34.                 --Helmets
  35.                 if Type == 'helmet' and g['equipped'] ~= true and g['rarity'] ~= 'epic' and g['rarity'] ~= 'rare' and not string.match(g['name'], "Godly") and not string.match(g['name'], "Titan") and not string.match(g['name'], "Glorious") and not string.match(g['name'], "Ancestral") and not string.match(g['name'], "Overlord") then
  36.                     SellRemote:FireServer({["ability"] = {}, ["helmet"] = {[1] = SkillID}, ["chest"] = {}, ["weapon"] = {}})
  37.                 end
  38.                 if Type == 'chest' and g['equipped'] ~= true and g['rarity'] == 'common' then
  39.                     SellRemote:FireServer({["ability"] = {}, ["helmet"] = {}, ["chest"] = {[1] = SkillID}, ["weapon"] = {}})
  40.                 end
  41.                 if Type == 'helmet' and g['equipped'] ~= true and g['rarity'] == 'common' then
  42.                     SellRemote:FireServer({["ability"] = {}, ["helmet"] = {[1] = SkillID}, ["chest"] = {}, ["weapon"] = {}})
  43.                 end
  44.                  --ability
  45.                  if Type == 'ability' and g['equipped']['q'] == false and g['equipped']['e'] == false and g['name'] ~= 'Battle Shout' then
  46.                     SellRemote:FireServer({["ability"] = {[1] = SkillID}, ["helmet"] = {}, ["chest"] = {}, ["weapon"] = {}})
  47.                  end
  48.             end
  49.         end
  50.     end
  51.     warn'Sold Useless Items'
  52.     print(jumlah)
  53.     wait(3)
  54.     local startDungeon = game.ReplicatedStorage.remotes.startDungeon;
  55.     local createlobby = game:GetService("ReplicatedStorage").remotes.createLobby
  56.         if tonumber(game.CreatorId) == 306209 and game.Players.LocalPlayer.Name == 'imExotics' then
  57.             if not game.Workspace:FindFirstChild("dungeon") then
  58.                 repeat
  59.                      createlobby:InvokeServer('The Canals',"Nightmare",100,true,true)
  60.                      startDungeon:FireServer()
  61.                      writefile('test1.txt','Map1')
  62.                 until game.Players.LocalPlayer:FindFirstChild('inGame')
  63.             end
  64.         end
  65.     end
  66.    
  67. if game.PlaceId ~= 2414851778 and tonumber(game.CreatorId) == 306209 then
  68.     writefile('test1.txt','Map2')
  69.     repeat wait() until game.Players:FindFirstChild('imExotics')
  70.     plr = game.Players.LocalPlayer
  71.     local chr = plr.Character or plr.CharacterAdded:wait()
  72.     print("Character Loaded!")
  73.    
  74.     repeat wait() until plr.Character:FindFirstChild('HumanoidRootPart')
  75.     hum = plr.Character.HumanoidRootPart
  76.     local hum = game.Players.LocalPlayer.Character.HumanoidRootPart
  77.     local Dungeon = workspace:WaitForChild("dungeon")
  78.     local point1 = Vector3.new(-269.955, 23.866, 27.139)
  79.     local defaultx, defaulty, defalutz,count, pindah, usemagic, adaff, arrowcount, lanjut =0, 30, 0, 0, false, true, true, 0, false
  80.  
  81.     Workspace.ChildAdded:Connect(function(instance)
  82.         if instance.Name == 'secondBossCrescent' then
  83.             count = 1
  84.         elseif instance.Name == 'secondBossCrossBeam' and count == 1 then
  85.             pindah = true
  86.         elseif instance.Name == 'safeSpotCircle' and pindah then
  87.             wait(0.2)
  88.             pindah = false
  89.             count = 0
  90.         elseif instance.Name == 'finalBossArrowShotHitbox' then
  91.             defaultx = defaultx + 15
  92.             usemagic = false
  93.         end
  94.     end)
  95.  
  96.     Workspace.ChildRemoved:Connect(function(instance)
  97.         if instance.Name == 'npcMageShot' then defaulty = 10 wait(0.1) usemagic = true end
  98.         if instance.Name == 'forceField' then wait(1) adaff = true end
  99.         if instance.Name == 'finalBossArrowShotHitbox' then arrowcount = arrowcount+1 if arrowcount == 3 then defaultx = 0 arrowcount = 0 end end
  100.     end)
  101.  
  102.     -- PlayersName = game.Players.LocalPlayer.Name
  103.     -- game:GetService('RunService').Stepped:connect(function()
  104.     --     for a, b in pairs(game.Workspace:GetChildren()) do
  105.     --         if b.Name == PlayersName then
  106.     --             for i, v in pairs(game.Workspace[PlayersName]:GetChildren()) do
  107.     --                 if v:IsA("BasePart") then
  108.     --                     v.CanCollide = false
  109.     --                 end
  110.     --             end
  111.     --         end
  112.     --     end
  113.     -- end)
  114.  
  115.     -- repeat wait() until workspace[PlayersName]:FindFirstChild("Head")
  116.     -- Workspace[PlayersName].Head.Changed:connect(function()
  117.     --     for a, b in pairs(game.Workspace:GetChildren()) do
  118.     --         if b.Name == PlayersName then
  119.     --             for i, v in pairs(game.Workspace[PlayersName]:GetChildren()) do
  120.     --                 if v:IsA("BasePart") then
  121.     --                     v.CanCollide = false
  122.     --                 end
  123.     --             end
  124.     --         end
  125.     --     end
  126.     -- end)
  127.  
  128.     local Event = game.ReplicatedStorage:WaitForChild('remotes').reloadInvy:InvokeServer()
  129.     for i,v in pairs(Event) do
  130.         for j,g in pairs(v) do
  131.             z,x = string.find(tostring(j), '_', 1, true)
  132.             local Type = (string.sub(j,1,z-1))
  133.             local IDskill = tonumber(string.sub(j,z+1,(string.len(j))))
  134.             if Type == 'ability' and g['equipped']['q'] == true then
  135.                 SkillQ = g['name']
  136.             end
  137.             if Type == 'ability' and g['equipped']['e'] == true then
  138.                 SkillE=g['name']
  139.                 ID = IDskill
  140.             end
  141.         end
  142.     end
  143.  
  144.     game:GetService("ReplicatedStorage").remotes.equipItem:InvokeServer('ability', ID, 'w')
  145.  
  146.     function AttackF(rooms,bossname)
  147.         for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  148.             if v:FindFirstChild("Weapon") and v:FindFirstChild("swing") then
  149.                 v.swing:FireServer()
  150.             end
  151.         end
  152.         for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  153.             if v:IsA("Tool") and usemagic then
  154.                 if rooms ~= 'bossRoom' and bossname ~= 'Warrior Overlord' then
  155.                     v:FindFirstChildWhichIsA("RemoteEvent"):FireServer()
  156.                 elseif rooms == 'bossRoom' and bossname == 'Warrior Overlord' and lanjut then
  157.                     v:FindFirstChildWhichIsA("RemoteEvent"):FireServer()
  158.                 end
  159.             end
  160.         end
  161.     end
  162.  
  163.     function Dungeonfinishcheck()
  164.         if workspace:FindFirstChild('dungeonProgress') and workspace:FindFirstChild('dungeonProgress').Value == 'bossKilled' then
  165.             wait(3)
  166.             game:GetService("TeleportService"):Teleport(2414851778, game.Players.LocalPlayer)
  167.         end
  168.     end
  169.  
  170.     local BV = Instance.new('BodyVelocity', hum)
  171.     BV.velocity = Vector3.new(0, 0, 0)
  172.     BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  173.     local c = Instance.new('BodyGyro')
  174.     c.Parent = hum
  175.     c.P = 9e4
  176.     c.MaxTorque = Vector3.new(9e9, 9e9, 9e9)
  177.     c.CFrame = CFrame.Angles(math.rad(-90), 0, 0)
  178.     local Dungeon = workspace:WaitForChild("dungeon")
  179.     local once = 'room1'
  180.     local temp = ' '
  181.     -- spawn(function()
  182.     --     game:GetService('RunService').Stepped:connect(function()
  183.     --         for index, value in next, (Dungeon:GetChildren()) do
  184.     --             if value:FindFirstChild("enemyFolder") then
  185.     --                 for e,f in pairs(value.enemyFolder:GetChildren()) do
  186.     --                     if not f:isA('Part') and f:FindFirstChild('Humanoid') and f:FindFirstChild('HumanoidRootPart') and value.Name ~= 'bossRoom' then
  187.     --                         once = value.Name
  188.     --                         if once ~= temp and value.Name ~= 'room1' then wait(1.5) end
  189.     --                         if value.Name == 'room1' then wait() end
  190.     --                         temp = value.Name
  191.     --                         f.Humanoid.Health = 0
  192.     --                     end
  193.     --                 end
  194.     --             end
  195.     --         end
  196.     --     end)
  197.     -- end)
  198.  
  199.     workspace.ChildAdded:Connect(function(instance)
  200.         if instance.Name == 'imExotics' then
  201.             loadstring(game:HttpGet("https://pastebin.com/raw/9KaGfdEg", true))()
  202.         end
  203.     end)
  204.  
  205.     local f1,f2,f3,f4 = false, false, false, false
  206.     while wait() do
  207.         Dungeonfinishcheck()
  208.         for c,d in pairs(workspace.dungeon:GetChildren()) do
  209.             if d:FindFirstChild("enemyFolder") then
  210.                 for e,f in pairs(d.enemyFolder:GetChildren()) do
  211.                     if not f:isA('Part') and f:FindFirstChild('Humanoid') and f:FindFirstChild('HumanoidRootPart') then
  212.                         repeat wait()
  213.                             if d.Name ~= 'room2' and d.Name ~= 'room4' and d.Name ~= 'bossRoom' and f.Name ~= 'Guardian Overlord' and f.Name ~= 'Mage Overlord' and f.Name ~= 'Warrior Overlord' then
  214.                                 hum.BodyGyro.CFrame = CFrame.Angles(math.rad(-90), 0, 0)
  215.                                 if not f3 then defaulty = 30 hum.BodyGyro.CFrame = CFrame.Angles(math.rad(-90), 0, 0) f3=true end
  216.                                 if workspace:FindFirstChild('npcMageShot') then
  217.                                     hum.CFrame =  CFrame.new(f.HumanoidRootPart.Position + Vector3.new(defaultx,30,defaultz)) * CFrame.Angles(math.rad(-90), 0, 0)
  218.                                     AttackF(d.Name,f.Name)
  219.                                 elseif not workspace:FindFirstChild('npcMageShot') then
  220.                                     hum.CFrame =  CFrame.new(f.HumanoidRootPart.Position + Vector3.new(defaultx,10,defaultz)) * CFrame.Angles(math.rad(-90), 0, 0)
  221.                                     AttackF(d.Name,f.Name)
  222.                                 end
  223.                             elseif d.Name == 'room2' then
  224.                                 if not f1 then defaulty = -20 hum.BodyGyro.CFrame = CFrame.Angles(math.rad(90), 0, 0) f1=true end
  225.                                 hum.CFrame =  CFrame.new(f.HumanoidRootPart.Position + Vector3.new(defaultx,-20,defaultz)) * CFrame.Angles(math.rad(90), 0, 0)
  226.                                 AttackF(d.Name,f.Name)
  227.                             elseif d.Name == 'room4' then
  228.                                 if not f2 then defaulty = -20 hum.BodyGyro.CFrame = CFrame.Angles(math.rad(90), 0, 0) f2=true end
  229.                                     if not pindah then
  230.                                         hum.CFrame =  CFrame.new(f.HumanoidRootPart.Position + Vector3.new(defaultx,-20,defaultz)) * CFrame.Angles(math.rad(90), 0, 0)
  231.                                         AttackF(d.Name,f.Name)
  232.                                     else
  233.                                         hum.CFrame =  CFrame.new(Vector3.new(235.500,42.128,-124.37)) * CFrame.Angles(math.rad(90), 0, 0)
  234.                                     end
  235.                             elseif d.Name == 'bossRoom' and f.Name == 'Warrior Overlord' then
  236.                                 writefile('test1.txt','Finish')
  237.                                 game.ReplicatedStorage.remotes.changeStartValue:FireServer()
  238.                                 if not f4 then defaulty = -23 hum.BodyGyro.CFrame = CFrame.Angles(math.rad(90), 0, 0) repeat wait() until game.Players.LocalPlayer.Backpack:FindFirstChild(SkillQ).cooldown.Value <= 0 and game.Players.LocalPlayer.Backpack:FindFirstChild(SkillE).cooldown.Value <= 0  f4=true end
  239.                                 if workspace:FindFirstChild('forceField') and adaff then hum.CFrame = CFrame.new(workspace.forceField.Position + Vector3.new(0,5,0)) wait(0.4) adaff = false lanjut = true end
  240.                                 if not workspace:FindFirstChild('finalBossArrowShotHitbox') then usemagic = true end
  241.                                 hum.CFrame =  CFrame.new(f.HumanoidRootPart.Position + Vector3.new(defaultx,-23,defaultz)) * CFrame.Angles(math.rad(90), 0, 0)
  242.                                 AttackF(d.Name,f.Name)
  243.                             end
  244.                         until not f:FindFirstChild("Humanoid") or not f:FindFirstChild("HumanoidRootPart") or f.Parent == nil
  245.                     end
  246.                 end
  247.             end
  248.         end
  249.     end
  250. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement