Advertisement
DerpzDeNugget

aaaaaaaaa

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