Advertisement
CerealKiller223

ken

Nov 2nd, 2018
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.26 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,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. -----------------------
  84. --HOKUTO, NO SHINKEN!--
  85. ----------------------------------------------------------------
  86. --By CKbackup (Sugarie Saffron) --
  87. --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
  88. --Discord: Sugarie Saffron#4705 --
  89. ----------------------------------------------------------------
  90.  
  91. print([[
  92. --Hokuto Shinken (Divine Fist of the North Star)--
  93. By CKbackup (Sugarie Saffron)
  94. YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw
  95. Discord: Sugarie Saffron#4705
  96. --------------------------------
  97. As I've been demoted from my SB
  98. Mod rank in VSB, I don't see the
  99. need to hold this back any longer.
  100.  
  101. Also, if the anims look weird or
  102. the weapon looks out of place,
  103. it's because it's actually modeled
  104. off a scaled rig with a package.
  105. It looks better with the Boy
  106. package.
  107. --------------------------------
  108. (Keys)
  109. M - Mute/Play Music
  110. F - Energy Particles
  111.  
  112. K/L - Change the You Wa Shock song
  113. to either the new/old instrumental ver.
  114.  
  115. (Hold) Click - Hundred Crack Fist
  116. Q - Teleport
  117. Z - Tell those you've struck that
  118. they're already dead
  119. ]])
  120. player = owner
  121. chara = player.Character
  122. equipped = false
  123. del = false
  124. attacking = false
  125. atkd = false
  126. hum = chara:FindFirstChildOfClass("Humanoid")
  127. debby = game.Debris
  128. ws = 10
  129. hum.WalkSpeed = 10
  130.  
  131. ArtificialHB = Instance.new("BindableEvent", script)
  132. ArtificialHB.Name = "Heartbeat"
  133. script:WaitForChild("Heartbeat")
  134. frame = 0.03333333333333
  135. tf = 0
  136. allowframeloss = false
  137. tossremainder = false
  138. lastframe = tick()
  139. script.Heartbeat:Fire()
  140. game:GetService("RunService").Heartbeat:connect(function(s, p)
  141. tf = tf + s
  142. if tf >= frame then
  143. if allowframeloss then
  144. script.Heartbeat:Fire()
  145. lastframe = tick()
  146. else
  147. for i = 1, math.floor(tf / frame) do
  148. script.Heartbeat:Fire()
  149. end
  150. lastframe = tick()
  151. end
  152. if tossremainder then
  153. tf = 0
  154. else
  155. tf = tf - frame * math.floor(tf / frame)
  156. end
  157. end
  158. end)
  159. function swait(num)
  160. if num == 0 or num == nil then
  161. ArtificialHB.Event:wait()
  162. else
  163. for i = 0, num*30 do
  164. ArtificialHB.Event:wait()
  165. end
  166. end
  167. end
  168.  
  169. New = function(Object, Parent, Name, Data)
  170. local Object = Instance.new(Object)
  171. for Index, Value in pairs(Data or {}) do
  172. Object[Index] = Value
  173. end
  174. Object.Parent = Parent
  175. Object.Name = Name
  176. return Object
  177. end
  178.  
  179. RightArm = New("Model",chara,"RightArm",{})
  180. MainPart = New("Part",RightArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(0.5, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  181. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  182. Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(0.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
  183. Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
  184. Weld = New("ManualWeld",Emit2Part,"Weld",{Part0 = Emit2Part,Part1 = MainPart,C1 = CFrame.new(0, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  185. LeftArm = New("Model",chara,"LeftArm",{})
  186. MainPart = New("Part",LeftArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(-2.50000024, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  187. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Left Arm"],C1 = CFrame.new(-2.38418579e-007, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  188. EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-2.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
  189. Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
  190. Weld = New("ManualWeld",EmitPart,"Weld",{Part0 = EmitPart,Part1 = MainPart,C1 = CFrame.new(2.38418579e-007, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  191.  
  192. lach = LeftArm:GetChildren()
  193. rach = RightArm:GetChildren()
  194.  
  195. local pemit = Instance.new("ParticleEmitter")
  196. pemit.Name = "beter"
  197. pemit.Enabled = false
  198. pemit.LightEmission = 1
  199. pemit.Size = NumberSequence.new(1,0)
  200. pemit.Transparency = NumberSequence.new(0,1)
  201. pemit.Texture = "rbxassetid://745304849"
  202. pemit.Lifetime = NumberRange.new(.5)
  203. pemit.Acceleration = Vector3.new(0,20,0)
  204. pemit.Rate = 200
  205. pemit.Rotation = NumberRange.new(0,360)
  206. pemit.Speed = NumberRange.new(2)
  207. pemit.RotSpeed = NumberRange.new(100)
  208. pemit.VelocitySpread = 100
  209. pemit.ZOffset = -.5
  210.  
  211. for i, v in pairs(chara:GetChildren()) do
  212. if v ~= chara.HumanoidRootPart and v:IsA("BasePart") then
  213. pemit:Clone().Parent = v
  214. end
  215. if v:IsA("ShirtGraphic") or v:IsA("Shirt") or v:IsA("Pants") then
  216. v:Destroy()
  217. end
  218. if v.Name == "Chest" then
  219. for a, t in pairs(v:GetChildren()) do
  220. if t ~= v.MainPart and t ~= v.Tail then
  221. t:Destroy()
  222. end
  223. end
  224. end
  225. if v.Name == "FakeHeadM" then
  226. v.FakeHead.Normal.Texture = "http://www.roblox.com/asset/?id=1000657824"
  227. for a, t in pairs(v:GetChildren()) do
  228. if t.Name == "SpecPart" then
  229. t:Destroy()
  230. end
  231. end
  232. end
  233. end
  234.  
  235. ShadowHead = New("Part",chara,"ShadowHeads",{BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  236. Mesh = New("SpecialMesh",ShadowHead,"Mesh",{Scale = Vector3.new(1.3, 1.5, 1.3),})
  237. Weld = New("ManualWeld",ShadowHead,"Weld",{Part0 = ShadowHead,Part1 = chara.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  238. ShadowHead.Transparency = 1
  239.  
  240. --LACM = New("CharacterMesh",chara,"LACM",{MeshId = "32328397",BodyPart = "LeftArm"})
  241. --LLCM = New("CharacterMesh",chara,"LLCM",{MeshId = "319336109",BodyPart = "LeftLeg"})
  242. --RACM = New("CharacterMesh",chara,"RACM",{MeshId = "32328563",BodyPart = "RightArm"})
  243. --RLCM = New("CharacterMesh",chara,"RLCM",{MeshId = "319336155",BodyPart = "RightLeg"})
  244. --TOCM = New("CharacterMesh",chara,"TOCM",{MeshId = "32328670",BodyPart = "Torso"})
  245.  
  246. local shi = Instance.new("Shirt",chara)
  247. shi.ShirtTemplate = "http://www.roblox.com/asset/?id=1188791280"
  248. local pan = Instance.new("Pants",chara)
  249. pan.PantsTemplate = "http://www.roblox.com/asset/?id=1188789468"
  250. local gshi = Instance.new("ShirtGraphic",nil)
  251. gshi.Graphic = "http://www.roblox.com/asset/?id=114844135"
  252.  
  253. --Sounds--
  254. function LoadSnd(id,loop,vol,pit)
  255. local snd = New("Sound",chara.Head,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
  256. return snd
  257. end
  258. --AtataSnd = LoadSnd(130767866,false,1,1)
  259. --DeadSnd = LoadSnd(992192914,false,1,1)
  260. Music = LoadSnd(1072454168,true,1,1)
  261. Music.Parent = chara
  262.  
  263. --Play Sound in Part--
  264. function PlaySnd(snd,part,pitch,vol)
  265. local sound = Instance.new("Sound",part)
  266. sound.PlayOnRemove = true
  267. sound.SoundId = "rbxassetid://"..snd
  268. sound.PlaybackSpeed = pitch
  269. sound.Volume = vol
  270. sound:Destroy()
  271. end
  272.  
  273. function CamShake(par,magni,env,dur)
  274. coroutine.wrap(function()
  275. for i=0,dur*60 do
  276. swait()
  277. hum.CameraOffset = Vector3.new(math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10)
  278. end
  279. hum.CameraOffset = Vector3.new(0,0,0)
  280. end)()
  281. end
  282.  
  283. --function PlaySnd2(snd,part)
  284. --local sound = snd:Clone()
  285. --sound.Parent = part
  286. --sound.PlayOnRemove = true
  287. --sound:Destroy()
  288. --end
  289.  
  290. maincol = "White"
  291.  
  292. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  293. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  294. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  295. local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
  296. return TEff
  297. end
  298.  
  299. RPunchT = CreateTrailObj(chara["Right Arm"],"White","White",0,0)
  300. LPunchT = CreateTrailObj(chara["Left Arm"],"White","White",0,0)
  301. RKickT = CreateTrailObj(chara["Right Leg"],"White","White",0,0)
  302. LKickT = CreateTrailObj(chara["Left Leg"],"White","White",0,0)
  303.  
  304. --Punch Hit Effect--
  305. function PunchEff(pos)
  306. local p = Instance.new("Part",game.Workspace)
  307. p.Size = Vector3.new(1,1,1)
  308. p.BrickColor = BrickColor.new(maincol)
  309. p.Material = "Neon"
  310. p.Anchored = true
  311. p.CanCollide = false
  312. p.CFrame = pos
  313. CamShake(p,10,.7,.1)
  314. local pm = Instance.new("SpecialMesh",p)
  315. pm.MeshType = "Sphere"
  316. coroutine.resume(coroutine.create(function()
  317. for i = 0,1,.05 do
  318. swait()
  319. p.Transparency = i
  320. pm.Scale = Vector3.new(2*i,2*i,2*i)
  321. end
  322. swait()
  323. p:Destroy()
  324. end))
  325. end
  326. function BigHitEff(pos)
  327. for i = 1, 5 do
  328. local p = Instance.new("Part",game.Workspace)
  329. p.Size = Vector3.new(1,1,1)
  330. p.BrickColor = BrickColor.new("White")
  331. p.Material = "Neon"
  332. p.Anchored = true
  333. p.CanCollide = false
  334. p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  335. local pm = Instance.new("SpecialMesh",p)
  336. pm.MeshType = "Sphere"
  337. pm.Scale = Vector3.new(.5,0,.5)
  338. local disp = coroutine.wrap(function()
  339. for i = 0,1,.05 do
  340. swait()
  341. p.Transparency = i
  342. pm.Scale = Vector3.new(2*i,2*i,2*i)
  343. end
  344. swait()
  345. p:Destroy()
  346. end)
  347. disp()
  348. local p = Instance.new("Part",game.Workspace)
  349. p.Size = Vector3.new(1,1,1)
  350. p.BrickColor = BrickColor.new("White")
  351. p.Material = "Neon"
  352. p.Anchored = true
  353. p.CanCollide = false
  354. p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  355. CamShake(p,10,1,.4)
  356. local pm = Instance.new("SpecialMesh",p)
  357. pm.MeshType = "Sphere"
  358. pm.Scale = Vector3.new(.5,.5,.5)
  359. local disp = coroutine.wrap(function()
  360. for i = 0,1,.05 do
  361. swait()
  362. p.Transparency = i
  363. pm.Scale = Vector3.new(.5*i,.5*i,.5*i)
  364. pm.Offset = Vector3.new(0,8*i,0)
  365. end
  366. swait()
  367. p:Destroy()
  368. end)
  369. disp()
  370. end
  371. end
  372.  
  373. --Damage Function--
  374. function dealdmg(dude)
  375. if dude ~= chara and dude:IsDescendantOf(chara) == false then
  376. if dude:FindFirstChild("IsAlreadyDead") == nil then
  377. local vall = Instance.new("ObjectValue",dude)
  378. vall.Name = "IsAlreadyDead"
  379. local faceg = Instance.new("BillboardGui",dude)
  380. faceg.Name = "IsAlreadyDeadBillBoardGui"
  381. faceg.Size = UDim2.new(4,0,4,0)
  382. faceg.Adornee = dude.Head
  383. faceg.StudsOffset = Vector3.new(0,5.5,0)
  384. local simgl = Instance.new("ImageLabel",faceg)
  385. simgl.Position = UDim2.new(0,0,0,0)
  386. simgl.Size = UDim2.new(1,0,1,0)
  387. simgl.Image = "http://www.roblox.com/asset/?id=47110473"
  388. simgl.BackgroundTransparency = 1
  389. end
  390. local vall = Instance.new("ObjectValue",dude)
  391. vall.Name = "IsHit"
  392. debby:AddItem(vall,.01)
  393. local bfos = Instance.new("BodyVelocity",dude.Head)
  394. bfos.P = 200000
  395. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  396. bfos.Velocity = Vector3.new(0,0,0) --+ chara.HumanoidRootPart.CFrame.lookVector * kbx
  397. game.Debris:AddItem(bfos,.5)
  398. end
  399. end
  400.  
  401. --Explode Hitbox--
  402. function ExHitbox(rad,pos,damage,env,toim,kby,kbx)
  403. local E = Instance.new("Explosion")
  404. E.Position = pos
  405. E.Parent = game.Workspace
  406. E.BlastRadius = rad
  407. E.BlastPressure = 0
  408. E.Visible = false
  409. E.Hit:connect(function(hit)
  410. if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  411. dealdmg(hit.Parent,damage,env,toim,kby,kbx)
  412. end
  413. end)
  414. end
  415. function PExHitbox()
  416. local E = Instance.new("Explosion",workspace)
  417. E.Position = chara.HumanoidRootPart.Position + chara.HumanoidRootPart.CFrame.lookVector*3
  418. E.BlastRadius = 1
  419. E.BlastPressure = 0
  420. E.Visible = false
  421. debby:AddItem(E,.05)
  422. E.Hit:connect(function(hit)
  423. if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  424. if punchactive == true then
  425. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil and hit.Parent.Name ~= "Salvo_Starly" then
  426. dealdmg(hit.Parent)
  427. PlaySnd(386946017,hit.Parent.Head,math.random(8,12)/10,1)
  428. PunchEff(hit.CFrame + Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)))
  429. end
  430. end
  431. if hpunchactive == true then
  432. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent.Name ~= "Salvo_Starly" then
  433. dealdmg(hit.Parent)
  434. PlaySnd(200633636,hit.Parent.Head,1,1)
  435. BigHitEff(hit.CFrame)
  436. coroutine.resume(coroutine.create(function()
  437. if hit.Parent.Head:FindFirstChildOfClass("BodyVelocity") then
  438. hit.Parent.Head:FindFirstChildOfClass("BodyVelocity"):Destroy()
  439. end
  440. local bfos = Instance.new("BodyVelocity",hit.Parent.Head)
  441. bfos.P = 100000
  442. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  443. bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 100
  444. game.Debris:AddItem(bfos,.5)
  445. hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  446. swait(2)
  447. hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  448. end))
  449. end
  450. end
  451. end
  452. end)
  453. end
  454.  
  455. --Punch Touch--
  456. dela = .05
  457. punchactive = false
  458. function punchhit(hit)
  459. if punchactive == true then
  460. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  461. dealdmg(hit.Parent)
  462. PlaySnd(153092227,hit.Parent.Head,1,1)
  463. PunchEff(hit.CFrame)
  464. end
  465. end
  466. end
  467. Emit2Part.Touched:connect(punchhit)
  468. EmitPart.Touched:connect(punchhit)
  469.  
  470. --Chat Function--
  471. function chatfunc(text,dude)
  472. coroutine.resume(coroutine.create(function()
  473. if dude:FindFirstChild("TalkingBillBoard")~= nil then
  474. dude:FindFirstChild("TalkingBillBoard"):destroy()
  475. end
  476. local naeeym2 = Instance.new("BillboardGui",chara)
  477. naeeym2.Size = UDim2.new(0,100,0,40)
  478. naeeym2.StudsOffset = Vector3.new(0,3,0)
  479. naeeym2.Adornee = dude.Head
  480. naeeym2.Name = "TalkingBillBoard"
  481. local tecks2 = Instance.new("TextLabel",naeeym2)
  482. tecks2.BackgroundTransparency = 1
  483. tecks2.BorderSizePixel = 0
  484. tecks2.Text = ""
  485. tecks2.Font = "Fantasy"
  486. tecks2.FontSize = "Size24"
  487. tecks2.TextStrokeTransparency = 0
  488. tecks2.TextColor3 = Color3.new(1,1,1)
  489. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  490. tecks2.Size = UDim2.new(1,0,0.5,0)
  491. coroutine.resume(coroutine.create(function()
  492. for i = 1,string.len(text),1 do
  493. tecks2.Text = string.sub(text,1,i)
  494. swait(0.01)
  495. end
  496. swait(1)
  497. for i = 1, 5 do
  498. swait(.01)
  499. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  500. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  501. tecks2.TextTransparency = tecks2.TextTransparency + .2
  502. end
  503. naeeym2:Destroy()
  504. end))
  505. end))
  506. end
  507.  
  508. --function onChatted(msg)
  509. --chatfunc(msg,chara)
  510. --end
  511. --player.Chatted:connect(onChatted)
  512.  
  513. --Clerp Animations--
  514. TC = chara.HumanoidRootPart.RootJoint
  515. HC = chara.Torso.Neck
  516. RAC = chara.Torso["Right Shoulder"]
  517. LAC = chara.Torso["Left Shoulder"]
  518. RLC = chara.Torso["Right Hip"]
  519. LLC = chara.Torso["Left Hip"]
  520. TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  521. HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  522. RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  523. LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  524. RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  525. LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  526. RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  527. LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  528. RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  529. LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  530. grp = Instance.new("Model",chara)
  531. RW = nil
  532. LW = nil
  533. RLW = nil
  534. LLW = nil
  535.  
  536. function AddLegWelds()
  537. RLW = Instance.new("Weld",chara["Right Leg"])
  538. RLW.Part1 = HC.Parent
  539. RLW.Part0 = chara["Right Leg"]
  540. RLW.C0 = RLWF
  541. LLW = Instance.new("Weld",chara["Left Leg"])
  542. LLW.Part1 = HC.Parent
  543. LLW.Part0 = chara["Left Leg"]
  544. LLW.C0 = LLWF
  545. end
  546.  
  547. function AddArmWelds()
  548. RW = Instance.new("Weld",HC.Parent)
  549. RW.Part1 = HC.Parent
  550. RW.Part0 = chara["Right Arm"]
  551. RW.C0 = RWF
  552. LW = Instance.new("Weld",HC.Parent)
  553. LW.Part1 = HC.Parent
  554. LW.Part0 = chara["Left Arm"]
  555. LW.C0 = LWF
  556. end
  557.  
  558. function DestroyLegWelds()
  559. RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),})
  560. LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
  561. RLW:Destroy()
  562. LLW:Destroy()
  563. end
  564.  
  565. function DestroyArmWelds()
  566. RAC = New("Motor6D",chara.Torso,"Right Shoulder",{Part0 = chara.Torso,Part1 = chara["Right Arm"],C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0),C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)})
  567. LAC = New("Motor6D",chara.Torso,"Left Shoulder",{Part0 = chara.Torso,Part1 = chara["Left Arm"],C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)})
  568. RW:Destroy()
  569. LW:Destroy()
  570. end
  571.  
  572. function clerp(a,b,c)
  573. return a:lerp(b,c)
  574. end
  575.  
  576. ITCF = TCF
  577. IHCF = HCF
  578. IRWF = RWF
  579. ILWF = LWF
  580.  
  581. function res()
  582. TC.C0 = ITCF
  583. HC.C0 = IHCF
  584. end
  585. res()
  586.  
  587. --Teleport--
  588. function Teleport()
  589. PlaySnd(153613030,chara.Head,1,1)
  590. for i, v in pairs(chara:GetChildren()) do
  591. if v:IsA("BasePart") then
  592. local trace = Instance.new("Part",game.Workspace)
  593. trace.Size = v.Size
  594. trace.Position = v.Position
  595. trace.CFrame = v.CFrame
  596. trace.Anchored = true
  597. trace.CanCollide = false
  598. trace.BrickColor = BrickColor.new("White")
  599. trace.Material = "Neon"
  600. coroutine.resume(coroutine.create(function()
  601. for i = 0,1,.1 do
  602. swait()
  603. trace.Transparency = i
  604. end
  605. trace:Destroy()
  606. end))
  607. end
  608. end
  609. chara.Torso.CFrame = mouse.Hit + Vector3.new(0,3,0)
  610. end
  611.  
  612. --Keys--
  613. holdingdown = false
  614. function onButton1Down()
  615. holdingdown = true
  616. if del == false then
  617. del = true
  618. AddArmWelds()
  619. for i = 0,.6,.1 do
  620. swait()
  621. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,.6-i)
  622. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),0,0),IHCF,.6-i)
  623. RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-20)),IRWF,.6-i)
  624. LW.C0 = clerp(LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),ILWF,.6-i)
  625. end
  626. punchactive = true
  627. local AtataSnd = LoadSnd(130767866,false,1,1)
  628. AtataSnd:Play() --PlaySnd(130767866,chara.Head,1,1)
  629. chatfunc("ATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATA",chara)
  630. local punches = 0
  631. repeat
  632. swait()
  633. RW.C0 = (RWF + Vector3.new(math.rad(-10,10),math.random(1,2),math.random(0,1))) * CFrame.fromEulerAnglesXYZ(math.rad(-100+math.random(-15,15)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15)))
  634. LW.C0 = (LWF + Vector3.new(math.rad(-10,10),math.random(1,2),math.random(0,1))) * CFrame.fromEulerAnglesXYZ(math.rad(-100+math.random(-15,15)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15)))
  635. TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(math.random(-10,10)),0)
  636. coroutine.resume(coroutine.create(function()
  637. local part1 = Instance.new("Part",workspace)
  638. part1.Size = Vector3.new(1,2,1)
  639. part1.CanCollide = false
  640. part1.Anchored = true
  641. part1.BrickColor = chara["Right Arm"].BrickColor
  642. part1.CFrame = chara["Right Arm"].CFrame
  643. local part2 = Instance.new("Part",workspace)
  644. part2.Size = Vector3.new(1,2,1)
  645. part2.CanCollide = false
  646. part2.Anchored = true
  647. part2.BrickColor = chara["Left Arm"].BrickColor
  648. part2.CFrame = chara["Left Arm"].CFrame
  649. if chara:FindFirstChildOfClass("CharacterMesh") then
  650. local mh = Instance.new("SpecialMesh",part1)
  651. mh.MeshId = "rbxassetid://279174886"
  652. mh.Scale = Vector3.new(1.1,1.1,1.1)
  653. local mh = Instance.new("SpecialMesh",part2)
  654. mh.MeshId = "rbxassetid://279174949"
  655. mh.Scale = Vector3.new(1.1,1.1,1.1)
  656. end
  657. coroutine.resume(coroutine.create(function()
  658. for i = .4,1,.1 do
  659. swait()
  660. part1.Transparency = i
  661. part2.Transparency = i
  662. end
  663. part1:Destroy()
  664. part2:Destroy()
  665. end))
  666. end))
  667. PExHitbox()
  668. punches = punches + 1
  669. until holdingdown == false or punches >= 230
  670. punchactive = false
  671. LW.C0 = ILWF
  672. AtataSnd:Stop()
  673. AtataSnd.TimePosition = 7.5
  674. AtataSnd:Play()
  675. hpunchactive = true
  676. chatfunc("WATAU!",chara)
  677. for i = 0,.6,.2 do
  678. swait()
  679. TC.C0 = clerp((TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),.6-i)
  680. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),.6-i)
  681. RW.C0 = clerp((RWF + Vector3.new(0,1,-1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),.6-i)
  682. end
  683. PExHitbox()
  684. swait()
  685. TC.C0 = (TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0)
  686. HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0)
  687. RW.C0 = (RWF + Vector3.new(0,1,1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0)
  688. swait(.2)
  689. hpunchactive = false
  690. punchactive = false
  691. swait(.5)
  692. for i = 0,.6,.1 do
  693. swait()
  694. TC.C0 = clerp((TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),ITCF,.4+i)
  695. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),IHCF,.4+i)
  696. RW.C0 = clerp((RWF + Vector3.new(0,1,1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),IRWF,.4+i)
  697. LW.C0 = ILWF
  698. end
  699. DestroyArmWelds()
  700. walking = false
  701. AtataSnd.TimePosition = 0
  702. debby:AddItem(AtataSnd,2)
  703. del = false
  704. end
  705. end
  706. function onButton2Down()
  707. if del == false then
  708. del = true
  709. AddArmWelds()
  710. ShadowHead.Transparency = 0
  711. for i = 0,.6,.05 do
  712. swait()
  713. TC.C0 = ITCF
  714. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.4+i)
  715. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
  716. LW.C0 = ILWF
  717. end
  718. RW.C0 = (RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  719. local DeadSnd = LoadSnd(992192914,false,1,1)
  720. DeadSnd:Play() --PlaySnd(992192914,workspace,1,1)
  721. chatfunc("You are already dead.",chara)
  722. swait(2.8)
  723. local dudes = {}
  724. for i, v in pairs(workspace:GetDescendants()) do
  725. if v:IsA("ObjectValue") and v.Name == "IsAlreadyDead" and v.Parent:FindFirstChildOfClass("Humanoid") then
  726. table.insert(dudes,v.Parent)
  727. end
  728. end
  729. if #dudes == 0 then
  730. DeadSnd:Destroy()
  731. end
  732. for no = 1, #dudes do
  733. coroutine.resume(coroutine.create(function()
  734. dudes[no].IsAlreadyDead:Destroy()
  735. dudes[no].IsAlreadyDeadBillBoardGui:Destroy()
  736. if dudes[no]:FindFirstChildOfClass("Humanoid").Health > 1 then
  737. chatfunc("What?!",dudes[no])
  738. end
  739. debby:AddItem(DeadSnd,6)
  740. swait(.5)
  741. for i, v in pairs(dudes[no]:GetChildren()) do
  742. if v:IsA("BasePart") then
  743. v.Anchored = true
  744. end
  745. end
  746. for oa = 1, 60 do
  747. local effp = Instance.new("Part",workspace)
  748. effp.CanCollide = false
  749. effp.BottomSurface = 0
  750. effp.TopSurface = 0
  751. effp.Size = Vector3.new(1,1,1)
  752. effp.Anchored = true
  753. effp.CFrame = (dudes[no].Head.CFrame * CFrame.new(0,-1.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,359)),math.rad(math.random(0,359)),math.rad(math.random(0,359)))
  754. effp.Material = "Neon"
  755. effp.BrickColor = BrickColor.new("White")
  756. local efm = Instance.new("BlockMesh",effp)
  757. CamShake(effp,20,.4,.1)
  758. coroutine.resume(coroutine.create(function()
  759. for a = 0,1,.05 do
  760. efm.Scale = Vector3.new(1-a,1000*a,1-a)
  761. effp.Transparency = a
  762. swait()
  763. end
  764. effp:Destroy()
  765. end))
  766. swait(.05)
  767. end
  768. dudes[no]:BreakJoints()
  769. for oa = 1, 5 do
  770. local effp = Instance.new("Part",workspace)
  771. effp.CanCollide = false
  772. effp.BottomSurface = 0
  773. effp.TopSurface = 0
  774. effp.Size = Vector3.new(1,1,1)
  775. effp.Anchored = true
  776. effp.CFrame = (dudes[no].Head.CFrame * CFrame.new(0,-1.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,359)),math.rad(math.random(0,359)),math.rad(math.random(0,359)))
  777. effp.Material = "Neon"
  778. effp.BrickColor = BrickColor.new("White")
  779. local efm = Instance.new("BlockMesh",effp)
  780. CamShake(effp,20,1,.4)
  781. coroutine.resume(coroutine.create(function()
  782. for a = 0,1,.01 do
  783. efm.Scale = Vector3.new(2-a*2,1000*a,2-a*2)
  784. effp.Transparency = a
  785. swait()
  786. end
  787. effp:Destroy()
  788. end))
  789. end
  790. for i, v in pairs(dudes[no]:GetChildren()) do
  791. if v:IsA("BasePart") then
  792. v.Anchored = false
  793. end
  794. end
  795. for a, v in pairs(dudes[no]:GetChildren()) do
  796. if v:IsA("BasePart") then
  797. local bodpos = Instance.new("BodyPosition",v)
  798. bodpos.Position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  799. v.BrickColor = BrickColor.new("Really white")
  800. v.Material = "Neon"
  801. end
  802. end
  803. for d = 0,1,.1 do
  804. for i, v in pairs(dudes[no]:GetChildren()) do
  805. if v:IsA("BasePart") then
  806. v.Transparency = d
  807. swait()
  808. end
  809. end
  810. end
  811. for i, v in pairs(dudes[no]:GetChildren()) do
  812. if v:IsA("BasePart") then
  813. v:Destroy()
  814. end
  815. end
  816. end))
  817. end
  818. for i = 0,.6,.05 do
  819. swait()
  820. TC.C0 = ITCF
  821. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.6-i)
  822. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.6-i)
  823. LW.C0 = ILWF
  824. end
  825. ShadowHead.Transparency = 1
  826. DestroyArmWelds()
  827. walking = false
  828. del = false
  829. end
  830. end
  831.  
  832. rage = false
  833. if mouse then
  834. mouse.Button1Down:connect(onButton1Down)
  835. mouse.Button1Up:connect(function()
  836. holdingdown = false
  837. end)
  838. mouse.KeyDown:connect(function(key)
  839. if key == "z" then
  840. onButton2Down()
  841. elseif key == "f" then
  842. if rage == false then
  843. for i, v in pairs(chara:GetDescendants()) do
  844. if v.Name == "beter" then
  845. v.Enabled = true
  846. end
  847. end
  848. rage = true
  849. elseif rage == true then
  850. for i, v in pairs(chara:GetDescendants()) do
  851. if v.Name == "beter" then
  852. v.Enabled = false
  853. end
  854. end
  855. rage = false
  856. end
  857. elseif key == "q" then
  858. Teleport()
  859. elseif key == "m" then
  860. if Music.IsPlaying == true then
  861. Music:Stop()
  862. elseif Music.IsPlaying == false then
  863. Music:Play()
  864. end
  865. elseif key == "k" then
  866. Music.SoundId = "rbxassetid://548642448"
  867. elseif key == "l" then
  868. Music.SoundId = "rbxassetid://1072454168"
  869. end
  870. end)
  871. --mouse.KeyUp:connect(onKeyUp)
  872. end
  873.  
  874. --Loop Function--
  875. walking = false
  876. toim = 0
  877. while true do
  878. swait()
  879. hum.Name = "hoomanood"
  880. hum.Health = math.huge
  881. hum.MaxHealth = math.huge
  882. --if gkeydown == true then
  883. --coroutine.resume(coroutine.create(function()
  884. --onButton1Down()
  885. --end))
  886. --end
  887. toim = toim + .1
  888. if del == false then attacking = false elseif del == true then attacking = true end
  889. torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
  890. if torvel < 1 and walking == true and del == false and atkd == false and attacking == false then
  891. for i = 0,1,.25 do
  892. swait()
  893. if del == false and attacking == false then
  894. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,i)
  895. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,i)
  896. --RW.C0 = IRWF
  897. --LW.C0 = IRWF
  898. end
  899. end
  900. walking = false
  901. elseif torvel > 1 and walking == false and del == false and atkd == false and attacking == false then
  902. for i = 0,1,.25 do
  903. swait()
  904. if del == false and attacking == false then
  905. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,1-i)
  906. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,1-i)
  907. --RW.C0 = IRWF
  908. --LW.C0 = ILWF
  909. end
  910. end
  911. walking = true
  912. else
  913. end
  914. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement