Advertisement
okban

Untitled

Apr 15th, 2018
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.61 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. Part0 = Instance.new("Part")
  20. SpecialMesh1 = Instance.new("SpecialMesh")
  21. Part0.Name = "Slash"
  22. Part0.Parent = mas
  23. Part0.Material = Enum.Material.Neon
  24. Part0.BrickColor = BrickColor.new("Institutional white")
  25. Part0.Anchored = true
  26. Part0.CanCollide = false
  27. Part0.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  28. Part0.CFrame = CFrame.new(49.7900047, 5.20449591, -6.77999115, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  29. Part0.Color = Color3.new(1, 1, 1)
  30. Part0.Position = Vector3.new(49.7900047, 5.20449591, -6.77999115)
  31. Part0.Color = Color3.new(1, 1, 1)
  32. SpecialMesh1.Parent = Part0
  33. SpecialMesh1.Scale = Vector3.new(100, 5, 5)
  34. SpecialMesh1.MeshType = Enum.MeshType.Sphere
  35. SpecialMesh1.Scale = Vector3.new(100, 5, 5)
  36. for i,v in pairs(mas:GetChildren()) do
  37. v.Parent = game.ReplicatedStorage
  38. pcall(function() v:MakeJoints() end)
  39. end
  40. mas:Destroy()
  41. for i,v in pairs(cors) do
  42. spawn(function()
  43. pcall(v)
  44. end)
  45. end
  46.  
  47. wait(5)
  48. --Converted with ttyyuu12345's model to script plugin v4
  49. function sandbox(var,func)
  50. local env = getfenv(func)
  51. local newenv = setmetatable({},{
  52. __index = function(self,k)
  53. if k=="script" then
  54. return var
  55. else
  56. return env[k]
  57. end
  58. end,
  59. })
  60. setfenv(func,newenv)
  61. return func
  62. end
  63. cors = {}
  64. mas = Instance.new("Model",game:GetService("Lighting"))
  65. LocalScript0 = Instance.new("LocalScript")
  66. Script1 = Instance.new("Script")
  67. Folder2 = Instance.new("Folder")
  68. Animation3 = Instance.new("Animation")
  69. Animation4 = Instance.new("Animation")
  70. Animation5 = Instance.new("Animation")
  71. Animation6 = Instance.new("Animation")
  72. Folder7 = Instance.new("Folder")
  73. RemoteEvent8 = Instance.new("RemoteEvent")
  74. RemoteEvent9 = Instance.new("RemoteEvent")
  75. RemoteEvent10 = Instance.new("RemoteEvent")
  76. Part11 = Instance.new("Part")
  77. SpecialMesh12 = Instance.new("SpecialMesh")
  78. Script13 = Instance.new("Script")
  79. Part14 = Instance.new("Part")
  80. SpecialMesh15 = Instance.new("SpecialMesh")
  81. Attachment16 = Instance.new("Attachment")
  82. Attachment17 = Instance.new("Attachment")
  83. Part18 = Instance.new("Part")
  84. Weld19 = Instance.new("Weld")
  85. ParticleEmitter20 = Instance.new("ParticleEmitter")
  86. ParticleEmitter21 = Instance.new("ParticleEmitter")
  87. Part22 = Instance.new("Part")
  88. Weld23 = Instance.new("Weld")
  89. LocalScript0.Name = "Sword"
  90. LocalScript0.Parent = mas
  91. table.insert(cors,sandbox(LocalScript0,function()
  92. plr = game.Players.LocalPlayer
  93. repeat wait()until plr.Character ~= nil
  94. char = plr.Character
  95. char:WaitForChild("Humanoid")
  96. events = script:WaitForChild("Events")
  97. sword = script:WaitForChild("Sword")
  98. enabled = true
  99. slash = 1
  100. mouse = plr:GetMouse()
  101.  
  102. mouse.Button1Down:connect(function()
  103. if not enabled then return end
  104. if char.Humanoid.Health >0 and char:FindFirstChild("Sword")then
  105. enabled = false
  106. events.Slash:FireServer(sword,slash)
  107. if slash < 3 then
  108. slash = slash+1
  109. elseif slash >= 3 then
  110. slash = 1
  111. end
  112. wait(.5)
  113. end
  114. enabled = true
  115. end)
  116.  
  117. mouse.KeyDown:connect(function(key)
  118. local Key = key:lower()
  119. if not enabled then return end
  120. if char.Humanoid.Health >0 then
  121. if key == "f" then
  122. enabled = false
  123. if not char:FindFirstChild("Sword") then
  124. events.Equip:FireServer(sword)
  125. elseif char:FindFirstChild("Sword") then
  126. events.UnEquip:FireServer(sword)
  127. end
  128. wait(1)
  129. end
  130. end
  131. enabled = true
  132. end)
  133. end))
  134. Script1.Name = "ServerScript"
  135. Script1.Parent = LocalScript0
  136. table.insert(cors,sandbox(Script1,function()
  137. events = script.Parent:WaitForChild("Events")
  138. anims = script.Parent:WaitForChild("Animations")
  139. storage = game:GetService("ReplicatedStorage")
  140. sounds = game:GetService("SoundService")
  141.  
  142. events.Equip.OnServerEvent:connect(function(plr,sword)
  143. local char = plr.Character
  144. local w = Instance.new("Weld",sword)
  145. local anim = char.Humanoid:LoadAnimation(anims.Equip)
  146. sword.MainPart.SwordEffect1.Enabled = true
  147. w.Name = "equip"
  148. w.Part0 = sword
  149. w.Part1 = char.RightHand
  150. w.C0 = w.C0*CFrame.Angles(1.57,0,0)
  151. sword.Transparency = 11
  152. sword.Blade.Transparency = 11
  153. sword.MainPart.Transparency = 11
  154. sword.NANI.Transparency = 0
  155. sword.Parent = char
  156. anim:play()
  157. for i = 1,10 do
  158. if i >= 7 then
  159. sword.MainPart.SwordEffect1.Enabled = false
  160. end
  161. sword.Transparency = sword.Transparency-.1
  162. sword.Blade.Transparency = sword.Blade.Transparency-.1
  163. sword.MainPart.Transparency = sword.MainPart.Transparency-.1
  164. sword.NANI.Transparency = sword.NANI.Transparency-.1
  165. wait()end
  166. end)
  167.  
  168. events.UnEquip.OnServerEvent:connect(function(plr,sword)
  169. local char = plr.Character
  170. for a,anim in pairs(char.Humanoid:GetPlayingAnimationTracks())do
  171. if anim.Name == "Equip" then
  172. anim:stop()
  173. end
  174. end
  175. sword.MainPart.SwordEffect2.Enabled = true
  176. for i = 1,10 do
  177. if i >= 7 then
  178. sword.MainPart.SwordEffect2.Enabled = false
  179. end
  180. sword.Transparency = sword.Transparency+1.1
  181. sword.Blade.Transparency = sword.Blade.Transparency+1.1
  182. sword.MainPart.Transparency = sword.MainPart.Transparency+1.1
  183. sword.NANI.Transparency = sword.NANI.Transparency+1.1
  184. wait()end
  185. wait(.7)
  186. for a,weld in pairs(sword:GetChildren())do
  187. if weld.Name == "equip" then
  188. weld:Destroy()
  189. end
  190. end
  191. sword.Parent = script.Parent
  192. end)
  193.  
  194. events.Slash.OnServerEvent:connect(function(plr,sword,slash)
  195. local char = plr.Character
  196. local anim = char.Humanoid:LoadAnimation(anims["Slash"..slash])
  197. anim:play()
  198. slashhitbox(sword.Blade,char,5,15)
  199. wait(.5)
  200. end)
  201. -------------------------------------------------------------------------------------------------------------------------------
  202. function slashhitbox(parent,char,mindmg,maxdmg)
  203. local x = Instance.new("Part")
  204. x.Size = parent.Size
  205. x.TopSurface = "Smooth"
  206. x.BottomSurface = "Smooth"
  207. x.Shape = "Block"
  208. x.CanCollide = false
  209. x.Anchored = false
  210. x.Transparency = 1
  211. x.CFrame = parent.CFrame
  212. x.Parent = char.HumanoidRootPart
  213. game.Debris:AddItem(x,.5)
  214. local w = Instance.new("Weld",x)
  215. w.Part1 = x
  216. w.Part0 = parent
  217. x.Touched:connect(function(hit)
  218. if hit.Parent ~= nil and hit.Parent.Parent ~= nil then
  219. if hit.Parent.Name ~= char.Name and hit.Parent.Parent.Name ~= char.Name then
  220. if hit.Parent:FindFirstChild("Humanoid") and not hit.Parent:FindFirstChild("hit") then
  221. local HIT = Instance.new("IntValue",hit.Parent)
  222. HIT.Name = "hit"
  223. game.Debris:AddItem(HIT,.5)
  224. if hit.Parent:FindFirstChild("Killer") then
  225. hit.Parent.Killer.Value = char.Name
  226. end
  227. local ra = math.random(mindmg,maxdmg)
  228. hit.Parent.Humanoid:TakeDamage(ra)
  229. local slasheffect = storage.Slash:clone()
  230. slasheffect.CFrame = parent.CFrame*CFrame.Angles(0,1.57,0)
  231. slasheffect.Position = hit.CFrame.p
  232. hit.Parent.Humanoid:TakeDamage(ra)
  233. slasheffect.Color = Color3.fromRGB(255,255,255)
  234. slasheffect.Parent = char.HumanoidRootPart
  235. local size = slasheffect.Mesh.Scale/10
  236. for i = 1,10 do
  237. slasheffect.Mesh.Scale = slasheffect.Mesh.Scale+size
  238. slasheffect.Transparency = slasheffect.Transparency+.1
  239. wait()end
  240. slasheffect:remove()
  241. --------------sound--------------
  242. local s = sounds:WaitForChild("Slash"):clone()
  243. s.Parent = char.Head
  244. s:play()
  245. game.Debris:AddItem(s,.5)
  246. --------------------------------
  247. local zz = storage.Damage:clone()
  248. zz.TextLabel.Text = "-"..ra
  249. zz.Adornee = hit
  250. zz.Parent = char.HumanoidRootPart
  251. end
  252. end
  253. end
  254. end)
  255. end
  256.  
  257. end))
  258. Folder2.Name = "Animations"
  259. Folder2.Parent = LocalScript0
  260. Animation3.Name = "Slash3"
  261. Animation3.Parent = Folder2
  262. Animation3.AnimationId = "rbxassetid://582796800"
  263. Animation4.Name = "Slash2"
  264. Animation4.Parent = Folder2
  265. Animation4.AnimationId = "rbxassetid://567479941"
  266. Animation5.Name = "Slash1"
  267. Animation5.Parent = Folder2
  268. Animation5.AnimationId = "rbxassetid://567479941"
  269. Animation6.Name = "Equip"
  270. Animation6.Parent = Folder2
  271. Animation6.AnimationId = "rbxassetid://582294781"
  272. Folder7.Name = "Events"
  273. Folder7.Parent = LocalScript0
  274. RemoteEvent8.Name = "Equip"
  275. RemoteEvent8.Parent = Folder7
  276. RemoteEvent9.Name = "UnEquip"
  277. RemoteEvent9.Parent = Folder7
  278. RemoteEvent10.Name = "Slash"
  279. RemoteEvent10.Parent = Folder7
  280. Part11.Name = "Sword"
  281. Part11.Parent = LocalScript0
  282. Part11.Material = Enum.Material.SmoothPlastic
  283. Part11.BrickColor = BrickColor.new("Maroon")
  284. Part11.Reflectance = 0.21999999880791
  285. Part11.Transparency = 11
  286. Part11.CanCollide = false
  287. Part11.Size = Vector3.new(5.03200006, 1.04299998, 0.0759999976)
  288. Part11.CFrame = CFrame.new(-32.4249992, 0.623000026, 1.10000002, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  289. Part11.BottomSurface = Enum.SurfaceType.Smooth
  290. Part11.TopSurface = Enum.SurfaceType.Smooth
  291. Part11.Color = Color3.new(0.458824, 0, 0)
  292. Part11.Position = Vector3.new(-32.4249992, 0.623000026, 1.10000002)
  293. Part11.Color = Color3.new(0.458824, 0, 0)
  294. SpecialMesh12.Parent = Part11
  295. SpecialMesh12.MeshId = "rbxassetid://1353834548"
  296. SpecialMesh12.MeshType = Enum.MeshType.FileMesh
  297. Script13.Name = "qPerfectionWeld"
  298. Script13.Parent = Part11
  299. table.insert(cors,sandbox(Script13,function()
  300. -- Created by Quenty (@Quenty, follow me on twitter).
  301. -- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
  302. -- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.
  303.  
  304. --[[ INSTRUCTIONS
  305. - Place in the model
  306. - Make sure model is anchored
  307. - That's it. It will weld the model and all children.
  308.  
  309. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  310. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  311. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  312. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  313. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  314. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  315. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  316. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  317.  
  318. This script is designed to be used is a regular script. In a local script it will weld, but it will not attempt to handle ancestory changes.
  319. ]]
  320.  
  321. --[[ DOCUMENTATION
  322. - Will work in tools. If ran more than once it will not create more than one weld. This is especially useful for tools that are dropped and then picked up again.
  323. - Will work in PBS servers
  324. - Will work as long as it starts out with the part anchored
  325. - Stores the relative CFrame as a CFrame value
  326. - Takes careful measure to reduce lag by not having a joint set off or affected by the parts offset from origin
  327. - Utilizes a recursive algorith to find all parts in the model
  328. - Will reweld on script reparent if the script is initially parented to a tool.
  329. - Welds as fast as possible
  330. ]]
  331.  
  332. -- qPerfectionWeld.lua
  333. -- Created 10/6/2014
  334. -- Author: Quenty
  335. -- Version 1.0.3
  336.  
  337. -- Updated 10/14/2014 - Updated to 1.0.1
  338. --- Bug fix with existing ROBLOX welds ? Repro by asimo3089
  339.  
  340. -- Updated 10/14/2014 - Updated to 1.0.2
  341. --- Fixed bug fix.
  342.  
  343. -- Updated 10/14/2014 - Updated to 1.0.3
  344. --- Now handles joints semi-acceptably. May be rather hacky with some joints. :/
  345.  
  346. local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
  347.  
  348.  
  349. local function CallOnChildren(Instance, FunctionToCall)
  350. -- Calls a function on each of the children of a certain object, using recursion.
  351.  
  352. FunctionToCall(Instance)
  353.  
  354. for _, Child in next, Instance:GetChildren() do
  355. CallOnChildren(Child, FunctionToCall)
  356. end
  357. end
  358.  
  359. local function GetNearestParent(Instance, ClassName)
  360. -- Returns the nearest parent of a certain class, or returns nil
  361.  
  362. local Ancestor = Instance
  363. repeat
  364. Ancestor = Ancestor.Parent
  365. if Ancestor == nil then
  366. return nil
  367. end
  368. until Ancestor:IsA(ClassName)
  369.  
  370. return Ancestor
  371. end
  372.  
  373. local function GetBricks(StartInstance)
  374. local List = {}
  375.  
  376. -- if StartInstance:IsA("BasePart") then
  377. -- List[#List+1] = StartInstance
  378. -- end
  379.  
  380. CallOnChildren(StartInstance, function(Item)
  381. if Item:IsA("BasePart") then
  382. List[#List+1] = Item;
  383. end
  384. end)
  385.  
  386. return List
  387. end
  388.  
  389. local function Modify(Instance, Values)
  390. -- Modifies an Instance by using a table.
  391.  
  392. assert(type(Values) == "table", "Values is not a table");
  393.  
  394. for Index, Value in next, Values do
  395. if type(Index) == "number" then
  396. Value.Parent = Instance
  397. else
  398. Instance[Index] = Value
  399. end
  400. end
  401. return Instance
  402. end
  403.  
  404. local function Make(ClassType, Properties)
  405. -- Using a syntax hack to create a nice way to Make new items.
  406.  
  407. return Modify(Instance.new(ClassType), Properties)
  408. end
  409.  
  410. local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  411. local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
  412.  
  413. local function HasWheelJoint(Part)
  414. for _, SurfaceName in pairs(Surfaces) do
  415. for _, HingSurfaceName in pairs(HingSurfaces) do
  416. if Part[SurfaceName].Name == HingSurfaceName then
  417. return true
  418. end
  419. end
  420. end
  421.  
  422. return false
  423. end
  424.  
  425. local function ShouldBreakJoints(Part)
  426. --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
  427. -- definitely some edge cases.
  428.  
  429. if NEVER_BREAK_JOINTS then
  430. return false
  431. end
  432.  
  433. if HasWheelJoint(Part) then
  434. return false
  435. end
  436.  
  437. local Connected = Part:GetConnectedParts()
  438.  
  439. if #Connected == 1 then
  440. return false
  441. end
  442.  
  443. for _, Item in pairs(Connected) do
  444. if HasWheelJoint(Item) then
  445. return false
  446. elseif not Item:IsDescendantOf(script.Parent) then
  447. return false
  448. end
  449. end
  450.  
  451. return true
  452. end
  453.  
  454. local function WeldTogether(Part0, Part1, JointType, WeldParent)
  455. --- Weld's 2 parts together
  456. -- @param Part0 The first part
  457. -- @param Part1 The second part (Dependent part most of the time).
  458. -- @param [JointType] The type of joint. Defaults to weld.
  459. -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better).
  460. -- @return The weld created.
  461.  
  462. JointType = JointType or "Weld"
  463. local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
  464.  
  465. local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
  466. Modify(NewWeld, {
  467. Name = "qCFrameWeldThingy";
  468. Part0 = Part0;
  469. Part1 = Part1;
  470. C0 = CFrame.new();--Part0.CFrame:inverse();
  471. C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
  472. Parent = Part1;
  473. })
  474.  
  475. if not RelativeValue then
  476. RelativeValue = Make("CFrameValue", {
  477. Parent = Part1;
  478. Name = "qRelativeCFrameWeldValue";
  479. Archivable = true;
  480. Value = NewWeld.C1;
  481. })
  482. end
  483.  
  484. return NewWeld
  485. end
  486.  
  487. local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
  488. -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results.
  489. -- @param MainPart The part to weld the model to (can be in the model).
  490. -- @param [JointType] The type of joint. Defaults to weld.
  491. -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion.
  492.  
  493. for _, Part in pairs(Parts) do
  494. if ShouldBreakJoints(Part) then
  495. Part:BreakJoints()
  496. end
  497. end
  498.  
  499. for _, Part in pairs(Parts) do
  500. if Part ~= MainPart then
  501. WeldTogether(MainPart, Part, JointType, MainPart)
  502. end
  503. end
  504.  
  505. if not DoNotUnanchor then
  506. for _, Part in pairs(Parts) do
  507. Part.Anchored = false
  508. end
  509. MainPart.Anchored = false
  510. end
  511. end
  512.  
  513. local function PerfectionWeld()
  514. local Tool = GetNearestParent(script, "Tool")
  515.  
  516. local Parts = GetBricks(script.Parent)
  517. local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
  518.  
  519. if PrimaryPart then
  520. WeldParts(Parts, PrimaryPart, "Weld", false)
  521. else
  522. warn("qWeld - Unable to weld part")
  523. end
  524.  
  525. return Tool
  526. end
  527.  
  528. local Tool = PerfectionWeld()
  529.  
  530.  
  531. if Tool and script.ClassName == "Script" then
  532. --- Don't bother with local scripts
  533.  
  534. script.Parent.AncestryChanged:connect(function()
  535. PerfectionWeld()
  536. end)
  537. end
  538.  
  539. -- Created by Quenty (@Quenty, follow me on twitter).
  540.  
  541. end))
  542. Part14.Name = "NANI"
  543. Part14.Parent = Part11
  544. Part14.Material = Enum.Material.SmoothPlastic
  545. Part14.BrickColor = BrickColor.new("Maroon")
  546. Part14.Reflectance = 0.21999999880791
  547. Part14.Rotation = Vector3.new(90, 90, 0)
  548. Part14.CanCollide = false
  549. Part14.Size = Vector3.new(5.03200006, 1.04299998, 0.0759999976)
  550. Part14.CFrame = CFrame.new(-32.4749947, 2.31743431, 0.921665847, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  551. Part14.BottomSurface = Enum.SurfaceType.Smooth
  552. Part14.TopSurface = Enum.SurfaceType.Smooth
  553. Part14.Color = Color3.new(0.458824, 0, 0)
  554. Part14.Position = Vector3.new(-32.4749947, 2.31743431, 0.921665847)
  555. Part14.Orientation = Vector3.new(0, 90, 90)
  556. Part14.Color = Color3.new(0.458824, 0, 0)
  557. SpecialMesh15.Parent = Part14
  558. SpecialMesh15.MeshId = "rbxassetid://1353834548"
  559. SpecialMesh15.MeshType = Enum.MeshType.FileMesh
  560. Attachment16.Name = "Attachment0"
  561. Attachment16.Parent = Part11
  562. Attachment16.CFrame = CFrame.new(-0.106142521, 4.14243889, -0.109607458, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  563. Attachment16.Position = Vector3.new(-0.106142521, 4.14243889, -0.109607458)
  564. Attachment17.Name = "Attachment1"
  565. Attachment17.Parent = Part11
  566. Attachment17.CFrame = CFrame.new(-0.100152969, 1.39189982, -0.0528829545, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  567. Attachment17.Position = Vector3.new(-0.100152969, 1.39189982, -0.0528829545)
  568. Part18.Name = "MainPart"
  569. Part18.Parent = Part11
  570. Part18.Transparency = 1.0599999427795
  571. Part18.Rotation = Vector3.new(90, 0, -180)
  572. Part18.CanCollide = false
  573. Part18.Size = Vector3.new(2.93200064, 0.503000021, 0.0759999976)
  574. Part18.CFrame = CFrame.new(17.016674, 1.46174693, -9.22967243, -0.999998391, 3.73511455e-07, -1.35600419e-06, 1.35600635e-06, -4.37109868e-08, -1, -3.73511511e-07, -0.999998391, 4.37104966e-08)
  575. Part18.BottomSurface = Enum.SurfaceType.Smooth
  576. Part18.TopSurface = Enum.SurfaceType.Smooth
  577. Part18.Position = Vector3.new(17.016674, 1.46174693, -9.22967243)
  578. Part18.Orientation = Vector3.new(90, 180, 0)
  579. Weld19.Name = "Joint"
  580. Weld19.Parent = Part18
  581. Weld19.C0 = CFrame.new(3.234483, -7.81396011e-05, 0.351992667, 4.17223447e-07, -1, -1.35600635e-06, 1, 4.17223447e-07, -3.69361985e-13, 9.3511982e-13, -1.35600635e-06, 1)
  582. Weld19.Part0 = Part18
  583. Weld19.Part1 = Part11
  584. ParticleEmitter20.Name = "SwordEffect2"
  585. ParticleEmitter20.Parent = Part18
  586. ParticleEmitter20.Transparency = NumberSequence.new(0,0,1)
  587. ParticleEmitter20.Rotation = NumberRange.new(-180, 180)
  588. ParticleEmitter20.Size = NumberSequence.new(0,5)
  589. ParticleEmitter20.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  590. ParticleEmitter20.Enabled = false
  591. ParticleEmitter20.LightEmission = 1
  592. ParticleEmitter20.Texture = "rbxassetid://966392337"
  593. ParticleEmitter20.Lifetime = NumberRange.new(1, 1)
  594. ParticleEmitter20.Rate = 100
  595. ParticleEmitter20.Speed = NumberRange.new(0, 0)
  596. ParticleEmitter20.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  597. ParticleEmitter21.Name = "SwordEffect1"
  598. ParticleEmitter21.Parent = Part18
  599. ParticleEmitter21.Transparency = NumberSequence.new(1,0,0)
  600. ParticleEmitter21.Rotation = NumberRange.new(-180, 180)
  601. ParticleEmitter21.Size = NumberSequence.new(5,0)
  602. ParticleEmitter21.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  603. ParticleEmitter21.Enabled = false
  604. ParticleEmitter21.LightEmission = 1
  605. ParticleEmitter21.Texture = "rbxassetid://966392337"
  606. ParticleEmitter21.Lifetime = NumberRange.new(1, 1)
  607. ParticleEmitter21.Rate = 100
  608. ParticleEmitter21.Speed = NumberRange.new(0, 0)
  609. ParticleEmitter21.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  610. Part22.Name = "Blade"
  611. Part22.Parent = Part11
  612. Part22.Transparency = 1.0599999427795
  613. Part22.Rotation = Vector3.new(90, 0, -180)
  614. Part22.CanCollide = false
  615. Part22.Size = Vector3.new(2.93200064, 0.503000021, 0.0759999976)
  616. Part22.CFrame = CFrame.new(15.8971233, 1.46172905, -9.22959232, -0.999998391, 3.73509408e-07, -1.35600419e-06, 1.35600635e-06, -4.37109868e-08, -1, -3.73509465e-07, -0.999998391, 4.37104966e-08)
  617. Part22.BottomSurface = Enum.SurfaceType.Smooth
  618. Part22.TopSurface = Enum.SurfaceType.Smooth
  619. Part22.Position = Vector3.new(15.8971233, 1.46172905, -9.22959232)
  620. Part22.Orientation = Vector3.new(90, 180, 0)
  621. Weld23.Name = "Joint"
  622. Weld23.Parent = Part22
  623. Weld23.C0 = CFrame.new(2.11493063, 2.44302805e-06, 0.351973295, 4.17221401e-07, -1, -1.35600635e-06, 1, 4.17221401e-07, -3.69358461e-13, 9.35113315e-13, -1.35600635e-06, 1)
  624. Weld23.Part0 = Part22
  625. Weld23.Part1 = Part11
  626. for i,v in pairs(mas:GetChildren()) do
  627. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  628. pcall(function() v:MakeJoints() end)
  629. end
  630. mas:Destroy()
  631. for i,v in pairs(cors) do
  632. spawn(function()
  633. pcall(v)
  634. end)
  635. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement