Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Converted using Mokiros's Model to Script plugin
- -- Converted string size: 1486
- local genv={}
- Decode = function(str,t,props,classes,values,ICList,Model,CurPar,LastIns,split,RemoveAndSplit,InstanceList)
- local tonum,table_remove,inst,parnt,comma,table_foreach = tonumber,table.remove,Instance.new,"Parent",",",
- function(t,f)
- for a,b in pairs(t) do
- f(a,b)
- end
- end
- local Types = {
- Color3 = Color3.new,
- Vector3 = Vector3.new,
- Vector2 = Vector2.new,
- UDim = UDim.new,
- UDim2 = UDim2.new,
- CFrame = CFrame.new,
- Rect = Rect.new,
- NumberRange = NumberRange.new,
- BrickColor = BrickColor.new,
- PhysicalProperties = PhysicalProperties.new,
- NumberSequence = function(...)
- local a = {...}
- local t = {}
- repeat
- t[#t+1] = NumberSequenceKeypoint.new(table_remove(a,1),table_remove(a,1),table_remove(a,1))
- until #a==0
- return NumberSequence.new(t)
- end,
- ColorSequence = function(...)
- local a = {...}
- local t = {}
- repeat
- t[#t+1] = ColorSequenceKeypoint.new(table_remove(a,1),Color3.new(table_remove(a,1),table_remove(a,1),table_remove(a,1)))
- until #a==0
- return ColorSequence.new(t)
- end,
- number = tonumber,
- boolean = function(a)
- return a=="1"
- end
- }
- split = function(str,sep)
- if not str then return end
- local fields = {}
- local ConcatNext = false
- str:gsub(("([^%s]+)"):format(sep),function(c)
- if ConcatNext == true then
- fields[#fields] = fields[#fields]..sep..c
- ConcatNext = false
- else
- fields[#fields+1] = c
- end
- if c:sub(#c)=="\\" then
- c = fields[#fields]
- fields[#fields] = c:sub(1,#c-1)
- ConcatNext = true
- end
- end)
- return fields
- end
- RemoveAndSplit = function(t)
- return split(table_remove(t,1),comma)
- end
- t = split(str,";")
- props = RemoveAndSplit(t)
- classes = RemoveAndSplit(t)
- values = split(table_remove(t,1),'|')
- ICList = RemoveAndSplit(t)
- InstanceList = {}
- Model = inst"Model"
- CurPar = Model
- table_foreach(t,function(ct,c)
- if c=="n" or c=="p" then
- CurPar = c=="n" and LastIns or CurPar[parnt]
- else
- ct = split(c,"|")
- local class = classes[tonum(table_remove(ct,1))]
- if class=="UnionOperation" then
- LastIns = {UsePartColor="1"}
- else
- LastIns = inst(class)
- if LastIns:IsA"Script" then
- s(LastIns)
- elseif LastIns:IsA("ModuleScript") then
- ms(LastIns)
- end
- end
- local function SetProperty(LastIns,p,str,s)
- s = Types[typeof(LastIns[p])]
- if p=="CustomPhysicalProperties" then
- s = PhysicalProperties.new
- end
- if s then
- LastIns[p] = s(unpack(split(str,comma)))
- else
- LastIns[p] = str
- end
- end
- local UnionData
- table_foreach(ct,function(s,p,a,str)
- a = p:find":"
- p,str = props[tonum(p:sub(1,a-1))],values[tonum(p:sub(a+1))]
- if p=="UnionData" then
- UnionData = split(str," ")
- return
- end
- if class=="UnionOperation" then
- LastIns[p] = str
- return
- end
- SetProperty(LastIns,p,str)
- end)
- if UnionData then
- local LI_Data = LastIns
- LastIns = DecodeUnion(UnionData)
- table_foreach(LI_Data,function(p,str)
- SetProperty(LastIns,p,str)
- end)
- end
- table.insert(InstanceList,LastIns)
- LastIns[parnt] = CurPar
- end
- end)
- table_remove(ICList,1)
- table_foreach(ICList,function(a,b)
- b = split(b,">")
- InstanceList[tonum(b[1])][props[tonum(b[2])]] = InstanceList[tonum(b[3])]
- end)
- return Model:GetChildren()
- end
- local Objects = Decode('Name,PrimaryPart,Position,Size,C0,C1,Part1,Part0,Transparency,CanCollide;Part,Model,MeshPart,Weld,Motor6D,Humanoid;Part|Siren Head_Head|-25.2013,49.3607,191.8819|7.184,10.5947,7.1423|Siren Head_Left A'
- ..'rm|-22.0006,43.1199,210.7315|1.8849,2.39,27.2099|Siren Head_Left Leg|-21.7706,16.3849,195.2315|3.815,32.75,2.443|-16.4001,0.6,32,-1,0,0,0,0,1,0,1,-0|62.9309,-16.359,12.348,-0.0001,1,0,0,0,1,1,0,0|-16.'
- ..'0001,0.5,4,-1,0,0,0,0,1,0,1,-0|-1.0691,-16.359,11.948,0,1,0,0,0,1,1,0,0|Siren Head_Right Arm|-22.0007,42.7349,177.1915|1.8847,3.8,27.2099|Siren Head_Right Leg|-21.7706,16.3849,192.1215|3.8153,32.7499,'
- ..'2.2432|-1.0691,-16.359,15.058,0,1,0,0,0,1,1,0,0|Siren Head_Torso|-22.1209,37.8096,193.9967|4.7387,13.6547,7.2275|0.3502,-5.9386,1.2347,1,0,0,0,1,0,0,0,1|0,15.4861,0,1,0,0,0,1,0,0,0,1|-0.9289,6.5405,-1'
- ..'.0787,1,0,0,0,1,0,0,0,1|2.1515,-5.0106,1.0361,1,0,0,0,1,0,0,0,1|0.1202,4.9252,-3.4071,1,0,0,0,1,0,0,0,1|0,0,13.3982,1,0,0,0,1,0,0,0,1|0.3502,-5.9386,-1.8753,1,0,0,0,1,0,0,0,1|0.1202,5.3102,3.3717,1,0,'
- ..'0,0,1,0,0,0,1|0,0,-13.363,1,0,0,0,1,0,0,0,1|HumanoidRootPart|1|0|AnimSaves;0,2>2>17,6>7>5,7>7>5,10>7>9,12>8>11,12>7>5,13>8>11,13>7>3,14>8>11,14>7>8,15>8>11,15>7>9,16>8>11,16>7>4,18>8>17,18>7>11;2;n;2;'
- ..'n;3|1:2|3:3|4:4;3|1:5|3:6|4:7;3|1:8|3:9|4:10;n;4|5:11|6:12;4|5:13|6:14;p;3|1:15|3:16|4:17;3|1:18|3:19|4:20;n;4|5:13|6:21;p;3|1:22|3:23|4:24;n;5|1:8|5:25|6:26;5|1:2|5:27|6:28;5|1:15|5:29|6:30;5|1:18|5:'
- ..'31|6:26;5|1:5|5:32|6:33;p;3|1:34|9:35|3:23|4:24|10:36;n;5|1:22;p;6;n;p;2|1:37;n;p;p;p;')
- for _,Object in pairs(Objects) do
- Object.Parent = script and script.Parent==workspace and script or workspace
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement