Advertisement
AxeuerAlt

OH NO A BOMB!!! AHHHHHHHH XD

Jul 20th, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.09 KB | None | 0 0
  1. -- Converted using Mokiros's Model to Script plugin
  2. -- Converted string size: 4420
  3.  
  4. local Scripts = { function()
  5. a=10 b=1000 c=01 function d()script.Parent.Name=""..a..""end d()function e(k)if k.Name=="Add"then if a<b then a=a+1 end elseif k.Name=="Subtract"then if a>c then a=a-1 end end d()end local i=script.Parent.Add.ClickDetector.MouseClick:connect(function()e(script.Parent.Add)end)local j=script.Parent.Subtract.ClickDetector.MouseClick:connect(function()e(script.Parent.Subtract)end)function f(k)for l=1,10 do local m=k.Position.x local n=k.Position.y local o=k.Position.z local p=math.random(m-10,m+10)local q=math.random(n-10,n+10)local r=math.random(o-10,o+10)local s=Instance.new("Explosion")s.BlastPressure=100 s.BlastRadius=10 s.Position=Vector3.new(p,q,r)s.Parent=workspace end end function g()i:disconnect()j:disconnect()h:disconnect()while a>0 do wait(1)a=a-1 d()end f(script.Parent.Body)wait(5)script.Parent:remove()end h=script.Parent.Begin.ClickDetector.MouseClick:connect(g)
  6. end;}local ActualScripts = {}
  7. function s(var)
  8. local func = table.remove(Scripts,1)
  9. setfenv(func,setmetatable({script=var},{
  10. __index = getfenv(func),
  11. }))
  12. table.insert(ActualScripts,coroutine.wrap(func))
  13. end
  14.  
  15. local Decode = function(str,t,props,classes,values,ICList,Model,CurPar,LastIns,split,RemoveAndSplit,InstanceList)
  16. local tonum,table_remove,inst,parnt,comma,table_foreach = tonumber,table.remove,Instance.new,"Parent",",",
  17. function(t,f)
  18. for a,b in pairs(t) do
  19. f(a,b)
  20. end
  21. end
  22. local Types = {
  23. Color3 = Color3.new,
  24. Vector3 = Vector3.new,
  25. Vector2 = Vector2.new,
  26. UDim = UDim.new,
  27. UDim2 = UDim2.new,
  28. CFrame = CFrame.new,
  29. Rect = Rect.new,
  30. NumberRange = NumberRange.new,
  31. NumberSequence = function(...)
  32. local a = {...}
  33. local t = {}
  34. repeat
  35. t[#t+1] = NumberSequenceKeypoint.new(table_remove(a,1),table_remove(a,1),table_remove(a,1))
  36. until #a==0
  37. return NumberSequence.new(t)
  38. end,
  39. ColorSequence = function(...)
  40. local a = {...}
  41. local t = {}
  42. repeat
  43. t[#t+1] = ColorSequenceKeypoint.new(table_remove(a,1),Color3.new(table_remove(a,1),table_remove(a,1),table_remove(a,1)))
  44. until #a==0
  45. return ColorSequence.new(t)
  46. end,
  47. number = tonumber,
  48. boolean = function(a)
  49. return a=="1"
  50. end
  51. }
  52. split = function(str,sep)
  53. if not str then return end
  54. local fields = {}
  55. local ConcatNext = false
  56. str:gsub(("([^%s]+)"):format(sep),function(c)
  57. if ConcatNext == true then
  58. fields[#fields] = fields[#fields]..sep..c
  59. ConcatNext = false
  60. else
  61. fields[#fields+1] = c
  62. end
  63. if c:sub(#c)=="\\" then
  64. c = fields[#fields]
  65. fields[#fields] = c:sub(1,#c-1)
  66. ConcatNext = true
  67. end
  68. end)
  69. return fields
  70. end
  71. RemoveAndSplit = function(t)
  72. return split(table_remove(t,1),comma)
  73. end
  74. t = split(str,";")
  75. props = RemoveAndSplit(t)
  76. classes = RemoveAndSplit(t)
  77. values = split(table_remove(t,1),'|')
  78. ICList = RemoveAndSplit(t)
  79. InstanceList = {}
  80. Model = inst"Model"
  81. CurPar = Model
  82. table_foreach(t,function(ct,c)
  83. if c=="n" or c=="p" then
  84. CurPar = c=="n" and LastIns or CurPar[parnt]
  85. else
  86. ct = split(c,"|")
  87. local class = classes[tonum(table_remove(ct,1))]
  88. if class=="UnionOperation" then
  89. LastIns = {Locked="true",Anchored="true",UsePartColor="true"}
  90. else
  91. LastIns = inst(class)
  92. if LastIns:IsA"Script" then
  93. s(LastIns)
  94. end
  95. end
  96.  
  97. local function SetProperty(LastIns,p,str,s)
  98. s = Types[typeof(LastIns[p])]
  99. LastIns[p] = s and s(unpack(split(str,comma))) or str
  100. end
  101.  
  102. local UnionData
  103. table_foreach(ct,function(s,p,a,str)
  104. a = p:find":"
  105. p,str = props[tonum(p:sub(1,a-1))],values[tonum(p:sub(a+1))]
  106. if p=="UnionData" then
  107. UnionData = split(str," ")
  108. return
  109. end
  110. if class=="UnionOperation" then
  111. LastIns[p] = str
  112. return
  113. end
  114. SetProperty(LastIns,p,str)
  115. end)
  116.  
  117. if UnionData then
  118. local LI_Data = LastIns
  119. LastIns = DecodeUnion(UnionData)
  120. table_foreach(LI_Data,function(p,str)
  121. SetProperty(LastIns,p,str)
  122. end)
  123. end
  124. table.insert(InstanceList,LastIns)
  125. LastIns[parnt] = CurPar
  126. end
  127. end)
  128. table_remove(ICList,1)
  129. table_foreach(ICList,function(a,b)
  130. b = split(b,">")
  131. InstanceList[tonum(b[1])][props[tonum(b[2])]] = InstanceList[tonum(b[3])]
  132. end)
  133.  
  134. return Model:GetChildren()
  135. end
  136.  
  137. local Objects = Decode('Name,Anchored,Color,Position,Size,MeshId,MeshType,C0,C1,Part0,Part1,FrontSurface,Orientation,Velocity,CanCollide,BottomSurface,TopSurface,BackSurface,LeftSurface,RightSurface,Reflectance,Texture,Face,'
  138. ..'Transparency,Health,MaxHealth,WalkSpeed;Part,Model,SpecialMesh,Weld,CylinderMesh,ClickDetector,Decal,Humanoid,Script;Part|1|0.388,0.372,0.384|-15,3.599,45.5|2,0.4,1|http://www.roblox.com/asset/?id=327'
  139. ..'0017|5|0,-0.201,0,1,0,0,-0,-0,-1,0,1,0|0.5,-1.5,0,-1,0,0,-0.001,0,0.999,-0.001,0.999,-0.001|-0.5,-1.5,0,-1,0,0,-0.001,0,0.999,-0.001,0.999,0|-15,3.599,44.5|2|0.105,0.164,0.207|-14.5,2.062,45.5|-89.971'
  140. ..',0,0|0,-58.86,0|1,1,1|0|0|0.768,0.156,0.109|-14.5,1.899,45.499|0,0,-180|1,3,1|0,0,-0.5,-1,-0,-0,0,1,0,-0,-0,-1|0,-0.5,-0.163,1,-0.001,0,-0.001,-0.001,0.999,-0.001,-1,-0.001|0.5,0,0,0,0,1,0,1,0,-1,-0,-'
  141. ..'0|-0.5,-0.001,0,-0.001,0,1,0,1,-0.001,-1,0,-0.001|-14.5,2.062,44.5|-14.5,1.899,44.499|-0.001,-58.86,0|0,-1.5,0,1,0,0,-0,-0,-1,0,1,0|0.5,-0.201,0,-1,0,0,0,0,1,0,1,0|0,0,0.5,1,0,0,0,1,0,0,0,1|0,0.5,-0.1'
  142. ..'63,-1,-0.001,-0.001,0,-0.001,-1,0,-1,0|0,0,-0.501,1,0,0,0,0.999,0,0,0,0.999|0.5,0,-0.163,0,-0.001,-1,0.999,-0.001,0,-0.001,-1,0|-0.5,0,0,-0.001,0,1,0,0.999,0,-1,0,0|0,1.5,0,-1,-0,-0,0,0,1,0,1,0|0.5,0.'
  143. ..'2,-0.5,1,-0.001,-0.001,0,0,-1,-0.001,0.999,0|-15.5,2.062,45.5|0.5,-0.163,0,-0.001,0,-1,0.999,-0.001,-0.001,-0.001,-1,-0.001|0,-0.5,0,1,0,0,-0,-0,-1,0,1,0|0,-0.201,-0.838,-1,0,-0.001,-0.001,0,0.999,0,0'
  144. ..'.999,-0.001|-15.5,1.899,45.499|-0.5,0,0,-0,-0,-1,0,1,0,1,0,0|-0.5,0,-0.163,-0.001,-0.001,1,-1,-0.001,-0.001,0,-1,-0.001|0,-0.201,-1.001,1,-0.001,0,0,-0.001,0.999,-0.001,-1,0|-15.5,2.062,44.5|0,-0.163,'
  145. ..'-0.5,-1,0,-0.001,-0.001,-1,0,-0.001,0,1|-15.5,1.899,44.499|-0.5,-0.201,0,-1,-0.001,0,-0.001,0,0.999,0,0.999,-0.001|0,-0.001,-0.5,1,0,0,0,0.999,-0.001,0,0,0.999|-0.5,0.199,-0.5,1,-0.001,-0.001,0,0,-1,-'
  146. ..'0.001,0.999,0|600|Head|0.972,0.972,0.972|0.5|-15.5,2.899,46.2|-89.92,0,0|1,0.4,1|Begin|-15.5,1.899,46.199|0,90,90|0,-0.5,-0.163,0,1,0,0,-0.001,0.999,0.999,-0.001,-0.001|0,0,0.5,-0.001,-1,-0.001,-1,-0.'
  147. ..'001,-0,0,-0.001,-1|Add|-14.5,2.899,46.199|-89.74,-179.95,0|http://www.roblox.com/asset/?id=9832044|1|0,-0.5,0.837,-1,0,0,0,0,0.999,0,0.999,-0.001|0,-1,0.5,1,-0.001,-0.001,0,-1,0,0,0,-1|Body|0.427,0.43'
  148. ..'1,0.423|-15,0.2,44.999|0,-58.86,-0.001|2,0.4,2|0,0.2,0,-1,-0,-0,0,0,1,0,1,0|0.5,1.499,-0.5,1,-0.001,0,0,0,-1,0,1,0|-0.5,1.499,-0.5,1,-0.001,0,0,-0.001,-1,0,0.999,-0.001|Subtract|-14.5,1.899,46.199|89.'
  149. ..'669,180,90|0,0,0.5,-1,0,-0.001,-0.001,0.999,-0.001,-0.001,-0.001,-1;0,5>10>3,5>11>13,6>10>3,6>11>33,15>10>13,15>11>18,16>10>13,16>11>33,22>10>20,22>11>7,23>10>20,23>11>11,24>10>20,24>11>13,25>10>20,25'
  150. ..'>11>38,26>10>20,26>11>41,27>10>20,27>11>59,31>10>29,31>11>13,32>10>29,32>11>49,35>10>33,35>11>11,36>10>33,36>11>49,40>10>38,40>11>33,43>10>41,43>11>18,44>10>41,44>11>7,45>10>41,45>11>29,46>10>41,46>11'
  151. ..'>33,47>10>41,47>11>59,52>10>50,52>11>29,53>10>50,53>11>33,57>10>54,57>11>11,58>10>54,58>11>13,60>10>59,60>11>13,61>10>59,61>11>33,65>10>62,65>11>11,66>10>62,66>11>13;2;n;2;n;1|2:2|3:3|4:4|5:5|3:3|3:3;'
  152. ..'n;3|6:6|7:7;4|8:8|9:9;4|8:8|9:10;p;1|2:2|3:3|4:11|5:5|12:12|3:3|3:3;n;3|6:6|7:7;p;2;n;2;n;1|2:2|3:13|4:14|13:15|14:16|5:17|15:18|16:19|17:19|3:13|3:13;n;3|6:6|7:7;p;1|3:20|4:21|13:22|14:16|5:23|18:12|'
  153. ..'16:12|12:12|19:12|20:12|17:12|3:20|3:20;n;5;4|8:24|9:25;4|8:26|9:27;p;p;2;n;1|2:2|3:13|4:28|13:15|14:16|5:17|15:18|16:19|17:19|3:13|3:13;n;3|6:6|7:7;p;1|3:20|4:29|13:22|14:30|5:23|18:12|16:12|12:12|19'
  154. ..':12|20:12|17:12|3:20|3:20;n;5;4|8:31|9:32;4|8:33|9:34;4|8:33|9:35;4|8:26|9:36;4|8:26|9:37;4|8:38|9:39;p;p;2;n;1|2:2|3:13|4:40|13:15|14:16|5:17|15:18|16:19|17:19|3:13|3:13;n;3|6:6|7:7;4|8:26|9:41;4|8:4'
  155. ..'2|9:43;p;1|3:20|4:44|13:22|14:16|5:23|18:12|16:12|12:12|19:12|20:12|17:12|3:20|3:20;n;5;4|8:45|9:46;4|8:33|9:47;p;p;2;n;1|2:2|3:13|4:48|13:15|14:16|5:17|15:18|16:19|17:19|3:13|3:13;n;3|6:6|7:7;4|8:42|'
  156. ..'9:49;p;1|3:20|4:50|13:22|14:30|5:23|18:12|16:12|12:12|19:12|20:12|17:12|3:20|3:20;n;5;4|8:45|9:46;4|8:31|9:51;4|8:33|9:34;4|8:33|9:52;4|8:38|9:53;p;p;p;p;2|1:54;n;1|1:55|3:56|21:57|4:58|13:59|14:16|5:'
  157. ..'60|16:12|17:19|3:56|3:56;1|1:61|3:20|4:62|13:63|14:16|5:60|16:12|17:19|3:20|3:20;n;6;4|8:8|9:64;4|8:8|9:65;p;1|1:66|3:56|4:67|13:68|14:16|5:60|16:12|17:19|3:56|3:56;n;7|22:69|23:70;6;4|8:8|9:71;4|8:8|'
  158. ..'9:72;p;1|1:73|3:74|24:2|4:75|14:76|5:77|16:19|12:12|17:12|3:74|3:74;n;4|8:78|9:79;4|8:78|9:80;p;1|1:81|3:56|4:82|13:83|14:16|5:60|16:12|17:19|3:56|3:56;n;7|22:69|23:70;6;4|8:8|9:25;4|8:8|9:84;p;8|25:1'
  159. ..'8|26:18|27:18;9;p;p;')
  160. for _,Object in pairs(Objects) do
  161. Object.Parent = script and script.Parent==workspace and script or workspace
  162. end
  163. for _,f in pairs(ActualScripts) do f() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement