agu29029320904930935

kenshiro

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