daily pastebin goal
2%
SHARE
TWEET

Divine Fist Of The North Star: Music Edit

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