kaualima12

Untitled

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