Advertisement
Guest User

Untitled

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