Advertisement
The_God_M8

Katana

Apr 19th, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.55 KB | None | 0 0
  1. --[[
  2. THE MURDERER
  3. Created by Quil_Cyndaquil (ROBLOX)
  4. MintyLatios (V3rmillion)
  5. Minty Latios#1938
  6.  
  7. Credit to CKbackup for the knife
  8. Credit to Rufus14 for the ragdolls
  9.  
  10.  
  11. --]]
  12. --//====================================================\\--
  13. --|| CREATED BY SHACKLUSTER
  14. --\\====================================================//--
  15. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  16. local Player,game,owner = owner,game
  17. local RealPlayer = Player
  18. do
  19. print("FE Compatibility code by Mokiros")
  20. local rp = RealPlayer
  21. script.Parent = rp.Character
  22.  
  23. --RemoteEvent for communicating
  24. local Event = Instance.new("RemoteEvent")
  25. Event.Name = "UserInput_Event"
  26.  
  27. --Fake event to make stuff like Mouse.KeyDown work
  28. local function fakeEvent()
  29. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  30. t.connect = t.Connect
  31. return t
  32. end
  33.  
  34. --Creating fake input objects with fake variables
  35. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  36. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  37. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  38. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  39. end}
  40. --Merged 2 functions into one by checking amount of arguments
  41. CAS.UnbindAction = CAS.BindAction
  42.  
  43. --This function will trigger the events that have been :Connect()'ed
  44. local function te(self,ev,...)
  45. local t = m[ev]
  46. if t and t._fakeEvent then
  47. for _,f in pairs(t.Functions) do
  48. f(...)
  49. end
  50. end
  51. end
  52. m.TrigEvent = te
  53. UIS.TrigEvent = te
  54.  
  55. Event.OnServerEvent:Connect(function(plr,io)
  56. if plr~=rp then return end
  57. m.Target = io.Target
  58. m.Hit = io.Hit
  59. if not io.isMouse then
  60. local b = io.UserInputState == Enum.UserInputState.Begin
  61. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  62. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  63. end
  64. for _,t in pairs(CAS.Actions) do
  65. for _,k in pairs(t.Keys) do
  66. if k==io.KeyCode then
  67. t.Function(t.Name,io.UserInputState,io)
  68. end
  69. end
  70. end
  71. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  72. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  73. end
  74. end)
  75. Event.Parent = NLS([==[
  76. local Player = game:GetService("Players").LocalPlayer
  77. local Event = script:WaitForChild("UserInput_Event")
  78.  
  79. local Mouse = Player:GetMouse()
  80. local UIS = game:GetService("UserInputService")
  81. local input = function(io,a)
  82. if a then return end
  83. --Since InputObject is a client-side instance, we create and pass table instead
  84. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  85. end
  86. UIS.InputBegan:Connect(input)
  87. UIS.InputEnded:Connect(input)
  88.  
  89. local h,t
  90. --Give the server mouse data 30 times every second, but only if the values changed
  91. --If player is not moving their mouse, client won't fire events
  92. while wait(1/30) do
  93. if h~=Mouse.Hit or t~=Mouse.Target then
  94. h,t=Mouse.Hit,Mouse.Target
  95. Event:FireServer({isMouse=true,Target=t,Hit=h})
  96. end
  97. end]==],Player.Character)
  98.  
  99. ----Sandboxed game object that allows the usage of client-side methods and services
  100. --Real game object
  101. local _rg = game
  102.  
  103. --Metatable for fake service
  104. local fsmt = {
  105. __index = function(self,k)
  106. local s = rawget(self,"_RealService")
  107. if s then return s[k] end
  108. end,
  109. __newindex = function(self,k,v)
  110. local s = rawget(self,"_RealService")
  111. if s then s[k]=v end
  112. end,
  113. __call = function(self,...)
  114. local s = rawget(self,"_RealService")
  115. if s then return s(...) end
  116. end
  117. }
  118. local function FakeService(t,RealService)
  119. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  120. return setmetatable(t,fsmt)
  121. end
  122.  
  123. --Fake game object
  124. local g = {
  125. GetService = function(self,s)
  126. return self[s]
  127. end,
  128. Players = FakeService({
  129. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  130. },"Players"),
  131. UserInputService = FakeService(UIS,"UserInputService"),
  132. ContextActionService = FakeService(CAS,"ContextActionService"),
  133. }
  134. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  135. g.service = g.GetService
  136.  
  137. g.RunService = FakeService({
  138. RenderStepped = _rg:GetService("RunService").Heartbeat,
  139. BindToRenderStep = function(self,name,_,fun)
  140.  
  141. end,
  142. UnbindFromRenderStep = function(self,name)
  143. self._btrs[name]:Disconnect()
  144. end,
  145. },"RunService")
  146.  
  147. setmetatable(g,{
  148. __index=function(self,s)
  149. return _rg:GetService(s) or typeof(_rg[s])=="function"
  150. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  151. end,
  152. __newindex = fsmt.__newindex,
  153. __call = fsmt.__call
  154. })
  155. --Changing owner to fake player object to support owner:GetMouse()
  156. game,owner = g,g.Players.LocalPlayer
  157. end
  158.  
  159. wait(1)
  160. plr = owner
  161. char = plr.Character
  162. torso = char.Torso
  163. eq = false
  164. mouse = owner:GetMouse()
  165. Effects = {}
  166. nen = false
  167. lifetime = 6
  168. amnt = 5
  169. divinesword = false
  170. equipped = false
  171. enabled = false
  172. rs = torso["Right Shoulder"]
  173. ls = torso["Left Shoulder"]
  174. attacking = false
  175. usage = false
  176. active = false
  177. chatscript = false
  178. char.Humanoid.WalkSpeed = 25
  179.  
  180. deca = false
  181. grabbing = false
  182. grabbed = false
  183. count = 0
  184. local rightclone = Instance.new("Motor6D")
  185. rightclone.Name = "Right Shoulder"
  186. rightclone.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  187. rightclone.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  188. local leftclone = Instance.new("Motor6D")
  189. leftclone.Name = "Left Shoulder"
  190. leftclone.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  191. leftclone.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  192. local torsoclone = Instance.new("Motor6D")
  193. torsoclone.Name = "RootJoint"
  194. torsoclone.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  195. torsoclone.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  196. local killcount = Instance.new("ScreenGui")
  197. local kills = Instance.new("TextLabel")
  198. killcount.Name = "killcount"
  199. killcount.Parent = plr.PlayerGui
  200. kills.Name = "kills"
  201. kills.Parent = killcount
  202. kills.BackgroundColor3 = Color3.new(0, 1, 0)
  203. kills.BorderColor3 = Color3.new(0, 0, 0)
  204. kills.BorderSizePixel = 2
  205. kills.Position = UDim2.new(0, 0, 0.380952388, 0)
  206. kills.Size = UDim2.new(0, 200, 0, 50)
  207. kills.Font = Enum.Font.SourceSans
  208. kills.FontSize = Enum.FontSize.Size24
  209. kills.Text = "Kills:"
  210. kills.TextColor3 = Color3.new(1, 1, 1)
  211. kills.TextScaled = true
  212. kills.TextSize = 20
  213. kills.TextWrapped = true
  214. function remgui()
  215. for i, v in pairs(plr.PlayerGui:GetChildren()) do
  216. if v.ClassName == "ScreenGui" and v.Name == "Noti" then
  217. v:Destroy()
  218. end
  219. end
  220. end
  221. function inform(txt, del)
  222. local cor = coroutine.wrap(function()
  223. local Noti = Instance.new("ScreenGui")
  224. local text = Instance.new("TextLabel")
  225. local bar = Instance.new("Frame")
  226. Noti.Name = "Noti"
  227. Noti.Parent = plr.PlayerGui
  228. text.Name = "text"
  229. text.Parent = Noti
  230. text.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  231. text.BorderSizePixel = 0
  232. text.Position = UDim2.new(0.111111112, 0, 0.111904763, 0)
  233. text.Size = UDim2.new(0, 640, 0, 64)
  234. text.Font = Enum.Font.SourceSans
  235. text.FontSize = Enum.FontSize.Size14
  236. text.Text = txt
  237. text.TextColor3 = Color3.new(1, 1, 1)
  238. text.TextScaled = true
  239. text.TextSize = 14
  240. text.TextWrapped = true
  241. bar.Name = "bar"
  242. bar.Parent = text
  243. bar.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  244. bar.BorderSizePixel = 0
  245. bar.Position = UDim2.new(0, 0, 1, 0)
  246. bar.Size = UDim2.new(0, 640, 0, 8)
  247. wait(del)
  248. remgui()
  249. end)
  250. cor()
  251. end
  252. inform("Katana V2 by Mitu_Andrei and RazerOfficial-, press C to equip.", 2)
  253. char.Humanoid.MaxHealth = math.huge
  254. local ff = Instance.new("ForceField", char)
  255. ff.Visible = false
  256. ff.Name = "AAAAAAAAA"
  257. o1 = Instance.new("Model")
  258. o2 = Instance.new("WedgePart")
  259. o3 = Instance.new("Part")
  260. o4 = Instance.new("Part")
  261. o5 = Instance.new("Part")
  262. o6 = Instance.new("Part")
  263. o7 = Instance.new("WedgePart")
  264. o1.Name = "katana"
  265. o1.Parent = char
  266. o1.PrimaryPart = o5
  267. o2.Name = "blade"
  268. o2.Parent = o1
  269. o2.Transparency = 1
  270. o2.Material = Enum.Material.Metal
  271. o2.BrickColor = BrickColor.new("Dark stone grey")
  272. o2.Position = Vector3.new(-1.41889954, 0.568201602, 35.4738998)
  273. o2.Rotation = Vector3.new(63.8199997, -76.5999985, 63.1800003)
  274. o2.Size = Vector3.new(0.170001268, 0.280000448, 0.930000186)
  275. o2.CFrame = CFrame.new(-1.41889954, 0.568201602, 35.4738998, 0.104519971, -0.206772178, -0.972791672, 3.79876219E-8, 0.978147924, -0.207910955, 0.99452281, 0.021730829, 0.102236226)
  276. o2.BottomSurface = Enum.SurfaceType.Smooth
  277. o2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  278. o2.Position = Vector3.new(-1.41889954, 0.568201602, 35.4738998)
  279. o3.Name = "topcap"
  280. o3.Parent = o1
  281. o3.BrickColor = BrickColor.new("Really black")
  282. o3.Position = Vector3.new(-5.86900711, 0.455011994, 35.550087)
  283. o3.Shape = Enum.PartType.Cylinder
  284. o3.Size = Vector3.new(0.189999998, 0.890000105, 1)
  285. o3.CFrame = CFrame.new(-5.86900711, 0.455011994, 35.550087, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  286. o3.BottomSurface = Enum.SurfaceType.Smooth
  287. o3.TopSurface = Enum.SurfaceType.Smooth
  288. o3.Transparency = 1
  289. o3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  290. o3.Position = Vector3.new(-5.86900711, 0.455011994, 35.550087)
  291. o4.Name = "blade"
  292. o4.Parent = o1
  293. o4.Material = Enum.Material.Metal
  294. o4.BrickColor = BrickColor.new("Dark stone grey")
  295. o4.Position = Vector3.new(-3.78600883, 0.425012141, 35.5000877)
  296. o4.Size = Vector3.new(4.01999998, 0.350000054, 0.17000033)
  297. o4.CFrame = CFrame.new(-3.78600883, 0.425012141, 35.5000877, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  298. o4.BottomSurface = Enum.SurfaceType.Smooth
  299. o4.Transparency = 1
  300. o4.TopSurface = Enum.SurfaceType.Smooth
  301. o4.Color = Color3.new(0.388235, 0.372549, 0.384314)
  302. o4.Position = Vector3.new(-3.78600883, 0.425012141, 35.5000877)
  303. o5.Name = "handle"
  304. o5.Parent = o1
  305. o5.Material = Enum.Material.SmoothPlastic
  306. o5.BrickColor = BrickColor.new("Really black")
  307. o5.Position = Vector3.new(-6.68501282, 0.412755281, 35.5199966)
  308. o5.Shape = Enum.PartType.Cylinder
  309. o5.Size = Vector3.new(1.67000186, 0.400000423, 1)
  310. o5.CFrame = CFrame.new(-6.68501282, 0.412755281, 35.5199966, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  311. o5.BottomSurface = Enum.SurfaceType.Smooth
  312. o5.TopSurface = Enum.SurfaceType.Smooth
  313. o5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  314. o5.Position = Vector3.new(-6.68501282, 0.412755281, 35.5199966)
  315. o6.Name = "blade"
  316. o6.Parent = o1
  317. o6.Material = Enum.Material.Metal
  318. o6.BrickColor = BrickColor.new("Pearl")
  319. o6.Position = Vector3.new(-3.68737984, 0.361644179, 35.5102768)
  320. o6.Size = Vector3.new(4.23000383, 0.300000042, 0.130000442)
  321. o6.CFrame = CFrame.new(-3.68737984, 0.361644179, 35.5102768, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  322. o6.BottomSurface = Enum.SurfaceType.Smooth
  323. o6.TopSurface = Enum.SurfaceType.Smooth
  324. o6.Color = Color3.new(0.905882, 0.905882, 0.92549)
  325. o6.Transparency = 1
  326. o6.Position = Vector3.new(-3.68737984, 0.361644179, 35.5102768)
  327. o7.Name = "blade"
  328. o7.Parent = o1
  329. o7.Material = Enum.Material.Metal
  330. o7.BrickColor = BrickColor.new("Pearl")
  331. o7.Position = Vector3.new(-1.31419945, 0.486169487, 35.4697533)
  332. o7.Rotation = Vector3.new(76.7900009, -65.2999954, 75.5099945)
  333. o7.Size = Vector3.new(0.07, 0.28, 0.93)
  334. o7.CFrame = CFrame.new(-1.31419945, 0.486169487, 35.4697533, 0.104519621, -0.404509038, -0.908541679, -1.11847829E-8, 0.91354543, -0.406736791, 0.994522929, 0.042511981, 0.0954833925)
  335. o7.BottomSurface = Enum.SurfaceType.Smooth
  336. o7.Color = Color3.new(0.905882, 0.905882, 0.92549)
  337. o7.Position = Vector3.new(-1.31419945, 0.486169487, 35.4697533)
  338. o7.Transparency = 1
  339. knife = Instance.new("Model")
  340. knifepart = Instance.new("Part")
  341. knifepart2 = Instance.new("WedgePart")
  342. knifepart3 = Instance.new("Part")
  343. knifepart4 = Instance.new("Part")
  344. knifepart5 = Instance.new("Part")
  345. knife.Name = "knife"
  346. knife.PrimaryPart = knifepart2
  347. knife.Parent = char
  348. knifepart.Name = "hit"
  349. knifepart.Parent = knife
  350. knifepart.Transparency = 9
  351. knifepart.Position = Vector3.new(-3.64290094, 0.138375998, -32.6240005)
  352. knifepart.Anchored = true
  353. knifepart.Size = Vector3.new(1.99439991, 0.27670002, 0.48179999)
  354. knifepart.CFrame = CFrame.new(-3.64290094, 0.138375998, -32.6240005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  355. knifepart.Position = Vector3.new(-3.64290094, 0.138375998, -32.6240005)
  356. knifepart2.Name = "blade"
  357. knifepart2.Parent = knife
  358. knifepart2.Material = Enum.Material.Metal
  359. knifepart2.Position = Vector3.new(-4.524755, 0.141372442, -32.631443)
  360. knifepart2.Rotation = Vector3.new(0, 90, 0)
  361. knifepart2.Anchored = true
  362. knifepart2.Size = Vector3.new(0.122299999, 0.171500012, 0.265900016)
  363. knifepart2.CFrame = CFrame.new(-4.524755, 0.141372442, -32.631443, -4.37113883E-8, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883E-8)
  364. knifepart2.Position = Vector3.new(-4.524755, 0.141372442, -32.631443)
  365. knifepart3.Name = "blade"
  366. knifepart3.Parent = knife
  367. knifepart3.Material = Enum.Material.Metal
  368. knifepart3.Position = Vector3.new(-3.52325106, 0.108675718, -32.6366501)
  369. knifepart3.Anchored = true
  370. knifepart3.Size = Vector3.new(1.75509989, 0.0987000093, 0.153300002)
  371. knifepart3.CFrame = CFrame.new(-3.52325106, 0.108675718, -32.6366501, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  372. knifepart3.Position = Vector3.new(-3.52325106, 0.108675718, -32.6366501)
  373. knifepart4.Name = "blade"
  374. knifepart4.Parent = knife
  375. knifepart4.Material = Enum.Material.Metal
  376. knifepart4.BrickColor = BrickColor.new("Dark stone grey")
  377. knifepart4.Position = Vector3.new(-3.52325106, 0.188175917, -32.6366501)
  378. knifepart4.Anchored = true
  379. knifepart4.Size = Vector3.new(1.75509989, 0.0637000054, 0.153300002)
  380. knifepart4.CFrame = CFrame.new(-3.52325106, 0.188175917, -32.6366501, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  381. knifepart4.Color = Color3.new(0.388235, 0.372549, 0.384314)
  382. knifepart4.Position = Vector3.new(-3.52325106, 0.188175917, -32.6366501)
  383. knifepart5.Name = "hold"
  384. knifepart5.Parent = knife
  385. knifepart5.Material = Enum.Material.SmoothPlastic
  386. knifepart5.BrickColor = BrickColor.new("Black")
  387. knifepart5.Position = Vector3.new(-2.84210014, 0.141077757, -32.6371498)
  388. knifepart5.Anchored = true
  389. knifepart5.Size = Vector3.new(1.44639993, 0.265300006, 0.213100001)
  390. knifepart5.CFrame = CFrame.new(-2.84210014, 0.141077757, -32.6371498, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  391. knifepart5.Color = Color3.new(0.105882, 0.164706, 0.207843)
  392. knifepart5.Position = Vector3.new(-2.84210014, 0.141077757, -32.6371498)
  393. knifep = knife.PrimaryPart
  394. knifech = knife:GetChildren()
  395. function rayLaser(brcol)
  396. local sou = Instance.new("Sound", o5)
  397. sou.SoundId = "rbxassetid://878000314"
  398. sou.Volume = 1.3
  399. char.Humanoid.WalkSpeed = 0
  400. for i = 1, 5 do
  401. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.2)
  402. wait()
  403. end
  404. local ray = Ray.new(o6.CFrame.p, (mouse.Hit.p - o6.CFrame.p).unit * 500000)
  405. local ignore = char
  406. local hit, position = workspace:FindPartOnRay(ray, ignore)
  407. local distance = (position - o6.CFrame.p).magnitude
  408. local ef = Instance.new("Part", char)
  409. ef.Anchored = true
  410. ef.Material = "Neon"
  411. ef.CanCollide = false
  412. ef.CFrame = o6.CFrame * CFrame.new(0, -2, 0)
  413. ef.BrickColor = brcol
  414. ef.Size = Vector3.new(3, 3, 3)
  415. local las = Instance.new("Part", char)
  416. las.BrickColor = brcol
  417. las.Material = "Neon"
  418. las.Transparency = 0
  419. las.CanCollide = false
  420. las.FormFactor = Enum.FormFactor.Custom
  421. las.Size = Vector3.new(1, 1, distance)
  422. las.CFrame = CFrame.new(position, ef.CFrame.p) * CFrame.new(0, 0, -distance / 2)
  423. las.Anchored = true
  424. local ef0 = Instance.new("Part", char)
  425. ef0.Anchored = true
  426. ef0.Material = "Neon"
  427. ef0.CanCollide = false
  428. ef0.Position = position
  429. ef0.BrickColor = brcol
  430. ef0.Size = Vector3.new(3, 3, 3)
  431. sou:Play()
  432. las.Name = "Effect"
  433. ef.Name = "Effect"
  434. ef0.Name = "Effect"
  435. if hit == nil then
  436. print("no")
  437. wait(0.4)
  438. for i = 1, 30 do
  439. las.Size = las.Size - Vector3.new(0.1, 0.1, 0)
  440. ef.Size = ef.Size - Vector3.new(0.1, 0.1, 0.1)
  441. ef0.Size = ef0.Size - Vector3.new(0.1, 0.1, 0.1)
  442. ef.Transparency = ef.Transparency + 0.03333333333333333
  443. ef0.Transparency = ef0.Transparency + 0.03333333333333333
  444. las.Transparency = las.Transparency + 0.03333333333333333
  445. wait()
  446. end
  447. for i = 1, 5 do
  448. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, -0.2)
  449. wait()
  450. end
  451. las:Destroy()
  452. ef:Destroy()
  453. ef0:Destroy()
  454. attacking = false
  455. char.Humanoid.WalkSpeed = 5
  456. return
  457. end
  458. coroutine.wrap(function()
  459. for i = 1, 10 do
  460. las.Size = las.Size + Vector3.new(0.1, 0.1, 0)
  461. ef.Size = ef.Size + Vector3.new(0.1, 0.1, 0.1)
  462. ef0.Size = ef0.Size + Vector3.new(0.1, 0.1, 0.1)
  463. wait()
  464. end
  465. end)()
  466. coroutine.wrap(function()
  467. while true do
  468. ef0.CFrame = ef0.CFrame * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
  469. ef.CFrame = ef.CFrame * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
  470. wait()
  471. end
  472. end)()
  473. coroutine.wrap(function()
  474. for i = 1, math.random(1, 10) do
  475. local pa = Instance.new("Part", workspace)
  476. pa.Name = "Effect"
  477. pa.Size = Vector3.new(0.8, 0.8, 0.8)
  478. pa.BrickColor = brcol
  479. pa.Anchored = false
  480. pa.CanCollide = false
  481. pa.CFrame = ef0.CFrame
  482. pa.Material = "Neon"
  483. local ve = Instance.new("BodyVelocity", pa)
  484. ve.Velocity = Vector3.new(math.random(-50, 50), math.random(5, 50), math.random(-50, 50))
  485. wait()
  486. ve:Destroy()
  487. end
  488. end)()
  489. print(distance)
  490. las:Destroy()
  491. ef:Destroy()
  492. ef0:Destroy()
  493. attacking = false
  494. char.Humanoid.WalkSpeed = 5
  495. for i = 1, 5 do
  496. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, -0.2)
  497. wait()
  498. end
  499. end
  500. for i = 1, #knifech do
  501. if knifech[i]:IsA("BasePart") then
  502. local weld = Instance.new("Weld", knifep)
  503. weld.Part0 = knifep
  504. weld.Part1 = knifech[i]
  505. weld.C0 = knifep.CFrame:inverse()
  506. weld.C1 = knifech[i].CFrame:inverse()
  507. weld.Parent = knifep
  508. end
  509. end
  510. for _, b in pairs(knife:GetChildren()) do
  511. if b.ClassName == "Part" then
  512. b.Transparency = 1
  513. end
  514. end
  515. knife.Parent = nil
  516. local equipsound = Instance.new("Sound")
  517. equipsound.SoundId = "rbxassetid://608709870"
  518. equipsound.Volume = 1
  519. local unequipsound = Instance.new("Sound")
  520. unequipsound.SoundId = "rbxassetid://608714098"
  521. unequipsound.Volume = 1
  522. local swordeq = Instance.new("Sound")
  523. local att1 = Instance.new("Attachment", o5)
  524. local att2 = Instance.new("Attachment", o7)
  525. local trail = Instance.new("Trail", o5)
  526. trail.Color = ColorSequence.new({
  527. ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)),
  528. ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255))
  529. })
  530. trail.LightEmission = 0.25
  531. trail.Transparency = NumberSequence.new({
  532. NumberSequenceKeypoint.new(0, 0.75),
  533. NumberSequenceKeypoint.new(1, 1)
  534. })
  535. trail.Lifetime = 0.1
  536. trail.MinLength = 0.05
  537. trail.Attachment0 = att1
  538. trail.Attachment1 = att2
  539. trail.Enabled = false
  540. function ragdoll(victim)
  541. for _, t in pairs(victim:GetChildren()) do
  542. if t.ClassName == "Humanoid" then
  543. t.Died:connect(function()
  544. victim.Archivable = true
  545. local Ragdoll = victim:Clone()
  546. Ragdoll.Name = victim.Name .. " (Dead)"
  547. victim.Archivable = false
  548. for _, Object in pairs(Ragdoll:GetChildren()) do
  549. if Object.ClassName == "Script" or Object.ClassName == "LocalScript" then
  550. Object:Destroy()
  551. end
  552. for _, Weld in pairs(Object:GetChildren()) do
  553. if Weld.ClassName == "Weld" or Weld.ClassName == "Motor6D" then
  554. Weld:Destroy()
  555. end
  556. end
  557. end
  558. for _, v in pairs(Ragdoll:GetChildren()) do
  559. if v.ClassName == "Humanoid" then
  560. local RagdollHumanoid = v
  561. RagdollHumanoid.Name = "Ragdoll Humanoid"
  562. RagdollHumanoid.PlatformStand = true
  563. RagdollHumanoid.Sit = true
  564. RagdollHumanoid.MaxHealth = 0
  565. RagdollHumanoid.Health = 0
  566. end
  567. end
  568. local Torso, MoveVector
  569. if Ragdoll:FindFirstChild("Torso") and victim:FindFirstChild("Torso") then
  570. Torso = Ragdoll.Torso
  571. MoveVector = Ragdoll.Torso.CFrame.lookVector
  572. do
  573. local Limb = Torso
  574. Limb.Anchored = false
  575. coroutine.wrap(function()
  576. for i = 1, 20 do
  577. local blood = Instance.new("Part", Ragdoll)
  578. local vel = Instance.new("BodyVelocity", blood)
  579. vel.MaxForce = Vector3.new(99999, 99999, 9999999)
  580. vel.Velocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  581. blood.BrickColor = BrickColor.new("Maroon")
  582. blood.Anchored = false
  583. blood.CanCollide = false
  584. blood.Size = Vector3.new(0.3, 0.3, 0.3)
  585. blood.CFrame = Limb.CFrame
  586. wait()
  587. vel:Destroy()
  588. end
  589. end)()
  590. coroutine.wrap(function()
  591. coroutine.wrap(function()
  592. for i = 1, 3 do
  593. coroutine.wrap(function()
  594. local pool = Instance.new("Part", Ragdoll)
  595. pool.CFrame = Limb.CFrame * CFrame.new(math.random(-1, 4), -2.9, math.random(-1, 4))
  596. pool.BrickColor = BrickColor.new("Crimson")
  597. pool.Material = "SmoothPlastic"
  598. pool.Size = Vector3.new(1, 0.05, 1)
  599. pool.Anchored = true
  600. local mesh = Instance.new("CylinderMesh", pool)
  601. mesh.Scale = Vector3.new(1, 1, 1)
  602. wait(0.1)
  603. for i = 1, math.random(20, 30) do
  604. mesh.Scale = mesh.Scale + Vector3.new(0.2, 0, 0.2)
  605. wait()
  606. end
  607. end)()
  608. end
  609. end)()
  610. local pool = Instance.new("Part", Ragdoll)
  611. pool.CFrame = Limb.CFrame * CFrame.new(0, -2.9, 0)
  612. pool.BrickColor = BrickColor.new("Crimson")
  613. pool.Material = "SmoothPlastic"
  614. pool.Size = Vector3.new(1, 0.05, 1)
  615. pool.Anchored = true
  616. pool.CanCollide = false
  617. pool.Name = "Bloodpool"
  618. local mesh = Instance.new("CylinderMesh", pool)
  619. mesh.Scale = Vector3.new(1, 1, 1)
  620. wait(0.1)
  621. for i = 1, 20 do
  622. mesh.Scale = mesh.Scale + Vector3.new(0.2, 0, 0.2)
  623. wait()
  624. end
  625. end)()
  626. end
  627. end
  628. if Ragdoll:FindFirstChild("Head") ~= nil then
  629. do
  630. local Limb = Ragdoll.Head
  631. if Limb:FindFirstChild("face") then
  632. Limb.face.Texture = "http://www.roblox.com/asset/?id=145854465"
  633. end
  634. local cor = coroutine.wrap(function()
  635. local vel = Instance.new("BodyVelocity", Limb)
  636. vel.MaxForce = Vector3.new(999999, 9999999999, 99999999)
  637. vel.Velocity = Vector3.new(0, 50, -20)
  638. wait(0.1)
  639. vel:Destroy()
  640. end)
  641. local Neck = Instance.new("Weld")
  642. Neck.Name = "Neck"
  643. Neck.Part0 = Torso
  644. Neck.Part1 = Limb
  645. Neck.C0 = CFrame.new(0, 1.5, 0)
  646. Neck.C1 = CFrame.new()
  647. Neck.Parent = Torso
  648. if deca == true then
  649. Neck:Destroy()
  650. cor()
  651. end
  652. end
  653. end
  654. if Ragdoll:FindFirstChild("Left Arm") ~= nil then
  655. local Limb = Ragdoll["Left Arm"]
  656. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  657. local Joint = Instance.new("Glue")
  658. Joint.Name = "Left Shoulder"
  659. Joint.Part0 = Torso
  660. Joint.Part1 = Limb
  661. Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  662. Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  663. Joint.Parent = Torso
  664. local AttachLimb = Instance.new("Part")
  665. AttachLimb.Name = "Attach Limb"
  666. AttachLimb.TopSurface = "Smooth"
  667. AttachLimb.BottomSurface = "Smooth"
  668. AttachLimb.formFactor = "Symmetric"
  669. AttachLimb.Size = Vector3.new(1, 1, 1)
  670. AttachLimb.Transparency = 1
  671. AttachLimb.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  672. AttachLimb.Parent = Ragdoll
  673. local Weld = Instance.new("Weld")
  674. Weld.Part0 = Limb
  675. Weld.Part1 = AttachLimb
  676. Weld.C0 = CFrame.new(0, -0.5, 0)
  677. Weld.Parent = Limb
  678. end
  679. if Ragdoll:FindFirstChild("Right Arm") ~= nil then
  680. local Limb = Ragdoll["Right Arm"]
  681. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  682. local Joint = Instance.new("Glue")
  683. Joint.Name = "Right Shoulder"
  684. Joint.Part0 = Torso
  685. Joint.Part1 = Limb
  686. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  687. Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  688. Joint.Parent = Torso
  689. local AttachLimb = Instance.new("Part")
  690. AttachLimb.Name = "Attach Limb"
  691. AttachLimb.TopSurface = "Smooth"
  692. AttachLimb.BottomSurface = "Smooth"
  693. AttachLimb.formFactor = "Symmetric"
  694. AttachLimb.Size = Vector3.new(1, 1, 1)
  695. AttachLimb.Transparency = 1
  696. AttachLimb.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  697. AttachLimb.Parent = Ragdoll
  698. local Weld = Instance.new("Weld")
  699. Weld.Part0 = Limb
  700. Weld.Part1 = AttachLimb
  701. Weld.C0 = CFrame.new(0, -0.5, 0)
  702. Weld.Parent = Limb
  703. end
  704. if Ragdoll:FindFirstChild("Left Leg") ~= nil then
  705. local Limb = Ragdoll["Left Leg"]
  706. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  707. local Joint = Instance.new("Glue")
  708. Joint.Name = "Left Hip"
  709. Joint.Part0 = Torso
  710. Joint.Part1 = Limb
  711. Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  712. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  713. Joint.Parent = Torso
  714. local AttachLimb = Instance.new("Part")
  715. AttachLimb.Name = "Attach Limb"
  716. AttachLimb.TopSurface = "Smooth"
  717. AttachLimb.BottomSurface = "Smooth"
  718. AttachLimb.formFactor = "Symmetric"
  719. AttachLimb.Size = Vector3.new(1, 1, 1)
  720. AttachLimb.Transparency = 1
  721. AttachLimb.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  722. AttachLimb.Parent = Ragdoll
  723. local Weld = Instance.new("Weld")
  724. Weld.Part0 = Limb
  725. Weld.Part1 = AttachLimb
  726. Weld.C0 = CFrame.new(0, -0.5, 0)
  727. Weld.Parent = Limb
  728. end
  729. if Ragdoll:FindFirstChild("Right Leg") ~= nil then
  730. local Limb = Ragdoll["Right Leg"]
  731. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  732. local Joint = Instance.new("Glue")
  733. Joint.Name = "Right Hip"
  734. Joint.Part0 = Torso
  735. Joint.Part1 = Limb
  736. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  737. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0)
  738. Joint.Parent = Torso
  739. local AttachLimb = Instance.new("Part")
  740. AttachLimb.Name = "Attach Limb"
  741. AttachLimb.TopSurface = "Smooth"
  742. AttachLimb.BottomSurface = "Smooth"
  743. AttachLimb.formFactor = "Symmetric"
  744. AttachLimb.Size = Vector3.new(1, 1, 1)
  745. AttachLimb.Transparency = 1
  746. AttachLimb.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  747. AttachLimb.Parent = Ragdoll
  748. local Weld = Instance.new("Weld")
  749. Weld.Part0 = Limb
  750. Weld.Part1 = AttachLimb
  751. Weld.C0 = CFrame.new(0, -0.5, 0)
  752. Weld.Parent = Limb
  753. end
  754. local Bar = Instance.new("Part")
  755. Bar.TopSurface = "Smooth"
  756. Bar.BottomSurface = "Smooth"
  757. Bar.formFactor = "Symmetric"
  758. Bar.Size = Vector3.new(1, 1, 1)
  759. Bar.Transparency = 1
  760. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  761. Bar.Parent = Ragdoll
  762. local Weld = Instance.new("Weld")
  763. Weld.Part0 = Torso
  764. Weld.Part1 = Bar
  765. Weld.C0 = CFrame.new(0, 0.5, 0)
  766. Weld.Parent = Torso
  767. Ragdoll.Parent = game.Workspace
  768. for _, Object in pairs(victim:GetChildren()) do
  769. if Object.ClassName == "Part" or Object.ClassName == "Hat" then
  770. Object:Destroy()
  771. end
  772. end
  773. for i = 1, 10 do
  774. Torso.Velocity = MoveVector * -20
  775. wait(0.01)
  776. end
  777. if divinesword == true then
  778. for _, v in pairs(Ragdoll:GetChildren()) do
  779. if v.ClassName == "Part" then
  780. if v.Name == "Bloodpool" then
  781. wait()
  782. else
  783. local parti = Instance.new("ParticleEmitter")
  784. parti.Parent = v
  785. parti.Rotation = NumberRange.new(99, 99)
  786. parti.Color = ColorSequence.new(Color3.new(0, 0.0666667, 1), Color3.new(0.701961, 0.701961, 0.0666667), Color3.new(0.827451, 0.231373, 0.878431), Color3.new(1, 1, 1))
  787. parti.LightEmission = 3
  788. parti.Lifetime = NumberRange.new(0.1, 0.1)
  789. parti.Rate = 10000
  790. parti.RotSpeed = NumberRange.new(500, 500)
  791. parti.VelocitySpread = 20
  792. parti.Enabled = true
  793. parti.LockedToPart = true
  794. end
  795. end
  796. end
  797. end
  798. wait(10)
  799. for _, v in pairs(Ragdoll:GetChildren()) do
  800. if v.ClassName == "Part" then
  801. v.CanCollide = false
  802. if v.Name == "Bloodpool" then
  803. wait()
  804. else
  805. v.Anchored = false
  806. end
  807. if v.Name ~= "Torso" then
  808. end
  809. v:Destroy()
  810. for _, t in pairs(v:GetChildren()) do
  811. if t.ClassName ~= "Weld" then
  812. end
  813. t:Destroy()
  814. end
  815. end
  816. end
  817. end)
  818. end
  819. end
  820. end
  821. local parti = Instance.new("ParticleEmitter")
  822. parti.Parent = o2
  823. parti.Rotation = NumberRange.new(99, 99)
  824. parti.Color = ColorSequence.new(Color3.new(0, 0.0666667, 1), Color3.new(0.701961, 0.701961, 0.0666667), Color3.new(0.827451, 0.231373, 0.878431), Color3.new(1, 1, 1))
  825. parti.LightEmission = 3
  826. parti.Lifetime = NumberRange.new(0.1, 0.1)
  827. parti.Rate = 100
  828. parti.RotSpeed = NumberRange.new(500, 500)
  829. parti.VelocitySpread = 20
  830. parti.Enabled = false
  831. parti.LockedToPart = true
  832. bloodparti = Instance.new("ParticleEmitter")
  833. bloodparti.Parent = o2
  834. bloodparti.Enabled = false
  835. bloodparti.Rate = 100
  836. bloodparti.Acceleration = Vector3.new(0, -50, 0)
  837. bloodparti.Size = NumberSequence.new(0.10000000149012, 0.10000000149012)
  838. bloodparti.Color = ColorSequence.new(Color3.new(0.666667, 0, 0), Color3.new(0.666667, 0, 0))
  839. bloodparti.Texture = "rbxassetid://3419963"
  840. bloodparti.LockedToPart = false
  841. bloodparti.Lifetime = NumberRange.new(0.69999998807907, 0.69999998807907)
  842. local parti2 = Instance.new("ParticleEmitter")
  843. parti2.Parent = o3
  844. parti2.Rotation = NumberRange.new(99, 99)
  845. parti2.Color = ColorSequence.new(Color3.new(0, 0.0666667, 1), Color3.new(0.701961, 0.701961, 0.0666667), Color3.new(0.827451, 0.231373, 0.878431), Color3.new(1, 1, 1))
  846. parti2.LightEmission = 3
  847. parti2.Lifetime = NumberRange.new(0.1, 0.1)
  848. parti2.Rate = 100
  849. parti2.RotSpeed = NumberRange.new(500, 500)
  850. parti2.VelocitySpread = 20
  851. parti2.Enabled = false
  852. parti2.LockedToPart = true
  853. local parti3 = Instance.new("ParticleEmitter")
  854. parti3.Parent = o4
  855. parti3.Rotation = NumberRange.new(99, 99)
  856. parti3.Color = ColorSequence.new(Color3.new(0, 0.0666667, 1), Color3.new(0.701961, 0.701961, 0.0666667), Color3.new(0.827451, 0.231373, 0.878431), Color3.new(1, 1, 1))
  857. parti3.LightEmission = 3
  858. parti3.Lifetime = NumberRange.new(0.1, 0.1)
  859. parti3.Rate = 100
  860. parti3.RotSpeed = NumberRange.new(500, 500)
  861. parti3.VelocitySpread = 20
  862. parti3.Enabled = false
  863. parti3.LockedToPart = true
  864. local parti4 = Instance.new("ParticleEmitter")
  865. parti4.Parent = o6
  866. parti4.Rotation = NumberRange.new(99, 99)
  867. parti4.Color = ColorSequence.new(Color3.new(0, 0.0666667, 1), Color3.new(0.701961, 0.701961, 0.0666667), Color3.new(0.827451, 0.231373, 0.878431), Color3.new(1, 1, 1))
  868. parti4.LightEmission = 3
  869. parti4.Lifetime = NumberRange.new(0.1, 0.1)
  870. parti4.Rate = 100
  871. parti4.RotSpeed = NumberRange.new(500, 500)
  872. parti4.VelocitySpread = 20
  873. parti4.Enabled = false
  874. parti4.LockedToPart = true
  875. local parti5 = Instance.new("ParticleEmitter")
  876. parti5.Parent = o7
  877. parti5.Rotation = NumberRange.new(99, 99)
  878. parti5.Color = ColorSequence.new(Color3.new(0, 0.0666667, 1), Color3.new(0.701961, 0.701961, 0.0666667), Color3.new(0.827451, 0.231373, 0.878431), Color3.new(1, 1, 1))
  879. parti5.LightEmission = 3
  880. parti5.Lifetime = NumberRange.new(0.1, 0.1)
  881. parti5.Rate = 100
  882. parti5.RotSpeed = NumberRange.new(500, 500)
  883. parti5.VelocitySpread = 20
  884. parti5.Enabled = false
  885. parti5.LockedToPart = true
  886. local prim = o1.PrimaryPart
  887. local parts = o1:GetChildren()
  888. for i = 1, #parts do
  889. if parts[i]:IsA("BasePart") then
  890. local weld = Instance.new("Weld")
  891. weld.Part0 = prim
  892. weld.Part1 = parts[i]
  893. weld.C0 = prim.CFrame:inverse()
  894. weld.C1 = parts[i].CFrame:inverse()
  895. weld.Parent = prim
  896. end
  897. end
  898. for _, v in pairs(o1:GetChildren()) do
  899. if v.ClassName ~= "Part" then
  900. end
  901. v.CanCollide = false
  902. end
  903. local weldrs = Instance.new("Part", char)
  904. weldrs.Name = "rsweldpart"
  905. weldrs.Transparency = 1
  906. weldrs.Size = Vector3.new(0.4, 0.4, 0.4)
  907. local we = Instance.new("Weld", weldrs)
  908. we.Part0 = weldrs
  909. we.Part1 = char["Right Arm"]
  910. we.C0 = CFrame.new(0, 1, 0)
  911. o1:SetPrimaryPartCFrame(char["Right Arm"].CFrame)
  912. o1.Parent = char
  913. local handweld = Instance.new("Weld", weldrs)
  914. handweld.Part0 = weldrs
  915. handweld.Part1 = o5
  916. handweld.C0 = CFrame.new(-0.4, 0, 0)
  917. handweld.C1 = CFrame.Angles(0, 4.5, -0.1)
  918. mainc1 = handweld.C1
  919. rs0 = rs.C0
  920. ls0 = ls.C0
  921. char.Animate.idle.Animation1.AnimationId = "rbxassetid://0"
  922. char.Animate.idle.Animation2.AnimationId = "rbxassetid://0"
  923.  
  924. neckc0 = torso.Neck.C0
  925. mouse.KeyDown:connect(function(k)
  926. k = k:lower()
  927. if k == "z" and eq == true then
  928. if equipped == false then
  929. equipped = true
  930. for i = 1, 5 do
  931. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.05)
  932. wait()
  933. end
  934. inform("Katana equipped, click to perform an action.", 2)
  935. swordeq:Play()
  936. parti.Enabled = true
  937. parti2.Enabled = true
  938. parti3.Enabled = true
  939. parti4.Enabled = true
  940. parti5.Enabled = true
  941. for _, v in pairs(o1:GetChildren()) do
  942. if v.ClassName ~= "Part" then
  943. end
  944. coroutine.wrap(function()
  945. for i = 1, 10 do
  946. v.Transparency = v.Transparency - 0.1
  947. wait()
  948. end
  949. end)()
  950. end
  951. wait(0.5)
  952. parti.Enabled = false
  953. parti2.Enabled = false
  954. parti3.Enabled = false
  955. parti4.Enabled = false
  956. parti5.Enabled = false
  957. else
  958. for i = 1, 5 do
  959. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, -0.05)
  960. wait()
  961. end
  962. inform("Katana unequipped", 2)
  963. equipped = false
  964. parti.Enabled = true
  965. parti2.Enabled = true
  966. parti3.Enabled = true
  967. parti4.Enabled = true
  968. parti5.Enabled = true
  969. for _, v in pairs(o1:GetChildren()) do
  970. if v.ClassName ~= "Part" then
  971. end
  972. coroutine.wrap(function()
  973. for i = 1, 10 do
  974. v.Transparency = v.Transparency + 0.1
  975. wait()
  976. end
  977. end)()
  978. end
  979. wait(0.5)
  980. parti.Enabled = false
  981. parti2.Enabled = false
  982. parti3.Enabled = false
  983. parti4.Enabled = false
  984. parti5.Enabled = false
  985. end
  986. end
  987. if k == "c" then
  988. if eq == false then
  989. eq = true
  990. equipsound:Play()
  991. inform("Equipped", 2)
  992. for i = 1, 5 do
  993. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0.08, 0, 0)
  994. wait()
  995. end
  996. handweld.C0 = CFrame.new(0, 0, 0)
  997. handweld.Part0 = weldrs
  998. wait(0.13)
  999. for i = 1, 5 do
  1000. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(-0.08, 0, 0)
  1001. wait()
  1002. end
  1003. else
  1004. unequipsound:Play()
  1005. inform("Unequipped", 2)
  1006. if equipped == true then
  1007. equipped = false
  1008. for i = 1, 20 do
  1009. o2.Transparency = o2.Transparency + 0.05
  1010. wait()
  1011. end
  1012. for i = 1, 20 do
  1013. o3.Transparency = o3.Transparency + 0.05
  1014. wait()
  1015. end
  1016. for i = 1, 20 do
  1017. o4.Transparency = o4.Transparency + 0.05
  1018. wait()
  1019. end
  1020. for i = 1, 20 do
  1021. o6.Transparency = o6.Transparency + 0.05
  1022. wait()
  1023. end
  1024. for i = 1, 20 do
  1025. o7.Transparency = o7.Transparency + 0.05
  1026. wait()
  1027. end
  1028. end
  1029. eq = false
  1030. for i = 1, 5 do
  1031. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0.08, 0, 0)
  1032. wait()
  1033. end
  1034. handweld.Part0 = torso
  1035. handweld.C0 = CFrame.new(1, -1, 0)
  1036. wait(0.13)
  1037. for i = 1, 5 do
  1038. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(-0.08, 0, 0)
  1039. wait()
  1040. end
  1041. end
  1042. end
  1043.  
  1044. if k == "l" then
  1045. if usage == false and equipped == true then
  1046. usage = true
  1047. inform("Katana usage off", 2)
  1048. equipped = false
  1049. handweld.C1 = CFrame.Angles(0, -4.5, -0.1)
  1050. else
  1051. usage = false
  1052. inform("Katana usage on", 2)
  1053. equipped = true
  1054. handweld.C1 = CFrame.Angles(0, 4.5, -0.1)
  1055. end
  1056. end
  1057. if k:byte() == 8 then
  1058. o1.Parent = workspace
  1059. for _, v in pairs(o1:GetChildren()) do
  1060. if v.ClassName ~= "Part" then
  1061. end
  1062. v.CanCollide = true
  1063. for _, p in pairs(o5:GetChildren()) do
  1064. if p.ClassName == "Weld" then
  1065. p:Destroy()
  1066. end
  1067. end
  1068. weldrs:Destroy()
  1069. end
  1070. for i = 1, #parts do
  1071. if parts[i]:IsA("BasePart") then
  1072. local weld = Instance.new("Weld")
  1073. weld.Part0 = prim
  1074. weld.Part1 = parts[i]
  1075. weld.C0 = prim.CFrame:inverse()
  1076. weld.C1 = parts[i].CFrame:inverse()
  1077. weld.Parent = prim
  1078. end
  1079. end
  1080. script:Destroy()
  1081. end
  1082. if k == "r" and equipped == true and attacking == false then
  1083. attacking = true
  1084. char.Humanoid.WalkSpeed = 0
  1085. char.Humanoid.JumpPower = 0
  1086. for i = 1, 5 do
  1087. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0.1, 0, 0.2)
  1088. torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0 * CFrame.Angles(0.1, 0, -0.2)
  1089. wait()
  1090. end
  1091. handweld.Part0 = torso
  1092. handweld.C0 = CFrame.new(0, 0, -2)
  1093. for i = 1, 8 do
  1094. handweld.C1 = handweld.C1 * CFrame.Angles(0.2, 0, 0)
  1095. wait()
  1096. end
  1097. handweld.C1 = handweld.C1 * CFrame.Angles(0, 4.5, 0)
  1098. do
  1099. local sound = Instance.new("Sound", o5)
  1100. sound.SoundId = "http://www.roblox.com/asset/?id=199145446"
  1101. sound.Volume = 2
  1102. sound:Play()
  1103. local wavez = coroutine.wrap(function()
  1104. table.insert(Effects, "rbxassetid://20329976")
  1105. for i = 1, 20 do
  1106. coroutine.wrap(function()
  1107. local wa = Instance.new("Part", char)
  1108. local wm = Instance.new("FileMesh", wa)
  1109. wa.Anchored = true
  1110. wa.CanCollide = false
  1111. wa.CFrame = torso.CFrame * CFrame.new(0, -1, -2)
  1112. wa.BrickColor = BrickColor.new("Dark stone grey")
  1113. wm.MeshId = Effects[1]
  1114. coroutine.wrap(function()
  1115. for i = 1, 20 do
  1116. wm.Scale = wm.Scale + Vector3.new(1, 0.5, 1)
  1117. wa.Transparency = wa.Transparency + 0.05
  1118. wait()
  1119. end
  1120. end)()
  1121. wait(2)
  1122. wa:Destroy()
  1123. end)()
  1124. wait(0.1)
  1125. end
  1126. end)
  1127. wavez()
  1128. wait(2.5)
  1129. table.insert(Effects, "rbxassetid://20329976")
  1130. coroutine.wrap(function()
  1131. local wa = Instance.new("Part", char)
  1132. local wm = Instance.new("FileMesh", wa)
  1133. wa.Anchored = true
  1134. wa.CanCollide = false
  1135. wa.CFrame = torso.CFrame * CFrame.new(0, -1, -2)
  1136. wa.BrickColor = BrickColor.new("Dark stone grey")
  1137. wm.MeshId = Effects[1]
  1138. coroutine.wrap(function()
  1139. for i = 1, 20 do
  1140. wm.Scale = wm.Scale + Vector3.new(2, 1, 2)
  1141. wait()
  1142. end
  1143. end)()
  1144. wait(0.1)
  1145. for i = 1, 20 do
  1146. wa.Transparency = wa.Transparency + 0.05
  1147. wait()
  1148. end
  1149. wa:Destroy()
  1150. end)()
  1151. local sound2 = Instance.new("Sound", char)
  1152. sound2.SoundId = "http://www.roblox.com/asset/?id=280247455"
  1153. sound2.Volume = 2
  1154. sound2:Play()
  1155. wait(1.5)
  1156. table.insert(Effects, "rbxassetid://3270017")
  1157. local shockwave = Instance.new("Part", workspace)
  1158. shockwave.Anchored = true
  1159. shockwave.CanCollide = false
  1160. shockwave.CFrame = torso.CFrame * CFrame.new(0, -1, -2)
  1161. local id = Effects[3]
  1162. shockwave.BrickColor = BrickColor.new("Really red")
  1163. local mesh = Instance.new("FileMesh", shockwave)
  1164. mesh.MeshId = id
  1165. shockwave.Rotation = Vector3.new(-90, 0, 0)
  1166. mesh.Scale = Vector3.new(1, 1, 1)
  1167. coroutine.wrap(function()
  1168. for i = 1, 50 do
  1169. mesh.Scale = mesh.Scale + Vector3.new(4, 4, 20)
  1170. shockwave.Transparency = shockwave.Transparency + 0.02
  1171. wait()
  1172. end
  1173. shockwave:Destroy()
  1174. end)()
  1175. coroutine.wrap(function()
  1176. for i = 1, 50 do
  1177. shockwave.Size = shockwave.Size + Vector3.new(4, 4, 4)
  1178. wait()
  1179. end
  1180. end)()
  1181. shockwave.Touched:connect(function(h)
  1182. if h.Parent.Name == char.Name then
  1183. wait()
  1184. else
  1185. for _, v in pairs(h.Parent:GetChildren()) do
  1186. if v.ClassName == "Humanoid" then
  1187. if v.Health == 0 then
  1188. wait()
  1189. else
  1190. v.Health = 0
  1191. count = count + 1
  1192. kills.Text = "Kills: " .. count
  1193. ragdoll(h.Parent)
  1194. end
  1195. end
  1196. end
  1197. end
  1198. end)
  1199. for i = 1, 5 do
  1200. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(-0.1, 0, -0.2)
  1201. torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0 * CFrame.Angles(-0.1, 0, 0.2)
  1202. wait()
  1203. end
  1204. attacking = false
  1205. handweld.Part0 = weldrs
  1206. handweld.C0 = handweld.C0 * CFrame.new(0, 0, 2)
  1207. handweld.C1 = mainc1
  1208. char.Humanoid.WalkSpeed = 25
  1209. char.Humanoid.JumpPower = 60
  1210. table.remove(Effects, 3, "rbxassetid://3270017")
  1211. table.remove(Effects, 2, "rbxassetid://20329976")
  1212. table.remove(Effects, 1, "rbxassetid://20329976")
  1213. end
  1214. end
  1215. if k == "e" and equipped == true and attacking == false and divinesword == false then
  1216. attacking = true
  1217. divinesword = true
  1218. char.Humanoid.WalkSpeed = 0
  1219. char.Humanoid.JumpPower = 0
  1220. local cor = coroutine.wrap(function()
  1221. for i = 1, 10 do
  1222. torso.Neck.C0 = torso.Neck.C0 * CFrame.Angles(-0.1, 0, 0)
  1223. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.3)
  1224. wait()
  1225. end
  1226. end)
  1227. cor()
  1228. parti.Enabled = true
  1229. parti2.Enabled = true
  1230. parti3.Enabled = true
  1231. parti4.Enabled = true
  1232. parti5.Enabled = true
  1233. local lighnting = Instance.new("Sound", o5)
  1234. lighnting.SoundId = "rbxassetid://539649706"
  1235. lighnting.Volume = 5
  1236. lighnting:Play()
  1237. handweld.C1 = handweld.C1 * CFrame.Angles(-5, 0, 0)
  1238. wait(0.5)
  1239. local be = Instance.new("Part", workspace)
  1240. be.Anchored = true
  1241. be.CanCollide = false
  1242. be.Shape = "Cylinder"
  1243. be.Rotation = Vector3.new(0, 0, -90)
  1244. be.Transparency = 0.6
  1245. be.CFrame = char["Right Arm"].CFrame
  1246. be.BrickColor = BrickColor.new("New Yeller")
  1247. be.Material = "Neon"
  1248. be.Rotation = Vector3.new(0, 0, -90)
  1249. be.Size = Vector3.new(5000, 3, 3)
  1250. for i = 1, 20 do
  1251. handweld.C1 = handweld.C1 * CFrame.new(0, 0.2, 0)
  1252. wait()
  1253. end
  1254. wait(1.4)
  1255. local coo = coroutine.wrap(function()
  1256. for i = 1, 20 do
  1257. handweld.C1 = handweld.C1 * CFrame.new(0, -0.2, 0)
  1258. wait()
  1259. end
  1260. end)
  1261. coo()
  1262. lighnting.SoundId = "rbxassetid://821439273"
  1263. lighnting:Play()
  1264. for i = 1, 30 do
  1265. be.Size = be.Size + Vector3.new(0, 1, 1)
  1266. be.Transparency = be.Transparency + 0.03333333333333333
  1267. wait()
  1268. end
  1269. be:Destroy()
  1270. handweld.C1 = mainc1
  1271. for i = 1, 10 do
  1272. torso.Neck.C0 = torso.Neck.C0 * CFrame.Angles(0.08, 0, 0)
  1273. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, -0.3)
  1274. wait()
  1275. end
  1276. torso.Neck.C0 = neckc0
  1277. attacking = false
  1278. char.Humanoid.WalkSpeed = 5
  1279. char.Humanoid.JumpPower = 50
  1280. inform("Divine sword mode turned on, press F to perform an action.", 2)
  1281. wait(20)
  1282. inform("Divine sword mode turned off", 2)
  1283. divinesword = false
  1284. parti.Enabled = false
  1285. parti2.Enabled = false
  1286. parti3.Enabled = false
  1287. parti4.Enabled = false
  1288. parti5.Enabled = false
  1289. end
  1290. if k == "f" and equipped == true and divinesword == true and attacking == false then
  1291. attacking = true
  1292. do
  1293. local lighnting = Instance.new("Sound", o5)
  1294. lighnting.SoundId = "rbxassetid://821439273"
  1295. lighnting.Volume = 5
  1296. handweld.Part0 = torso
  1297. handweld.C0 = CFrame.new(0, 0, -2)
  1298. for i = 1, 8 do
  1299. handweld.C1 = handweld.C1 * CFrame.Angles(-0.2, 0.06, 0)
  1300. wait()
  1301. end
  1302. char.Humanoid.WalkSpeed = 0
  1303. char.Humanoid.JumpPower = 0
  1304. for i = 1, 5 do
  1305. torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0 * CFrame.Angles(0, 0, -0.3)
  1306. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.3)
  1307. wait()
  1308. end
  1309. local p1 = Instance.new("Part", workspace)
  1310. p1.BrickColor = BrickColor.new("New Yeller")
  1311. p1.Anchored = true
  1312. p1.CanCollide = false
  1313. p1.Position = Vector3.new(0, 150, 0)
  1314. p1.Material = "Neon"
  1315. p1.Size = Vector3.new(15, 15, 15)
  1316. local p2 = Instance.new("Part", workspace)
  1317. p2.BrickColor = BrickColor.new("Institutional white")
  1318. p2.Anchored = true
  1319. p2.CanCollide = false
  1320. p2.Position = Vector3.new(0, 150, 0)
  1321. p2.Material = "Neon"
  1322. p2.Size = Vector3.new(15, 15, 15)
  1323. local cor = coroutine.wrap(function()
  1324. for i = 1, 40 do
  1325. p1.CFrame = p1.CFrame * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
  1326. p2.CFrame = p2.CFrame * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
  1327. wait()
  1328. end
  1329. end)
  1330. cor()
  1331. for i = 1, 20 do
  1332. handweld.C0 = handweld.C0 * CFrame.new(0, 0.2, 0)
  1333. wait()
  1334. end
  1335. local dhit = Instance.new("Part", workspace)
  1336. dhit.CFrame = mouse.Hit
  1337. dhit.Transparency = 1
  1338. dhit.Anchored = true
  1339. dhit.CanCollide = false
  1340. wait(1)
  1341. p2:Destroy()
  1342. p1:Destroy()
  1343. local be = Instance.new("Part", workspace)
  1344. be.Name = "Effect"
  1345. be.Shape = "Cylinder"
  1346. be.Size = Vector3.new(5000, 10, 10)
  1347. be.Transparency = 0.1
  1348. be.BrickColor = BrickColor.new("Dark stone grey")
  1349. be.Material = "Neon"
  1350. be.CFrame = dhit.CFrame
  1351. be.Rotation = Vector3.new(0, 0, -90)
  1352. be.Anchored = true
  1353. be.CanCollide = false
  1354. coroutine.wrap(function()
  1355. local bottom = Instance.new("Part", workspace)
  1356. local exploparti = Instance.new("ParticleEmitter")
  1357. lighnting.Parent = bottom
  1358. lighnting:Play()
  1359. exploparti.Parent = bottom
  1360. exploparti.Size = NumberSequence.new(0.60000002384186, 0.60000002384186)
  1361. exploparti.Color = ColorSequence.new(Color3.new(0, 0.0392157, 0.85098), Color3.new(0.252912, 0.282209, 0.888669), Color3.new(1, 1, 1))
  1362. exploparti.Enabled = false
  1363. exploparti.LightEmission = 0.69999998807907
  1364. exploparti.Texture = "rbxassetid://3419963"
  1365. exploparti.Lifetime = NumberRange.new(10, 10)
  1366. exploparti.Rate = 5000
  1367. exploparti.Speed = NumberRange.new(10, 10)
  1368. exploparti.VelocitySpread = 200
  1369. coroutine.wrap(function()
  1370. exploparti.Enabled = true
  1371. wait(0.6)
  1372. exploparti.Enabled = false
  1373. end)()
  1374. bottom.Size = Vector3.new(1, 1, 1)
  1375. bottom.BrickColor = BrickColor.new("Dark stone grey")
  1376. bottom.Shape = "Ball"
  1377. bottom.Anchored = true
  1378. bottom.CanCollide = false
  1379. bottom.CFrame = dhit.CFrame * CFrame.new(0, 3, 0)
  1380. bottom.Material = "Neon"
  1381. coroutine.wrap(function()
  1382. for i = 1, 150 do
  1383. coroutine.wrap(function()
  1384. local rand = Instance.new("Part", bottom)
  1385. rand.Anchored = true
  1386. rand.CanCollide = false
  1387. rand.Size = Vector3.new(1, 1, 1)
  1388. rand.Material = "Neon"
  1389. rand.BrickColor = BrickColor.new("Dark stone grey")
  1390. rand.CFrame = rand.CFrame * CFrame.Angles(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360))
  1391. rand.CFrame = bottom.CFrame * CFrame.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1392. for i = 1, 20 do
  1393. rand.Size = rand.Size + Vector3.new(1, 0, 0)
  1394. rand.Transparency = rand.Transparency + 0.05
  1395. wait()
  1396. end
  1397. end)()
  1398. wait(math.random(0, 0.4))
  1399. end
  1400. end)()
  1401. for i = 1, 50 do
  1402. bottom.Size = bottom.Size + Vector3.new(0.4, 0.4, 0.4)
  1403. wait()
  1404. end
  1405. for i = 1, 20 do
  1406. bottom.Transparency = bottom.Transparency + 0.05
  1407. wait()
  1408. end
  1409. wait(4)
  1410. bottom:Destroy()
  1411. end)()
  1412. local ex = Instance.new("Explosion", dhit)
  1413. ex.ExplosionType = "Craters"
  1414. ex.BlastPressure = 2500000
  1415. ex.BlastRadius = 30
  1416. ex.Position = dhit.Position
  1417. ex.Visible = false
  1418. coroutine.wrap(function()
  1419. wait(1.5)
  1420. for i = 1, 20 do
  1421. be.Transparency = be.Transparency + 0.05
  1422. wait()
  1423. end
  1424. end)()
  1425. for i = 1, 20 do
  1426. handweld.C0 = handweld.C0 * CFrame.new(0, -0.2, 0)
  1427. wait()
  1428. end
  1429. handweld.C0 = handweld.C0 * CFrame.new(0, 0, 2)
  1430. handweld.Part0 = weldrs
  1431. handweld.C1 = mainc1
  1432. char.Humanoid.WalkSpeed = 15
  1433. char.Humanoid.JumpPower = 50
  1434. attacking = false
  1435. dhit:Destroy()
  1436. for i = 1, 5 do
  1437. torso["Left Shoulder"].C0 = torso["Left Shoulder"].C0 * CFrame.Angles(0, 0, 0.3)
  1438. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, -0.3)
  1439. wait()
  1440. end
  1441. end
  1442. end
  1443. if k == "q" and equipped == true and attacking == false then
  1444. attacking = true
  1445. table.insert(Effects, "Brick")
  1446. do
  1447. local soun = Instance.new("Sound", o5)
  1448. soun.SoundId = "rbxassetid://392838370"
  1449. soun.Volume = 1.2
  1450. char.Humanoid.WalkSpeed = 0
  1451. for i = 1, 5 do
  1452. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(-0.1, 0.1, -0.2)
  1453. wait()
  1454. end
  1455. local kapew = coroutine.wrap(function()
  1456. coroutine.wrap(function()
  1457. for i = 1, amnt do
  1458. coroutine.wrap(function()
  1459. local lol = Instance.new("Part", char)
  1460. local mesh = Instance.new("SpecialMesh", lol)
  1461. mesh.MeshType = Effects[1]
  1462. lol.Anchored = true
  1463. lol.CanCollide = false
  1464. lol.CFrame = char["Right Arm"].CFrame
  1465. lol.Material = "Neon"
  1466. lol.Name = "Effect"
  1467. lol.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -1.6, 0)
  1468. lol.Size = Vector3.new(1.4, 1.4, 1.4)
  1469. lol.BrickColor = BrickColor.new("Black")
  1470. coroutine.wrap(function()
  1471. while true do
  1472. lol.CFrame = lol.CFrame * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
  1473. lol.Size = lol.Size + Vector3.new(0.03, 0.03, 0.03)
  1474. wait()
  1475. end
  1476. end)()
  1477. coroutine.wrap(function()
  1478. for i = 1, 30 do
  1479. lol.Transparency = lol.Transparency + 0.03333333333333333
  1480. wait()
  1481. end
  1482. lol:Destroy()
  1483. end)()
  1484. end)()
  1485. wait(0.1)
  1486. end
  1487. end)()
  1488. soun:Play()
  1489. wait(0.5)
  1490. for i = 1, 8 do
  1491. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.3)
  1492. wait()
  1493. end
  1494. local blast = Instance.new("Part", char)
  1495. blast.Anchored = false
  1496. blast.CanCollide = false
  1497. blast.BrickColor = BrickColor.Black()
  1498. blast.Shape = "Ball"
  1499. blast.CFrame = char["Right Arm"].CFrame * CFrame.new(0, -5, 0)
  1500. blast.Size = Vector3.new(1.5, 1.5, 1.5)
  1501. blast.Material = "Neon"
  1502. local vel = Instance.new("BodyVelocity", blast)
  1503. vel.MaxForce = Vector3.new(999999999, 9999999999, 9999999999)
  1504. vel.Velocity = torso.CFrame.lookVector * 99
  1505. coroutine.wrap(function()
  1506. while true do
  1507. coroutine.wrap(function()
  1508. local trail = Instance.new("Part", blast)
  1509. local mesh = Instance.new("SpecialMesh", trail)
  1510. mesh.MeshType = Effects[1]
  1511. trail.Size = Vector3.new(0.1, 0.1, 0.1)
  1512. trail.BrickColor = BrickColor.Black()
  1513. trail.CanCollide = false
  1514. trail.Anchored = true
  1515. trail.Name = "Trail"
  1516. trail.CFrame = blast.CFrame * CFrame.new(0, 0, 0.7)
  1517. trail.Material = "Neon"
  1518. for i = 1, 30 do
  1519. trail.CFrame = trail.CFrame * CFrame.Angles(math.random(0, 360), math.random(0, 360), math.random(0, 360))
  1520. trail.Size = trail.Size + Vector3.new(0.1, 0.1, 0.1)
  1521. trail.Transparency = trail.Transparency + 0.03333333333333333
  1522. wait()
  1523. end
  1524. trail:Destroy()
  1525. end)()
  1526. wait()
  1527. end
  1528. end)()
  1529. coroutine.wrap(function()
  1530. wait(lifetime)
  1531. blast:Destroy()
  1532. soun:Destroy()
  1533. end)()
  1534. blast.Touched:connect(function(h)
  1535. print(h.Name)
  1536. if h.Name == "Trail" then
  1537. wait()
  1538. end
  1539. for _, v in pairs(h.Parent:GetChildren()) do
  1540. if v.ClassName == "Humanoid" then
  1541. v.Health = 0
  1542. coroutine.wrap(function()
  1543. local ex = Instance.new("Part", workspace)
  1544. ex.Name = "Effect"
  1545. ex.Anchored = true
  1546. ex.CanCollide = false
  1547. ex.Shape = "Ball"
  1548. ex.CFrame = blast.CFrame
  1549. ex.BrickColor = BrickColor.new("Black")
  1550. ex.Material = "Neon"
  1551. for i = 1, 45 do
  1552. ex.Size = ex.Size + Vector3.new(1, 1, 1)
  1553. ex.Transparency = ex.Transparency + 0.022222222222222223
  1554. wait()
  1555. end
  1556. ex:Destroy()
  1557. end)()
  1558. blast:Destroy()
  1559. ragdoll(h.Parent)
  1560. end
  1561. end
  1562. end)
  1563. wait(0.5)
  1564. torso["Right Shoulder"].C0 = rs0
  1565. attacking = false
  1566. char.Humanoid.WalkSpeed = 15
  1567. end)
  1568. kapew()
  1569. wait(lifetime)
  1570. table.remove(Effects, 1, "Brick")
  1571. end
  1572. end
  1573. if k == "t" and equipped == true and attacking == false then
  1574. attacking = true
  1575. rayLaser(BrickColor.new("Black"))
  1576. end
  1577. end)
  1578. function lerp(weld, startpos, endpos, amntime, longatend)
  1579. local waited = 0
  1580. for i = 1, amntime * 100 do
  1581. if longatend == true then
  1582. startpos = weld.C0
  1583. end
  1584. weld.C0 = startpos:lerp(endpos, i / (amntime * 100))
  1585. wait(0.01)
  1586. waited = waited + 0.01
  1587. end
  1588. end
  1589. local sounds = Instance.new("Model", o5)
  1590. local hit1 = Instance.new("Sound", sounds)
  1591. local hit2 = Instance.new("Sound", sounds)
  1592. local swing = Instance.new("Sound", sounds)
  1593. swing.SoundId = "rbxassetid://608537390"
  1594. swing.Volume = 1
  1595. swordeq.Parent = sounds
  1596. swordeq.SoundId = "rbxassetid://608618332"
  1597. swordeq.Volume = 1
  1598. equipsound.Parent = sounds
  1599. unequipsound.Parent = sounds
  1600. hit1.SoundId = "rbxassetid://566593606"
  1601. hit1.Volume = 1
  1602. hit2.SoundId = "rbxassetid://978055110"
  1603. hit2.Volume = 1
  1604. mouse.Button1Down:connect(function()
  1605. if equipped == true and attacking == false then
  1606. attacking = true
  1607. deca = true
  1608. trail.Enabled = true
  1609. do
  1610. local rweld = Instance.new("Weld", char["Right Arm"])
  1611. local lweld = Instance.new("Weld", char["Left Arm"])
  1612. local tweld = Instance.new("Weld", char.HumanoidRootPart)
  1613. rweld.Part0 = char.Torso
  1614. rweld.Part1 = char["Right Arm"]
  1615. rweld.C0 = CFrame.new(1.5, 0, 0)
  1616. lweld.Part0 = char.Torso
  1617. lweld.Part1 = char["Left Arm"]
  1618. lweld.C0 = CFrame.new(-1.5, 0, 0)
  1619. tweld.Part0 = char.HumanoidRootPart
  1620. tweld.Part1 = char.Torso
  1621. local cor = coroutine.wrap(function()
  1622. lerp(tweld, tweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(45), 0), 0.08)
  1623. end)
  1624. cor()
  1625. lerp(rweld, rweld.C0, CFrame.new(1.35, 0.5, -1.2) * CFrame.Angles(0, math.rad(110), math.rad(90)), 0.08)
  1626. wait(0.2)
  1627. swing:Play()
  1628. active = true
  1629. local cor = coroutine.wrap(function()
  1630. lerp(tweld, tweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-45), 0), 0.04)
  1631. end)
  1632. cor()
  1633. lerp(rweld, rweld.C0, CFrame.new(2, 0.5, 0) * CFrame.Angles(0, math.rad(0), math.rad(90)), 0.04)
  1634. active = false
  1635. wait(0.2)
  1636. local cor = coroutine.wrap(function()
  1637. lerp(tweld, tweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.08)
  1638. end)
  1639. cor()
  1640. lerp(rweld, rweld.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.08)
  1641. rweld:Destroy()
  1642. lweld:Destroy()
  1643. tweld:Destroy()
  1644. if rightclone and char:FindFirstChild("Right Arm") and char:FindFirstChild("Torso") then
  1645. local clone = rightclone:Clone()
  1646. clone.Part0 = char.Torso
  1647. clone.Part1 = char["Right Arm"]
  1648. clone.Parent = char.Torso
  1649. end
  1650. if leftclone and char:FindFirstChild("Left Arm") and char:FindFirstChild("Torso") then
  1651. local clone = leftclone:Clone()
  1652. clone.Part0 = char.Torso
  1653. clone.Part1 = char["Left Arm"]
  1654. clone.Parent = char.Torso
  1655. end
  1656. if torsoclone and char:FindFirstChild("Torso") and char:FindFirstChild("HumanoidRootPart") then
  1657. local clone = torsoclone:Clone()
  1658. clone.Part0 = char.HumanoidRootPart
  1659. clone.Part1 = char.Torso
  1660. clone.Parent = char.HumanoidRootPart
  1661. end
  1662. for i = 1, 5 do
  1663. torso["Right Shoulder"].C0 = torso["Right Shoulder"].C0 * CFrame.Angles(0, 0, 0.05)
  1664. wait()
  1665. end
  1666. attacking = false
  1667. trail.Enabled = false
  1668. deca = false
  1669. end
  1670. end
  1671. if eq == true and equipped == false and attacking == false then
  1672. attacking = true
  1673. rayLaser(BrickColor.new("Hot pink"))
  1674. end
  1675. end)
  1676. o4.Touched:Connect(function(h)
  1677. if active == true then
  1678. if h.Parent.Name == char.Name then
  1679. wait()
  1680. elseif grabbing ~= true then
  1681. for _, v in pairs(h.Parent:GetChildren()) do
  1682. if v.ClassName == "Humanoid" and v ~= nil then
  1683. if v.Name == "Ragdoll Humanoid" then
  1684. wait()
  1685. else
  1686. v.Health = 0
  1687. local blo = coroutine.wrap(function()
  1688. bloodparti.Enabled = true
  1689. o2.BrickColor = BrickColor.new("Maroon")
  1690. o2.Material = "SmoothPlastic"
  1691. wait(4)
  1692. o2.BrickColor = BrickColor.new("Dark stone grey")
  1693. o2.Material = "Metal"
  1694. bloodparti.Enabled = false
  1695. end)
  1696. blo()
  1697. ragdoll(h.Parent)
  1698. count = count + 1
  1699. kills.Text = "Kills: " .. count
  1700. local Math = math.random(1, 2)
  1701. if Math == 1 then
  1702. hit1:Play()
  1703. else
  1704. hit2:Play()
  1705. end
  1706. ragdoll(h.Parent)
  1707. end
  1708. end
  1709. end
  1710. end
  1711. end
  1712. end)
  1713. char.Humanoid.Died:connect(function()
  1714. o1.Parent = workspace
  1715. for _, v in pairs(o1:GetChildren()) do
  1716. if v.ClassName == "Part" then
  1717. v.CanCollide = true
  1718. end
  1719. end
  1720. for i = 1, #parts do
  1721. if parts[i]:IsA("BasePart") then
  1722. local weld = Instance.new("Weld")
  1723. weld.Part0 = prim
  1724. weld.Part1 = parts[i]
  1725. weld.C0 = prim.CFrame:inverse()
  1726. weld.C1 = parts[i].CFrame:inverse()
  1727. weld.Parent = prim
  1728. end
  1729. end
  1730. o5.Name = "Handle"
  1731. o4.Parent = o5
  1732. o3.Parent = o5
  1733. o2.Parent = o5
  1734. o6.Parent = o5
  1735. o7.Parent = o5
  1736. o5.Parent = workspace
  1737. o1:Destroy()
  1738. local tool = Instance.new("Tool", workspace)
  1739. tool.Name = "Broken Katana"
  1740. o5.Parent = tool
  1741. tool.GripForward = Vector3.new(0.087, -0.003, -0.996)
  1742. tool.GripPos = Vector3.new(0, 0, 0.048)
  1743. tool.GripRight = Vector3.new(-0.031, -1, 0)
  1744. tool.GripUp = Vector3.new(0.996, -0.031, 0.087)
  1745. ragdoll(char)
  1746. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement