Advertisement
Guest User

test

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