Advertisement
Bo_unty

Rift meme / void script

Aug 21st, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.64 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. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. Sound2 = Instance.new("Sound")
  22. Sound3 = Instance.new("Sound")
  23. Sound4 = Instance.new("Sound")
  24. Part5 = Instance.new("Part")
  25. Decal6 = Instance.new("Decal")
  26. Decal7 = Instance.new("Decal")
  27. Part8 = Instance.new("Part")
  28. Decal9 = Instance.new("Decal")
  29. Decal10 = Instance.new("Decal")
  30. Part11 = Instance.new("Part")
  31. Decal12 = Instance.new("Decal")
  32. Decal13 = Instance.new("Decal")
  33. Part14 = Instance.new("Part")
  34. Decal15 = Instance.new("Decal")
  35. Decal16 = Instance.new("Decal")
  36. PointLight17 = Instance.new("PointLight")
  37. Weld18 = Instance.new("Weld")
  38. Weld19 = Instance.new("Weld")
  39. Weld20 = Instance.new("Weld")
  40. Weld21 = Instance.new("Weld")
  41. WeldConstraint22 = Instance.new("WeldConstraint")
  42. WeldConstraint23 = Instance.new("WeldConstraint")
  43. WeldConstraint24 = Instance.new("WeldConstraint")
  44. WeldConstraint25 = Instance.new("WeldConstraint")
  45. Script26 = Instance.new("Script")
  46. LocalScript27 = Instance.new("LocalScript")
  47. Camera28 = Instance.new("Camera")
  48. Script29 = Instance.new("Script")
  49. Tool0.Name = "Rift"
  50. Tool0.Parent = mas
  51. Tool0.TextureId = "rbxasset://Textures/Sword128.png"
  52. Tool0.Grip = CFrame.new(-0.0215187073, 0, 0.249089241, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  53. Tool0.GripForward = Vector3.new(-1, -0, -0)
  54. Tool0.GripPos = Vector3.new(-0.0215187073, 0, 0.249089241)
  55. Tool0.GripRight = Vector3.new(0, 1, 0)
  56. Tool0.GripUp = Vector3.new(0, 0, 1)
  57. Part1.Name = "Handle"
  58. Part1.Parent = Tool0
  59. Part1.CFrame = CFrame.new(-9.39999962, 2.00000095, -9.50000095, 1.1920929e-07, -1, 2.77318406e-07, 3.85828599e-07, 2.98453244e-08, 1.00000048, -1.00000072, -8.94069672e-08, -7.44502188e-07)
  60. Part1.Orientation = Vector3.new(-90, 90, 0)
  61. Part1.Position = Vector3.new(-9.39999962, 2.00000095, -9.50000095)
  62. Part1.Rotation = Vector3.new(-90, 0, 90)
  63. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  64. Part1.Transparency = 1
  65. Part1.Size = Vector3.new(1, 0.800000012, 4)
  66. Part1.BottomSurface = Enum.SurfaceType.Smooth
  67. Part1.BrickColor = BrickColor.new("Dark stone grey")
  68. Part1.Locked = true
  69. Part1.Reflectance = 0.40000000596046
  70. Part1.TopSurface = Enum.SurfaceType.Smooth
  71. Part1.brickColor = BrickColor.new("Dark stone grey")
  72. Part1.FormFactor = Enum.FormFactor.Plate
  73. Part1.formFactor = Enum.FormFactor.Plate
  74. Sound2.Name = "SwordSlash"
  75. Sound2.Parent = Part1
  76. Sound2.SoundId = "rbxassetid://2571935805"
  77. Sound2.Volume = 5
  78. Sound3.Name = "SwordLunge"
  79. Sound3.Parent = Part1
  80. Sound3.SoundId = "rbxassetid://1759712659"
  81. Sound3.Volume = 5
  82. Sound4.Name = "Unsheath"
  83. Sound4.Parent = Part1
  84. Sound4.Looped = true
  85. Sound4.SoundId = "rbxassetid://2241931437"
  86. Sound4.Volume = 1
  87. Part5.Parent = Part1
  88. Part5.CFrame = CFrame.new(-9.46000004, 2.05503607, -9.44498158, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  89. Part5.Orientation = Vector3.new(0, -90, 0)
  90. Part5.Position = Vector3.new(-9.46000004, 2.05503607, -9.44498158)
  91. Part5.Rotation = Vector3.new(0, -90, 0)
  92. Part5.Transparency = 100
  93. Part5.Size = Vector3.new(4, 4.10999966, 0.0500000007)
  94. Part5.BottomSurface = Enum.SurfaceType.Smooth
  95. Part5.CanCollide = false
  96. Part5.TopSurface = Enum.SurfaceType.Smooth
  97. Decal6.Parent = Part5
  98. Decal6.Texture = "rbxassetid://2171273825"
  99. Decal7.Parent = Part5
  100. Decal7.Texture = "rbxassetid://2171273825"
  101. Decal7.Face = Enum.NormalId.Back
  102. Part8.Parent = Part1
  103. Part8.CFrame = CFrame.new(-9.46000004, 2.05503607, -9.44498158, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  104. Part8.Position = Vector3.new(-9.46000004, 2.05503607, -9.44498158)
  105. Part8.Transparency = 100
  106. Part8.Size = Vector3.new(4, 4.10999966, 0.0500000007)
  107. Part8.BottomSurface = Enum.SurfaceType.Smooth
  108. Part8.CanCollide = false
  109. Part8.TopSurface = Enum.SurfaceType.Smooth
  110. Decal9.Parent = Part8
  111. Decal9.Texture = "rbxassetid://2171273825"
  112. Decal10.Parent = Part8
  113. Decal10.Texture = "rbxassetid://2171273825"
  114. Decal10.Face = Enum.NormalId.Back
  115. Part11.Parent = Part1
  116. Part11.CFrame = CFrame.new(-9.46000004, 2.05503607, -9.44498158, -0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, -0.707106829)
  117. Part11.Orientation = Vector3.new(0, -135, 0)
  118. Part11.Position = Vector3.new(-9.46000004, 2.05503607, -9.44498158)
  119. Part11.Rotation = Vector3.new(-180, -45, -180)
  120. Part11.Transparency = 100
  121. Part11.Size = Vector3.new(4, 4.10999966, 0.0500000007)
  122. Part11.BottomSurface = Enum.SurfaceType.Smooth
  123. Part11.CanCollide = false
  124. Part11.TopSurface = Enum.SurfaceType.Smooth
  125. Decal12.Parent = Part11
  126. Decal12.Texture = "rbxassetid://2171273825"
  127. Decal13.Parent = Part11
  128. Decal13.Texture = "rbxassetid://2171273825"
  129. Decal13.Face = Enum.NormalId.Back
  130. Part14.Parent = Part1
  131. Part14.CFrame = CFrame.new(-9.46000004, 2.05503607, -9.44498158, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829)
  132. Part14.Orientation = Vector3.new(0, -45, 0)
  133. Part14.Position = Vector3.new(-9.46000004, 2.05503607, -9.44498158)
  134. Part14.Rotation = Vector3.new(0, -45, 0)
  135. Part14.Transparency = 100
  136. Part14.Size = Vector3.new(4, 4.10999966, 0.0500000007)
  137. Part14.BottomSurface = Enum.SurfaceType.Smooth
  138. Part14.CanCollide = false
  139. Part14.TopSurface = Enum.SurfaceType.Smooth
  140. Decal15.Parent = Part14
  141. Decal15.Texture = "rbxassetid://2171273825"
  142. Decal16.Parent = Part14
  143. Decal16.Texture = "rbxassetid://2171273825"
  144. Decal16.Face = Enum.NormalId.Back
  145. PointLight17.Parent = Part14
  146. PointLight17.Range = 40
  147. Weld18.Parent = Part14
  148. Weld18.C1 = CFrame.new(-0.0550193787, 0.0600004196, 0.0550351143, -0.707107127, 3.85828599e-07, -0.707107365, -0.707106829, 2.98453244e-08, 0.707106709, -3.30348826e-07, 1.00000048, -7.22536242e-07)
  149. Weld18.Part0 = Part14
  150. Weld18.Part1 = Part1
  151. Weld18.part1 = Part1
  152. Weld19.Parent = Part14
  153. Weld19.C1 = CFrame.new(0, 0, 0, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829)
  154. Weld19.Part0 = Part14
  155. Weld19.Part1 = Part5
  156. Weld19.part1 = Part5
  157. Weld20.Parent = Part14
  158. Weld20.C1 = CFrame.new(0, 0, 0, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829)
  159. Weld20.Part0 = Part14
  160. Weld20.Part1 = Part8
  161. Weld20.part1 = Part8
  162. Weld21.Parent = Part14
  163. Weld21.C1 = CFrame.new(0, 0, 0, 0, 0, 1.00000012, 0, 1, 0, -1.00000012, 0, 0)
  164. Weld21.Part0 = Part14
  165. Weld21.Part1 = Part11
  166. Weld21.part1 = Part11
  167. WeldConstraint22.Parent = Part1
  168. WeldConstraint22.Part0 = Part1
  169. WeldConstraint22.Part1 = Part5
  170. WeldConstraint23.Parent = Part1
  171. WeldConstraint23.Part0 = Part1
  172. WeldConstraint23.Part1 = Part8
  173. WeldConstraint24.Parent = Part1
  174. WeldConstraint24.Part0 = Part1
  175. WeldConstraint24.Part1 = Part11
  176. WeldConstraint25.Parent = Part1
  177. WeldConstraint25.Part0 = Part1
  178. WeldConstraint25.Part1 = Part14
  179. Script26.Name = "SwordScript"
  180. Script26.Parent = Tool0
  181. table.insert(cors,sandbox(Script26,function()
  182. --Rescripted by Luckymaxer
  183. --EUROCOW WAS HERE BECAUSE I MADE THE PARTICLES AND THEREFORE THIS ENTIRE SWORD PRETTY AND LOOK PRETTY WORDS AND I'D LIKE TO DEDICATE THIS TO MY FRIENDS AND HI LUCKYMAXER PLS FIX SFOTH SWORDS TY LOVE Y'ALl
  184. --Updated for R15 avatars by StarWars
  185. --Re-updated by TakeoHonorable
  186.  
  187. Tool = script.Parent
  188. Handle = Tool:WaitForChild("Handle")
  189.  
  190. function Create(ty)
  191. return function(data)
  192. local obj = Instance.new(ty)
  193. for k, v in pairs(data) do
  194. if type(k) == 'number' then
  195. v.Parent = obj
  196. else
  197. obj[k] = v
  198. end
  199. end
  200. return obj
  201. end
  202. end
  203.  
  204. local BaseUrl = "rbxassetid://"
  205.  
  206. Players = game:GetService("Players")
  207. Debris = game:GetService("Debris")
  208. RunService = game:GetService("RunService")
  209.  
  210. DamageValues = {
  211. BaseDamage = 5,
  212. SlashDamage = 10,
  213. LungeDamage = 30
  214. }
  215.  
  216. --For R15 avatars
  217. Animations = {
  218. R15Slash = 522635514,
  219. R15Lunge = 522638767
  220. }
  221.  
  222. Damage = DamageValues.BaseDamage
  223.  
  224. Grips = {
  225. Up = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0),
  226. Out = CFrame.new(0, 0, -1.70000005, 0, 1, 0, 1, -0, 0, 0, 0, -1)
  227. }
  228.  
  229. Sounds = {
  230. Slash = Handle:WaitForChild("SwordSlash"),
  231. Lunge = Handle:WaitForChild("SwordLunge"),
  232. Unsheath = Handle:WaitForChild("Unsheath")
  233. }
  234.  
  235. ToolEquipped = false
  236.  
  237. --For Omega Rainbow Katana thumbnail to display a lot of particles.
  238. for i, v in pairs(Handle:GetChildren()) do
  239. if v:IsA("ParticleEmitter") then
  240. v.Rate = 20
  241. end
  242. end
  243.  
  244. Tool.Grip = Grips.Up
  245. Tool.Enabled = true
  246.  
  247. function IsTeamMate(Player1, Player2)
  248. return (Player1 and Player2 and not Player1.Neutral and not Player2.Neutral and Player1.TeamColor == Player2.TeamColor)
  249. end
  250.  
  251. function TagHumanoid(humanoid, player)
  252. local Creator_Tag = Instance.new("ObjectValue")
  253. Creator_Tag.Name = "creator"
  254. Creator_Tag.Value = player
  255. Debris:AddItem(Creator_Tag, 2)
  256. Creator_Tag.Parent = humanoid
  257. end
  258.  
  259. function UntagHumanoid(humanoid)
  260. for i, v in pairs(humanoid:GetChildren()) do
  261. if v:IsA("ObjectValue") and v.Name == "creator" then
  262. v:Destroy()
  263. end
  264. end
  265. end
  266.  
  267. function Blow(Hit)
  268. if not Hit or not Hit.Parent or not CheckIfAlive() or not ToolEquipped then
  269. return
  270. end
  271. local RightArm = Character:FindFirstChild("Right Arm") or Character:FindFirstChild("RightHand")
  272. if not RightArm then
  273. return
  274. end
  275. local RightGrip = RightArm:FindFirstChild("RightGrip")
  276. if not RightGrip or (RightGrip.Part0 ~= Handle and RightGrip.Part1 ~= Handle) then
  277. return
  278. end
  279. local character = Hit.Parent
  280. if character == Character then
  281. return
  282. end
  283. local humanoid = character:FindFirstChildOfClass("Humanoid")
  284. if not humanoid or humanoid.Health == 0 then
  285. return
  286. end
  287. local player = Players:GetPlayerFromCharacter(character)
  288. if player and (player == Player or IsTeamMate(Player, player)) then
  289. return
  290. end
  291. UntagHumanoid(humanoid)
  292. TagHumanoid(humanoid, Player)
  293. humanoid:TakeDamage(Damage)
  294. end
  295.  
  296.  
  297. function Attack()
  298. Damage = DamageValues.SlashDamage
  299. Sounds.Slash:Play()
  300.  
  301. if Humanoid then
  302. if Humanoid.RigType == Enum.HumanoidRigType.R6 then
  303. local Anim = Instance.new("StringValue")
  304. Anim.Name = "toolanim"
  305. Anim.Value = "Slash"
  306. Anim.Parent = Tool
  307. elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
  308. local Anim = Tool:FindFirstChild("R15Slash")
  309. if Anim then
  310. local Track = Humanoid:LoadAnimation(Anim)
  311. Track:Play(0)
  312. end
  313. end
  314. end
  315. end
  316.  
  317. function Lunge()
  318. Damage = DamageValues.LungeDamage
  319.  
  320. Sounds.Lunge:Play()
  321.  
  322. if Humanoid then
  323. if Humanoid.RigType == Enum.HumanoidRigType.R6 then
  324. local Anim = Instance.new("StringValue")
  325. Anim.Name = "toolanim"
  326. Anim.Value = "Lunge"
  327. Anim.Parent = Tool
  328. elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
  329. local Anim = Tool:FindFirstChild("R15Lunge")
  330. if Anim then
  331. local Track = Humanoid:LoadAnimation(Anim)
  332. Track:Play(0)
  333. end
  334. end
  335. end
  336. --[[
  337. if CheckIfAlive() then
  338. local Force = Instance.new("BodyVelocity")
  339. Force.velocity = Vector3.new(0, 10, 0)
  340. Force.maxForce = Vector3.new(0, 4000, 0)
  341. Debris:AddItem(Force, 0.4)
  342. Force.Parent = Torso
  343. end
  344. ]]
  345.  
  346. wait(0.2)
  347. Tool.Grip = Grips.Out
  348. wait(0.6)
  349. Tool.Grip = Grips.Up
  350.  
  351. Damage = DamageValues.SlashDamage
  352. end
  353.  
  354. Tool.Enabled = true
  355. LastAttack = 0
  356.  
  357. function Activated()
  358. if not Tool.Enabled or not ToolEquipped or not CheckIfAlive() then
  359. return
  360. end
  361. Tool.Enabled = false
  362. local Tick = RunService.Stepped:wait()
  363. if (Tick - LastAttack < 0.2) then
  364. Lunge()
  365. else
  366. Attack()
  367. end
  368. LastAttack = Tick
  369. --wait(0.5)
  370. Damage = DamageValues.BaseDamage
  371. local SlashAnim = (Tool:FindFirstChild("R15Slash") or Create("Animation"){
  372. Name = "R15Slash",
  373. AnimationId = BaseUrl .. Animations.R15Slash,
  374. Parent = Tool
  375. })
  376.  
  377. local LungeAnim = (Tool:FindFirstChild("R15Lunge") or Create("Animation"){
  378. Name = "R15Lunge",
  379. AnimationId = BaseUrl .. Animations.R15Lunge,
  380. Parent = Tool
  381. })
  382. Tool.Enabled = true
  383. end
  384.  
  385. function CheckIfAlive()
  386. return (((Player and Player.Parent and Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Torso and Torso.Parent) and true) or false)
  387. end
  388.  
  389. function Equipped()
  390. Character = Tool.Parent
  391. Player = Players:GetPlayerFromCharacter(Character)
  392. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  393. Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("HumanoidRootPart")
  394. if not CheckIfAlive() then
  395. return
  396. end
  397. ToolEquipped = true
  398. Sounds.Unsheath:Play()
  399. end
  400.  
  401. function Unequipped()
  402. Tool.Grip = Grips.Up
  403. ToolEquipped = false
  404. end
  405.  
  406. Tool.Activated:Connect(Activated)
  407. Tool.Equipped:Connect(Equipped)
  408. Tool.Unequipped:Connect(Unequipped)
  409.  
  410. Connection = Handle.Touched:Connect(Blow)
  411. end))
  412. LocalScript27.Name = "MouseIcon"
  413. LocalScript27.Parent = Tool0
  414. table.insert(cors,sandbox(LocalScript27,function()
  415. --Made by Luckymaxer
  416.  
  417. Mouse_Icon = "rbxasset://textures/GunCursor.png"
  418. Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
  419.  
  420. Tool = script.Parent
  421.  
  422. Mouse = nil
  423.  
  424. function UpdateIcon()
  425. if Mouse then
  426. Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
  427. end
  428. end
  429.  
  430. function OnEquipped(ToolMouse)
  431. Mouse = ToolMouse
  432. UpdateIcon()
  433. end
  434.  
  435. function OnChanged(Property)
  436. if Property == "Enabled" then
  437. UpdateIcon()
  438. end
  439. end
  440.  
  441. Tool.Equipped:Connect(OnEquipped)
  442. Tool.Changed:Connect(OnChanged)
  443.  
  444. end))
  445. Camera28.Name = "ThumbnailCamera"
  446. Camera28.Parent = Tool0
  447. Camera28.CFrame = CFrame.new(-5.67428207, 2.83736515, 3.79184556, 0.289030313, 0.416664183, -0.861888885, -0, 0.900314331, 0.435240269, 0.957319915, -0.125797629, 0.260218143)
  448. Camera28.CoordinateFrame = CFrame.new(-5.67428207, 2.83736515, 3.79184556, 0.289030313, 0.416664183, -0.861888885, -0, 0.900314331, 0.435240269, 0.957319915, -0.125797629, 0.260218143)
  449. Camera28.Focus = CFrame.new(-3.9505043, 1.96688461, 3.27140927, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  450. Camera28.focus = CFrame.new(-3.9505043, 1.96688461, 3.27140927, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  451. Script29.Name = "WalkSpeedScript"
  452. Script29.Parent = Tool0
  453. table.insert(cors,sandbox(Script29,function()
  454. speed = 100 --16 is default
  455.  
  456. function onPlayerRespawned(character)
  457. wait(1) --loading delay
  458. local player = game.Players:GetPlayerFromCharacter(character)
  459. local human = character:findFirstChild("Humanoid")
  460. if player ~= nil and human ~= nil then
  461. human.WalkSpeed = speed
  462. end
  463. end
  464.  
  465. game.Workspace.ChildAdded:connect(onPlayerRespawned)
  466.  
  467. end))
  468. for i,v in pairs(mas:GetChildren()) do
  469. v.Parent = workspace
  470. pcall(function() v:MakeJoints() end)
  471. end
  472. mas:Destroy()
  473. for i,v in pairs(cors) do
  474. spawn(function()
  475. pcall(v)
  476. end)
  477. end
  478.  
  479. --Converted with ttyyuu12345's model to script plugin v4
  480. function sandbox(var,func)
  481. local env = getfenv(func)
  482. local newenv = setmetatable({},{
  483. __index = function(self,k)
  484. if k=="script" then
  485. return var
  486. else
  487. return env[k]
  488. end
  489. end,
  490. })
  491. setfenv(func,newenv)
  492. return func
  493. end
  494. cors = {}
  495. mas = Instance.new("Model",game:GetService("Lighting"))
  496. Tool0 = Instance.new("Tool")
  497. Part1 = Instance.new("Part")
  498. Sound2 = Instance.new("Sound")
  499. Sound3 = Instance.new("Sound")
  500. Sound4 = Instance.new("Sound")
  501. Part5 = Instance.new("Part")
  502. Decal6 = Instance.new("Decal")
  503. Decal7 = Instance.new("Decal")
  504. Part8 = Instance.new("Part")
  505. Decal9 = Instance.new("Decal")
  506. Decal10 = Instance.new("Decal")
  507. Part11 = Instance.new("Part")
  508. Decal12 = Instance.new("Decal")
  509. Decal13 = Instance.new("Decal")
  510. Part14 = Instance.new("Part")
  511. Decal15 = Instance.new("Decal")
  512. Decal16 = Instance.new("Decal")
  513. PointLight17 = Instance.new("PointLight")
  514. Weld18 = Instance.new("Weld")
  515. Weld19 = Instance.new("Weld")
  516. Weld20 = Instance.new("Weld")
  517. Weld21 = Instance.new("Weld")
  518. WeldConstraint22 = Instance.new("WeldConstraint")
  519. WeldConstraint23 = Instance.new("WeldConstraint")
  520. WeldConstraint24 = Instance.new("WeldConstraint")
  521. WeldConstraint25 = Instance.new("WeldConstraint")
  522. Script26 = Instance.new("Script")
  523. LocalScript27 = Instance.new("LocalScript")
  524. Camera28 = Instance.new("Camera")
  525. Script29 = Instance.new("Script")
  526. Tool0.Name = "Rift"
  527. Tool0.Parent = mas
  528. Tool0.TextureId = "rbxasset://Textures/Sword128.png"
  529. Tool0.Grip = CFrame.new(-0.0215187073, 0, 0.249089241, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  530. Tool0.GripForward = Vector3.new(-1, -0, -0)
  531. Tool0.GripPos = Vector3.new(-0.0215187073, 0, 0.249089241)
  532. Tool0.GripRight = Vector3.new(0, 1, 0)
  533. Tool0.GripUp = Vector3.new(0, 0, 1)
  534. Part1.Name = "Handle"
  535. Part1.Parent = Tool0
  536. Part1.CFrame = CFrame.new(-9.39999962, 2.00000095, -9.50000095, 1.1920929e-07, -1, 2.77318406e-07, 3.85828599e-07, 2.98453244e-08, 1.00000048, -1.00000072, -8.94069672e-08, -7.44502188e-07)
  537. Part1.Orientation = Vector3.new(-90, 90, 0)
  538. Part1.Position = Vector3.new(-9.39999962, 2.00000095, -9.50000095)
  539. Part1.Rotation = Vector3.new(-90, 0, 90)
  540. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  541. Part1.Transparency = 1
  542. Part1.Size = Vector3.new(1, 0.800000012, 4)
  543. Part1.BottomSurface = Enum.SurfaceType.Smooth
  544. Part1.BrickColor = BrickColor.new("Dark stone grey")
  545. Part1.Locked = true
  546. Part1.Reflectance = 0.40000000596046
  547. Part1.TopSurface = Enum.SurfaceType.Smooth
  548. Part1.brickColor = BrickColor.new("Dark stone grey")
  549. Part1.FormFactor = Enum.FormFactor.Plate
  550. Part1.formFactor = Enum.FormFactor.Plate
  551. Sound2.Name = "SwordSlash"
  552. Sound2.Parent = Part1
  553. Sound2.SoundId = "rbxassetid://2571935805"
  554. Sound2.Volume = 5
  555. Sound3.Name = "SwordLunge"
  556. Sound3.Parent = Part1
  557. Sound3.SoundId = "rbxassetid://1759712659"
  558. Sound3.Volume = 5
  559. Sound4.Name = "Unsheath"
  560. Sound4.Parent = Part1
  561. Sound4.Looped = true
  562. Sound4.SoundId = "rbxassetid://2241931437"
  563. Sound4.Volume = 1
  564. Part5.Parent = Part1
  565. Part5.CFrame = CFrame.new(-9.46000004, 2.05503607, -9.44498158, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  566. Part5.Orientation = Vector3.new(0, -90, 0)
  567. Part5.Position = Vector3.new(-9.46000004, 2.05503607, -9.44498158)
  568. Part5.Rotation = Vector3.new(0, -90, 0)
  569. Part5.Transparency = 100
  570. Part5.Size = Vector3.new(4, 4.10999966, 0.0500000007)
  571. Part5.BottomSurface = Enum.SurfaceType.Smooth
  572. Part5.CanCollide = false
  573. Part5.TopSurface = Enum.SurfaceType.Smooth
  574. Decal6.Parent = Part5
  575. Decal6.Texture = "rbxassetid://2171273825"
  576. Decal7.Parent = Part5
  577. Decal7.Texture = "rbxassetid://2171273825"
  578. Decal7.Face = Enum.NormalId.Back
  579. Part8.Parent = Part1
  580. Part8.CFrame = CFrame.new(-9.46000004, 2.05503607, -9.44498158, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  581. Part8.Position = Vector3.new(-9.46000004, 2.05503607, -9.44498158)
  582. Part8.Transparency = 100
  583. Part8.Size = Vector3.new(4, 4.10999966, 0.0500000007)
  584. Part8.BottomSurface = Enum.SurfaceType.Smooth
  585. Part8.CanCollide = false
  586. Part8.TopSurface = Enum.SurfaceType.Smooth
  587. Decal9.Parent = Part8
  588. Decal9.Texture = "rbxassetid://2171273825"
  589. Decal10.Parent = Part8
  590. Decal10.Texture = "rbxassetid://2171273825"
  591. Decal10.Face = Enum.NormalId.Back
  592. Part11.Parent = Part1
  593. Part11.CFrame = CFrame.new(-9.46000004, 2.05503607, -9.44498158, -0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, -0.707106829)
  594. Part11.Orientation = Vector3.new(0, -135, 0)
  595. Part11.Position = Vector3.new(-9.46000004, 2.05503607, -9.44498158)
  596. Part11.Rotation = Vector3.new(-180, -45, -180)
  597. Part11.Transparency = 100
  598. Part11.Size = Vector3.new(4, 4.10999966, 0.0500000007)
  599. Part11.BottomSurface = Enum.SurfaceType.Smooth
  600. Part11.CanCollide = false
  601. Part11.TopSurface = Enum.SurfaceType.Smooth
  602. Decal12.Parent = Part11
  603. Decal12.Texture = "rbxassetid://2171273825"
  604. Decal13.Parent = Part11
  605. Decal13.Texture = "rbxassetid://2171273825"
  606. Decal13.Face = Enum.NormalId.Back
  607. Part14.Parent = Part1
  608. Part14.CFrame = CFrame.new(-9.46000004, 2.05503607, -9.44498158, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829)
  609. Part14.Orientation = Vector3.new(0, -45, 0)
  610. Part14.Position = Vector3.new(-9.46000004, 2.05503607, -9.44498158)
  611. Part14.Rotation = Vector3.new(0, -45, 0)
  612. Part14.Transparency = 100
  613. Part14.Size = Vector3.new(4, 4.10999966, 0.0500000007)
  614. Part14.BottomSurface = Enum.SurfaceType.Smooth
  615. Part14.CanCollide = false
  616. Part14.TopSurface = Enum.SurfaceType.Smooth
  617. Decal15.Parent = Part14
  618. Decal15.Texture = "rbxassetid://2171273825"
  619. Decal16.Parent = Part14
  620. Decal16.Texture = "rbxassetid://2171273825"
  621. Decal16.Face = Enum.NormalId.Back
  622. PointLight17.Parent = Part14
  623. PointLight17.Range = 40
  624. Weld18.Parent = Part14
  625. Weld18.C1 = CFrame.new(-0.0550193787, 0.0600004196, 0.0550351143, -0.707107127, 3.85828599e-07, -0.707107365, -0.707106829, 2.98453244e-08, 0.707106709, -3.30348826e-07, 1.00000048, -7.22536242e-07)
  626. Weld18.Part0 = Part14
  627. Weld18.Part1 = Part1
  628. Weld18.part1 = Part1
  629. Weld19.Parent = Part14
  630. Weld19.C1 = CFrame.new(0, 0, 0, 0.707106829, 0, 0.707106829, 0, 1, 0, -0.707106829, 0, 0.707106829)
  631. Weld19.Part0 = Part14
  632. Weld19.Part1 = Part5
  633. Weld19.part1 = Part5
  634. Weld20.Parent = Part14
  635. Weld20.C1 = CFrame.new(0, 0, 0, 0.707106829, 0, -0.707106829, 0, 1, 0, 0.707106829, 0, 0.707106829)
  636. Weld20.Part0 = Part14
  637. Weld20.Part1 = Part8
  638. Weld20.part1 = Part8
  639. Weld21.Parent = Part14
  640. Weld21.C1 = CFrame.new(0, 0, 0, 0, 0, 1.00000012, 0, 1, 0, -1.00000012, 0, 0)
  641. Weld21.Part0 = Part14
  642. Weld21.Part1 = Part11
  643. Weld21.part1 = Part11
  644. WeldConstraint22.Parent = Part1
  645. WeldConstraint22.Part0 = Part1
  646. WeldConstraint22.Part1 = Part5
  647. WeldConstraint23.Parent = Part1
  648. WeldConstraint23.Part0 = Part1
  649. WeldConstraint23.Part1 = Part8
  650. WeldConstraint24.Parent = Part1
  651. WeldConstraint24.Part0 = Part1
  652. WeldConstraint24.Part1 = Part11
  653. WeldConstraint25.Parent = Part1
  654. WeldConstraint25.Part0 = Part1
  655. WeldConstraint25.Part1 = Part14
  656. Script26.Name = "SwordScript"
  657. Script26.Parent = Tool0
  658. table.insert(cors,sandbox(Script26,function()
  659. --Rescripted by Luckymaxer
  660. --EUROCOW WAS HERE BECAUSE I MADE THE PARTICLES AND THEREFORE THIS ENTIRE SWORD PRETTY AND LOOK PRETTY WORDS AND I'D LIKE TO DEDICATE THIS TO MY FRIENDS AND HI LUCKYMAXER PLS FIX SFOTH SWORDS TY LOVE Y'ALl
  661. --Updated for R15 avatars by StarWars
  662. --Re-updated by TakeoHonorable
  663.  
  664. Tool = script.Parent
  665. Handle = Tool:WaitForChild("Handle")
  666.  
  667. function Create(ty)
  668. return function(data)
  669. local obj = Instance.new(ty)
  670. for k, v in pairs(data) do
  671. if type(k) == 'number' then
  672. v.Parent = obj
  673. else
  674. obj[k] = v
  675. end
  676. end
  677. return obj
  678. end
  679. end
  680.  
  681. local BaseUrl = "rbxassetid://"
  682.  
  683. Players = game:GetService("Players")
  684. Debris = game:GetService("Debris")
  685. RunService = game:GetService("RunService")
  686.  
  687. DamageValues = {
  688. BaseDamage = 5,
  689. SlashDamage = 10,
  690. LungeDamage = 30
  691. }
  692.  
  693. --For R15 avatars
  694. Animations = {
  695. R15Slash = 522635514,
  696. R15Lunge = 522638767
  697. }
  698.  
  699. Damage = DamageValues.BaseDamage
  700.  
  701. Grips = {
  702. Up = CFrame.new(0, 0, -1.70000005, 0, 0, 1, 1, 0, 0, 0, 1, 0),
  703. Out = CFrame.new(0, 0, -1.70000005, 0, 1, 0, 1, -0, 0, 0, 0, -1)
  704. }
  705.  
  706. Sounds = {
  707. Slash = Handle:WaitForChild("SwordSlash"),
  708. Lunge = Handle:WaitForChild("SwordLunge"),
  709. Unsheath = Handle:WaitForChild("Unsheath")
  710. }
  711.  
  712. ToolEquipped = false
  713.  
  714. --For Omega Rainbow Katana thumbnail to display a lot of particles.
  715. for i, v in pairs(Handle:GetChildren()) do
  716. if v:IsA("ParticleEmitter") then
  717. v.Rate = 20
  718. end
  719. end
  720.  
  721. Tool.Grip = Grips.Up
  722. Tool.Enabled = true
  723.  
  724. function IsTeamMate(Player1, Player2)
  725. return (Player1 and Player2 and not Player1.Neutral and not Player2.Neutral and Player1.TeamColor == Player2.TeamColor)
  726. end
  727.  
  728. function TagHumanoid(humanoid, player)
  729. local Creator_Tag = Instance.new("ObjectValue")
  730. Creator_Tag.Name = "creator"
  731. Creator_Tag.Value = player
  732. Debris:AddItem(Creator_Tag, 2)
  733. Creator_Tag.Parent = humanoid
  734. end
  735.  
  736. function UntagHumanoid(humanoid)
  737. for i, v in pairs(humanoid:GetChildren()) do
  738. if v:IsA("ObjectValue") and v.Name == "creator" then
  739. v:Destroy()
  740. end
  741. end
  742. end
  743.  
  744. function Blow(Hit)
  745. if not Hit or not Hit.Parent or not CheckIfAlive() or not ToolEquipped then
  746. return
  747. end
  748. local RightArm = Character:FindFirstChild("Right Arm") or Character:FindFirstChild("RightHand")
  749. if not RightArm then
  750. return
  751. end
  752. local RightGrip = RightArm:FindFirstChild("RightGrip")
  753. if not RightGrip or (RightGrip.Part0 ~= Handle and RightGrip.Part1 ~= Handle) then
  754. return
  755. end
  756. local character = Hit.Parent
  757. if character == Character then
  758. return
  759. end
  760. local humanoid = character:FindFirstChildOfClass("Humanoid")
  761. if not humanoid or humanoid.Health == 0 then
  762. return
  763. end
  764. local player = Players:GetPlayerFromCharacter(character)
  765. if player and (player == Player or IsTeamMate(Player, player)) then
  766. return
  767. end
  768. UntagHumanoid(humanoid)
  769. TagHumanoid(humanoid, Player)
  770. humanoid:TakeDamage(Damage)
  771. end
  772.  
  773.  
  774. function Attack()
  775. Damage = DamageValues.SlashDamage
  776. Sounds.Slash:Play()
  777.  
  778. if Humanoid then
  779. if Humanoid.RigType == Enum.HumanoidRigType.R6 then
  780. local Anim = Instance.new("StringValue")
  781. Anim.Name = "toolanim"
  782. Anim.Value = "Slash"
  783. Anim.Parent = Tool
  784. elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
  785. local Anim = Tool:FindFirstChild("R15Slash")
  786. if Anim then
  787. local Track = Humanoid:LoadAnimation(Anim)
  788. Track:Play(0)
  789. end
  790. end
  791. end
  792. end
  793.  
  794. function Lunge()
  795. Damage = DamageValues.LungeDamage
  796.  
  797. Sounds.Lunge:Play()
  798.  
  799. if Humanoid then
  800. if Humanoid.RigType == Enum.HumanoidRigType.R6 then
  801. local Anim = Instance.new("StringValue")
  802. Anim.Name = "toolanim"
  803. Anim.Value = "Lunge"
  804. Anim.Parent = Tool
  805. elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
  806. local Anim = Tool:FindFirstChild("R15Lunge")
  807. if Anim then
  808. local Track = Humanoid:LoadAnimation(Anim)
  809. Track:Play(0)
  810. end
  811. end
  812. end
  813. --[[
  814. if CheckIfAlive() then
  815. local Force = Instance.new("BodyVelocity")
  816. Force.velocity = Vector3.new(0, 10, 0)
  817. Force.maxForce = Vector3.new(0, 4000, 0)
  818. Debris:AddItem(Force, 0.4)
  819. Force.Parent = Torso
  820. end
  821. ]]
  822.  
  823. wait(0.2)
  824. Tool.Grip = Grips.Out
  825. wait(0.6)
  826. Tool.Grip = Grips.Up
  827.  
  828. Damage = DamageValues.SlashDamage
  829. end
  830.  
  831. Tool.Enabled = true
  832. LastAttack = 0
  833.  
  834. function Activated()
  835. if not Tool.Enabled or not ToolEquipped or not CheckIfAlive() then
  836. return
  837. end
  838. Tool.Enabled = false
  839. local Tick = RunService.Stepped:wait()
  840. if (Tick - LastAttack < 0.2) then
  841. Lunge()
  842. else
  843. Attack()
  844. end
  845. LastAttack = Tick
  846. --wait(0.5)
  847. Damage = DamageValues.BaseDamage
  848. local SlashAnim = (Tool:FindFirstChild("R15Slash") or Create("Animation"){
  849. Name = "R15Slash",
  850. AnimationId = BaseUrl .. Animations.R15Slash,
  851. Parent = Tool
  852. })
  853.  
  854. local LungeAnim = (Tool:FindFirstChild("R15Lunge") or Create("Animation"){
  855. Name = "R15Lunge",
  856. AnimationId = BaseUrl .. Animations.R15Lunge,
  857. Parent = Tool
  858. })
  859. Tool.Enabled = true
  860. end
  861.  
  862. function CheckIfAlive()
  863. return (((Player and Player.Parent and Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Torso and Torso.Parent) and true) or false)
  864. end
  865.  
  866. function Equipped()
  867. Character = Tool.Parent
  868. Player = Players:GetPlayerFromCharacter(Character)
  869. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  870. Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("HumanoidRootPart")
  871. if not CheckIfAlive() then
  872. return
  873. end
  874. ToolEquipped = true
  875. Sounds.Unsheath:Play()
  876. end
  877.  
  878. function Unequipped()
  879. Tool.Grip = Grips.Up
  880. ToolEquipped = false
  881. end
  882.  
  883. Tool.Activated:Connect(Activated)
  884. Tool.Equipped:Connect(Equipped)
  885. Tool.Unequipped:Connect(Unequipped)
  886.  
  887. Connection = Handle.Touched:Connect(Blow)
  888. end))
  889. LocalScript27.Name = "MouseIcon"
  890. LocalScript27.Parent = Tool0
  891. table.insert(cors,sandbox(LocalScript27,function()
  892. --Made by Luckymaxer
  893.  
  894. Mouse_Icon = "rbxasset://textures/GunCursor.png"
  895. Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
  896.  
  897. Tool = script.Parent
  898.  
  899. Mouse = nil
  900.  
  901. function UpdateIcon()
  902. if Mouse then
  903. Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
  904. end
  905. end
  906.  
  907. function OnEquipped(ToolMouse)
  908. Mouse = ToolMouse
  909. UpdateIcon()
  910. end
  911.  
  912. function OnChanged(Property)
  913. if Property == "Enabled" then
  914. UpdateIcon()
  915. end
  916. end
  917.  
  918. Tool.Equipped:Connect(OnEquipped)
  919. Tool.Changed:Connect(OnChanged)
  920.  
  921. end))
  922. Camera28.Name = "ThumbnailCamera"
  923. Camera28.Parent = Tool0
  924. Camera28.CFrame = CFrame.new(-5.67428207, 2.83736515, 3.79184556, 0.289030313, 0.416664183, -0.861888885, -0, 0.900314331, 0.435240269, 0.957319915, -0.125797629, 0.260218143)
  925. Camera28.CoordinateFrame = CFrame.new(-5.67428207, 2.83736515, 3.79184556, 0.289030313, 0.416664183, -0.861888885, -0, 0.900314331, 0.435240269, 0.957319915, -0.125797629, 0.260218143)
  926. Camera28.Focus = CFrame.new(-3.9505043, 1.96688461, 3.27140927, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  927. Camera28.focus = CFrame.new(-3.9505043, 1.96688461, 3.27140927, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  928. Script29.Name = "WalkSpeedScript"
  929. Script29.Parent = Tool0
  930. table.insert(cors,sandbox(Script29,function()
  931. speed = 100 --16 is default
  932.  
  933. function onPlayerRespawned(character)
  934. wait(1) --loading delay
  935. local player = game.Players:GetPlayerFromCharacter(character)
  936. local human = character:findFirstChild("Humanoid")
  937. if player ~= nil and human ~= nil then
  938. human.WalkSpeed = speed
  939. end
  940. end
  941.  
  942. game.Workspace.ChildAdded:connect(onPlayerRespawned)
  943.  
  944. end))
  945. for i,v in pairs(mas:GetChildren()) do
  946. v.Parent = workspace
  947. pcall(function() v:MakeJoints() end)
  948. end
  949. mas:Destroy()
  950. for i,v in pairs(cors) do
  951. spawn(function()
  952. pcall(v)
  953. end)
  954. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement