Advertisement
cr8brooo

whu

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