Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- AUTOFARM AND KILL ALL FOR https://www.roblox.com/games/3556333558/Death-Star-Tycoon
- BY EXXTREMESTUFFS
- CREDITS TO FROSTY FOR THE UI LIB
- ]]
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local toggle
- firetouchinterest = function(touch)
- local part = touch.Parent
- if touch:IsA("TouchTransmitter") and part:IsA("BasePart") then
- local character = game:GetService("Players").LocalPlayer.Character
- if character then
- coroutine.wrap(
- function()
- local prev = part.CFrame
- local collide = part.CanCollide
- local vis = part.Transparency
- part.CanCollide = false
- part.Transparency = 1
- part.CFrame = character.HumanoidRootPart.CFrame
- wait()
- part.CFrame = prev
- part.CanCollide = collide
- part.Transparency = vis
- end
- )()
- else
- error("Character not found")
- end
- else
- error("Touch Interest not found")
- end
- end
- function loopBuy(isToggled)
- if isToggled then
- local tycoonButtons
- local tycoon
- local cash = LocalPlayer.PlayerGui.Alerts.CashLabel
- for _, v in pairs(game:GetService("Workspace")["Zednov's Tycoon Kit"].Tycoons:GetChildren()) do
- if tostring(v.Owner.Value):match(tostring(LocalPlayer.Name)) then
- tycoon = v
- tycoonButtons = v.Buttons
- break
- end
- end
- while toggle.toggled and tycoonButtons do
- if tycoon.PurchasedObjects:FindFirstChild("start") then
- for _,v in pairs(tycoon.PurchasedObjects.start:GetChildren()) do
- if v.Name:match("Collect") and v:FindFirstChild("Head") and v.Head:FindFirstChild("TouchInterest") then
- firetouchinterest(v.Head.TouchInterest)
- end
- end
- end
- wait(0.5)
- for _, v in pairs(tycoonButtons:GetChildren()) do
- local money = tonumber(cash.Text:match("%d+"))
- if cash.Text:lower():match("k") then
- money = money * 1000
- elseif cash.Text:lower():match("m") then
- money = money * 100000
- elseif cash.Text:lower():match("b") then
- money = money * 100000000
- elseif cash.Text:lower():match("t") then
- money = money * 100000000000
- end
- if v.Price.Value <= money and not v:FindFirstChild("Gamepass") then
- firetouchinterest(v.Head.TouchInterest)
- end
- end
- end
- end
- end
- function killAll()
- if LocalPlayer.Character and not LocalPlayer.Character:FindFirstChild("Blaster") then
- LocalPlayer.Character.Humanoid:EquipTool(LocalPlayer.Backpack:FindFirstChild("Blaster"))
- else
- error("Unable to loopkill- blaster not found")
- return
- end
- print("firing...")
- for _, p in pairs(game:GetService("Players"):GetPlayers()) do
- if p ~= LocalPlayer and p.Character then
- -- Script generated by SimpleSpy - You should use it too! 🙃 - also by exxtremewa#9394
- local args = {
- [1] = LocalPlayer.Character.Blaster,
- [2] = LocalPlayer,
- [3] = p.Character.Humanoid,
- [4] = p.Character.Head,
- [5] = 999999,
- [6] = {
- [6] = LocalPlayer.Character.Blaster["GunScript_Server"].IcifyScript,
- [2] = 0,
- [8] = 100,
- [3] = false,
- [1] = 0,
- [4] = false,
- [5] = LocalPlayer.Character.Blaster["GunScript_Server"].IgniteScript,
- [7] = 100,
- },
- [7] = {
- [1] = false,
- [2] = 5,
- [3] = 3,
- },
- [8] = p.Character.Head,
- [9] = {
- [2] = {
- [1] = 1930359546,
- },
- [3] = 1,
- [1] = false,
- [4] = 1,
- [5] = LocalPlayer.Character.Blaster["GunScript_Local"].GoreEffect,
- },
- [10] = 0.8,
- }
- game:GetService("ReplicatedStorage").InflictTarget:InvokeServer(unpack(args))
- end
- end
- wait(0.5)
- LocalPlayer.Character.Humanoid:UnequipTools()
- end
- local settings = {
- theme = {
- images = {
- open_ui_icon = "rbxassetid://4521836217",
- close_ui_icon = "rbxassetid://4510354080",
- },
- colors = {
- ["primary color"] = Color3.fromRGB(0, 81, 255),
- ["secondary color"] = Color3.fromRGB(37, 41, 43),
- ["drag click"] = Color3.fromRGB(92, 131, 182),
- ["on color"] = Color3.fromRGB(48, 255, 162),
- ["exit click"] = Color3.fromRGB(255, 50, 50),
- ["text color"] = Color3.fromRGB(255, 255, 255)
- },
- font = "SourceSans",
- hotkey = Enum.KeyCode.RightShift
- }
- }
- local module = loadstring(game:HttpGet("https://pastebin.com/raw/y0iyJTiN"))()(settings)
- local library = module:init()
- local window = library:create("window", "<bold>Death Star Tycoon Autofarm", {
- resizable = false,
- default_position = UDim2.new(0, 0, 0, 250),
- default_size = UDim2.new(0, 220, 0, 80)
- }
- )
- local column = window:create("column", 150);
- toggle = column:create("toggle", "Toggle Autofarm", false, loopBuy)
- local kill = column:create("button", "Click to kill others", killAll)
Add Comment
Please, Sign In to add comment