SHARE
TWEET

Untitled

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