Skip to content

Instantly share code, notes, and snippets.

@ImNotABotIPromise
Created September 12, 2021 09:39
Show Gist options
  • Save ImNotABotIPromise/6c15daa0ee52423e73ce2a679a9abf03 to your computer and use it in GitHub Desktop.
Save ImNotABotIPromise/6c15daa0ee52423e73ce2a679a9abf03 to your computer and use it in GitHub Desktop.
local App = loadstring(game:HttpGet("https://pastebin.com/raw/KU8iBSH3"))()
local LocalPlayer = game:GetService("Players").LocalPlayer
App, Gui = App.Load({
Name = "A Universal Time";
Title = "A Universal Time";
})
local Items = App.New({
Title = "Spawns";
Active = true;
})
local Names = {
["StandardItems"] = "Standard Item",
["Chests"] = "Chest",
["Meteors"] = "Meteor",
["JotaroKujo"] = "Jotaro Kujo"
}
for _,ItemSpawn in pairs(workspace.ItemSpawns:GetChildren()) do
if ItemSpawn.Name ~= "DIO Boss" and ItemSpawn.Name ~= "Sand Debris" then
local Label = Items.Label((Names[ItemSpawn.Name] or ItemSpawn.Name) .. ": 0")
Items.Button({
Title = (Names[ItemSpawn.Name] or ItemSpawn.Name)
}, function()
for _,ItemSpawn2 in pairs(ItemSpawn:GetChildren()) do
if #ItemSpawn2:GetChildren() >= 1 then
LocalPlayer.Character.HumanoidRootPart.CFrame = ItemSpawn2.CFrame
break
end
end
end)
for _,Spawn in pairs(ItemSpawn:GetChildren()) do
spawn(function()
local Count = 0
for _,Spawn in pairs(ItemSpawn:GetChildren()) do
Count += #Spawn:GetChildren()
end
Label:SetText((Names[ItemSpawn.Name] or ItemSpawn.Name) .. ": " .. Count)
end)
Spawn.ChildAdded:Connect(function(obj)
if Gui then
spawn(function()
local Count = 0
for _,Spawn in pairs(ItemSpawn:GetChildren()) do
Count += #Spawn:GetChildren()
end
Label:SetText((Names[ItemSpawn.Name] or ItemSpawn.Name) .. ": " .. Count)
end)
end
end)
Spawn.ChildRemoved:Connect(function(obj)
if Gui then
spawn(function()
local Count = 0
for _,Spawn in pairs(ItemSpawn:GetChildren()) do
Count += #Spawn:GetChildren()
end
Label:SetText((Names[ItemSpawn.Name] or ItemSpawn.Name) .. ": " .. Count)
end)
end
end)
end
end
end
local Settings = App.New({
Title = "Settings";
})
Settings.Button({
Title = "Destroy";
}, function()
Gui:Destroy()
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment