Advertisement
idkwhatiam

Hokuto Shinken FE

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