Advertisement
Guest User

Divine Fist Of The North Star: FE Edit

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