Advertisement
AsukaOS

Test

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