Advertisement
lafur

Untitled

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