Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 27/2/2020: AUTOHOTKEY RULES!!! --
- EVERYTHING = {
- }
- EVERYTHING_FOLDER = Instance.new("Folder")
- EVERYTHING_FOLDER.Name = "EVERYTHING"
- EVERYTHING_FOLDER.Parent = workspace
- function scan2(tab,par)
- if type(tab) == 'table' then
- for i,p in pairs(tab) do
- local pp = nil
- local isa = p[1]
- if (isa == "Part" or isa == "TrussPart" or isa == "WedgePart" or isa == "CornerWedgePart" or isa == "MeshPart" or isa == "UnionOperation") and isa ~= "Terrain" then
- pp = Instance.new(p[1])
- pp.Name = p[2]
- pp.Color = p[3]
- pp.Material = p[4]
- pp.Reflectance = p[5]
- pp.Transparency = p[6]
- pp.Anchored = p[7]
- pp.CanCollide = p[8]
- if pp:IsA("Part") then
- pp.Shape = p[9]
- pp.Size = p[10]
- pp.CFrame = p[11]
- elseif pp:IsA("MeshPart") then
- --pp.MeshId = p[9] -- no script access ?
- pp.TextureID = p[10]
- pp.Size = p[11]
- pp.CFrame = p[12]
- end
- elseif isa == "BlockMesh" or isa == "CylinderMesh" or isa == "SpecialMesh" then
- pp = Instance.new(p[1])
- pp.Name = p[2]
- pp.Scale = p[3]
- pp.VertexColor = p[4]
- if pp:IsA("SpecialMesh") then
- pp.MeshType = p[5]
- pp.MeshId = p[6]
- pp.TextureId = p[7]
- end
- elseif isa == "Decal" or isa == "Texture" then
- pp = Instance.new(p[1])
- pp.Name = p[2]
- pp.Texture = p[3]
- pp.Transparency = p[4]
- pp.Face = p[5]
- if pp:IsA("Texture") then
- pp.StudsPerTileU = p[6]
- pp.StudsPerTileV = p[7]
- end
- elseif isa == "SurfaceGui" or isa == "BillboardGui" then
- pp = Instance.new(p[1])
- pp.Name = p[2]
- pp.AlwaysOnTop = p[3]
- if pp:IsA("BillboardGui") then
- pp.Size = p[4]
- pp.SizeOffset = p[5]
- pp.StudsOffset = p[6]
- elseif pp:IsA("SurfaceGui") then
- pp.Face = p[4]
- end
- elseif isa == "PointLight" then
- pp = Instance.new(p[1])
- pp.Name = p[2]
- pp.Brightness = p[3]
- pp.Color = p[4]
- pp.Range = p[6]
- elseif isa == "SpotLight" or isa == "SurfaceLight" then
- pp = Instance.new(p[1])
- pp.Name = p[2]
- pp.Brightness = p[3]
- pp.Color = p[4]
- pp.Range = p[5]
- pp.Angle = p[6]
- pp.Face = p[7]
- elseif isa == "Fire" or isa == "Sparkles" or isa == "Smoke" then
- pp = Instance.new(p[1])
- pp.Name = p[2]
- pp.Color = p[3]
- if pp:IsA("Fire") then
- pp.SecondaryColor = p[4]
- pp.Size = p[5]
- pp.Heat = p[6]
- elseif pp:IsA("Smoke") then
- pp.Opacity = p[4]
- pp.Size = p[5]
- pp.RiseVelocity = p[6]
- end
- elseif isa == "Model" or isa == "Folder" or isa == "LuaSourceContainer" then
- pp = Instance.new(p[1])
- pp.Name = p[2]
- end
- if pp then
- pp.Parent = par
- scan2(p.CH, pp) -- childrens, the parent of those children
- end
- end
- end
- end
- scan2(EVERYTHING, EVERYTHING_FOLDER)
- game.ChangeHistoryService:SetWaypoint("AUTOHOTKEY RULES")
Add Comment
Please, Sign In to add comment