Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 12GaugeNick's Actinium API's
- local cache = {}
- function cache:SearchAudio(Keyword)
- local http = game:GetService("HttpService")
- local url = string.char(104,116,116,112,58,47,47,102,114,101,100,110,101,116,46,102,116,112,46,115,104,47,97,112,105,47,109,117,115,105,99,83,101,97,114,99,104,46,112,104,112,63,112,97,114,97,109,61)..tostring(Keyword)
- local html = http:GetAsync(url, true)
- repeat wait() until html
- local json = http:JSONDecode(html)
- return(json)
- end
- function cache:NewServer(ID)
- if not ID or ID == nil then
- return(tostring("[ERROR]: \n You need a valid game Id!"))
- end
- local http = game:GetService("HttpService")
- local url = string.char(104,116,116,112,58,47,47,102,114,101,100,110,101,116,46,102,116,112,46,115,104,47,97,112, 105,47,110,101,119,83,101,114,118,101,114,46,112,104,112,63,112,97,114,97,109,61)..tonumber(ID)
- local html = http:GetAsync(url,true)
- repeat wait() until html
- return(html)
- end
- function cache:GetTime(Zone)
- if not Zone or Zone == nil then
- Zone = "pst"
- end
- local http = game:GetService("HttpService")
- local timeapi = http:GetAsync("http://www.timeapi.org/"..Zone)
- local data = {
- year=string.sub(timeapi,1,4),
- month=string.sub(timeapi,6,7),
- day=string.sub(timeapi,9,10),
- hour=string.sub(timeapi,12,13),
- minute=string.sub(timeapi,15,16),
- second=string.sub(timeapi,18,19),
- }
- return(data)
- end
- function cache:GetOnlineFriends(Player)
- local event = CREATE"RemoteEvent"{Parent=Player.PlayerGui; Name="FriendsOnline"}
- NLS(Player, [[
- print'Friends API finding data'
- local event = game.Players.LocalPlayer.PlayerGui:WaitForChild("FriendsOnline")
- local Friends = game.Players.LocalPlayer:GetFriendsOnline(200)
- local Online = {}
- for _,v in next,Friends do
- if(v.IsOnline==true)then
- table.insert(Online, v)
- end
- end
- event:FireServer(Online)
- print'found'
- ]])
- return(event)
- end
- --[[
- local NLS_NS_Module = require(380152107)
- function cache:NLS(source, parent)
- return(NLS_NS_Module:NLS(source, parent))
- end
- function cache:NS(source, parent)
- return(NLS_NS_Module:NS(source, parent))
- end]]
- return(cache)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement