daily pastebin goal
96%
SHARE
TWEET

Untitled

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