Advertisement
Oreox

Untitled

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