cr8brooo

br

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