Advertisement
roblox96

spongebob morph ;)

Sep 9th, 2019
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.07 KB | None | 0 0
  1. -- Converted using Mokiros's Model to Script plugin
  2. -- Converted string size: 1703
  3. local _in_f=Instance.new local Instance = {new=function(cn,p)
  4. local i,a,b=0 repeat i=i+1 a,b=pcall(_in_f,cn,p)if not a then warn(b)wait(math.min(i,5))end until a return b end}
  5.  
  6. local Scripts = {
  7. function() local b=false function a(c)local d=c.Parent:findFirstChild("Humanoid")if(d~=nil)and b==false then b=true d.WalkSpeed=20 wait(2)b=false end end script.Parent.Touched:connect(a) end;
  8. function() function a(b)local c=b.Parent:findFirstChild("Humanoid")if c~=nil then b.Parent:findFirstChild("Head").Transparency=1 b.Parent:findFirstChild("Torso").Transparency=1 b.Parent:findFirstChild("Left Arm").Transparency=1 b.Parent:findFirstChild("Right Arm").Transparency=1 b.Parent:findFirstChild("Left Leg").CanCollide=true b.Parent:findFirstChild("Left Leg").Transparency=1 b.Parent:findFirstChild("Right Leg").CanCollide=true b.Parent:findFirstChild("Right Leg").Transparency=1 end end script.Parent.Touched:connect(a) end;
  9. function() function a(b)if b.Parent:findFirstChild("Humanoid")~=nil and b.Parent:findFirstChild("Leg1")==nil then local c=script.Parent.Parent.Leg1:clone()c.Parent=b.Parent local d=c:GetChildren()for f=1,#d do if d[f].className=="UnionOperation"or d[f].className=="Part"then local h=Instance.new("Weld")h.Part0=c.Middle h.Part1=d[f]local i=CFrame.new(c.Middle.Position)local j=c.Middle.CFrame:inverse()*i local k=d[f].CFrame:inverse()*i h.C0=j h.C1=k h.Parent=c.Middle end local g=Instance.new("Weld")g.Part0=b.Parent["Left Leg"]g.Part1=c.Middle g.C0=CFrame.new(0,0,0)g.Parent=g.Part0 end local e=c:GetChildren()for f=1,#e do e[f].Anchored=false e[f].CanCollide=false end end if b.Parent:findFirstChild("Humanoid")~=nil and b.Parent:findFirstChild("Leg2")==nil then local c=script.Parent.Parent.Leg2:clone()c.Parent=b.Parent local d=c:GetChildren()for f=1,#d do if d[f].className=="UnionOperation"or d[f].className=="Part"then local h=Instance.new("Weld")h.Part0=c.Middle h.Part1=d[f]local i=CFrame.new(c.Middle.Position)local j=c.Middle.CFrame:inverse()*i local k=d[f].CFrame:inverse()*i h.C0=j h.C1=k h.Parent=c.Middle end local g=Instance.new("Weld")g.Part0=b.Parent["Right Leg"]g.Part1=c.Middle g.C0=CFrame.new(0,0,0)g.Parent=g.Part0 end local e=c:GetChildren()for f=1,#e do e[f].Anchored=false e[f].CanCollide=false end end end script.Parent.Touched:connect(a) end;
  10. function() function a(b)local c=b.Parent:GetChildren()for d=1,#c do if(c[d].className=="Hat")then c[d].Handle.Transparency=1 end end end script.Parent.Touched:connect(a) end;
  11. function() function a(b)if b.Parent:findFirstChild("Humanoid")~=nil and b.Parent:findFirstChild("Chest")==nil then local c=script.Parent.Parent.Chest:clone()c.Parent=b.Parent local d=c:GetChildren()for f=1,#d do if d[f].className=="UnionOperation"or d[f].className=="Part"then local h=Instance.new("Weld")h.Part0=c.Middle h.Part1=d[f]local i=CFrame.new(c.Middle.Position)local j=c.Middle.CFrame:inverse()*i local k=d[f].CFrame:inverse()*i h.C0=j h.C1=k h.Parent=c.Middle end local g=Instance.new("Weld")g.Part0=b.Parent.Torso g.Part1=c.Middle g.C0=CFrame.new(0,0,0)g.Parent=g.Part0 end local e=c:GetChildren()for f=1,#e do e[f].Anchored=false e[f].CanCollide=false end end end script.Parent.Touched:connect(a) end;
  12. function() function a(b)if b.Parent:findFirstChild("Humanoid")~=nil and b.Parent:findFirstChild("Arm1")==nil then local c=script.Parent.Parent.Arm1:clone()c.Parent=b.Parent local d=c:GetChildren()for f=1,#d do if d[f].className=="UnionOperation"or d[f].className=="Part"then local h=Instance.new("Weld")h.Part0=c.Middle h.Part1=d[f]local i=CFrame.new(c.Middle.Position)local j=c.Middle.CFrame:inverse()*i local k=d[f].CFrame:inverse()*i h.C0=j h.C1=k h.Parent=c.Middle end local g=Instance.new("Weld")g.Part0=b.Parent["Left Arm"]g.Part1=c.Middle g.C0=CFrame.new(0,0,0)g.Parent=g.Part0 end local e=c:GetChildren()for f=1,#e do e[f].Anchored=false e[f].CanCollide=false end end if b.Parent:findFirstChild("Humanoid")~=nil and b.Parent:findFirstChild("Arm2")==nil then local c=script.Parent.Parent.Arm2:clone()c.Parent=b.Parent local d=c:GetChildren()for f=1,#d do if d[f].className=="UnionOperation"or d[f].className=="Part"then local h=Instance.new("Weld")h.Part0=c.Middle h.Part1=d[f]local i=CFrame.new(c.Middle.Position)local j=c.Middle.CFrame:inverse()*i local k=d[f].CFrame:inverse()*i h.C0=j h.C1=k h.Parent=c.Middle end local g=Instance.new("Weld")g.Part0=b.Parent["Right Arm"]g.Part1=c.Middle g.C0=CFrame.new(0,0,0)g.Parent=g.Part0 end local e=c:GetChildren()for f=1,#e do e[f].Anchored=false e[f].CanCollide=false end end end script.Parent.Touched:connect(a) end;
  13. function() function a(b)local c=b.Parent:GetChildren()for d=1,#c do if(c[d].className=="Accessory")then c[d]:remove()end end end script.Parent.Touched:connect(a) end;}
  14. local ActualScripts = {}
  15. function s(var)
  16. local func = table.remove(Scripts,1)
  17. setfenv(func,setmetatable({script=var},{
  18. __index = getfenv(func),
  19. }))
  20. table.insert(ActualScripts,coroutine.wrap(func))
  21. end
  22.  
  23. local Decode = function(str,t,props,classes,values,ICList,Model,CurPar,LastIns,split,RemoveAndSplit,InstanceList)
  24. local tonum,table_remove,inst,parnt,comma,table_foreach = tonumber,table.remove,Instance.new,"Parent",",",
  25. function(t,f)
  26. for a,b in pairs(t) do
  27. f(a,b)
  28. end
  29. end
  30. local Types = {
  31. Color3 = Color3.new,
  32. Vector3 = Vector3.new,
  33. Vector2 = Vector2.new,
  34. UDim = UDim.new,
  35. UDim2 = UDim2.new,
  36. CFrame = CFrame.new,
  37. Rect = Rect.new,
  38. NumberRange = NumberRange.new,
  39. NumberSequence = function(...)
  40. local a = {...}
  41. local t = {}
  42. repeat
  43. t[#t+1] = NumberSequenceKeypoint.new(table_remove(a,1),table_remove(a,1),table_remove(a,1))
  44. until #a==0
  45. return NumberSequence.new(t)
  46. end,
  47. ColorSequence = function(...)
  48. local a = {...}
  49. local t = {}
  50. repeat
  51. t[#t+1] = ColorSequenceKeypoint.new(table_remove(a,1),Color3.new(table_remove(a,1),table_remove(a,1),table_remove(a,1)))
  52. until #a==0
  53. return ColorSequence.new(t)
  54. end,
  55. number = tonumber,
  56. boolean = function(a)
  57. return a=="1"
  58. end
  59. }
  60. split = function(str,sep)
  61. if not str then return end
  62. local fields = {}
  63. local ConcatNext = false
  64. str:gsub(("([^%s]+)"):format(sep),function(c)
  65. if ConcatNext == true then
  66. fields[#fields] = fields[#fields]..sep..c
  67. ConcatNext = false
  68. else
  69. fields[#fields+1] = c
  70. end
  71. if c:sub(#c)=="\\" then
  72. c = fields[#fields]
  73. fields[#fields] = c:sub(1,#c-1)
  74. ConcatNext = true
  75. end
  76. end)
  77. return fields
  78. end
  79. RemoveAndSplit = function(t)
  80. return split(table_remove(t,1),comma)
  81. end
  82. t = split(str,";")
  83. props = RemoveAndSplit(t)
  84. classes = RemoveAndSplit(t)
  85. values = split(table_remove(t,1),'|')
  86. ICList = RemoveAndSplit(t)
  87. InstanceList = {}
  88. Model = inst"Model"
  89. CurPar = Model
  90. table_foreach(t,function(ct,c)
  91. if c=="n" or c=="p" then
  92. CurPar = c=="n" and LastIns or CurPar[parnt]
  93. else
  94. ct = split(c,"|")
  95. local class = classes[tonum(table_remove(ct,1))]
  96. if class=="UnionOperation" then
  97. LastIns = {Locked="true",Anchored="true",UsePartColor="true"}
  98. else
  99. LastIns = inst(class)
  100. if LastIns:IsA"Script" then
  101. s(LastIns)
  102. end
  103. end
  104.  
  105. local function SetProperty(LastIns,p,str,s)
  106. s = Types[typeof(LastIns[p])]
  107. LastIns[p] = s and s(unpack(split(str,comma))) or str
  108. end
  109.  
  110. local UnionData
  111. table_foreach(ct,function(s,p,a,str)
  112. a = p:find":"
  113. p,str = props[tonum(p:sub(1,a-1))],values[tonum(p:sub(a+1))]
  114. if p=="UnionData" then
  115. UnionData = split(str," ")
  116. return
  117. end
  118. if class=="UnionOperation" then
  119. LastIns[p] = str
  120. return
  121. end
  122. SetProperty(LastIns,p,str)
  123. end)
  124.  
  125. if UnionData then
  126. local LI_Data = LastIns
  127. LastIns = DecodeUnion(UnionData)
  128. table_foreach(LI_Data,function(p,str)
  129. SetProperty(LastIns,p,str)
  130. end)
  131. end
  132. table.insert(InstanceList,LastIns)
  133. LastIns[parnt] = CurPar
  134. end
  135. end)
  136. table_remove(ICList,1)
  137. table_foreach(ICList,function(a,b)
  138. b = split(b,">")
  139. InstanceList[tonum(b[1])][props[tonum(b[2])]] = InstanceList[tonum(b[3])]
  140. end)
  141.  
  142. return Model:GetChildren()
  143. end
  144.  
  145. local Objects = Decode('Name,Anchored,Color,Material,Position,Orientation,Size,Scale,MeshId,TextureId,MeshType,Transparency,C0,C1,Part0,Health,MaxHealth,BottomSurface,TopSurface;Part,Model,SpecialMesh,Snap,Humanoid,Script;Pa'
  146. ..'rt|Spongebob|Arm1|1|0.592,0,0|1312|-7.675,2.439,-71.859|80,0,90|0.9,0.632,0.376|0.054,0.054,0.064|rbxassetid://791890397|rbxassetid://791889749|5|Middle|272|-7.584,3.255,-71.79|1,0.819,1|Leg1|-5.292,1'
  147. ..',-71.94|1,2,1|0,-1,0,1,0,0,0,0,-1,0,1,0|-49.206,10,104.948,1,0,0,0,0,-1,-0.001,1,0|-5.532,1.278,-72.345|1.08,0.589,0.286|0.057,0.058,0.068|rbxassetid://791889055|Arm2|-4.643,2.961,-71.79|1.141,0.732,1'
  148. ..'.141|-4.397,2.422,-71.806|0,0,-90|2.74,0.822,0.676|rbxassetid://791891162|Leg2|-6.982,1,-71.94|-50.896,10,104.948,1,0,0,0,0,-1,-0.001,1,0|-6.704,1.278,-72.35|Chest|-6.042,3.069,-71.94|2,2,1|-7.207,3.0'
  149. ..'49,-72.04|1,2.785,0.411|0.057,0.057,0.057|rbxassetid://791889734|0|Head|1,0,0|-6.086,0.1,-75.889|0,-180,0|4,0.2,4|0|WalkSpeed Script|Legs Do Not Change|HatRemover|Chest Do Not Change|Arms Do Not Chang'
  150. ..'e!;0,8>15>7,17>15>16;2|1:2;n;2|1:3;n;1|2:4|3:5|4:6|5:7|6:8|7:9|3:5|3:5;n;3|8:10|9:11|10:12|11:13;p;1|1:14|2:4|4:15|12:4|5:16|7:17;p;2|1:18;n;1|1:14|2:4|4:15|12:4|5:19|7:20;n;4|13:21|14:22;p;1|2:4|3:5|'
  151. ..'4:6|5:23|7:24|3:5|3:5;n;3|8:25|9:26|10:12|11:13;p;p;2|1:27;n;1|1:14|2:4|4:15|12:4|5:28|7:29;1|2:4|3:5|4:6|5:30|6:31|7:32|3:5|3:5;n;3|8:25|9:33|10:12|11:13;p;p;2|1:34;n;1|1:14|2:4|4:15|12:4|5:35|7:20;n'
  152. ..';4|13:21|14:36;p;1|2:4|3:5|4:6|5:37|7:24|3:5|3:5;n;3|8:25|9:26|10:12|11:13;p;p;2|1:38;n;1|1:14|2:4|4:15|12:4|5:39|7:40;1|2:4|3:5|4:6|5:41|7:42|3:5|3:5;n;3|8:43|9:44|10:12|11:13;p;p;5|16:45|17:45;1|1:4'
  153. ..'6|2:4|3:47|4:15|5:48|6:49|7:50|18:51|19:51|3:47|3:47;n;6|1:52;6;6|1:53;6|1:54;6|1:55;6|1:56;6|1:54;p;p;')
  154. for _,Object in pairs(Objects) do
  155. Object.Parent = script and script.Parent==workspace and script or workspace
  156. end
  157. for _,f in pairs(ActualScripts) do f() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement