Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local getrenv = getrenv
- getrenv().randomString = function(length)
- local chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+-={}|[]`~'
- local randomString = ''
- math.randomseed(tick())
- local charTable = {}
- for c in chars:gmatch"." do
- table.insert(charTable, c)
- end
- for i = 1, length do
- randomString = randomString .. charTable[math.random(1, #charTable)]
- end
- return randomString
- end
- getrenv().getCharacterPosition = function()
- return game.Players.LocalPlayer.Character.HumanoidRootPart.Position
- end
- getrenv().teleportToPosition = function(position)
- game.Players.LocalPlayer.Character.HumanoidRootPart.Position = position
- end
- getrenv().getURLData = function(url)
- local json = game:HttpGet(url)
- local lua = game:GetService('HttpService'):JSONDecode(json)
- return lua
- end
- getrenv().executeRawUrl = function(url)
- loadstring(game:HttpGet(url))()
- end
- getrenv().randomNumberBetweenRange = function(t,k)
- return math.random(t,k)
- end
- getrenv().isProperty = function(object, property)
- if object[property] then
- return true
- end
- return false
- end
- getrenv().getProperties = function(object)
- local ClassProperties do
- ClassProperties = {}
- local HttpService = game:GetService("HttpService")
- local Data = HttpService:JSONDecode(game:HttpGet("https://pastebin.com/raw/rr431Jm7"))
- for i = 1, #Data do
- local Table = Data[i]
- local Type = Table.type
- if Type == "Class" then
- local ClassData = {}
- local Superclass = ClassProperties[Table.Superclass]
- if Superclass then
- for j = 1, #Superclass do
- ClassData[j] = Superclass[j]
- end
- end
- ClassProperties[Table.Name] = ClassData
- elseif Type == "Property" then
- if not next(Table.tags) then
- local Class = ClassProperties[Table.Class]
- local Property = Table.Name
- local Inserted
- for j = 1, #Class do
- if Property < Class[j] then
- Inserted = true
- table.insert(Class, j, Property)
- break
- end
- end
- if not Inserted then
- table.insert(Class, Property)
- end
- end
- elseif Type == "Function" then
- elseif Type == "YieldFunction" then
- elseif Type == "Event" then
- elseif Type == "Callback" then
- elseif Type == "Enum" then
- elseif Type == "EnumItem" then
- end
- end
- end
- return ClassProperties[object]
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement