Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.97 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. local rp = RealPlayer
  6. script.Parent = rp.Character
  7.  
  8. --RemoteEvent for communicating
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local function fakeEvent()
  14. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  15. t.connect = t.Connect
  16. return t
  17. end
  18.  
  19. --Creating fake input objects with fake variables
  20. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24. end}
  25. --Merged 2 functions into one by checking amount of arguments
  26. CAS.UnbindAction = CAS.BindAction
  27.  
  28. --This function will trigger the events that have been :Connect()'ed
  29. local function te(self,ev,...)
  30. local t = m[ev]
  31. if t and t._fakeEvent then
  32. for _,f in pairs(t.Functions) do
  33. f(...)
  34. end
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=rp then return end
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. if not io.isMouse then
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local Mouse = Player:GetMouse()
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83.  
  84. ----Sandboxed game object that allows the usage of client-side methods and services
  85. --Real game object
  86. local _rg = game
  87.  
  88. --Metatable for fake service
  89. local fsmt = {
  90. __index = function(self,k)
  91. local s = rawget(self,"_RealService")
  92. if s then return s[k] end
  93. end,
  94. __newindex = function(self,k,v)
  95. local s = rawget(self,"_RealService")
  96. if s then s[k]=v end
  97. end,
  98. __call = function(self,...)
  99. local s = rawget(self,"_RealService")
  100. if s then return s(...) end
  101. end
  102. }
  103. local function FakeService(t,RealService)
  104. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  105. return setmetatable(t,fsmt)
  106. end
  107.  
  108. --Fake game object
  109. local g = {
  110. GetService = function(self,s)
  111. return self[s]
  112. end,
  113. Players = FakeService({
  114. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  115. },"Players"),
  116. UserInputService = FakeService(UIS,"UserInputService"),
  117. ContextActionService = FakeService(CAS,"ContextActionService"),
  118. }
  119. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  120. g.service = g.GetService
  121.  
  122. g.RunService = FakeService({
  123. RenderStepped = _rg:GetService("RunService").Heartbeat,
  124. BindToRenderStep = function(self,name,_,fun)
  125.  
  126. end,
  127. UnbindFromRenderStep = function(self,name)
  128. self._btrs[name]:Disconnect()
  129. end,
  130. },"RunService")
  131.  
  132. setmetatable(g,{
  133. __index=function(self,s)
  134. return _rg:GetService(s) or typeof(_rg[s])=="function"
  135. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  136. end,
  137. __newindex = fsmt.__newindex,
  138. __call = fsmt.__call
  139. })
  140. --Changing owner to fake player object to support owner:GetMouse()
  141. game,owner = g,g.Players.LocalPlayer
  142. end
  143.  
  144. --[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
  145. wait(1 / 60)
  146. Effects = { }
  147. local Player = game.Players.localPlayer
  148. local Character = Player.Character
  149. local Humanoid = Character.Humanoid
  150. local mouse = Player:GetMouse()
  151. local m = Instance.new('Model', Character)
  152. m.Name = "WeaponModel"
  153. local LeftArm = Character["Left Arm"]
  154. local RightArm = Character["Right Arm"]
  155. local LeftLeg = Character["Left Leg"]
  156. local RightLeg = Character["Right Leg"]
  157. local Head = Character.Head
  158. local Torso = Character.Torso
  159. local cam = game.Workspace.CurrentCamera
  160. local RootPart = Character.HumanoidRootPart
  161. local RootJoint = RootPart.RootJoint
  162. local equipped = false
  163. local attack = false
  164. local Anim = 'Idle'
  165. local idle = 0
  166. local attacktype = 1
  167. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  168. local velocity = RootPart.Velocity.y
  169. local sine = 0
  170. local change = 1
  171. local grabbed = false
  172. local cn = CFrame.new
  173. local mr = math.rad
  174. IT = Instance.new
  175. CF = CFrame.new
  176. VT = Vector3.new
  177. local angles = CFrame.Angles
  178. local ud = UDim2.new
  179. local c3 = Color3.new
  180. local debby = game:GetService("Debris")
  181. Humanoid.WalkSpeed = 16
  182.  
  183. spawn(function()
  184. while wait() do
  185. Head.BrickColor = BrickColor.new("Bright green")
  186. RightArm.BrickColor = BrickColor.new("Really black")
  187. LeftArm.BrickColor = BrickColor.new("Black")
  188. Torso.BrickColor = BrickColor.new("Really black")
  189. RightLeg.BrickColor = BrickColor.new("Black")
  190. LeftLeg.BrickColor = BrickColor.new("Really black")
  191. end
  192. end)
  193.  
  194. Head.face:Remove()
  195.  
  196. for i,v in pairs(Character:children()) do
  197. if v:IsA("Hat") then
  198. v:Destroy()
  199. end
  200. end
  201. for i,v in pairs(Character:children()) do
  202. if v:IsA("Accessory") then
  203. v:Destroy()
  204. end
  205. end
  206. for i,v in pairs(Character:children()) do
  207. if v:IsA("Hair") then
  208. v:Destroy()
  209. end
  210. end
  211. for i,v in pairs(Character:children()) do
  212. if v:IsA("Shirt") then
  213. v:Destroy()
  214. end
  215. end
  216. for i,v in pairs(Character:children()) do
  217. if v:IsA("Pants") then
  218. v:Destroy()
  219. end
  220. end
  221. for i,v in pairs(Character:children()) do
  222. if v:IsA("Graphic Shirt") then
  223. v:Destroy()
  224. end
  225. end
  226.  
  227. Humanoid.Animator.Parent = nil
  228. Character.Animate.Parent = nil
  229.  
  230. local newMotor = function(part0, part1, c0, c1)
  231. local w = Instance.new('Motor', part0)
  232. w.Part0 = part0
  233. w.Part1 = part1
  234. w.C0 = c0
  235. w.C1 = c1
  236. return w
  237. end
  238.  
  239. function clerp(a, b, t)
  240. return a:lerp(b, t)
  241. end
  242.  
  243. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  244. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  245.  
  246. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  247. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  248. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  249. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  250. RootJoint.C1 = CFrame.new(0, 0, 0)
  251. RootJoint.C0 = CFrame.new(0, 0, 0)
  252. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  253. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  254.  
  255. local rarmc1 = RW.C1
  256. local larmc1 = LW.C1
  257. local rlegc1 = RH.C1
  258. local llegc1 = LH.C1
  259.  
  260. local resetc1 = false
  261.  
  262. function PlayAnimationFromTable(table, speed, bool)
  263. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  264. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  265. RW.C0 = clerp(RW.C0, table[3], speed)
  266. LW.C0 = clerp(LW.C0, table[4], speed)
  267. RH.C0 = clerp(RH.C0, table[5], speed)
  268. LH.C0 = clerp(LH.C0, table[6], speed)
  269. if bool == true then
  270. if resetc1 == false then
  271. resetc1 = true
  272. RootJoint.C1 = RootJoint.C1
  273. Torso.Neck.C1 = Torso.Neck.C1
  274. RW.C1 = rarmc1
  275. LW.C1 = larmc1
  276. RH.C1 = rlegc1
  277. LH.C1 = llegc1
  278. end
  279. end
  280. end
  281.  
  282. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  283.  
  284. ArtificialHB = Instance.new("BindableEvent", script)
  285. ArtificialHB.Name = "Heartbeat"
  286.  
  287. script:WaitForChild("Heartbeat")
  288.  
  289. frame = 1 / 30
  290. tf = 0
  291. allowframeloss = false
  292. tossremainder = false
  293. lastframe = tick()
  294. script.Heartbeat:Fire()
  295.  
  296. game:GetService("RunService").Heartbeat:connect(function(s, p)
  297. tf = tf + s
  298. if tf >= frame then
  299. if allowframeloss then
  300. script.Heartbeat:Fire()
  301. lastframe = tick()
  302. else
  303. for i = 1, math.floor(tf / frame) do
  304. script.Heartbeat:Fire()
  305. end
  306. lastframe = tick()
  307. end
  308. if tossremainder then
  309. tf = 0
  310. else
  311. tf = tf - frame * math.floor(tf / frame)
  312. end
  313. end
  314. end)
  315.  
  316. function swait(num)
  317. if num == 0 or num == nil then
  318. ArtificialHB.Event:wait()
  319. else
  320. for i = 0, num do
  321. ArtificialHB.Event:wait()
  322. end
  323. end
  324. end
  325.  
  326. local RbxUtility = LoadLibrary("RbxUtility")
  327. local Create = RbxUtility.Create
  328.  
  329. function RemoveOutlines(part)
  330. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  331. end
  332.  
  333. CFuncs = {
  334. ["Part"] = {
  335. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  336. local Part = Create("Part"){
  337. Parent = Parent,
  338. Reflectance = Reflectance,
  339. Transparency = Transparency,
  340. CanCollide = false,
  341. Locked = true,
  342. BrickColor = BrickColor.new(tostring(BColor)),
  343. Name = Name,
  344. Size = Size,
  345. Material = Material,
  346. }
  347. RemoveOutlines(Part)
  348. return Part
  349. end;
  350. };
  351.  
  352. ["Mesh"] = {
  353. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  354. local Msh = Create(Mesh){
  355. Parent = Part,
  356. Offset = OffSet,
  357. Scale = Scale,
  358. }
  359. if Mesh == "SpecialMesh" then
  360. Msh.MeshType = MeshType
  361. Msh.MeshId = MeshId
  362. end
  363. return Msh
  364. end;
  365. };
  366.  
  367. ["Mesh"] = {
  368. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  369. local Msh = Create(Mesh){
  370. Parent = Part,
  371. Offset = OffSet,
  372. Scale = Scale,
  373. }
  374. if Mesh == "SpecialMesh" then
  375. Msh.MeshType = MeshType
  376. Msh.MeshId = MeshId
  377. end
  378. return Msh
  379. end;
  380. };
  381.  
  382. ["Weld"] = {
  383. Create = function(Parent, Part0, Part1, C0, C1)
  384. local Weld = Create("Weld"){
  385. Parent = Parent,
  386. Part0 = Part0,
  387. Part1 = Part1,
  388. C0 = C0,
  389. C1 = C1,
  390. }
  391. return Weld
  392. end;
  393. };
  394.  
  395. ["Sound"] = {
  396. Create = function(id, par, vol, pit)
  397. coroutine.resume(coroutine.create(function()
  398. local S = Create("Sound"){
  399. Volume = vol,
  400. Pitch = pit or 1,
  401. SoundId = id,
  402. Parent = par or Workspace,
  403. }
  404. wait()
  405. S:play()
  406. Game:GetService("Debris"):AddItem(S, 6)
  407. end))
  408. end;
  409. };
  410.  
  411. ["ParticleEmitter"] = {
  412. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  413. local fp = Create("ParticleEmitter"){
  414. Parent = Parent,
  415. Color = ColorSequence.new(Color1, Color2),
  416. LightEmission = LightEmission,
  417. Size = Size,
  418. Texture = Texture,
  419. Transparency = Transparency,
  420. ZOffset = ZOffset,
  421. Acceleration = Accel,
  422. Drag = Drag,
  423. LockedToPart = LockedToPart,
  424. VelocityInheritance = VelocityInheritance,
  425. EmissionDirection = EmissionDirection,
  426. Enabled = Enabled,
  427. Lifetime = LifeTime,
  428. Rate = Rate,
  429. Rotation = Rotation,
  430. RotSpeed = RotSpeed,
  431. Speed = Speed,
  432. VelocitySpread = VelocitySpread,
  433. }
  434. return fp
  435. end;
  436. };
  437. }
  438.  
  439. function rayCast(Position, Direction, Range, Ignore)
  440. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  441. end
  442.  
  443. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  444.  
  445. local tr2
  446. spawn(function()
  447. local Att1 = New("Attachment",Knife2,"Att1",{Position = Vector3.new(0,1.3,.2)})
  448. local Att2 = New("Attachment",Knife2,"Att2",{Position = Vector3.new(0,-.5,.2)})
  449. tr2 = New("Trail",Knife2,"TrailEff",{Color = ColorSequence.new(Color3.new(.8,.8,.8)),Transparency = NumberSequence.new(0,1),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
  450. end)
  451.  
  452. New = function(Object, Parent, Name, Data)
  453. local Object = Instance.new(Object)
  454. for Index, Value in pairs(Data or {}) do
  455. Object[Index] = Value
  456. end
  457. Object.Parent = Parent
  458. Object.Name = Name
  459. return Object
  460. end
  461.  
  462. function so(id,par,pit,vol)
  463. local sou = Instance.new("Sound", par or workspace)
  464. if par == Character then
  465. sou.Parent = Character.Torso
  466. end
  467. sou.Volume = vol
  468. sou.Pitch = pit or 1
  469. sou.SoundId = "rbxassetid://" .. id
  470. sou.PlayOnRemove = true
  471. sou:Destroy()
  472. end
  473.  
  474. local Grunt = Instance.new("Model",Character)
  475.  
  476. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  477. local p = Instance.new("Part")
  478. p.TopSurface = 0
  479. p.BottomSurface = 0
  480. p.Parent = parent
  481. p.Size = Vector3.new(0.1,0.1,0.1)
  482. p.Transparency = transparency
  483. p.Reflectance = reflectance
  484. p.CanCollide = false
  485. p.Locked = true
  486. p.BrickColor = brickcolor
  487. p.Material = material
  488. return p
  489. end
  490.  
  491. function CreateMesh(parent,meshtype,x1,y1,z1)
  492. local mesh = Instance.new("SpecialMesh",parent)
  493. mesh.MeshType = meshtype
  494. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  495. return mesh
  496. end
  497.  
  498. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  499. local mesh = Instance.new("SpecialMesh",parent)
  500. mesh.MeshType = "FileMesh"
  501. mesh.MeshId = meshid
  502. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  503. mesh.Scale = Vector3.new(x1,y1,z1)
  504. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  505. return mesh
  506. end
  507.  
  508. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  509. local weld = Instance.new("Weld")
  510. weld.Parent = parent
  511. weld.Part0 = part0
  512. weld.Part1 = part1
  513. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  514. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  515. return weld
  516. end
  517.  
  518. Eye = CreateParta(Grunt,0,0,"Neon",BrickColor.new("Bright green"))
  519. CreateMesh(Eye,"Sphere",0.1,0.8,0.1)
  520. CreateWeld(Eye,Head,Eye,0,0,0.6,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  521.  
  522. Eye = CreateParta(Grunt,0,0,"Neon",BrickColor.new("White"))
  523. CreateMesh(Eye,"Sphere",0.8,0.1,0.3)
  524. CreateWeld(Eye,Head,Eye,0,0,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  525.  
  526. Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  527. HandleWeld = CFuncs["Weld"].Create(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199958801, -0.0500774384, -1.09998882, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  528. FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  529. FakeHandleWeld = CFuncs["Weld"].Create(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  530. Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
  531. BarrelWeld = CFuncs["Weld"].Create(m, FakeHandle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.749999046, -1.80000024, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  532. Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(0.399999946, 0.299999952, 0.400000095))
  533. PartWeld = CFuncs["Weld"].Create(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.300000191, -0.400000095, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  534. CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://432256490", Vector3.new(0, 0, 0), Vector3.new(0.00200005009, 0.00200005009, 0.00200005009))
  535. Part.Mesh.TextureId = "rbxassetid://432256526"
  536.  
  537. Knife2 = New("Part",Character,"Knife2",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000018, 3, 0.600000024),CFrame = CFrame.new(20.800066, 8.20085621, -102.600151, 0.999997199, -7.43909914e-05, -0.000123201287, 0.000132681176, 7.43816781e-05, 1.00000858, -8.01031129e-05, -0.999997139, 8.01140704e-05),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  538. Mesh = New("SpecialMesh",Knife2,"Mesh",{MeshId = "rbxassetid://121944778",TextureId = "rbxassetid://121944805",MeshType = Enum.MeshType.FileMesh,})
  539. Weld = New("ManualWeld",Knife2,"Weld",{Part0 = Knife2,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, 1, -1.83178334e-11, -9.29553131e-20, -8.93234474e-20, 1.9826904e-10, -1, 1.83178334e-11, 1, 1.9826904e-10),C1 = CFrame.new(0.0998783112, -1.00001431, 0.900054932, -0.999999046, -0.00013233356, 7.98649926e-05, -0.000129168649, 1.00000286, 7.99051195e-05, -7.79679685e-05, 7.79874026e-05, -0.999999046),})
  540.  
  541. SheathPart = New("Part",Character,"SheathPart",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-4.70037603, 7.11581182, -105.941528, 0.000411997637, 0.000128002648, 1, 0.765914023, -0.642943084, -0.00023325636, 0.642943025, 0.765914023, -0.000362930034),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  542. Mesh = New("SpecialMesh",SheathPart,"Mesh",{Scale = Vector3.new(0.419999987, 2.5, 5),MeshId = "rbxassetid://504776834",MeshType = Enum.MeshType.FileMesh,})
  543. Weld = New("ManualWeld",SheathPart,"Weld",{Part0 = SheathPart,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0.000411997637, 0.765914023, 0.642943025, 0.000128002648, -0.642943084, 0.765914023, 1, -0.00023325636, -0.000362930034),C1 = CFrame.new(-0.399157524, -0.0849089622, 0.44103241, -1, -0.000285560207, 0.000172345346, -0.000285530492, 1, 0.000172423926, -0.000172394575, 0.000172374697, -1),})
  544. KnifeH = New("Part",Character,"KnifeH",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-4.70015621, 7.43445921, -105.543449, 1, -0.000408680877, -0.00014000498, -0.000222999661, -0.765914917, 0.642942011, -0.000369990012, -0.642941952, -0.765914917),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  545. Mesh = New("SpecialMesh",KnifeH,"Mesh",{MeshId = "rbxassetid://121944778",TextureId = "rbxassetid://121944805",MeshType = Enum.MeshType.FileMesh,})
  546. Weld = New("ManualWeld",KnifeH,"Weld",{Part0 = KnifeH,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 1, -0.000222999661, -0.000369990012, -0.000408680877, -0.765914917, -0.642941952, -0.00014000498, 0.642942011, -0.765914917),C1 = CFrame.new(-0.399399757, 0.23380661, 0.043006897, -1, -0.000285560207, 0.000172345346, -0.000285530492, 1, 0.000172423926, -0.000172394575, 0.000172374697, -1),})
  547.  
  548. Knife2.Transparency = 1
  549. KnifeH.Transparency = 0
  550.  
  551. EffectModel = Instance.new("Model", Character)
  552. EffectModel.Name = "Effects"
  553.  
  554. Effects = {
  555. ["Block"] = {
  556. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  557. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  558. prt.Anchored = true
  559. prt.CFrame = cframe
  560. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  561. game:GetService("Debris"):AddItem(prt, 10)
  562. if Type == 1 or Type == nil then
  563. table.insert(Effects, {
  564. prt,
  565. "Block1",
  566. delay,
  567. x3,
  568. y3,
  569. z3,
  570. msh
  571. })
  572. elseif Type == 2 then
  573. table.insert(Effects, {
  574. prt,
  575. "Block2",
  576. delay,
  577. x3,
  578. y3,
  579. z3,
  580. msh
  581. })
  582. end
  583. end;
  584. };
  585.  
  586. ["Cylinder"] = {
  587. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  588. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  589. prt.Anchored = true
  590. prt.CFrame = cframe
  591. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  592. game:GetService("Debris"):AddItem(prt, 2)
  593. Effects[#Effects + 1] = {
  594. prt,
  595. "Cylinder",
  596. delay,
  597. x3,
  598. y3,
  599. z3
  600. }
  601. end;
  602. };
  603.  
  604. ["Sphere"] = {
  605. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  606. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  607. prt.Anchored = true
  608. prt.CFrame = cframe
  609. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  610. game:GetService("Debris"):AddItem(prt, 10)
  611. table.insert(Effects, {
  612. prt,
  613. "Cylinder",
  614. delay,
  615. x3,
  616. y3,
  617. z3,
  618. msh
  619. })
  620. end;
  621. };
  622.  
  623. ["Elec"] = {
  624. Create = function(cff, x, y, z)
  625. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  626. prt.Anchored = true
  627. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  628. prt.CFrame = CFrame.new(prt.Position)
  629. game:GetService("Debris"):AddItem(prt, 2)
  630. local xval = math.random() / 2
  631. local yval = math.random() / 2
  632. local zval = math.random() / 2
  633. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  634. table.insert(Effects, {
  635. prt,
  636. "Elec",
  637. 0.1,
  638. x,
  639. y,
  640. z,
  641. xval,
  642. yval,
  643. zval
  644. })
  645. end;
  646.  
  647. };
  648.  
  649. ["Ring"] = {
  650. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  651. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  652. prt.Anchored = true
  653. prt.CFrame = cframe
  654. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  655. game:GetService("Debris"):AddItem(prt, 10)
  656. table.insert(Effects, {
  657. prt,
  658. "Cylinder",
  659. delay,
  660. x3,
  661. y3,
  662. z3,
  663. msh
  664. })
  665. end;
  666. };
  667.  
  668.  
  669. ["Wave"] = {
  670. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  671. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  672. prt.Anchored = true
  673. prt.CFrame = cframe
  674. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  675. game:GetService("Debris"):AddItem(prt, 10)
  676. table.insert(Effects, {
  677. prt,
  678. "Cylinder",
  679. delay,
  680. x3,
  681. y3,
  682. z3,
  683. msh
  684. })
  685. end;
  686. };
  687.  
  688. ["Break"] = {
  689. Create = function(brickcolor, cframe, x1, y1, z1)
  690. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  691. prt.Anchored = true
  692. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  693. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  694. local num = math.random(10, 50) / 1000
  695. game:GetService("Debris"):AddItem(prt, 10)
  696. table.insert(Effects, {
  697. prt,
  698. "Shatter",
  699. num,
  700. prt.CFrame,
  701. math.random() - math.random(),
  702. 0,
  703. math.random(50, 100) / 100
  704. })
  705. end;
  706. };
  707. }
  708.  
  709. function BodyVel(part,faws)
  710. local bodyvel = Instance.new("BodyVelocity",part)
  711. local pep = 10000000
  712. bodyvel.P = pep
  713. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  714. bodyvel.Velocity = faws
  715. debby:AddItem(bodyvel,.2)
  716. end
  717.  
  718. local function ToMesh(Part)
  719. local Mesh=Instance.new("SpecialMesh",Part)
  720. if Part.Shape==Enum.PartType.Block then Mesh.MeshType="Brick"elseif Part.Shape==Enum.PartType.Ball then Mesh.MeshType="Sphere"elseif Part.Shape==Enum.PartType.Cylinder then Mesh.MeshType="Cylinder"end
  721. Mesh.Scale=Part.Size*0.1 Part.Size=Vector3.new()
  722. return Mesh
  723. end
  724.  
  725. local function GHK(char)
  726. local Players=Game:service("Players")
  727. local soidk=Players:FindFirstChild(tostring(char))
  728. if soidk~=nil then if soidk.Character and soidk~=Player and tostring(soidk)~="CKBackup"then-- print("hit : "..tostring(soidk))
  729. soidk.Character:BreakJoints()
  730. if soidk.Character:FindFirstChild("HumanoidRootPart")then
  731. local p=Instance.new("Part")p.Size=Vector3.new(8,8,8)p.Material="Neon"p.Color=Color3.new(1,1,1)local m=ToMesh(p)p.Anchored=true p.CanCollide=false p.CFrame=soidk.Character.HumanoidRootPart.CFrame p.Parent=workspace m.MeshType="Sphere"
  732. p.CFrame=p.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),0)spawn(function()for i=0,1,.05 do if p.Parent then m.Scale=m.Scale+Vector3.new(5,5,5)p.Transparency=i swait()end end p:Destroy()end)
  733. local p=Instance.new("Part")p.Size=Vector3.new(8,8,8)p.Material="Neon"p.Color=Color3.new(1,1,1)local m=ToMesh(p)p.Anchored=true p.CanCollide=false p.CFrame=soidk.Character.HumanoidRootPart.CFrame p.Parent=workspace m.MeshType="Brick"
  734. p.CFrame=p.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),0)spawn(function()for i=0,1,.05 do if p.Parent then m.Scale=m.Scale+Vector3.new(3.5,3.5,3.5)p.Transparency=i swait()end end p:Destroy()end)
  735. for i=1,3 do local p=Instance.new("Part")p.Size=Vector3.new(0.5,0.5,0.5)p.Material="Neon"p.Color=Color3.new(1,1,1)local m=ToMesh(p)p.Anchored=true p.CanCollide=false p.CFrame=soidk.Character.HumanoidRootPart.CFrame p.Parent=workspace m.MeshType="Sphere"
  736. p.CFrame=p.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),0)spawn(function()for i=0,1,.01 do if p.Parent then m.Scale=m.Scale+Vector3.new(5,-0.5,-0.5)p.Transparency=i swait()end end p:Destroy()end)
  737. end
  738. for i=1,3 do local p=Instance.new("Part")p.Size=Vector3.new(0.5,0.5,0.5)p.Material="Neon"p.Color=Color3.new(1,1,1)local m=ToMesh(p)p.Anchored=true p.CanCollide=false p.CFrame=soidk.Character.HumanoidRootPart.CFrame p.Parent=workspace m.MeshType="Brick"
  739. p.CFrame=p.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),0)spawn(function()for i=0,1,.01 do if p.Parent then m.Scale=m.Scale+Vector3.new(5,-0.5,-0.5)p.Transparency=i swait()end end p:Destroy()end)
  740. end
  741. end spawn(function()swait(20)soidk.Character:Destroy()end)
  742. end
  743. end return soidk end
  744.  
  745. function dmg(dude,bloods,isfal)--(Position, Direction, Range, Ignore)
  746. if dude.Name ~= Character then
  747. dude:FindFirstChildOfClass("Humanoid").PlatformStand = true
  748. if dude:FindFirstChild("Head")then local bgf = Instance.new("BodyGyro",dude.Head)
  749. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)end
  750. local val = Instance.new("BoolValue",dude)
  751. val.Name = "IsHit"local spd=5 local spr=math.random(5,10)if not isfal then GHK(dude)end
  752. if dude:FindFirstChild("Head")then
  753. if dude:FindFirstChild("Torso")then dude.Torso:BreakJoints()end dude:BreakJoints()
  754. end
  755. end
  756. end
  757.  
  758. function mdmg(Part, Magnitude,Spread)--, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  759. --local buddy
  760. for _, c in pairs(Workspace:children()) do
  761. local hum = c:FindFirstChildOfClass("Humanoid")
  762. if hum ~= nil then
  763. local head = c:findFirstChild("HumanoidRootPart")
  764. if head ~= nil then
  765. local targ = head.Position - Part.Position
  766. local mag = targ.magnitude
  767. if mag <= Magnitude and c.Name ~= Player.Name then
  768. if c.Name ~= Character then
  769. if c.Name ~= "tomonaoboys" then
  770. local asd = Instance.new("ParticleEmitter",c.HumanoidRootPart)
  771. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  772. asd.LightEmission = .1
  773. asd.Size = NumberSequence.new(0.2)
  774. asd.Texture = "http://www.roblox.com/asset/?ID=0"
  775. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  776. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  777. asd.Transparency = bbb
  778. asd.Size = aaa
  779. asd.ZOffset = .9
  780. asd.Acceleration = Vector3.new(0, -5, 0)
  781. asd.LockedToPart = false
  782. asd.EmissionDirection = "Back"
  783. asd.Lifetime = NumberRange.new(1, 2)
  784. asd.Rate = 1000
  785. asd.Rotation = NumberRange.new(-100, 100)
  786. asd.RotSpeed = NumberRange.new(-100, 100)
  787. asd.Speed = NumberRange.new(6)
  788. asd.VelocitySpread = 10000
  789. asd.Enabled=true
  790. --Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  791. if Spread==nil then Spread=1 end
  792. dmg(c,Spread)
  793. CFuncs["Sound"].Create("rbxassetid://429400881", c.HumanoidRootPart, 1.2, .8)
  794. coroutine.wrap(function()
  795. wait(.2)
  796. asd.Enabled = false
  797. wait(2)
  798. asd:Remove()
  799. end)()
  800. else
  801. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=160718677", c.HumanoidRootPart, 1.5, math.random(1,1.3))
  802. Effects.Sphere.Create(BrickColor.new("Bright red"), c.HumanoidRootPart.CFrame, 30, 30, 30, .5, .5, .5, 0.04)
  803.  
  804. end
  805. end
  806. end
  807. end
  808. end
  809. if c:FindFirstChild("Torso")then
  810. if (Part.Position-c.Torso.Position).magnitude<=Magnitude then
  811. GHK(c)
  812. end
  813. end
  814. end
  815. end
  816.  
  817. function chatfunc(text)
  818. local chat = coroutine.wrap(function()
  819. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  820. Character:FindFirstChild("TalkingBillBoard"):destroy()
  821. end
  822. local naeeym2 = Instance.new("BillboardGui",Character)
  823. naeeym2.Size = UDim2.new(0,100,0,40)
  824. naeeym2.StudsOffset = Vector3.new(0,3,0)
  825. naeeym2.Adornee = Character.Head
  826. naeeym2.Name = "TalkingBillBoard"
  827. local tecks2 = Instance.new("TextLabel",naeeym2)
  828. tecks2.BackgroundTransparency = 1
  829. tecks2.BorderSizePixel = 0
  830. tecks2.Text = ""
  831. tecks2.Font = "Fantasy"
  832. tecks2.TextSize = 30
  833. tecks2.TextStrokeTransparency = 0
  834. tecks2.TextColor3 = Color3.new(1,1,1)
  835. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  836. tecks2.Size = UDim2.new(1,0,0.5,0)
  837. for i = 1,string.len(text),1 do
  838. tecks2.Text = string.sub(text,1,i)
  839. wait(0.01)
  840. end
  841. wait(2)
  842. for i = 1, 50 do
  843. swait()
  844. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  845. tecks2.TextTransparency = tecks2.TextTransparency + .04
  846. end
  847. naeeym2:Destroy()
  848. end)
  849. chat()
  850. end
  851. function onChatted(msg)
  852. chatfunc(msg)
  853. end
  854. Player.Chatted:connect(onChatted)
  855.  
  856. function attackone()
  857. attack = true
  858. Humanoid.AutoRotate = false
  859. local aim = CFrame.new(RootPart.Position, mouse.Hit.p)
  860. local direction = aim.lookVector
  861. local headingA = math.atan2(direction.x, direction.z)
  862. headingA = math.deg(headingA)
  863. RootPart.CFrame = CFrame.new(RootPart.Position) * CFrame.Angles(math.rad(0), math.rad(headingA - 180), math.rad(0))
  864. Humanoid.WalkSpeed = 2
  865. for i = 0, 1, 0.25 do
  866. swait()
  867. PlayAnimationFromTable({
  868. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  869. CFrame.new(0, 1.4999907, 3.42726707e-007, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  870. CFrame.new(0.431798398, 0.400000006, -0.888215482, 0.939692736, 0.342019886, 0, 0, 0, -1, -0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  871. CFrame.new(-0.559965074, 0.300000012, -0.828456283, 0.939692736, -0.342019886, 0, 0, 0, -1, 0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  872. CFrame.new(0.599619746, -1.99127948, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  873. CFrame.new(-0.599619746, -1.99127901, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  874. }, .3, false)
  875. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  876. end
  877. coroutine.resume(coroutine.create(function()
  878. Effects.Sphere.Create(BrickColor.new("Institutional white"), Barrel.CFrame, 2, 2, 2, 1.1, 1.1, 1.1, 0.05)
  879. Effects.Block.Create(BrickColor.new("Institutional white"), Barrel.CFrame, 2, 2, 2, 0.7, 0.7, 0.7, 0.05)
  880. Effects.Block.Create(BrickColor.new("Institutional white"), Barrel.CFrame, 2, 2, 2, 0.85, 0.85, 0.85, 0.05)
  881. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=136523485", Barrel, 1, .5)
  882. local TP = Instance.new("Part") TP.CFrame = mouse.Hit
  883. Effects.Sphere.Create(BrickColor.new("Institutional white"), TP.CFrame, 1.75, 1.75, 1.75, 1, 1, 1, 0.05)
  884. Effects.Block.Create(BrickColor.new("Institutional white"), TP.CFrame, 1.75, 1.75, 1.75, 0.6, 0.6, 0.6, 0.05)
  885. Effects.Block.Create(BrickColor.new("Institutional white"), TP.CFrame, 1.75, 1.75, 1.75, 0.75, 0.75, 0.75, 0.05)
  886. mdmg(TP, 5 ,10)
  887. for i = 0, 1, 0.5 do
  888. swait()
  889. PlayAnimationFromTable({
  890. CFrame.new(-0, -0.281125277, 0.157014638, 1, 0, -0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  891. CFrame.new(0, 1.4999938, 1.05202198e-005, 1, 0, -0, 0, 0.965925813, 0.258818924, -0, -0.258818924, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  892. CFrame.new(0.406597674, 0.817824185, -0.957423151, 0.939692974, 0.280165672, -0.196174338, -5.36441803e-007, -0.573575616, -0.819152534, -0.34201926, 0.769751906, -0.538984895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  893. CFrame.new(-0.506752789, 0.775180221, -0.974653006, 0.939692974, -0.280165732, 0.196174279, 5.36441803e-007, -0.573575556, -0.819152713, 0.34201926, 0.769752145, -0.538984716) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  894. CFrame.new(0.566868722, -1.61683154, -0.13679418, 0.954536259, -0.174988821, -0.241328761, 0.172366679, 0.984509468, -0.0321052969, 0.243208498, -0.0109513998, 0.969912171) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  895. CFrame.new(-0.545306504, -1.37044179, -0.679420352, 0.996202111, 0.0754783303, 0.0434113704, -0.0434117466, 0.862729907, -0.503797948, -0.0754781216, 0.49999994, 0.862729967) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  896. }, .6, false)
  897. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
  898. end
  899. end))
  900. Humanoid.WalkSpeed = 16
  901. Humanoid.AutoRotate = true
  902. attack = false
  903. end
  904.  
  905. function wepknifestab()
  906. attack = true
  907. Humanoid.AutoRotate = false
  908. local aim = CFrame.new(RootPart.Position, mouse.Hit.p)
  909. local direction = aim.lookVector
  910. local headingA = math.atan2(direction.x, direction.z)
  911. headingA = math.deg(headingA)
  912. RootPart.CFrame = CFrame.new(RootPart.Position) * CFrame.Angles(math.rad(0), math.rad(headingA - 180), math.rad(0))
  913. Humanoid.WalkSpeed = 2
  914. for i=0,1,.2 do
  915. swait()
  916. PlayAnimationFromTable({
  917. CFrame.new(0.000179143899, 4.94844912e-08, -0.000147477331, 0.500000775, 1.22923609e-06, -0.86602509, -0.000292493496, 1.00000012, -0.000167452119, 0.866025031, 0.000337032834, 0.500000775),
  918. CFrame.new(-0.000420931523, 1.50010991, -7.43984856e-06, 0.500000775, -0.000292493496, 0.866025031, 1.22923609e-06, 1.00000012, 0.000337032834, -0.86602509, -0.000167452119, 0.500000775),
  919. CFrame.new(0.839951992, 0.256004274, -0.958486319, 0.499996692, 0.813799739, 0.2961981, 4.75931301e-06, 0.342016816, -0.939693928, -0.866027415, 0.469845295, 0.171003401),
  920. CFrame.new(-1.22089827, -0.164978445, -0.0866824239, 0.983905554, -0.138054684, 0.113450736, 0.176127508, 0.856396437, -0.485349834, -0.0301539302, 0.497520208, 0.866928339),
  921. CFrame.new(0.500076354, -2.00016046, 1.52737084e-05, 1.00000012, -1.45519152e-11, 2.98023224e-08, -1.45519152e-11, 1.00000012, -7.27595761e-12, 2.98023224e-08, -7.27595761e-12, 1.00000012),
  922. CFrame.new(-0.499987543, -2.00015903, -5.56111336e-05, 0.499999285, 9.37507139e-07, 0.866025865, -1.2402096e-06, 1.00000012, -3.66519089e-07, -0.866025925, -8.90795491e-07, 0.499999374),
  923. }, .5, false)
  924. end
  925. so(211059653,Knife2,1,1)
  926. Knife2.Transparency = 0
  927. KnifeH.Transparency = 1
  928. for i=0,1,.1 do
  929. swait()
  930. PlayAnimationFromTable({
  931. CFrame.new(0.000175330031, 1.00539501e-06, -0.000154084992, 0.500003099, 1.22933841e-06, -0.866029263, -0.000292495621, 1.00000453, -0.000167453458, 0.866029143, 0.000337033416, 0.500003219),
  932. CFrame.new(-0.00041242165, 1.50012219, -6.93052425e-06, 0.500003099, -0.000292495621, 0.866029143, 1.22933841e-06, 1.00000453, 0.000337033416, -0.866029263, -0.000167453458, 0.500003219),
  933. CFrame.new(1.09288597, 0.364121079, -0.802504063, 0.748180747, 0.593714058, 0.296199232, 0.116981708, 0.321389914, -0.939695835, -0.653104663, 0.737710655, 0.171003729),
  934. CFrame.new(-0.688675284, 1.32965851, -0.712965548, 0.334458649, -0.800666928, -0.49706617, -0.926752567, -0.375185549, -0.0192363095, -0.171089798, 0.46709004, -0.867502213),
  935. CFrame.new(0.500086367, -2.00017858, 1.52748289e-05, 1.00000489, -7.13043846e-10, 2.98023224e-08, -7.13043846e-10, 1.00000441, -5.31144906e-10, 2.98023224e-08, -5.31144906e-10, 1.00000489),
  936. CFrame.new(-0.499991834, -2.00017858, -5.22881746e-05, 0.500001609, 9.36794095e-07, 0.866030037, -1.24011513e-06, 1.00000441, -3.673631e-07, -0.866030157, -8.91312084e-07, 0.500001788),
  937. }, .5, false)
  938. end
  939. tr2.Enabled = true
  940. so(200632136,Knife2,math.random(9,11)/10,1)
  941. for i=0,1,.1 do
  942. swait()
  943. PlayAnimationFromTable({
  944. CFrame.new(-2.50339508e-06, -0.116524018, -2.23838973, 0.342018872, -5.0964772e-08, -0.939693093, 0.321393877, 0.939692676, 0.11697726, 0.883022726, -0.342020035, 0.321392655),
  945. CFrame.new(-6.99047723e-06, 1.49998283, -2.62057279e-06, 0.342018872, 1.1920929e-07, 0.939693093, -5.0964772e-08, 1, -1.49011612e-07, -0.939693093, -7.4505806e-09, 0.342018902),
  946. CFrame.new(1.22636616, 0.263386577, -0.809811354, 0.939690471, 0.342026293, 1.16229057e-06, -0.0593909174, 0.163175166, -0.984808028, -0.336830378, 0.925414443, 0.173647419),
  947. CFrame.new(-1.32934356, 1.10000336, -0.700607181, -1.1920929e-07, 0.342020571, -0.939692616, -1, -4.47034836e-08, 1.49011612e-07, 7.4505806e-09, 0.939692497, 0.342020541),
  948. CFrame.new(0.977364421, -1.93956006, -0.0584065914, 0.854759812, -0.518661916, -0.0193820298, 0.5132581, 0.850225329, -0.116975099, 0.0771495849, 0.0900376588, 0.99294579),
  949. CFrame.new(-0.972516656, -1.19701695, -0.393972486, 0.183487743, 0.321393877, 0.92899859, 0.0593910404, 0.939692676, -0.336824, -0.981226325, 0.11697726, 0.153334215),
  950. }, .4, false)
  951. mdmg(Knife2,1.5,100)
  952. end
  953. for i=0,1,.2 do
  954. swait()
  955. PlayAnimationFromTable({
  956. CFrame.new(0.000175330031, 1.00539501e-06, -0.000154084992, 0.500003099, 1.22933841e-06, -0.866029263, -0.000292495621, 1.00000453, -0.000167453458, 0.866029143, 0.000337033416, 0.500003219),
  957. CFrame.new(-0.00041242165, 1.50012219, -6.93052425e-06, 0.500003099, -0.000292495621, 0.866029143, 1.22933841e-06, 1.00000453, 0.000337033416, -0.866029263, -0.000167453458, 0.500003219),
  958. CFrame.new(1.09288597, 0.364121079, -0.802504063, 0.748180747, 0.593714058, 0.296199232, 0.116981708, 0.321389914, -0.939695835, -0.653104663, 0.737710655, 0.171003729),
  959. CFrame.new(-0.688675284, 1.32965851, -0.712965548, 0.334458649, -0.800666928, -0.49706617, -0.926752567, -0.375185549, -0.0192363095, -0.171089798, 0.46709004, -0.867502213),
  960. CFrame.new(0.500086367, -2.00017858, 1.52748289e-05, 1.00000489, -7.13043846e-10, 2.98023224e-08, -7.13043846e-10, 1.00000441, -5.31144906e-10, 2.98023224e-08, -5.31144906e-10, 1.00000489),
  961. CFrame.new(-0.499991834, -2.00017858, -5.22881746e-05, 0.500001609, 9.36794095e-07, 0.866030037, -1.24011513e-06, 1.00000441, -3.673631e-07, -0.866030157, -8.91312084e-07, 0.500001788),
  962. }, .5, false)
  963. end
  964. for i=0,1,.2 do
  965. swait()
  966. PlayAnimationFromTable({
  967. CFrame.new(0.000179143899, 4.94844912e-08, -0.000147477331, 0.500000775, 1.22923609e-06, -0.86602509, -0.000292493496, 1.00000012, -0.000167452119, 0.866025031, 0.000337032834, 0.500000775),
  968. CFrame.new(-0.000420931523, 1.50010991, -7.43984856e-06, 0.500000775, -0.000292493496, 0.866025031, 1.22923609e-06, 1.00000012, 0.000337032834, -0.86602509, -0.000167452119, 0.500000775),
  969. CFrame.new(0.839951992, 0.256004274, -0.958486319, 0.499996692, 0.813799739, 0.2961981, 4.75931301e-06, 0.342016816, -0.939693928, -0.866027415, 0.469845295, 0.171003401),
  970. CFrame.new(-1.22089827, -0.164978445, -0.0866824239, 0.983905554, -0.138054684, 0.113450736, 0.176127508, 0.856396437, -0.485349834, -0.0301539302, 0.497520208, 0.866928339),
  971. CFrame.new(0.500076354, -2.00016046, 1.52737084e-05, 1.00000012, -1.45519152e-11, 2.98023224e-08, -1.45519152e-11, 1.00000012, -7.27595761e-12, 2.98023224e-08, -7.27595761e-12, 1.00000012),
  972. CFrame.new(-0.499987543, -2.00015903, -5.56111336e-05, 0.499999285, 9.37507139e-07, 0.866025865, -1.2402096e-06, 1.00000012, -3.66519089e-07, -0.866025925, -8.90795491e-07, 0.499999374),
  973. }, .5, false)
  974. end
  975. so(211134014,Knife2,1,1)
  976. Knife2.Transparency = 1
  977. KnifeH.Transparency = 0
  978. Humanoid.WalkSpeed = 16
  979. Humanoid.AutoRotate = true
  980. tr2.Enabled = false
  981. attack = false
  982. end
  983.  
  984. function Taunt()
  985. attack = true
  986. local cho = math.random(1,6)
  987. if cho == 1 then
  988. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=907332670", Character, 8, 1.05)
  989. chatfunc("Your Death Is Assured.")
  990. elseif cho == 2 then
  991. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=907329893", Character, 8, 1.05)
  992. chatfunc("My Attacks Will Tear You Apart!")
  993. elseif cho == 3 then
  994. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=907333294", Character, 8, 1.05)
  995. chatfunc("You Will Know Pain.")
  996. elseif cho == 4 then
  997. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=907329532", Character, 8, 1.05)
  998. chatfunc("I Will Show You True Power.")
  999. elseif cho == 5 then
  1000. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=300208779", Character, 8, 1.05)
  1001. chatfunc("Hm, Hm, Hahahahahaha.")
  1002. elseif cho == 6 then
  1003. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=907332997", Character, 8, 1.05)
  1004. chatfunc("Your Interference Has Ended.")
  1005. end
  1006. attack = false
  1007. end
  1008.  
  1009. function goright()
  1010. attack = true
  1011. Humanoid.WalkSpeed = 0
  1012. so(536642316,Torso,1,1)
  1013. BodyVel(RootPart,RootPart.CFrame.rightVector*40)
  1014. for i=0,1,.2 do
  1015. swait()
  1016. PlayAnimationFromTable({
  1017. CFrame.new(0, 0, 0, 0.866025686, 9.42248391e-07, 0.500011504, -8.48485797e-08, 1, 2.03145464e-06, -0.499997288, 1.801709e-06, 0.866039157),
  1018. CFrame.new(0.0133891273, 1.49998093, -0.223221898, 0.999244928, 0.0180275738, 0.0343858302, -0.0296961162, 0.925415933, 0.377787739, -0.0250054598, -0.378526747, 0.92527163),
  1019. CFrame.new(0.597281635, 0.899970174, -0.636579931, -0.2961981, 0.81379801, 0.499997288, 0.939692438, 0.34202075, -1.801709e-06, -0.171011984, 0.469857872, -0.866039157),
  1020. CFrame.new(-1.5597142, 0.600028992, -0.496432245, 0.556670129, 0.663414598, -0.499997288, -0.766044378, 0.642787695, 1.801709e-06, 0.321399361, 0.38303256, 0.866039157),
  1021. CFrame.new(0.0669843927, -1.80000138, -0.249991581, 0.750000238, 0.433012992, -0.499997288, -0.499999464, 0.866025865, 1.801709e-06, 0.433021635, 0.250007659, 0.866039157),
  1022. CFrame.new(-1.01960945, -1.79999983, -0.300026655, 0.663413942, 0.556670904, -0.499997288, -0.642787337, 0.766044736, 1.801709e-06, 0.38302961, 0.321402997, 0.866039157),
  1023. }, .4, false)
  1024. end
  1025. Humanoid.WalkSpeed = 16
  1026. attack = false
  1027. end
  1028.  
  1029. function goleft()
  1030. attack = true
  1031. Humanoid.WalkSpeed = 0
  1032. so(536642316,Torso,1,1)
  1033. BodyVel(RootPart,RootPart.CFrame.rightVector*-40)
  1034. for i=0,1,.2 do
  1035. swait()
  1036. PlayAnimationFromTable({
  1037. CFrame.new(0, 0, 0, 0.866035402, 9.42248391e-07, -0.499995083, 1.7168677e-06, 1, 1.08920722e-06, 0.500013709, 1.801709e-06, 0.866029859),
  1038. CFrame.new(-0.100005262, 1.49997783, -0.173194915, 0.984938622, -0.171012864, -0.0261079669, 0.171011686, 0.939692199, 0.296198815, -0.0261065066, -0.296198487, 0.954771042),
  1039. CFrame.new(1.55997992, 0.600023985, -0.496356547, 0.433018357, -0.750008225, 0.500013709, 0.866026461, 0.499998212, 1.801709e-06, -0.249996096, 0.433009237, 0.866029859),
  1040. CFrame.new(-0.510781586, 0.89997524, -0.686506629, -0.296202958, -0.813806593, -0.500013709, -0.939693034, 0.342019022, -1.801709e-06, 0.171007261, 0.469842136, -0.866029859),
  1041. CFrame.new(0.975441694, -1.79999304, -0.250189304, 0.750009537, -0.433016449, 0.500013709, 0.500001013, 0.866024911, 1.801709e-06, -0.433007956, 0.249998584, 0.866029859),
  1042. CFrame.new(-0.282589972, -1.79999781, -0.149757206, 0.813807786, -0.296199739, 0.500013709, 0.34202078, 0.939692438, 1.801709e-06, -0.469841361, 0.171009272, 0.866029859),
  1043. }, .4, false)
  1044. end
  1045. Humanoid.WalkSpeed = 16
  1046. attack = false
  1047. end
  1048.  
  1049. function doge()
  1050. attack = true
  1051. Humanoid.WalkSpeed = 0
  1052. so(536642316,Torso,1,1)
  1053. local bodyvel = Instance.new("BodyVelocity",RootPart)
  1054. local pep = 10000000
  1055. bodyvel.P = pep
  1056. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  1057. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  1058. for i=0,1,.2 do
  1059. swait()
  1060. PlayAnimationFromTable({
  1061. CFrame.new(0, -0.413182259, -0.492409885, 1, 0, 0, 0, 0.173647001, 0.984807968, 0, -0.984807968, 0.173647001),
  1062. CFrame.new(0, 1.39017391, 0.409808099, 1, 0, 0, 0, 0.499998748, -0.866026163, 0, 0.866026163, 0.499998748),
  1063. CFrame.new(0.997828066, 1.40889716, 0.360830426, 0, 0.173647001, 0.984807968, 0.173647001, -0.969846725, 0.171008945, 0.984807968, 0.171008945, -0.030153282),
  1064. CFrame.new(-1.00000775, 1.48291457, 0.347779244, 0, -0.173647001, -0.984807968, -0.173647001, -0.969846725, 0.171008945, -0.984807968, 0.171008945, -0.030153282),
  1065. CFrame.new(0.5, -2, -2.86102295e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1066. CFrame.new(-0.5, -2, -2.86102295e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1067. }, .4, false)
  1068. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  1069. end
  1070. for i=0,1,.2 do
  1071. swait()
  1072. PlayAnimationFromTable({
  1073. CFrame.new(0.000384914892, -2.50002575, -0.500230014, 1, 0.000325046538, 9.11258903e-05, -9.11258612e-05, -1.13315764e-07, 1, 0.000325047644, -1.00000298, -8.37171683e-08),
  1074. CFrame.new(-2.67028663e-05, 1.3837955, 0.294111609, 1, 7.27595761e-12, -7.27595761e-12, 0, 0.766044259, -0.642787933, -5.78026516e-12, 0.642787993, 0.766044199),
  1075. CFrame.new(1.49976707, 1.00041652, 0.300775796, -0.00040801923, -0.765891016, 0.642970264, 2.89759337e-05, -0.642970324, -0.765891075, 0.99999994, -0.000293867604, 0.000284536654),
  1076. CFrame.new(-1.42841077, 1.06972277, 0.174795836, 0.220292583, 0.604053974, -0.765891671, -0.261924088, -0.719712377, -0.642969549, -0.939610124, 0.34224686, -0.000331013813),
  1077. CFrame.new(0.500055313, -2, 3.8146969e-05, 1, 0, -5.78026516e-12, 0, 1, 0, -5.78026516e-12, 0, 1),
  1078. CFrame.new(-0.49997139, -2, -1.62124597e-05, 1, 0, -5.78026516e-12, 0, 1, 0, -5.78026516e-12, 0, 1),
  1079. }, .4, false)
  1080. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  1081. end
  1082. for i=0,50,10 do
  1083. swait()
  1084. bodyvel.Velocity = RootPart.CFrame.lookVector*(50-i)
  1085. end
  1086. bodyvel:Destroy()
  1087. for i=0,1,.1 do
  1088. swait()
  1089. PlayAnimationFromTable({
  1090. CFrame.new(0.00016165484, -1.36983359, -0.0292072296, 1, 7.76843081e-05, -2.60516535e-05, -6.40891813e-05, 0.939692557, 0.342020124, 5.10504469e-05, -0.342021197, 0.939695537),
  1091. CFrame.new(-1.71661304e-05, 1.55976009, -0.1281178, 1, 7.27595761e-12, -7.27595761e-12, -3.63797881e-12, 0.939692616, 0.342020214, 2.91038305e-11, -0.342020303, 0.939692557),
  1092. CFrame.new(1.50001144, 1.00809121, -0.154073462, 1, 1.45519152e-11, -7.27595761e-12, -3.63797881e-12, -0.939692974, -0.342018962, 2.91038305e-11, 0.342018992, -0.939693034),
  1093. CFrame.new(-1.30754018, 0.449972421, -0.64069438, 0.262003481, 0.219851375, -0.939691246, -0.642790556, 0.766041994, 2.16066837e-06, 0.719843447, 0.604024053, 0.342024028),
  1094. CFrame.new(0.49989906, -0.431120992, -0.657953143, 1, -6.40891813e-05, 5.10504469e-05, 7.76843081e-05, 0.939692557, -0.342021197, -2.60516535e-05, 0.342020124, 0.939695537),
  1095. CFrame.new(-0.600045562, -1.23124671, 0.200614065, 1, -3.91021022e-05, -7.18890005e-05, 7.7586832e-05, 0.173648059, 0.984807789, -2.60246452e-05, -0.984807789, 0.173648089),
  1096. }, .3, false)
  1097. end
  1098. Humanoid.WalkSpeed = 16
  1099. attack = false
  1100. end
  1101.  
  1102. --[[Attacks]]--
  1103.  
  1104. mouse.Button1Down:connect(function()
  1105. if attack == false then
  1106. attackone()
  1107. end
  1108. end)
  1109.  
  1110. mouse.KeyDown:connect(function(k)
  1111. k = k:lower()
  1112. if k == 'q' then
  1113. goleft()
  1114. elseif k == 'e' then
  1115. goright()
  1116. elseif k == 'f' and attack == false then
  1117. doge()
  1118. elseif k == 'z' and attack == false then
  1119. wepknifestab()
  1120. elseif k == 't' and attack == false then
  1121. Taunt()
  1122. end
  1123. end)
  1124.  
  1125. kkk = Instance.new("Sound",Character)
  1126. kkk.Name = "kkk"
  1127. kkk.SoundId = "rbxassetid://729622879"
  1128. kkk.Looped = true
  1129. kkk.Volume = 1
  1130. kkk:Play()
  1131.  
  1132. coroutine.wrap(function()
  1133. while true do
  1134. swait()
  1135. Humanoid.MaxHealth = "inf"
  1136. Humanoid.Health = "inf"
  1137. if Character:FindFirstChild("GodFF")==nil then
  1138. local ff = Instance.new("ForceField",Character)
  1139. ff.Name = "GodFF"
  1140. ff.Visible = false
  1141. end
  1142. end
  1143. end)()
  1144.  
  1145.  
  1146. CV="Black"
  1147. Player = game.Players.LocalPlayer
  1148. Character = Player.Character
  1149. local txt = Instance.new("BillboardGui", Character)
  1150. txt.Adornee = Character .Head
  1151. txt.Name = "_status"
  1152. txt.Size = UDim2.new(2, 0, 1.2, 0)
  1153. txt.StudsOffset = Vector3.new(-9, 8, 0)
  1154. local text = Instance.new("TextLabel", txt)
  1155. text.Size = UDim2.new(10, 0, 7, 0)
  1156. text.FontSize = "Size24"
  1157. text.TextScaled = true
  1158. text.TextTransparency = 0
  1159. text.BackgroundTransparency = 1
  1160. text.TextTransparency = 0
  1161. text.TextStrokeTransparency = 0
  1162. text.Font = "Bodoni"
  1163. text.TextStrokeColor3 = Color3.new(255,0,0)
  1164.  
  1165. v=Instance.new("Part")
  1166. v.Name = "ColorBrick"
  1167. v.Parent=Player.Character
  1168. v.FormFactor="Symmetric"
  1169. v.Anchored=true
  1170. v.CanCollide=false
  1171. v.BottomSurface="Smooth"
  1172. v.TopSurface="Smooth"
  1173. v.Size=Vector3.new(3,3,3)
  1174. v.Transparency=1
  1175. v.CFrame=Character.Torso.CFrame
  1176. v.BrickColor=BrickColor.new(CV)
  1177. v.Transparency=1
  1178. text.TextColor3 = Color3.new(0,0,0)
  1179. v.Shape="Block"
  1180. text.Text = "Grunt The Killer"
  1181.  
  1182. while true do
  1183. swait()
  1184. for i, v in pairs(Character:GetChildren()) do
  1185. if v:IsA("Part") then
  1186. v.Material = "SmoothPlastic"
  1187. elseif v:IsA("Accessory") then
  1188. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1189. end
  1190. end
  1191. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1192. velocity = RootPart.Velocity.y
  1193. sine = sine + change
  1194. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1195. if equipped == true or equipped == false then
  1196. if RootPart.Velocity.y > 1 and hit == nil then
  1197. Anim = "Jump"
  1198. if attack == false then
  1199. PlayAnimationFromTable({
  1200. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1201. CFrame.new(0, 1.49221826, -0.044082582, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1202. CFrame.new(1.66304386, 0.182627335, 0.00782334805, 0.883022726, -0.392632574, 0.257119894, 0.321392894, 0.905103981, 0.2783764, -0.342019886, -0.163176134, 0.925416708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1203. CFrame.new(-1.66570556, 0.224230319, 0.110721856, 0.903736115, 0.408218145, -0.128915116, -0.34750703, 0.875426054, 0.33595863, 0.25000003, -0.258819014, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1204. CFrame.new(0.499999166, -1.99999452, 4.76837158e-007, 0.984807849, -5.94328526e-007, -0.173648044, 0.0449439958, 0.965925872, 0.254886925, 0.167730987, -0.258819073, 0.951251388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1205. CFrame.new(-0.499999404, -1.51703107, -0.129407585, 0.965925753, 6.6929374e-007, 0.258819193, -0.0669879839, 0.965925813, 0.24999994, -0.24999994, -0.258819163, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1206. }, .3, false)
  1207. end
  1208. elseif RootPart.Velocity.y < -1 and hit == nil then
  1209. Anim = "Fall"
  1210. if attack == false then
  1211. PlayAnimationFromTable({
  1212. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1213. CFrame.new(0, 1.49221873, -0.0440826714, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1214. CFrame.new(1.76076102, 0.406842887, 0.0212866664, 0.695482016, -0.670965135, 0.257119834, 0.611573994, 0.74059701, 0.278376371, -0.377202988, -0.0363579579, 0.925416648) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1215. CFrame.new(-1.68029141, 0.390803367, 0.155905366, 0.70961535, 0.692695498, -0.128914997, -0.625963271, 0.703777075, 0.335958213, 0.323444158, -0.157705069, 0.933012843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1216. CFrame.new(0.693307817, -1.96826017, -0.0605875254, 0.986561239, -0.127662987, -0.101976946, 0.137943029, 0.985269904, 0.101069227, 0.0875720233, -0.113777988, 0.989639223) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1217. CFrame.new(-0.526552737, -1.81498528, -0.152177691, 0.965925574, 0.0449441113, 0.254888207, -0.066988036, 0.994663239, 0.0784704387, -0.250001162, -0.0928710476, 0.963781357) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1218. }, .3, false)
  1219. end
  1220. elseif Torsovelocity < 1 and hit ~= nil then
  1221. Anim = "Idle"
  1222. if attack == false then
  1223. change = 1
  1224. PlayAnimationFromTable({
  1225. CFrame.new(1.22602091e-006, -0.219458103, 1.46111324e-006, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1226. CFrame.new(0, 1.49999201, 0, 0.707106233, 0, -0.707107306, 0, 1, 0, 0.707107306, 0, 0.707106233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1227. CFrame.new(0.571566343, -0.0739164352, -0.639066696, 0.939692855, 0.340718329, -0.0298085809, -0.241844058, 0.600305915, -0.762328327, -0.241844922, 0.723563433, 0.646503866) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1228. CFrame.new(-0.628383756, -0.12163578, -0.696761668, 0.939692736, -0.342020065, -5.06639481e-007, 0.196173996, 0.538984895, -0.819152653, 0.280166954, 0.769751549, 0.573575616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1229. CFrame.new(0.624118924, -1.79798961, 0.0678238794, 0.995454907, -0.0383867361, -0.0871553123, 0.0385330059, 0.999257326, -4.09960694e-006, 0.0870907605, -0.00335427374, 0.996194839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1230. CFrame.new(-0.53866595, -1.82180798, 0.00821807235, 0.977763176, 0.0281341001, 0.207816422, -0.0287620034, 0.999586344, -1.4934686e-007, -0.207730502, -0.00597707182, 0.978167892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1231. }, .3, false)
  1232. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  1233. end
  1234. elseif Torsovelocity > 2 and hit ~= nil then
  1235. Anim = "Walk"
  1236. if attack == false then
  1237. change = 3
  1238. PlayAnimationFromTable({
  1239. CFrame.new(0, -0.0240751095, -0.146390602, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1240. CFrame.new(0, 1.49999237, -1.81794167e-006, 1, 0, 0, 0, 0.984807789, -0.173647881, 0, 0.173647881, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1241. CFrame.new(0.172261134, 0.427689523, -1.09730911, 0.644483984, 0.748984814, -0.153825179, 0.413525045, -0.510645986, -0.753815472, -0.643146515, 0.422211438, -0.638827145) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1242. CFrame.new(-1.1922102, 0.363029838, -0.448653877, 0.935289383, -0.110854559, -0.33607316, -0.341521561, -0.531564534, -0.775114357, -0.0927196145, 0.839732468, -0.535025835) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  1243. CFrame.new(.5, -1.85 - 0.5 * math.cos(sine / 8) / 2, 0 + 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(-50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  1244. CFrame.new(-.5, -1.85 + 0.5 * math.cos(sine / 8) / 2, 0 - 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  1245. }, .3, false)
  1246. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  1247. end
  1248. end
  1249. end
  1250. if 0 < #Effects then
  1251. for e = 1, #Effects do
  1252. if Effects[e] ~= nil then
  1253. local Thing = Effects[e]
  1254. if Thing ~= nil then
  1255. local Part = Thing[1]
  1256. local Mode = Thing[2]
  1257. local Delay = Thing[3]
  1258. local IncX = Thing[4]
  1259. local IncY = Thing[5]
  1260. local IncZ = Thing[6]
  1261. if Thing[2] == "Shoot" then
  1262. local Look = Thing[1]
  1263. local move = 30
  1264. if Thing[8] == 3 then
  1265. move = 10
  1266. end
  1267. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  1268. if Thing[10] ~= nil then
  1269. da = pos
  1270. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  1271. cfa = CFrame.new(Thing[4], pos)
  1272. tehCF = cfa:lerp(cf2, 0.2)
  1273. Thing[1] = tehCF.lookVector
  1274. end
  1275. local mag = (Thing[4] - pos).magnitude
  1276. Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  1277. if Thing[8] == 2 then
  1278. Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  1279. end
  1280. Thing[4] = Thing[4] + Look * move
  1281. Thing[3] = Thing[3] - 1
  1282. if 2 < Thing[5] then
  1283. Thing[5] = Thing[5] - 0.3
  1284. Thing[6] = Thing[6] - 0.3
  1285. end
  1286. if hit ~= nil then
  1287. Thing[3] = 0
  1288. if Thing[8] == 1 or Thing[8] == 3 then
  1289. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1290. else
  1291. if Thing[8] == 2 then
  1292. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  1293. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  1294. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1295. ref.Anchored = true
  1296. ref.CFrame = CFrame.new(pos)
  1297. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  1298. game:GetService("Debris"):AddItem(ref, 0.2)
  1299. Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  1300. Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  1301. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  1302. end
  1303. end
  1304. end
  1305. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  1306. ref.Anchored = true
  1307. ref.CFrame = CFrame.new(pos)
  1308. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  1309. game:GetService("Debris"):AddItem(ref, 1)
  1310. end
  1311. if Thing[3] <= 0 then
  1312. table.remove(Effects, e)
  1313. end
  1314. end
  1315. do
  1316. do
  1317. if Thing[2] == "FireWave" then
  1318. if Thing[3] <= Thing[4] then
  1319. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  1320. Thing[3] = Thing[3] + 1
  1321. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  1322. else
  1323. Part.Parent = nil
  1324. table.remove(Effects, e)
  1325. end
  1326. end
  1327. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  1328. if Thing[1].Transparency <= 1 then
  1329. if Thing[2] == "Block1" then
  1330. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1331. Mesh = Thing[7]
  1332. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1333. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1334. else
  1335. if Thing[2] == "Block2" then
  1336. Thing[1].CFrame = Thing[1].CFrame
  1337. Mesh = Thing[7]
  1338. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1339. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1340. else
  1341. if Thing[2] == "Fire" then
  1342. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  1343. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1344. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1345. else
  1346. if Thing[2] == "Cylinder" then
  1347. Mesh = Thing[7]
  1348. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1349. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1350. else
  1351. if Thing[2] == "Blood" then
  1352. Mesh = Thing[7]
  1353. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1354. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1355. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1356. else
  1357. if Thing[2] == "Elec" then
  1358. Mesh = Thing[10]
  1359. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1360. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1361. else
  1362. if Thing[2] == "Disappear" then
  1363. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1364. else
  1365. if Thing[2] == "Shatter" then
  1366. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1367. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1368. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1369. Thing[6] = Thing[6] + Thing[5]
  1370. end
  1371. end
  1372. end
  1373. end
  1374. end
  1375. end
  1376. end
  1377. end
  1378. else
  1379. Part.Parent = nil
  1380. table.remove(Effects, e)
  1381. end
  1382. end
  1383. end
  1384. end
  1385. end
  1386. end
  1387. end
  1388. end
  1389. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement