Advertisement
PasterXIV

Untitled

Nov 26th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.42 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},Soundscape=r:GetService("RunService").Heartbeat,BindToSoundscape=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7.  
  8. wait(1)
  9. local plr = game.Players.LocalPlayer
  10. local char = plr.Character
  11. hum=char.Humanoid
  12. for i,v in pairs (char:GetChildren()) do
  13. if v.Name~="Humanoid" and v.ClassName~="Part" then
  14. v:Destroy()
  15. end
  16. end
  17.  
  18. for i,v in pairs (char:WaitForChild("Head"):GetChildren()) do
  19. if v.ClassName=="Sound" then
  20. v:Destroy()
  21. end
  22. end
  23. spawn(function()
  24. while wait() do
  25. char:WaitForChild("Right Arm").BrickColor=BrickColor.new("Cool yellow")
  26. char:WaitForChild("Left Arm").BrickColor=BrickColor.new("Cool yellow")
  27. char:WaitForChild("Head").BrickColor=BrickColor.new("Cool yellow")
  28. char:WaitForChild("Right Leg").BrickColor=BrickColor.new("Medium blue")
  29. char:WaitForChild("Left Leg").BrickColor=BrickColor.new("Medium blue")
  30. char:WaitForChild("Torso").BrickColor=BrickColor.new("Bright yellow")
  31. end
  32. end)
  33. ac = Instance.new("Accessory",workspace)
  34. ac.AttachmentPos=Vector3.new(0, -0.1, 0.2)
  35. o2 = Instance.new("Part")
  36. o3 = Instance.new("SpecialMesh")
  37. o4 = Instance.new("Vector3Value")
  38. o2.Name = "Handle"
  39. o2.Parent = ac
  40. o2.Position = char.Torso.Position
  41. spawn(function()
  42. repeat
  43. if ac.Parent~=char then
  44. o2.Position = char.Torso.Position
  45. else
  46. break
  47. end
  48. wait()
  49. until ac.Parent==char
  50. end)
  51. o2.Rotation = Vector3.new(0, -0.75999999, 0)
  52. o2.CanCollide = false
  53. o2.Locked = true
  54. o2.FormFactor = Enum.FormFactor.Custom
  55. o2.Size = Vector3.new(1.60000014, 0.800000012, 1.60000014)
  56. o2.CFrame = CFrame.new(0.128948003, 5.08735895, -0.544525981, 0.999912918, 1.17847014e-26, -0.0131900534, -4.89980362e-24, 1, -3.70551116e-22, 0.013190059, 3.70583553e-22, 0.999912918)
  57. o2.BottomSurface = Enum.SurfaceType.Smooth
  58. o2.TopSurface = Enum.SurfaceType.Smooth
  59. o2.Position = Vector3.new(0.128948003, 5.08735895, -0.544525981)
  60. o3.Parent = o2
  61. o3.MeshId = "http://www.roblox.com/asset/?id=120626701"
  62. o3.Scale = Vector3.new(0.899999976, 0.819999993, 0.819999993)
  63. o3.TextureId = "http://www.roblox.com/asset/?id=120626735"
  64. o3.MeshType = Enum.MeshType.FileMesh
  65. o4.Name = "OriginalSize"
  66. o4.Parent = o2
  67. o4.Value = Vector3.new(1.60000014, 0.800000012, 1.60000014)
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85. local mouse = plr:GetMouse()
  86. local torso = char.Torso
  87. local RightArm1 = torso["Right Shoulder"]
  88. local LeftArm1 = torso["Left Shoulder"]
  89. local RightLeg1 = torso["Right Hip"]
  90. local LeftLeg1 = torso["Left Hip"]
  91. local Torso1 = char.HumanoidRootPart.RootJoint
  92. local Head1 = torso.Neck
  93.  
  94. local RightArm = torso["Right Shoulder"]:Clone()
  95. local LeftArm = torso["Left Shoulder"]:Clone()
  96. local RightLeg = torso["Right Hip"]:Clone()
  97. local LeftLeg = torso["Left Hip"]:Clone()
  98. local Torso = char.HumanoidRootPart.RootJoint:Clone()
  99. local Head = torso.Neck:Clone()
  100.  
  101. RightArm1:Destroy()
  102. LeftArm1:Destroy()
  103. RightLeg1:Destroy()
  104. LeftLeg1:Destroy()
  105. Torso1:Destroy()
  106. Head1:Destroy()
  107.  
  108. RightArm.Parent=torso
  109. LeftArm.Parent=torso
  110. RightLeg.Parent=torso
  111. LeftLeg.Parent=torso
  112. Head.Parent=torso
  113. Torso.Parent=char.HumanoidRootPart
  114.  
  115.  
  116.  
  117.  
  118. local animpose = "Idle"
  119. cananim = true
  120. num=0
  121.  
  122. local attacking = false
  123. if char:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator") then char:FindFirstChildOfClass("Humanoid").Animator:Destroy() end
  124. if char:FindFirstChild("Animate") then char.Animate:Destroy() end
  125.  
  126.  
  127.  
  128.  
  129.  
  130. spawn(function()
  131. while wait() do
  132. if torso then
  133. local velocity=torso.Velocity
  134. if hum==nil then
  135. return
  136. end
  137. if hum.MoveDirection==Vector3.new(0,0,0) then
  138. animpose="Idle"
  139. else
  140. animpose="Running"
  141. end
  142. if velocity.Y>0.5 then
  143. animpose="Jumping"
  144. end
  145. if velocity.Y<-0.5 then
  146. animpose="Falling"
  147. end
  148. end
  149. end
  150. end)
  151.  
  152.  
  153. function sound(id,loop,tim,endtim,eff)
  154. local s=Instance.new("Sound",char.Torso)
  155. s.SoundId=id
  156. if loop==true then
  157. s.Looped=true
  158. s.Name="Music"
  159. else
  160. s.Volume=2
  161. if id~="rbxassetid://245537790" and id~='rbxassetid://1179921724' and id~='rbxassetid://1251737869' then
  162. s.PlaybackSpeed = 1+math.random(-100,100)/1000
  163. end
  164. end
  165. if tim then
  166. s.TimePosition=tim
  167. end
  168. spawn(function()
  169. if endtim then
  170. repeat wait() until s.TimePosition==endtim or s.TimePosition>=endtim
  171. s:Stop()
  172. end
  173. end)
  174. if eff=="echo" then
  175. spawn(function()
  176. wait(1)
  177. local echo=Instance.new("EchoSoundEffect",s)
  178. echo.Delay=0.05
  179. echo.WetLevel=11
  180. echo.DryLevel=-1
  181. end)
  182. end
  183. if eff=="quiet" then
  184. s.Volume=0.3
  185. end
  186. s:Play()
  187. end
  188. --SCREEEEM
  189. function lazor()
  190. sound("rbxassetid://1251737869",false,5.3,7.7,'echo')
  191. cananim=false
  192. for i=1,30 do
  193. wait(1/60)
  194. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -0.934085608, 0.339979589, -0.10907802, -0.102499805, 0.0373069048, 0.994033217, 0.342020363, 0.939692557, 0),0.2)
  195. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.50000006, 0.365961194, 0.435137242, -0.173563123, -0.0313025787, -0.984325111, -0.00543563766, 0.999509931, -0.0308270231, 0.98480773, 0, -0.173648223),0.2)
  196. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1, -7.4505806e-09, 0.0094302753, 0.0843551308, 0.996391118, 0.110700019, 0.990222573, -0.0848806128, -0.993809104, 0.111100972, -4.34407745e-08),0.2)
  197. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.499999881, 0.49999997, 0, 0.686760783, 0.0407644771, -0.725739539, 0.724464417, 0.0430024639, 0.687969565, 0.0592533089, -0.998242974, -2.59004374e-09),0.2)
  198. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, -0.0484665036, 2.98023224e-08, -0.31701979, -0.00180978479, 0.948417187, -0.948401749, -0.00541418325, -0.317024946, 0.00570865162, -0.999983728, 2.49531951e-10),0.2)
  199. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),0.2)
  200. end
  201.  
  202. local keeprunning=true
  203. spawn(function()
  204. while wait() do
  205. local ray = Ray.new(char['Right Arm'].CFrame.p,(mouse.Hit.p-char['Right Arm'].CFrame.p).unit*300)
  206. local part,position = workspace:FindPartOnRay(ray,char, false, true)
  207. local distance = (char['Right Arm'].CFrame.p - position).magnitude
  208. if keeprunning==false then
  209. break
  210. end
  211. if part then
  212. if part.Parent:FindFirstChild("Humanoid") then
  213. part:BreakJoints()
  214. part.Anchored=false
  215.  
  216. end
  217. end
  218.  
  219. local ex=Instance.new("Explosion",workspace)
  220. ex.Position=position
  221. ex.Visible=false
  222. ex.DestroyJointRadiusPercent=0
  223. ex.BlastPressure=100001
  224. ex.BlastRadius=1
  225.  
  226. local ex=Instance.new("Explosion",workspace)
  227. ex.Position=position
  228. ex.Visible=false
  229. ex.DestroyJointRadiusPercent=0
  230. ex.BlastPressure=100
  231. ex.BlastRadius=30
  232.  
  233. Torso.C1 = Torso.C1:lerp(CFrame.new(0.45384407, 3.25962901e-09, -0.163368881, -0.840329647, -0.538628399, 0.061037913, 0.12248569, -0.0789824352, 0.989322543, -0.528056264, 0.838833332, 0.132345542),0.2)
  234. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.486327916, 0.918347716, -0.0835282654, -0.139580116, -0.193979532, -0.971024871, -0.210418463, 0.96403873, -0.162337258, 0.967595696, 0.18166253, -0.175377563),0.2)
  235. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.504761815, 1.01941562, -0.072208859, -0.0534072705, 0.0794541091, 0.995406747, -0.0726492628, 0.993878722, -0.083230041, -0.995926619, -0.0767606497, -0.0473080687),0.2)
  236. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.49999994, -5.96046448e-08, -0.0783533007, -0.155531406, -0.984718561, -0.400697172, 0.909370303, -0.111747369, 0.912854075, 0.385818183, -0.1335731),0.2)
  237. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.267708331, 0.709498703, -0.021721065, -0.500156283, -0.117081404, 0.85798347, -0.864884198, 0.0187412351, -0.501621544, 0.0426508784, -0.992945492, -0.110635392),0.2)
  238. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -0.951892793, 0.28452459, 0.113780133, 0, -0.371307135, 0.928510129, 0.306431323, 0.883842111, 0.353444576),0.2)
  239.  
  240. local beam = Instance.new("Part", char)
  241. beam.BrickColor = BrickColor.new("Institutional white")
  242. beam.FormFactor = "Custom"
  243. beam.Material = "Neon"
  244. beam.Transparency = 0.5
  245. beam.Anchored = true
  246. beam.Locked = true
  247. beam.CanCollide = false
  248. beam.Size = Vector3.new(0.3, 0.3, distance)
  249. beam.CFrame = CFrame.new((char['Right Arm'].CFrame*CFrame.new(0,-3,0)).p, mouse.Hit.p) * CFrame.new(0, 0, -distance/2)
  250. spawn(function()
  251. for i=1,10 do
  252. beam.Transparency=i/10
  253. wait()
  254. end
  255. beam:Destroy()
  256. end)
  257. spawn(function()
  258. for i=1,20 do
  259. beam.Size=Vector3.new(i,i,beam.Size.Z)
  260. wait()
  261. end
  262. end)
  263. end
  264. end)
  265. for i=1,10 do
  266. sound("rbxassetid://245537790",false)
  267. end
  268. wait(3)
  269. keeprunning=false
  270. cananim=true
  271. end
  272. dodamage=false
  273. deb=false
  274. hum.Touched:connect(function(part)
  275. local ded=part.Parent:FindFirstChildOfClass("Humanoid")
  276. if deb==true then
  277. return
  278. end
  279. deb=true
  280. if ded then
  281. if dodamage == true then
  282. ded.Health=ded.Health-(math.random(5,10))
  283. sound("rbxassetid://386946017",false,0,0.36,'quiet')
  284. if supermode==true then
  285. local ex=Instance.new("Explosion",workspace)
  286. if math.random(1,3) ==1 then
  287. ex.Visible=false
  288. end
  289. ex.DestroyJointRadiusPercent=0
  290. ex.Position=part.Position
  291. ex.BlastPressure=1000
  292. part:BreakJoints()
  293. part.Anchored=false
  294. end
  295. end
  296. end
  297. wait(0.1)
  298. deb=false
  299. end)
  300. function SUPERlazor()
  301. sound("rbxassetid://1179921724",false,'echo')
  302.  
  303. wait(2)
  304. cananim=false
  305. for i=1,30 do
  306. wait(1/60)
  307. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -0.934085608, 0.339979589, -0.10907802, -0.102499805, 0.0373069048, 0.994033217, 0.342020363, 0.939692557, 0),0.2)
  308. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.50000006, 0.365961194, 0.435137242, -0.173563123, -0.0313025787, -0.984325111, -0.00543563766, 0.999509931, -0.0308270231, 0.98480773, 0, -0.173648223),0.2)
  309. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1, -7.4505806e-09, 0.0094302753, 0.0843551308, 0.996391118, 0.110700019, 0.990222573, -0.0848806128, -0.993809104, 0.111100972, -4.34407745e-08),0.2)
  310. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.499999881, 0.49999997, 0, 0.686760783, 0.0407644771, -0.725739539, 0.724464417, 0.0430024639, 0.687969565, 0.0592533089, -0.998242974, -2.59004374e-09),0.2)
  311. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, -0.0484665036, 2.98023224e-08, -0.31701979, -0.00180978479, 0.948417187, -0.948401749, -0.00541418325, -0.317024946, 0.00570865162, -0.999983728, 2.49531951e-10),0.2)
  312. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),0.2)
  313. end
  314.  
  315. local keeprunning=true
  316. spawn(function()
  317. while wait() do
  318. local ray = Ray.new(char['Right Arm'].CFrame.p,(mouse.Hit.p-char['Right Arm'].CFrame.p).unit*300)
  319. local part,position = workspace:FindPartOnRay(ray,char, false, true)
  320. local distance = (char['Right Arm'].CFrame.p - position).magnitude
  321. if keeprunning==false then
  322. break
  323. end
  324. if part then
  325. if part.Parent:FindFirstChild("Humanoid") then
  326. part:BreakJoints()
  327. part.Anchored=false
  328. part.Velocity = Vector3.new(math.random(-160,160),math.random(-160,160),math.random(-160,160))
  329. if math.random(1,3) == 1 then
  330. part:Destroy()
  331. end
  332. end
  333. end
  334.  
  335. local ex=Instance.new("Explosion",workspace)
  336. ex.Position=position
  337. ex.Visible=false
  338. ex.DestroyJointRadiusPercent=0
  339. ex.BlastPressure=100
  340. ex.BlastRadius=10
  341. ex.Hit:connect(function(part)
  342. if part.Parent~=char and part.Parent~=char:WaitForChild("Accessory") then
  343. part:BreakJoints()
  344. end
  345. end)
  346. if math.random(1,5)==5 then
  347. sound("rbxassetid://314970761",false)
  348. end
  349. Torso.C1 = Torso.C1:lerp(CFrame.new(0.45384407, 3.25962901e-09, -0.163368881, -0.840329647, -0.538628399, 0.061037913, 0.12248569, -0.0789824352, 0.989322543, -0.528056264, 0.838833332, 0.132345542),0.2)
  350. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.486327916, 0.918347716, -0.0835282654, -0.139580116, -0.193979532, -0.971024871, -0.210418463, 0.96403873, -0.162337258, 0.967595696, 0.18166253, -0.175377563),0.2)
  351. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.504761815, 1.01941562, -0.072208859, -0.0534072705, 0.0794541091, 0.995406747, -0.0726492628, 0.993878722, -0.083230041, -0.995926619, -0.0767606497, -0.0473080687),0.2)
  352. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.49999994, -5.96046448e-08, -0.0783533007, -0.155531406, -0.984718561, -0.400697172, 0.909370303, -0.111747369, 0.912854075, 0.385818183, -0.1335731),0.2)
  353. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.267708331, 0.709498703, -0.021721065, -0.500156283, -0.117081404, 0.85798347, -0.864884198, 0.0187412351, -0.501621544, 0.0426508784, -0.992945492, -0.110635392),0.2)
  354. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -0.951892793, 0.28452459, 0.113780133, 0, -0.371307135, 0.928510129, 0.306431323, 0.883842111, 0.353444576),0.2)
  355.  
  356. local beam = Instance.new("Part", char)
  357. local colorz = {"Really red","Gold","Lime green","Really blue","Royal purple"}
  358. beam.BrickColor = BrickColor.new(colorz[math.random(1,#colorz)])
  359. beam.FormFactor = "Custom"
  360. beam.Material = "Neon"
  361. beam.Transparency = 0.5
  362. beam.Anchored = true
  363. beam.Locked = true
  364. beam.CanCollide = false
  365. beam.Size = Vector3.new(0.3, 0.3, distance)
  366. beam.CFrame = CFrame.new((char['Right Arm'].CFrame*CFrame.new(0,-3,0)).p, mouse.Hit.p) * CFrame.new(0, 0, -distance/2)
  367. spawn(function()
  368. while beam do
  369. if beam==nil then break end
  370. beam.Anchored=true
  371. swait()
  372. end
  373. end)
  374. spawn(function()
  375. for i=1,10 do
  376. beam.Transparency=i/10
  377. beam.CFrame=beam.CFrame*CFrame.new(0,0,-i/10)
  378. wait()
  379. end
  380. beam:Destroy()
  381. end)
  382. spawn(function()
  383. for i=5,70, 3 do
  384. beam.Size=Vector3.new(i,i,beam.Size.Z)
  385. wait()
  386. end
  387. end)
  388. end
  389. end)
  390. for i=1,10 do
  391. sound("rbxassetid://314970761",false)
  392. end
  393. wait(6)
  394. keeprunning=false
  395. cananim=true
  396. end
  397.  
  398.  
  399. mouse.Button1Down:connect(function()
  400. normpunch()
  401. end)
  402.  
  403.  
  404. supermode=false
  405. mouse.KeyDown:connect(function(key)
  406. local k=string.lower(key)
  407. if attacking==true then
  408. return
  409. end
  410. if k=="q" then
  411. attacking=true
  412. if supermode==false then
  413. lazor()
  414. else
  415. SUPERlazor()
  416. end
  417. attacking=false
  418. end
  419. if k=="l" then
  420. transition()
  421. end
  422. end)
  423.  
  424. punch = 1
  425. function normpunch()
  426. if attacking==true then
  427. return
  428. end
  429. dodamage=true
  430. attacking=true
  431. cananim=false
  432. sound("rbxassetid://138097048",false)
  433. if punch==1 then
  434. for i=1,10 do
  435. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -0.910118103, -0.41434893, 0, 0, 0, 1, -0.41434893, 0.910118103, 0),0.3)
  436. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.5, 1, 3.7252903e-09, 0.00116646651, 0.0136213535, -0.99990654, 0.023496937, 0.999630809, 0.0136450082, 0.999723256, -0.0235106573, 0.000845975766),0.3)
  437. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1, 4.65661287e-10, -4.35437997e-08, 0.0874831304, 0.996165991, 0.00556585658, 0.996150553, -0.0874817744, -0.999984503, 0.00554451346, -0.000486961944),0.3)
  438. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.5, 0, 0.0391717218, -0.188973963, -0.981200516, -0.199156061, 0.960776389, -0.192991138, 0.979184568, 0.202971816, -4.2801517e-08),0.3)
  439. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.312758863, 0.804995358, -0.0404221117, -0.349137038, 0.0591336042, 0.935203969, -0.937045753, -0.0294431858, -0.347962916, 0.0069590779, -0.997815788, 0.0656905994),0.3)
  440. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -0.957687616, 0.287809789, 0, 0, 0, 1, 0.287809789, 0.957687616, 0),0.3)
  441. swait()
  442. end
  443. end
  444.  
  445. if punch==2 then
  446. for i=1,10 do
  447. swait()
  448. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -0.983417749, -0.116297476, 0.139156267, 0.140106976, 0, 0.990136385, -0.115150362, 0.993214428, 0.0162940882),0.3)
  449. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.5, 0.86816901, 0, -4.32735874e-08, -0.141177684, -0.989984274, -6.17107254e-09, 0.989984274, -0.141177684, 1, 0, -4.37113883e-08),0.3)
  450. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1.23575175, 0.176770806, -0.0336775407, -0.11687994, 0.992574871, -0.983614028, 0.179874539, -0.0121925017, -0.177113876, -0.976721108, -0.12102247),0.3)
  451. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.49999994, 0, -4.33072991e-08, -0.135659724, -0.990755498, -0.144958332, 0.98029089, -0.134226859, 0.989437759, 0.143618271, -0.0196650494),0.3)
  452. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.49999997, 0, 0.0339012295, 0.115021303, 0.992784381, 0.280674934, 0.952282727, -0.119913273, -0.959203959, 0.282714903, -4.19281356e-08),0.3)
  453. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.0711001009, 0.997469187, 0, 0.997469187, 0.0711001009),0.3)
  454. end
  455. end
  456.  
  457. if punch==3 then
  458. for i=1,10 do
  459. swait()
  460. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -0.93749547, 0.347997427, 0, 0, 0, 1, 0.347997427, 0.93749547, 0),0.3)
  461. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.50000006, 1, 0, 0.0109365005, -0.0829221606, -0.996496022, -0.130298764, 0.98794055, -0.083640255, 0.991414428, 0.13075693, -4.33361009e-08),0.3)
  462. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.49999997, 1, -3.7252903e-09, 0.114501342, 0.0127837732, 0.99334085, 5.62495939e-10, 0.999917209, -0.0128684072, -0.993423104, 0.00147345045, 0.114491865),0.3)
  463. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.352809936, 1.3686024, 0.0138391852, -4.37113883e-08, 0, -1, 0.999440074, -0.0334585831, -4.36869136e-08, -0.0334585831, -0.999440074, 1.4625211e-09),0.3)
  464. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.5, 0, -4.33629381e-08, 0.126015082, 0.992028356, 0.172522247, 0.97715348, -0.124125555, -0.985005617, 0.171146959, -0.0217404477),0.3)
  465. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.07533779, 0.997158051, 0, 0.997158051, 0.07533779),0.3)
  466. end
  467. end
  468. if punch~=3 then
  469. punch=punch+1
  470. else
  471. punch=1
  472. end
  473. cananim=true
  474. dodamage=false
  475. attacking=false
  476. end
  477.  
  478.  
  479.  
  480. ---transiton
  481. function transition()
  482. if supermode==false then
  483. sound("rbxassetid://1321047607",false,0,5)
  484.  
  485. cananim=false
  486. attacking=true
  487. local stord = false
  488. spawn(function()
  489. wait(3)
  490. stord=true
  491. end)
  492. local ParticleEmitter0 = Instance.new("ParticleEmitter")
  493. ParticleEmitter0.Parent = torso
  494. ParticleEmitter0.Transparency = NumberSequence.new(0.20000000298023,0.20000000298023)
  495. ParticleEmitter0.Size = NumberSequence.new(3.2240438461304,1.0928964614868,3.7158470153809,0)
  496. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
  497. ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=232918622"
  498. ParticleEmitter0.Lifetime = NumberRange.new(3)
  499. ParticleEmitter0.Rate = 1000
  500. ParticleEmitter0.VelocitySpread = 180
  501. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
  502. repeat
  503. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0.787846208, 0.138918549, -1, 0, 0, 0, -0.173648179, 0.98480773, 0, 0.98480773, 0.173648179),0.2)
  504. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.45286727, 0.316941619, 0.628786147, -4.36354597e-08, -0.058915928, -0.998262942, 0.21313341, 0.975326002, -0.0575622357, 0.977023065, -0.21276319, 0.0125569087),0.2)
  505. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 0.627124608, -0.0240803957, -4.37113883e-08, 0, 1, 0.551679194, 0.834056437, 2.4114664e-08, -0.834056437, 0.551679194, -3.6457763e-08),0.2)
  506. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.5, 0, 0.774880886, 0.296248376, -0.558387458, 0.52156949, 0.199403673, 0.829580307, 0.357106328, -0.934063733, -1.56096132e-08),0.2)
  507. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.5, 0, -0.00304316962, 0.0175396204, 0.999841511, -0.170919135, 0.985124171, -0.0178016629, -0.985280335, -0.170946226, -4.30679705e-08),0.2)
  508. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.362809777, 0.931863308, 0, 0.931863308, 0.362809777),0.2)
  509. swait()
  510. until stord==true
  511. sound("rbxassetid://245537790",false)
  512. ParticleEmitter0.Speed=NumberRange.new(50)
  513. local mas = char
  514. local CharacterMesh0 = Instance.new("CharacterMesh")
  515. local CharacterMesh1 = Instance.new("CharacterMesh")
  516. local CharacterMesh2 = Instance.new("CharacterMesh")
  517. local CharacterMesh3 = Instance.new("CharacterMesh")
  518. local CharacterMesh4 = Instance.new("CharacterMesh")
  519. CharacterMesh0.Name = "GirlRocker Left Arm"
  520. CharacterMesh0.Parent = mas
  521. CharacterMesh0.MeshId = 717353151
  522. CharacterMesh0.BodyPart = Enum.BodyPart.LeftArm
  523. CharacterMesh0.OverlayTextureId = 717346901
  524. CharacterMesh1.Name = "GirlRocker Right Arm"
  525. CharacterMesh1.Parent = mas
  526. CharacterMesh1.MeshId = 717353483
  527. CharacterMesh1.BodyPart = Enum.BodyPart.RightArm
  528. CharacterMesh1.OverlayTextureId = 717346901
  529. CharacterMesh2.Name = "GirlRocker Right Leg"
  530. CharacterMesh2.Parent = mas
  531. CharacterMesh2.MeshId = 717353619
  532. CharacterMesh2.BodyPart = Enum.BodyPart.RightLeg
  533. CharacterMesh2.OverlayTextureId = 717346901
  534. CharacterMesh3.Name = "GirlRocker Torso"
  535. CharacterMesh3.Parent = mas
  536. CharacterMesh3.MeshId = 717353723
  537. CharacterMesh3.BodyPart = Enum.BodyPart.Torso
  538. CharacterMesh3.OverlayTextureId = 717346901
  539. CharacterMesh4.Name = "GirlRocker Left Leg"
  540. CharacterMesh4.Parent = mas
  541. CharacterMesh4.MeshId = 717353920
  542. CharacterMesh4.BodyPart = Enum.BodyPart.LeftLeg
  543. CharacterMesh4.OverlayTextureId = 717346901
  544. for i=1,90 do
  545. Torso.C1 = Torso.C1:lerp(CFrame.new(0, -1.06972265, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),0.2)
  546. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, -0.0906665474, 0.995881319, 3.96316047e-09, 0.995881319, 0.0906665474, -4.35313545e-08),0.2)
  547. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.0595862567, 0.998223186, 2.60459809e-09, -0.998223186, 0.0595862567, -4.36337224e-08),0.2)
  548. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.5, 0, -4.34208935e-08, -0.115096748, -0.993354261, -5.0310387e-09, 0.993354261, -0.115096748, 1, 0, -4.37113883e-08),0.2)
  549. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.5, 0, -4.36014211e-08, 0.0708893314, 0.997484207, 3.0986711e-09, 0.997484207, -0.0708893314, -1, 0, -4.37113883e-08),0.2)
  550. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.249942318, 0.968260705, 0, 0.968260705, -0.249942318),0.2)
  551. swait()
  552. end
  553. ParticleEmitter0.Enabled=false
  554. supermode=true
  555. cananim=true
  556. attacking=false
  557. end
  558. end
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570. function swait(t)
  571. if t == nil or t == 0 then
  572. game:service('RunService').Stepped:wait(0)
  573. return true
  574. else
  575. for i = 0, t do
  576. game:service('RunService').Stepped:wait(0)
  577. end
  578. return true
  579. end
  580. end
  581.  
  582. function scream()
  583. sound("rbxassetid://444895479",false,5.3509586219885250102)
  584. cananim = false
  585. for i=0,1.5, 0.1 do
  586. swait()
  587. end
  588.  
  589. attacking=true
  590. for i=0,1.5, 0.1 do
  591. swait()
  592. end
  593. wait()
  594. cananim = true
  595. attacking=false
  596. end
  597.  
  598.  
  599. spawn(function()
  600. while swait() do
  601. if animpose=="Idle" then
  602. for i=0,0.1,0.0025 do
  603. if animpose == "Idle" and cananim then
  604. swait()
  605. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.500000238, 0.500000238, -2.38418579e-07, 0.000574484526, -0.0482845455, -0.998833477, -0.00805476494, 0.998800993, -0.0482876077, 0.999967396, 0.0080731092, 0.000184875054),i)
  606. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.50000006, 0.500000238, 0, -0.000810533762, 0.0540908612, 0.998535693, -0.00984518789, 0.998487175, -0.0540962256, -0.999951184, -0.00987461861, -0.000276772887),i)
  607. else
  608. break
  609. end
  610. end
  611. for i=0,0.1,0.0025 do
  612. if animpose == "Idle" and cananim then
  613. swait()
  614. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.50000006, 0.50000006, -9.47312119e-16, -4.35179714e-08, -0.0939683169, -0.99557513, -4.10748546e-09, 0.99557513, -0.0939683169, 1, 0, -4.37113883e-08),i)
  615. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.5, -1.77635684e-15, -4.34464624e-08, 0.109930925, 0.993939221, 4.80523354e-09, 0.993939221, -0.109930925, -1, 0, -4.37113883e-08),i)
  616. else
  617. break
  618. end
  619. end
  620. end
  621. end
  622. end)
  623.  
  624. while swait() do
  625. num = num + 0.05
  626. local sin = math.sin(num)
  627. if animpose == "Falling" and cananim then
  628. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.089640595, 0.995974183, 0, 0.995974183, 0.089640595),0.2)
  629. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.5, 0.940049231, 0.240459353, -4.37113883e-08, 0, -1, 0.0583860278, 0.998294055, -2.55213428e-09, 0.998294055, -0.0583860278, -4.36368204e-08),0.2)
  630. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.144062787, 0.989568532, 6.29718455e-09, -0.989568532, 0.144062787, -4.32554152e-08),0.2)
  631. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.635436773, 0, -4.28449951e-08, -0.198112398, -0.98017925, -8.65976801e-09, 0.98017925, -0.198112398, 1, 0, -4.37113883e-08),0.2)
  632. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.599987805, 0, -4.26205062e-08, 0.222013503, 0.975043535, 9.70451808e-09, 0.975043535, -0.222013503, -1, 0, -4.37113883e-08),0.2)
  633. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.231759518, 0.972773135, 0, 0.972773135, 0.231759518),0.2)
  634. end
  635.  
  636.  
  637. if animpose == "Idle" and cananim then
  638. for i=0,0.1,0.001 do
  639. if animpose == "Idle" and cananim then
  640. swait()
  641. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0.200000048, 0, -0.98480767, -0.173648626, 0, 0, 0, 1, -0.173648626, 0.98480767, 0),i)
  642. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.506504774, 0.77988106, 0.0818042755, 0.00300081098, -0.0723684728, -0.997373462, -0.186295643, 0.979876935, -0.0716594532, 0.982489169, 0.186021373, -0.0105415061),i)
  643. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.485123575, 0.800115585, 0.135903358, -0.000153154135, -0.00734659936, 0.999972999, -0.0196102634, 0.999780715, 0.0073421835, -0.999807715, -0.0196086094, -0.000297189312),i)
  644. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -0.98480767, 0.173648402, 0, 0, 0, 1, 0.173648402, 0.98480767, 0),i)
  645. i=i/2
  646. else
  647. break
  648. end
  649. end
  650. for i=0,0.1,0.001 do
  651. if animpose == "Idle" and cananim then
  652. swait()
  653. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -0.98480767, -0.173648626, 0, 0, 0, 1, -0.173648626, 0.98480767, 0),i)
  654. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.49999994, 1, 0, -4.3619707e-08, -0.0647336245, -0.997902572, -0.143231794, 0.98761338, -0.0640661567, 0.989689171, 0.142931372, -0.00927195605),i)
  655. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1.00000012, 0.0391067117, -4.37113883e-08, 0, 1, -0.0612497553, 0.998122454, -2.67731193e-09, -0.998122454, -0.0612497553, -4.3629317e-08),i)
  656. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -0.98480767, 0.173648402, 0, 0, 0, 1, 0.173648402, 0.98480767, 0),i)
  657. i=i/2
  658. else
  659. break
  660. end
  661. end
  662. end
  663. if animpose == "Running" and cananim then
  664. for i = 0, 0.25, 0.01 do
  665. if animpose == "Running" and cananim then
  666. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.0358745977, 0.99935627, 0, 0.99935627, 0.0358745977),i)
  667. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.5, 0.999999821, 8.94069672e-08, -4.37113883e-08, 0, -1, 0.342020363, 0.939692557, -1.49501851e-08, 0.939692557, -0.342020363, -4.10752676e-08),i)
  668. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1.00000024, 5.96046448e-08, -4.37113883e-08, 0, 1, 0.500000179, 0.866025269, 2.18557012e-08, -0.866025269, 0.500000179, -3.78551661e-08),i)
  669. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.5, -2.98023224e-08, -4.37113883e-08, 0, -1, -0.5, 0.866025388, 2.18556941e-08, 0.866025388, 0.5, -3.78551732e-08),i)
  670. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.5, -1.49011612e-08, -4.37113883e-08, 0, 1, -0.5, 0.866025388, -2.18556941e-08, -0.866025388, -0.5, -3.78551732e-08),i)
  671. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.106743492, 0.994286597, 0, 0.994286597, 0.106743492),i)
  672. swait()
  673. i=i/i*1.5
  674. else
  675. break
  676. end
  677. end
  678. for i = 0, 0.25, 0.01 do
  679. if animpose == "Running" and cananim then
  680. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -0.999985278, 0, -0.00542885857, -0.00542835938, -0.0135572571, 0.999893367, -7.36004295e-05, 0.99990809, 0.0135570578),i)
  681. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.5, 0.999999821, -1.1920929e-07, -4.37113883e-08, 0, -1, -0.499999791, 0.866025567, 2.18556853e-08, 0.866025567, 0.499999791, -3.78551803e-08),i)
  682. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1.00000012, -2.38418579e-07, -4.37113883e-08, 0, 1, -0.342020005, 0.939692616, -1.49501691e-08, -0.939692616, -0.342020005, -4.10752676e-08),i)
  683. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.483990371, 0.00582697988, -4.37113883e-08, 0, -1, 0.57357651, 0.819151998, -2.50718255e-08, 0.819151998, -0.57357651, -3.58062699e-08),i)
  684. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.49999997, -2.98023224e-08, -4.37113883e-08, 0, 1, 0.500000179, 0.866025329, 2.18557012e-08, -0.866025329, 0.500000179, -3.78551697e-08),i)
  685. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.103604339, 0.994618595, 0, 0.994618595, 0.103604339),i)
  686. swait()
  687. i=i/i*1.5
  688. else
  689. break
  690. end
  691. end
  692. end
  693.  
  694. if animpose == "Jumping" and cananim then
  695. Torso.C1 = Torso.C1:lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.082511276, 0.996590137, 0, 0.996590137, 0.082511276),0.2)
  696. LeftLeg.C1 = LeftLeg.C1:lerp(CFrame.new(-0.495160788, 0.605178833, 0.315436631, 0.00363327051, -0.0117048975, -0.999924898, -0.296433508, 0.95497489, -0.012255826, 0.955046594, 0.296455771, -4.17464108e-08),0.2)
  697. RightLeg.C1 = RightLeg.C1:lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.10612049, 0.994353294, 4.63867389e-09, -0.994353294, 0.10612049, -4.34645635e-08),0.2)
  698. LeftArm.C1 = LeftArm.C1:lerp(CFrame.new(0.5, 0.5, 0, -4.36747598e-08, -0.0409301594, -0.999162018, -1.78911408e-09, 0.999162018, -0.0409301594, 1, 0, -4.37113883e-08),0.2)
  699. RightArm.C1 = RightArm.C1:lerp(CFrame.new(-0.5, 0.5, 0, -4.36556142e-08, 0.0504997671, 0.998724043, 2.20741492e-09, 0.998724043, -0.0504997671, -1, 0, -4.37113883e-08),0.2)
  700. Head.C1 = Head.C1:lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.106113546, 0.99435401, 0, 0.99435401, -0.106113546),0.2)
  701. end
  702. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement