Advertisement
Dark_AJ1

omea wa mou shinderu

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