Advertisement
VoidScript

Wreath

Sep 4th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.33 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Model1 = Instance.new("Model")
  21. Part2 = Instance.new("Part")
  22. Part3 = Instance.new("Part")
  23. Part4 = Instance.new("Part")
  24. Part5 = Instance.new("Part")
  25. Part6 = Instance.new("Part")
  26. Part7 = Instance.new("Part")
  27. Part8 = Instance.new("Part")
  28. Part9 = Instance.new("Part")
  29. Part10 = Instance.new("Part")
  30. Part11 = Instance.new("Part")
  31. Part12 = Instance.new("Part")
  32. Part13 = Instance.new("Part")
  33. Part14 = Instance.new("Part")
  34. Part15 = Instance.new("Part")
  35. Part16 = Instance.new("Part")
  36. Script17 = Instance.new("Script")
  37. Model0.Name = "Wreath"
  38. Model0.Parent = mas
  39. Model1.Name = "Torso"
  40. Model1.Parent = Model0
  41. Part2.Parent = Model1
  42. Part2.Material = Enum.Material.Neon
  43. Part2.BrickColor = BrickColor.new("Bright yellow")
  44. Part2.Rotation = Vector3.new(-51.1599998, 0, 0)
  45. Part2.Anchored = true
  46. Part2.CanCollide = false
  47. Part2.FormFactor = Enum.FormFactor.Symmetric
  48. Part2.Size = Vector3.new(0.200000003, 0.580000043, 1.17000008)
  49. Part2.CFrame = CFrame.new(-0.67009002, 3.02478695, 1.92452312, 1, 0, 0, 0, 0.62717396, 0.778879166, 0, -0.778879166, 0.62717396)
  50. Part2.BottomSurface = Enum.SurfaceType.Smooth
  51. Part2.TopSurface = Enum.SurfaceType.Smooth
  52. Part2.Color = Color3.new(0.960784, 0.803922, 0.188235)
  53. Part2.Position = Vector3.new(-0.67009002, 3.02478695, 1.92452312)
  54. Part2.Orientation = Vector3.new(-51.1599998, 0, 0)
  55. Part2.Color = Color3.new(0.960784, 0.803922, 0.188235)
  56. Part3.Parent = Model1
  57. Part3.Material = Enum.Material.Neon
  58. Part3.BrickColor = BrickColor.new("Bright yellow")
  59. Part3.Rotation = Vector3.new(-113.510002, 0, 0)
  60. Part3.Anchored = true
  61. Part3.CanCollide = false
  62. Part3.FormFactor = Enum.FormFactor.Symmetric
  63. Part3.Size = Vector3.new(0.200000003, 0.550000072, 1.11000001)
  64. Part3.CFrame = CFrame.new(-0.67009002, 4.82768297, 2.07803988, 1, 0, 0, 0, -0.398840666, 0.917020261, 0, -0.917020261, -0.398840666)
  65. Part3.BottomSurface = Enum.SurfaceType.Smooth
  66. Part3.TopSurface = Enum.SurfaceType.Smooth
  67. Part3.Color = Color3.new(0.960784, 0.803922, 0.188235)
  68. Part3.Position = Vector3.new(-0.67009002, 4.82768297, 2.07803988)
  69. Part3.Orientation = Vector3.new(-66.4899979, 180, 180)
  70. Part3.Color = Color3.new(0.960784, 0.803922, 0.188235)
  71. Part4.Parent = Model1
  72. Part4.Material = Enum.Material.Neon
  73. Part4.BrickColor = BrickColor.new("Bright yellow")
  74. Part4.Rotation = Vector3.new(-165.779999, 0, 0)
  75. Part4.Anchored = true
  76. Part4.CanCollide = false
  77. Part4.FormFactor = Enum.FormFactor.Symmetric
  78. Part4.Size = Vector3.new(0.200000003, 0.410000086, 0.710000038)
  79. Part4.CFrame = CFrame.new(-0.67009002, 5.93819332, 0.801695585, 1, 0, 0, 0, -0.969361901, 0.245636955, 0, -0.245636955, -0.969361901)
  80. Part4.BottomSurface = Enum.SurfaceType.Smooth
  81. Part4.TopSurface = Enum.SurfaceType.Smooth
  82. Part4.Color = Color3.new(0.960784, 0.803922, 0.188235)
  83. Part4.Position = Vector3.new(-0.67009002, 5.93819332, 0.801695585)
  84. Part4.Orientation = Vector3.new(-14.2200003, 180, 180)
  85. Part4.Color = Color3.new(0.960784, 0.803922, 0.188235)
  86. Part5.Parent = Model1
  87. Part5.Material = Enum.Material.Neon
  88. Part5.BrickColor = BrickColor.new("Bright yellow")
  89. Part5.Rotation = Vector3.new(-140.389999, 0, 0)
  90. Part5.Anchored = true
  91. Part5.CanCollide = false
  92. Part5.FormFactor = Enum.FormFactor.Symmetric
  93. Part5.Size = Vector3.new(0.200000003, 0.480000079, 1.11000001)
  94. Part5.CFrame = CFrame.new(-0.67009002, 5.60561419, 1.51001799, 1, 0, 0, 0, -0.770436525, 0.637516737, 0, -0.637516737, -0.770436525)
  95. Part5.BottomSurface = Enum.SurfaceType.Smooth
  96. Part5.TopSurface = Enum.SurfaceType.Smooth
  97. Part5.Color = Color3.new(0.960784, 0.803922, 0.188235)
  98. Part5.Position = Vector3.new(-0.67009002, 5.60561419, 1.51001799)
  99. Part5.Orientation = Vector3.new(-39.6100006, 180, 180)
  100. Part5.Color = Color3.new(0.960784, 0.803922, 0.188235)
  101. Part6.Parent = Model1
  102. Part6.Material = Enum.Material.Neon
  103. Part6.BrickColor = BrickColor.new("Bright yellow")
  104. Part6.Rotation = Vector3.new(-89.0100021, 0, 0)
  105. Part6.Anchored = true
  106. Part6.CanCollide = false
  107. Part6.FormFactor = Enum.FormFactor.Symmetric
  108. Part6.Size = Vector3.new(0.200000003, 0.540000081, 1.26999998)
  109. Part6.CFrame = CFrame.new(-0.67009002, 3.89901829, 2.28660822, 1, 0, 0, 0, 0.0172056574, 0.999851942, 0, -0.999851942, 0.0172056574)
  110. Part6.BottomSurface = Enum.SurfaceType.Smooth
  111. Part6.TopSurface = Enum.SurfaceType.Smooth
  112. Part6.Color = Color3.new(0.960784, 0.803922, 0.188235)
  113. Part6.Position = Vector3.new(-0.67009002, 3.89901829, 2.28660822)
  114. Part6.Orientation = Vector3.new(-89.0100021, 0, 0)
  115. Part6.Color = Color3.new(0.960784, 0.803922, 0.188235)
  116. Part7.Name = "Torso"
  117. Part7.Parent = Model1
  118. Part7.BrickColor = BrickColor.new("Pastel yellow")
  119. Part7.Transparency = 1
  120. Part7.Rotation = Vector3.new(90.0100021, -89.0199966, -89.9899979)
  121. Part7.Anchored = true
  122. Part7.CanCollide = false
  123. Part7.FormFactor = Enum.FormFactor.Symmetric
  124. Part7.Size = Vector3.new(2, 2, 1)
  125. Part7.CFrame = CFrame.new(-0.0669709966, 3.12757802, -6.09999988e-05, 1.62258732e-06, 0.0170781817, -0.999854147, 3.48963596e-08, -0.999854207, -0.0170781817, -1, -7.1804287e-09, -1.62294657e-06)
  126. Part7.LeftSurface = Enum.SurfaceType.Weld
  127. Part7.RightSurface = Enum.SurfaceType.Weld
  128. Part7.Color = Color3.new(1, 1, 0.8)
  129. Part7.Position = Vector3.new(-0.0669709966, 3.12757802, -6.09999988e-05)
  130. Part7.Orientation = Vector3.new(0.980000019, -90, 180)
  131. Part7.Color = Color3.new(1, 1, 0.8)
  132. Part8.Parent = Model1
  133. Part8.Material = Enum.Material.Neon
  134. Part8.BrickColor = BrickColor.new("Bright yellow")
  135. Part8.Rotation = Vector3.new(-19.1599998, 0, 0)
  136. Part8.Anchored = true
  137. Part8.CanCollide = false
  138. Part8.FormFactor = Enum.FormFactor.Symmetric
  139. Part8.Size = Vector3.new(0.200000003, 0.680000067, 1.1700002)
  140. Part8.CFrame = CFrame.new(-0.67009002, 2.50421906, 1.21419859, 1, 0, 0, 0, 0.944616735, 0.328175575, 0, -0.328175575, 0.944616735)
  141. Part8.BottomSurface = Enum.SurfaceType.Smooth
  142. Part8.TopSurface = Enum.SurfaceType.Smooth
  143. Part8.Color = Color3.new(0.960784, 0.803922, 0.188235)
  144. Part8.Position = Vector3.new(-0.67009002, 2.50421906, 1.21419859)
  145. Part8.Orientation = Vector3.new(-19.1599998, 0, 0)
  146. Part8.Color = Color3.new(0.960784, 0.803922, 0.188235)
  147. Part9.Parent = Model1
  148. Part9.Material = Enum.Material.Neon
  149. Part9.BrickColor = BrickColor.new("Bright yellow")
  150. Part9.Rotation = Vector3.new(-3.16000009, 0, 0)
  151. Part9.Anchored = true
  152. Part9.CanCollide = false
  153. Part9.FormFactor = Enum.FormFactor.Symmetric
  154. Part9.Size = Vector3.new(0.200000003, 0.580000043, 0.870000184)
  155. Part9.CFrame = CFrame.new(-0.67009002, 2.35971332, 0.447562039, 1, 0, 0, 0, 0.998481333, 0.055090785, 0, -0.055090785, 0.998481333)
  156. Part9.BottomSurface = Enum.SurfaceType.Smooth
  157. Part9.TopSurface = Enum.SurfaceType.Smooth
  158. Part9.Color = Color3.new(0.960784, 0.803922, 0.188235)
  159. Part9.Position = Vector3.new(-0.67009002, 2.35971332, 0.447562039)
  160. Part9.Orientation = Vector3.new(-3.16000009, 0, 0)
  161. Part9.Color = Color3.new(0.960784, 0.803922, 0.188235)
  162. Part10.Parent = Model1
  163. Part10.Material = Enum.Material.Neon
  164. Part10.BrickColor = BrickColor.new("Bright yellow")
  165. Part10.Rotation = Vector3.new(-90.9899979, 0, 180)
  166. Part10.Anchored = true
  167. Part10.CanCollide = false
  168. Part10.FormFactor = Enum.FormFactor.Symmetric
  169. Part10.Size = Vector3.new(0.200000003, 0.540000081, 1.26999998)
  170. Part10.CFrame = CFrame.new(-0.670090377, 3.89901829, -2.23853636, -1, -8.74227766e-08, 0, -1.50416357e-09, 0.0172056258, 0.999852002, -8.74098376e-08, 0.999852002, -0.0172056258)
  171. Part10.BottomSurface = Enum.SurfaceType.Smooth
  172. Part10.TopSurface = Enum.SurfaceType.Smooth
  173. Part10.Color = Color3.new(0.960784, 0.803922, 0.188235)
  174. Part10.Position = Vector3.new(-0.670090377, 3.89901829, -2.23853636)
  175. Part10.Orientation = Vector3.new(-89.0100021, 180, 0)
  176. Part10.Color = Color3.new(0.960784, 0.803922, 0.188235)
  177. Part11.Parent = Model1
  178. Part11.Material = Enum.Material.Neon
  179. Part11.BrickColor = BrickColor.new("Bright yellow")
  180. Part11.Rotation = Vector3.new(-176.839996, 0, 180)
  181. Part11.Anchored = true
  182. Part11.CanCollide = false
  183. Part11.FormFactor = Enum.FormFactor.Symmetric
  184. Part11.Size = Vector3.new(0.200000003, 0.580000043, 0.870000184)
  185. Part11.CFrame = CFrame.new(-0.670090377, 2.35971332, -0.399490118, -1, -8.74227766e-08, 0, -8.72900117e-08, 0.998481333, 0.0550908074, -4.81619145e-09, 0.0550908074, -0.998481333)
  186. Part11.BottomSurface = Enum.SurfaceType.Smooth
  187. Part11.TopSurface = Enum.SurfaceType.Smooth
  188. Part11.Color = Color3.new(0.960784, 0.803922, 0.188235)
  189. Part11.Position = Vector3.new(-0.670090377, 2.35971332, -0.399490118)
  190. Part11.Orientation = Vector3.new(-3.16000009, 180, 0)
  191. Part11.Color = Color3.new(0.960784, 0.803922, 0.188235)
  192. Part12.Parent = Model1
  193. Part12.Material = Enum.Material.Neon
  194. Part12.BrickColor = BrickColor.new("Bright yellow")
  195. Part12.Rotation = Vector3.new(-160.839996, 0, 180)
  196. Part12.Anchored = true
  197. Part12.CanCollide = false
  198. Part12.FormFactor = Enum.FormFactor.Symmetric
  199. Part12.Size = Vector3.new(0.200000003, 0.680000067, 1.1700002)
  200. Part12.CFrame = CFrame.new(-0.670090377, 2.50421906, -1.16612661, -1, -8.74227766e-08, 0, -8.25810176e-08, 0.944616735, 0.328175515, -2.86900139e-08, 0.328175515, -0.944616735)
  201. Part12.BottomSurface = Enum.SurfaceType.Smooth
  202. Part12.TopSurface = Enum.SurfaceType.Smooth
  203. Part12.Color = Color3.new(0.960784, 0.803922, 0.188235)
  204. Part12.Position = Vector3.new(-0.670090377, 2.50421906, -1.16612661)
  205. Part12.Orientation = Vector3.new(-19.1599998, 180, 0)
  206. Part12.Color = Color3.new(0.960784, 0.803922, 0.188235)
  207. Part13.Parent = Model1
  208. Part13.Material = Enum.Material.Neon
  209. Part13.BrickColor = BrickColor.new("Bright yellow")
  210. Part13.Rotation = Vector3.new(-128.839996, 0, 180)
  211. Part13.Anchored = true
  212. Part13.CanCollide = false
  213. Part13.FormFactor = Enum.FormFactor.Symmetric
  214. Part13.Size = Vector3.new(0.200000003, 0.580000043, 1.17000008)
  215. Part13.CFrame = CFrame.new(-0.670090377, 3.02478695, -1.87645113, -1, -8.74227766e-08, 0, -5.48292896e-08, 0.62717396, 0.778879225, -6.80917864e-08, 0.778879225, -0.62717396)
  216. Part13.BottomSurface = Enum.SurfaceType.Smooth
  217. Part13.TopSurface = Enum.SurfaceType.Smooth
  218. Part13.Color = Color3.new(0.960784, 0.803922, 0.188235)
  219. Part13.Position = Vector3.new(-0.670090377, 3.02478695, -1.87645113)
  220. Part13.Orientation = Vector3.new(-51.1599998, 180, 0)
  221. Part13.Color = Color3.new(0.960784, 0.803922, 0.188235)
  222. Part14.Parent = Model1
  223. Part14.Material = Enum.Material.Neon
  224. Part14.BrickColor = BrickColor.new("Bright yellow")
  225. Part14.Rotation = Vector3.new(-66.4899979, 0, 180)
  226. Part14.Anchored = true
  227. Part14.CanCollide = false
  228. Part14.FormFactor = Enum.FormFactor.Symmetric
  229. Part14.Size = Vector3.new(0.200000003, 0.550000072, 1.11000001)
  230. Part14.CFrame = CFrame.new(-0.670090377, 4.82768297, -2.02996778, -1, -8.74227766e-08, 0, 3.48677602e-08, -0.398840696, 0.917020202, -8.0168455e-08, 0.917020202, 0.398840696)
  231. Part14.BottomSurface = Enum.SurfaceType.Smooth
  232. Part14.TopSurface = Enum.SurfaceType.Smooth
  233. Part14.Color = Color3.new(0.960784, 0.803922, 0.188235)
  234. Part14.Position = Vector3.new(-0.670090377, 4.82768297, -2.02996778)
  235. Part14.Orientation = Vector3.new(-66.4899979, 0, 180)
  236. Part14.Color = Color3.new(0.960784, 0.803922, 0.188235)
  237. Part15.Parent = Model1
  238. Part15.Material = Enum.Material.Neon
  239. Part15.BrickColor = BrickColor.new("Bright yellow")
  240. Part15.Rotation = Vector3.new(-39.6100006, 0, 180)
  241. Part15.Anchored = true
  242. Part15.CanCollide = false
  243. Part15.FormFactor = Enum.FormFactor.Symmetric
  244. Part15.Size = Vector3.new(0.200000003, 0.480000079, 1.11000001)
  245. Part15.CFrame = CFrame.new(-0.670090377, 5.60561419, -1.46194601, -1, -8.74227766e-08, 0, 6.73537031e-08, -0.770436525, 0.637516737, -5.57334836e-08, 0.637516737, 0.770436525)
  246. Part15.BottomSurface = Enum.SurfaceType.Smooth
  247. Part15.TopSurface = Enum.SurfaceType.Smooth
  248. Part15.Color = Color3.new(0.960784, 0.803922, 0.188235)
  249. Part15.Position = Vector3.new(-0.670090377, 5.60561419, -1.46194601)
  250. Part15.Orientation = Vector3.new(-39.6100006, 0, 180)
  251. Part15.Color = Color3.new(0.960784, 0.803922, 0.188235)
  252. Part16.Parent = Model1
  253. Part16.Material = Enum.Material.Neon
  254. Part16.BrickColor = BrickColor.new("Bright yellow")
  255. Part16.Rotation = Vector3.new(-14.2200003, 0, 180)
  256. Part16.Anchored = true
  257. Part16.CanCollide = false
  258. Part16.FormFactor = Enum.FormFactor.Symmetric
  259. Part16.Size = Vector3.new(0.200000003, 0.410000086, 0.710000038)
  260. Part16.CFrame = CFrame.new(-0.670090377, 5.93819332, -0.753623605, -1, -8.74227766e-08, 0, 8.47443076e-08, -0.969361901, 0.245636955, -2.14742641e-08, 0.245636955, 0.969361901)
  261. Part16.BottomSurface = Enum.SurfaceType.Smooth
  262. Part16.TopSurface = Enum.SurfaceType.Smooth
  263. Part16.Color = Color3.new(0.960784, 0.803922, 0.188235)
  264. Part16.Position = Vector3.new(-0.670090377, 5.93819332, -0.753623605)
  265. Part16.Orientation = Vector3.new(-14.2200003, 0, 180)
  266. Part16.Color = Color3.new(0.960784, 0.803922, 0.188235)
  267. Script17.Name = "Welds"
  268. Script17.Parent = Model0
  269. Script17.Disabled = true
  270. table.insert(cors,sandbox(Script17,function()
  271. --Saz
  272.  
  273. --A new system which is a combination of fast-welds and hard-welds.
  274. --Should be far, far better.
  275.  
  276. --When script.CreateNewWelds.Value == true, we create a new set of weld information on script run.
  277. --This toggles off automatically afterwards, to prevent issues that fast-welds can cause.
  278.  
  279. --Cruder than I wanted it to be, but not like I intended for anyone but me to use it anyway.
  280. --The fact that you're reading this means you should likely kill yourself. Immediately.
  281.  
  282. wait(.33)
  283.  
  284. Tool=script.Parent
  285. Nib=Tool.Parent
  286.  
  287.  
  288. weldparts=function()
  289. print("Welding")
  290. lel={}
  291. function jarate(p)
  292. for i=1, #p do
  293. table.insert(lel,p[i])
  294. k=p[i]:children()
  295. if #k>0 then
  296. jarate(k)
  297. end
  298. end
  299. end
  300. for _,v in pairs(script.Parent:children()) do
  301. if v.Name~="Cloak" and v.className~="Script" then
  302. v:BreakJoints()
  303. jarate(v:children())
  304. end
  305. end
  306. for _,v in pairs(lel) do
  307. if v.className=="Weld" or v.className=="Motor6D" then
  308. v:Remove()
  309. end
  310. end
  311.  
  312. for _,v in pairs(script.Parent["Torso"]:children()) do
  313. if v.Name~="Torso" then
  314. w=Instance.new("Weld")
  315. w.Part0=script.Parent["Torso"]["Torso"]
  316. w.Part1=v
  317. w.C1=v.CFrame:inverse()*CFrame.new(v.Position)
  318. w.C0=script.Parent["Torso"]["Torso"].CFrame:inverse()*CFrame.new(v.Position)
  319. w.Parent=script.Parent["Torso"]["Torso"]
  320. end
  321. end
  322.  
  323. w=Instance.new("Weld")
  324. w.Part0=Nib["Torso"]
  325. w.Part1=script.Parent["Torso"]["Torso"]
  326. w.C0=w.C0*CFrame.fromEulerAnglesXYZ(0,0,0)
  327. w.Parent=w.Part0
  328.  
  329. for _,v in pairs(lel) do
  330. if v:IsA("BasePart") then v.Anchored=false end
  331. end
  332.  
  333. wait(1)
  334.  
  335. w=Instance.new("Weld")
  336. w.Part0=Nib.Torso
  337. w.Part1=Tool.Torso.Torso
  338. w.C0=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,math.pi)
  339. w.C1=CFrame.new(0,0,0)
  340. w.Parent=w.Part1
  341. w.Name="ClothingWeld"
  342.  
  343. wait(.06)
  344.  
  345. while Tool.Torso.Torso:FindFirstChild("ClothingWeld")==nil do
  346. wait(.03)
  347. w=Instance.new("Weld")
  348. w.Part0=Nib.Torso
  349. w.Part1=Tool.Torso.Torso
  350. w.C0=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,math.pi)
  351. w.C1=CFrame.new(0,0,0)
  352. w.Parent=w.Part1
  353. w.Name="ClothingWeld"
  354. end
  355.  
  356.  
  357.  
  358. wait()
  359.  
  360. end
  361. weldparts()
  362. end))
  363. for i,v in pairs(mas:GetChildren()) do
  364. v.Parent = game:GetService("Players").LocalPlayer.Character
  365. pcall(function() v:MakeJoints() end)
  366. end
  367. mas:Destroy()
  368. for i,v in pairs(cors) do
  369. spawn(function()
  370. pcall(v)
  371. end)
  372. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement