Advertisement
cr8brooo

tes2

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