Advertisement
Guest User

Untitled

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