reset234567890

Untitled

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