carlosname

Untitled

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