Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(6)
- local Player = game.Players.LocalPlayer
- _G.autosell = true --Sells all things except the legendaries and equppeds
- local LobbySettnigs =
- {
- ["Difficulty"] = "Medium", --Easy, Medium, Hard, Expert
- ["PartyOnly"] = true,
- ["Hardcore"] = true,
- ["Location"] = "Frozen Depths"--Cave, Underworld, Frozen Depths
- }
- spawn(function()
- while wait() do
- pcall(function()
- if game.workspace:FindFirstChild("Lobby") and _G.autosell == true then
- Player.Character.HumanoidRootPart.CFrame = CFrame.new(-418.266968, 25.2000008, 408.361694)
- for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.Sell.Sell.Inner.Items.Frame.Items:GetChildren()) do
- if v.Name ~= "UIGridLayout" and v.Equipped.Visible == false and v.RarityBackground.Visible == false then
- game:GetService("ReplicatedStorage").Modules.Network.RemoteFunction:InvokeServer(unpack{"SellItems", {{"Weapon", ""..v.Name..""}}})
- game:GetService("ReplicatedStorage").Modules.Network.RemoteFunction:InvokeServer(unpack{"SellItems", {{"Armor", ""..v.Name..""}}})
- game:GetService("ReplicatedStorage").Modules.Network.RemoteFunction:InvokeServer(unpack{"SellItems", {{"Ability", ""..v.Name..""}}})
- end
- end
- end
- end)
- end
- end)
- wait(4)
- game:GetService('RunService').Stepped:connect(function()
- pcall(function()
- game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(11)
- end)
- end)
- function toTarget(pos, targetPos, targetCFrame)
- local tween_s = game:service"TweenService"
- local info = TweenInfo.new((targetPos - pos).Magnitude/80, Enum.EasingStyle.Quad)
- local tic_k = tick()
- local tween, err = pcall(function()
- local tween = tween_s:Create(Player.Character["HumanoidRootPart"], info, {CFrame = targetCFrame})
- tween:Play()
- end)
- if not tween then return err end
- end
- spawn(function()
- while wait() do
- pcall(function()
- if game.workspace:FindFirstChild("Lobby") then
- local _1 = "CreateLobby"
- local vent = game:GetService("ReplicatedStorage").Modules.Network.RemoteFunction
- vent:InvokeServer(_1, LobbySettnigs)
- wait()
- local A1 = "StartDungeon"
- local Even = game:GetService("ReplicatedStorage").Modules.Network.RemoteEvent
- Even:FireServer(A1)
- end
- end)
- end
- end)
- while wait() do
- pcall(function()
- if game.Players.LocalPlayer.Character ~= nil and not game.workspace:FindFirstChild("Lobby") then
- local plr = game.Players.LocalPlayer.Character
- for i,v in next, plr:GetChildren() do
- if v:IsA("Model") then
- for i2, v2 in next, game.workspace.Enemies:GetChildren() do
- if v2:FindFirstChild("Humanoid") and v2:FindFirstChild("HumanoidRootPart") then
- repeat
- toTarget(Player.Character.HumanoidRootPart.Position, v2.HumanoidRootPart.Position, v2.HumanoidRootPart.CFrame*CFrame.new(10,-3,0))
- local A_1 = "WeaponDamage"
- local A_2 = ""..v.Name..""
- local A_3 = v2.Humanoid
- local Event = game:GetService("ReplicatedStorage").Modules.Network.RemoteEvent
- Event:FireServer(A_1, A_2, A_3)
- wait()
- until v2.Humanoid.Health == 0
- end
- end
- end
- end
- end
- end)
- end
Add Comment
Please, Sign In to add comment