Advertisement
Void_scripter0

torch

Feb 3rd, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.65 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. local plr = game.Players.LocalPlayer
  145. local chr = plr.Character
  146. local maus = plr:GetMouse()
  147. local PGui=plr.PlayerGui
  148. local lleg = chr["Left Leg"]
  149. local rleg = chr["Right Leg"]
  150. local larm = chr["Left Arm"]
  151. local rarm = chr["Right Arm"]
  152. local hed = chr.Head
  153. local rutprt = chr.HumanoidRootPart
  154. local torso = chr.Torso
  155. local otheranims=false
  156. local armmovement=false
  157. local fireclrs={'Bright red','Bright yellow','Bright orange'}
  158. local holding=false
  159. local flying=false
  160. local jumpdb=false
  161. local lalalclrs={Color3.new(1,.3,0),Color3.new(1,.3,0),Color3.new(1,.3,0),Color3.new(1,.3,0),Color3.new(1,0,0),BrickColor.new('Really black').Color}
  162.  
  163. ranclrs={'Bright red','Bright orange','Bright yellow','Black','Medium stone grey'}
  164. rangclr=ranclrs[1]
  165.  
  166. if chr:findFirstChild('Animate') then
  167. chr.Animate:Destroy()
  168. end
  169.  
  170.  
  171. --
  172.  
  173. function Lerp(a, b, i)
  174. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  175. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  176. local calx = com1[1] + (com2[1] - com1[1]) * i
  177. local caly = com1[2] + (com2[2] - com1[2]) * i
  178. local calz = com1[3] + (com2[3] - com1[3]) * i
  179. local cala = com1[4] + (com2[4] - com1[4]) * i
  180. local calb = com1[5] + (com2[5] - com1[5]) * i
  181. local calc = com1[6] + (com2[6] - com1[6]) * i
  182. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  183. end
  184.  
  185. function TwnSingleNumber(s,f,m)
  186. local wot=s+(f-s)*m
  187. return wot
  188. end
  189.  
  190. function TwnPartSize(q,w,e)
  191. local begin={q.x,q.y,q.z}
  192. local ending={w.x,w.y,w.z}
  193. local bgx=begin[1]+(ending[1]-begin[1])*e
  194. local bgy=begin[2]+(ending[2]-begin[2])*e
  195. local bgz=begin[3]+(ending[3]-begin[3])*e
  196. return Vector3.new(bgx,bgy,bgz)
  197. end
  198.  
  199. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  200. wld = Instance.new("Weld", wp1)
  201. wld.Part0 = wp0
  202. wld.Part1 = wp1
  203. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  204. end
  205.  
  206. newWeld(law, torso, larm, -1.5, 0.5, 0)
  207. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  208. newWeld(llw, torso, lleg, -.5, -2, 0)
  209. newWeld(rlw, torso, rleg, .5, -2, 0)
  210. newWeld(hw, torso, hed, 0, 1.5, 0)
  211. local rutwald=Instance.new('Weld',rutprt)
  212. rutwald.Part0=rutprt
  213. rutwald.Part1=torso
  214. rutwald.Name="RootJoint"
  215. rutprt.RootJoint.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
  216. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  217. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  218. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  219. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  220.  
  221. local anim = "Idling"
  222. local lastanim = "Idling"
  223. local val = 0
  224. local syne = 0
  225. local num = 0
  226. local runtime = 0
  227.  
  228. ----------------------------------------------------------------------------
  229.  
  230. local tail=Instance.new('Model',chr)
  231. tail.Name='Tail'
  232. local obj1=Instance.new('Part',tail)
  233. obj1.formFactor='Custom'
  234. obj1.Size=Vector3.new(1.25,1,1.25)
  235. obj1.BrickColor=BrickColor.new('Cool yellow')
  236. obj1.Anchored=false
  237. obj1.CanCollide=false
  238. obj1.TopSurface=10
  239. obj1.BottomSurface=10
  240. obj1.LeftSurface=10
  241. obj1.RightSurface=10
  242. obj1.FrontSurface=10
  243. obj1.BackSurface=10
  244. obj1:breakJoints()
  245. obj1.Locked=true
  246. obj1.Material='SmoothPlastic'
  247. local obj1m=Instance.new('SpecialMesh',obj1)
  248. obj1m.MeshId="http://www.roblox.com/asset/?id=1033714"
  249. obj1m.Scale=Vector3.new(1.25,2,1.25)
  250. obj1w=Instance.new('Weld',obj1)
  251. obj1w.Part0=torso
  252. obj1w.Part1=obj1
  253. obj1w.C0=CFrame.new(0,-.9,.65)*CFrame.Angles(math.rad(-97.5),0,0)
  254.  
  255.  
  256.  
  257. local obj2=Instance.new('Part',tail)
  258. obj2.formFactor='Custom'
  259. obj2.Size=Vector3.new(1.5,1.5,1.5)
  260. obj2.BrickColor=BrickColor.new('Cool yellow')
  261. obj2.Anchored=false
  262. obj2.CanCollide=false
  263. obj2.TopSurface=10
  264. obj2.BottomSurface=10
  265. obj2.LeftSurface=10
  266. obj2.RightSurface=10
  267. obj2.FrontSurface=10
  268. obj2.BackSurface=10
  269. obj2.Material='SmoothPlastic'
  270. obj2:breakJoints()
  271. obj2.Locked=true
  272. local obj2m=Instance.new('SpecialMesh',obj2)
  273. obj2m.MeshType='Sphere'
  274. obj2m.Scale=Vector3.new(2,2,2)
  275. obj2w=Instance.new('Weld',obj2)
  276. obj2w.Part0=obj1
  277. obj2w.Part1=obj2
  278. obj2w.C0=CFrame.new(0,-1.525,0)
  279.  
  280. local obj3=Instance.new('Part',tail)
  281. obj3.formFactor='Custom'
  282. obj3.Size=Vector3.new(1.25,1,1.25)
  283. obj3.BrickColor=BrickColor.new('Cool yellow')
  284. obj3.Anchored=false
  285. obj3.CanCollide=false
  286. obj3.TopSurface=10
  287. obj3.BottomSurface=10
  288. obj3.LeftSurface=10
  289. obj3.RightSurface=10
  290. obj3.FrontSurface=10
  291. obj3.BackSurface=10
  292. obj3:breakJoints()
  293. obj3.Locked=true
  294. obj3.Material='SmoothPlastic'
  295. local obj3m=Instance.new('SpecialMesh',obj3)
  296. obj3m.MeshId="http://www.roblox.com/asset/?id=1033714"
  297. obj3m.Scale=Vector3.new(1.2,2.75,1.2)
  298. obj3w=Instance.new('Weld',obj3)
  299. obj3w.Part0=obj2
  300. obj3w.Part1=obj3
  301. obj3w.C0=CFrame.new(0,-1.9,-.35)*CFrame.Angles(math.rad(10.5),0,math.rad(180))
  302.  
  303. local obj4=Instance.new('Part',tail)
  304. obj4.formFactor='Custom'
  305. obj4.Size=Vector3.new(1.25,1,1.25)
  306. obj4.BrickColor=BrickColor.new('Bright red')
  307. obj4.Anchored=false
  308. obj4.CanCollide=false
  309. obj4.TopSurface=10
  310. obj4.BottomSurface=10
  311. obj4.LeftSurface=10
  312. obj4.RightSurface=10
  313. obj4.FrontSurface=10
  314. obj4.BackSurface=10
  315. obj4:breakJoints()
  316. obj4.Locked=true
  317. obj4.Material='SmoothPlastic'
  318. local obj4m=Instance.new('SpecialMesh',obj4)
  319. obj4m.MeshId="http://www.roblox.com/asset/?id=1033714"
  320. obj4m.Scale=Vector3.new(.915,2.25,.915)
  321. obj4w=Instance.new('Weld',obj4)
  322. obj4w.Part0=obj2
  323. obj4w.Part1=obj4
  324. obj4w.C0=CFrame.new(0,-2.25,-.405)*CFrame.Angles(math.rad(10.5),0,math.rad(180))
  325.  
  326. local obj5=Instance.new('Part',tail)
  327. obj5.formFactor='Custom'
  328. obj5.Size=Vector3.new(.3,3,.3)
  329. obj5.BrickColor=BrickColor.new('Reddish brown')
  330. obj5.Anchored=false
  331. obj5.CanCollide=false
  332. obj5.TopSurface=10
  333. obj5.BottomSurface=10
  334. obj5.LeftSurface=10
  335. obj5.RightSurface=10
  336. obj5.FrontSurface=10
  337. obj5.BackSurface=10
  338. obj5:breakJoints()
  339. obj5.Locked=true
  340. obj5.Material='Wood'
  341. local obj5m=Instance.new('CylinderMesh',obj5)
  342. obj5w=Instance.new('Weld',obj5)
  343. obj5w.Part0=obj2
  344. obj5w.Part1=obj5
  345. obj5w.C0=CFrame.new(0,0,2.5)*CFrame.Angles(math.rad(95),0,0)
  346. local obj6=Instance.new('Part',tail)
  347. obj6.formFactor='Custom'
  348. obj6.Size=Vector3.new(1.25,1,1.25)
  349. obj6.BrickColor=BrickColor.new('Cool yellow')
  350. obj6.Anchored=false
  351. obj6.CanCollide=false
  352. obj6.TopSurface=10
  353. obj6.BottomSurface=10
  354. obj6.LeftSurface=10
  355. obj6.RightSurface=10
  356. obj6.FrontSurface=10
  357. obj6.BackSurface=10
  358. obj6.Locked=true
  359. obj6:breakJoints()
  360. obj6.Material='SmoothPlastic'
  361. local obj6m=Instance.new('SpecialMesh',obj6)
  362. obj6m.MeshId="http://www.roblox.com/asset/?id=20329976"
  363. obj6m.Scale=Vector3.new(.215,.25,.215)
  364. obj6w=Instance.new('Weld',obj6)
  365. obj6w.Part0=obj2
  366. obj6w.Part1=obj6
  367. obj6w.C0=CFrame.new(0,.115,1.45)*CFrame.Angles(math.rad(95),0,math.rad(0))
  368.  
  369. local obj7=Instance.new('Part',tail)
  370. obj7.formFactor='Custom'
  371. obj7.Size=Vector3.new(1.25,1,1.25)
  372. obj7.BrickColor=BrickColor.new('Cool yellow')
  373. obj7.Anchored=false
  374. obj7.CanCollide=false
  375. obj7.TopSurface=10
  376. obj7.BottomSurface=10
  377. obj7.LeftSurface=10
  378. obj7.RightSurface=10
  379. obj7.FrontSurface=10
  380. obj7:breakJoints()
  381. obj7.BackSurface=10
  382. obj7.Locked=true
  383. obj7.Material='SmoothPlastic'
  384. local obj7m=Instance.new('SpecialMesh',obj7)
  385. obj7m.MeshId="http://www.roblox.com/asset/?id=20329976"
  386. obj7m.Scale=Vector3.new(.25,.275,.225)
  387. obj7w=Instance.new('Weld',obj7)
  388. obj7w.Part0=obj2
  389. obj7w.Part1=obj7
  390. obj7w.C0=CFrame.new(0,.115,1.45)*CFrame.Angles(math.rad(95),math.rad(15),math.rad(0))
  391.  
  392. local obj8=Instance.new('Part',tail)
  393. obj8.formFactor='Custom'
  394. obj8.Size=Vector3.new(1.25,1,1.25)
  395. obj8.BrickColor=BrickColor.new('Cool yellow')
  396. obj8.Anchored=false
  397. obj8.CanCollide=false
  398. obj8.TopSurface=10
  399. obj8.BottomSurface=10
  400. obj8.LeftSurface=10
  401. obj8.RightSurface=10
  402. obj8.FrontSurface=10
  403. obj8.BackSurface=10
  404. obj8:breakJoints()
  405. obj8.Locked=true
  406. obj8.Material='SmoothPlastic'
  407. local obj8m=Instance.new('SpecialMesh',obj8)
  408. obj8m.MeshId="http://www.roblox.com/asset/?id=20329976"
  409. obj8m.Scale=Vector3.new(.25,.265,.25)
  410. obj8w=Instance.new('Weld',obj8)
  411. obj8w.Part0=obj2
  412. obj8w.Part1=obj8
  413. obj8w.C0=CFrame.new(0,.115,1.45)*CFrame.Angles(math.rad(95),math.rad(35),math.rad(0))
  414.  
  415. local obj9=Instance.new('Part',tail)
  416. obj9.formFactor='Custom'
  417. obj9.Size=Vector3.new(.2,1,.2)
  418. obj9.BrickColor=BrickColor.new('Reddish brown')
  419. obj9.Anchored=false
  420. obj9.CanCollide=false
  421. obj9.TopSurface=10
  422. obj9.BottomSurface=10
  423. obj9.LeftSurface=10
  424. obj9.RightSurface=10
  425. obj9.FrontSurface=10
  426. obj9.BackSurface=10
  427. obj9.Material='Wood'
  428. obj9:breakJoints()
  429. obj9.Locked=true
  430. local obj9m=Instance.new('CylinderMesh',obj9)
  431. obj9w=Instance.new('Weld',obj9)
  432. obj9w.Part0=obj5
  433. obj9w.Part1=obj9
  434. obj9w.C0=CFrame.new(0,1.1,.25)*CFrame.Angles(math.rad(25),0,0)
  435.  
  436. local obj10=Instance.new('Part',tail)
  437. obj10.formFactor='Custom'
  438. obj10.Size=Vector3.new(1.25,1,1.25)
  439. obj10.BrickColor=BrickColor.new('Cool yellow')
  440. obj10.Anchored=false
  441. obj10.CanCollide=false
  442. obj10.TopSurface=10
  443. obj10.BottomSurface=10
  444. obj10.LeftSurface=10
  445. obj10.RightSurface=10
  446. obj10.FrontSurface=10
  447. obj10.BackSurface=10
  448. obj10:breakJoints()
  449. obj10.Locked=true
  450. obj10.Material='SmoothPlastic'
  451. local obj10m=Instance.new('SpecialMesh',obj10)
  452. obj10m.MeshId="http://www.roblox.com/asset/?id=20329976"
  453. obj10m.Scale=Vector3.new(1.8,1,1.8)
  454. obj10w=Instance.new('Weld',obj10)
  455. obj10w.Part0=obj2
  456. obj10w.Part1=obj10
  457. obj10w.C0=CFrame.new(0,-1,-.35)*CFrame.Angles(math.rad(10.5),0,math.rad(180))
  458.  
  459. local obj11=Instance.new('Part',tail)
  460. obj11.formFactor='Custom'
  461. obj11.Size=Vector3.new(1.25,1,1.25)
  462. obj11.BrickColor=BrickColor.new('Cool yellow')
  463. obj11.Anchored=false
  464. obj11.CanCollide=false
  465. obj11.TopSurface=10
  466. obj11.BottomSurface=10
  467. obj11.LeftSurface=10
  468. obj11.RightSurface=10
  469. obj11.FrontSurface=10
  470. obj11.BackSurface=10
  471. obj11:breakJoints()
  472. obj11.Locked=true
  473. obj11.Material='SmoothPlastic'
  474. local obj11m=Instance.new('SpecialMesh',obj11)
  475. obj11m.MeshId="http://www.roblox.com/asset/?id=20329976"
  476. obj11m.Scale=Vector3.new(1.7,1,1.7)
  477. obj11w=Instance.new('Weld',obj11)
  478. obj11w.Part0=obj2
  479. obj11w.Part1=obj11
  480. obj11w.C0=CFrame.new(0,-1.2,-.35)*CFrame.Angles(math.rad(10.5),math.rad(5),math.rad(180))
  481.  
  482. local obj12=Instance.new('Part',tail)
  483. obj12.formFactor='Custom'
  484. obj12.Size=Vector3.new(1.25,1,1.25)
  485. obj12.BrickColor=BrickColor.new('Cool yellow')
  486. obj12.Anchored=false
  487. obj12.CanCollide=false
  488. obj12.TopSurface=10
  489. obj12.BottomSurface=10
  490. obj12.LeftSurface=10
  491. obj12.RightSurface=10
  492. obj12.FrontSurface=10
  493. obj12.BackSurface=10
  494. obj12:breakJoints()
  495. obj12.Locked=true
  496. obj12.Material='SmoothPlastic'
  497. local obj12m=Instance.new('SpecialMesh',obj12)
  498. obj12m.MeshId="http://www.roblox.com/asset/?id=20329976"
  499. obj12m.Scale=Vector3.new(1.6,1,1.6)
  500. obj12w=Instance.new('Weld',obj12)
  501. obj12w.Part0=obj2
  502. obj12w.Part1=obj12
  503. obj12w.C0=CFrame.new(0,-1.4,-.35)*CFrame.Angles(math.rad(10.5),math.rad(10),math.rad(180))
  504.  
  505. local obj13=Instance.new('Part',tail)
  506. obj13.formFactor='Custom'
  507. obj13.Size=Vector3.new(1.25,1,1.25)
  508. obj13.BrickColor=BrickColor.new('Cool yellow')
  509. obj13.Anchored=false
  510. obj13.CanCollide=false
  511. obj13.TopSurface=10
  512. obj13.BottomSurface=10
  513. obj13.LeftSurface=10
  514. obj13.RightSurface=10
  515. obj13.FrontSurface=10
  516. obj13.BackSurface=10
  517. obj13:breakJoints()
  518. obj13.Locked=true
  519. obj13.Material='SmoothPlastic'
  520. local obj13m=Instance.new('SpecialMesh',obj13)
  521. obj13m.MeshId="http://www.roblox.com/asset/?id=20329976"
  522. obj13m.Scale=Vector3.new(1.5,1,1.5)
  523. obj13w=Instance.new('Weld',obj13)
  524. obj13w.Part0=obj2
  525. obj13w.Part1=obj13
  526. obj13w.C0=CFrame.new(0,-1.6,-.35)*CFrame.Angles(math.rad(10.5),math.rad(15),math.rad(180))
  527.  
  528. local obj14=Instance.new('Part',tail)
  529. obj14.formFactor='Custom'
  530. obj14.Size=Vector3.new(1.25,1,1.25)
  531. obj14.BrickColor=BrickColor.new('Bright red')
  532. obj14.Anchored=false
  533. obj14.CanCollide=false
  534. obj14.TopSurface=10
  535. obj14.BottomSurface=10
  536. obj14.LeftSurface=10
  537. obj14.RightSurface=10
  538. obj14.FrontSurface=10
  539. obj14.BackSurface=10
  540. obj14:breakJoints()
  541. obj14.Locked=true
  542. obj14.Material='SmoothPlastic'
  543. local obj14m=Instance.new('SpecialMesh',obj14)
  544. obj14m.MeshId="http://www.roblox.com/asset/?id=20329976"
  545. obj14m.Scale=Vector3.new(1.5,1,1.5)
  546. obj14w=Instance.new('Weld',obj14)
  547. obj14w.Part0=obj2
  548. obj14w.Part1=obj14
  549. obj14w.C0=CFrame.new(0,-1.8,-.35)*CFrame.Angles(math.rad(10.5),math.rad(20),math.rad(180))
  550.  
  551. local obj15=Instance.new('Part',tail)
  552. obj15.formFactor='Custom'
  553. obj15.Size=Vector3.new(1.25,1,1.25)
  554. obj15.BrickColor=BrickColor.new('Bright red')
  555. obj15.Anchored=false
  556. obj15.CanCollide=false
  557. obj15.TopSurface=10
  558. obj15.BottomSurface=10
  559. obj15.LeftSurface=10
  560. obj15.RightSurface=10
  561. obj15.FrontSurface=10
  562. obj15.BackSurface=10
  563. obj15:breakJoints()
  564. obj15.Locked=true
  565. obj15.Material='SmoothPlastic'
  566. local obj15m=Instance.new('SpecialMesh',obj15)
  567. obj15m.MeshId="http://www.roblox.com/asset/?id=20329976"
  568. obj15m.Scale=Vector3.new(1.4,.9,1.4)
  569. obj15w=Instance.new('Weld',obj15)
  570. obj15w.Part0=obj2
  571. obj15w.Part1=obj15
  572. obj15w.C0=CFrame.new(0,-2,-.35)*CFrame.Angles(math.rad(10.5),math.rad(25),math.rad(180))
  573.  
  574. local obj16=Instance.new('Part',tail)
  575. obj16.formFactor='Custom'
  576. obj16.Size=Vector3.new(1.25,1,1.25)
  577. obj16.BrickColor=BrickColor.new('Bright red')
  578. obj16.Anchored=false
  579. obj16.CanCollide=false
  580. obj16.TopSurface=10
  581. obj16.BottomSurface=10
  582. obj16.LeftSurface=10
  583. obj16.RightSurface=10
  584. obj16.FrontSurface=10
  585. obj16.BackSurface=10
  586. obj16:breakJoints()
  587. obj16.Locked=true
  588. obj16.Material='SmoothPlastic'
  589. local obj16m=Instance.new('SpecialMesh',obj16)
  590. obj16m.MeshId="http://www.roblox.com/asset/?id=20329976"
  591. obj16m.Scale=Vector3.new(1.5,.8,1.5)
  592. obj16w=Instance.new('Weld',obj16)
  593. obj16w.Part0=obj2
  594. obj16w.Part1=obj16
  595. obj16w.C0=CFrame.new(0,-2.2,-.35)*CFrame.Angles(math.rad(10.5),math.rad(30),math.rad(180))
  596.  
  597. local obj17=Instance.new('Part',tail)
  598. obj17.formFactor='Custom'
  599. obj17.Size=Vector3.new(1.25,1,1.25)
  600. obj17.BrickColor=BrickColor.new('Bright red')
  601. obj17.Anchored=false
  602. obj17.CanCollide=false
  603. obj17.TopSurface=10
  604. obj17.BottomSurface=10
  605. obj17.LeftSurface=10
  606. obj17.RightSurface=10
  607. obj17.FrontSurface=10
  608. obj17.BackSurface=10
  609. obj17:breakJoints()
  610. obj17.Locked=true
  611. obj17.Material='SmoothPlastic'
  612. local obj17m=Instance.new('SpecialMesh',obj17)
  613. obj17m.MeshId="http://www.roblox.com/asset/?id=20329976"
  614. obj17m.Scale=Vector3.new(1.3,1,1.3)
  615. obj17w=Instance.new('Weld',obj17)
  616. obj17w.Part0=obj2
  617. obj17w.Part1=obj17
  618. obj17w.C0=CFrame.new(0,-2.4,-.35)*CFrame.Angles(math.rad(10.5),math.rad(35),math.rad(180))
  619.  
  620. local obj18=Instance.new('Part',tail)
  621. obj18.formFactor='Custom'
  622. obj18.Size=Vector3.new(1.25,1,1.25)
  623. obj18.BrickColor=BrickColor.new('Bright red')
  624. obj18.Anchored=false
  625. obj18.CanCollide=false
  626. obj18.TopSurface=10
  627. obj18.BottomSurface=10
  628. obj18.LeftSurface=10
  629. obj18.RightSurface=10
  630. obj18.FrontSurface=10
  631. obj18.BackSurface=10
  632. obj18:breakJoints()
  633. obj18.Locked=true
  634. obj18.Material='SmoothPlastic'
  635. local obj18m=Instance.new('SpecialMesh',obj18)
  636. obj18m.MeshId="http://www.roblox.com/asset/?id=20329976"
  637. obj18m.Scale=Vector3.new(1.2,1.1,1.2)
  638. obj18w=Instance.new('Weld',obj18)
  639. obj18w.Part0=obj2
  640. obj18w.Part1=obj18
  641. obj18w.C0=CFrame.new(0,-2.6,-.35)*CFrame.Angles(math.rad(10.5),math.rad(40),math.rad(180))
  642.  
  643. local obj19=Instance.new('Part',tail)
  644. obj19.formFactor='Custom'
  645. obj19.Size=Vector3.new(1.25,1,1.25)
  646. obj19.BrickColor=BrickColor.new('Bright red')
  647. obj19.Anchored=false
  648. obj19.CanCollide=false
  649. obj19.TopSurface=10
  650. obj19.BottomSurface=10
  651. obj19.LeftSurface=10
  652. obj19.RightSurface=10
  653. obj19.FrontSurface=10
  654. obj19.BackSurface=10
  655. obj19.Locked=true
  656. obj19:breakJoints()
  657. obj19.Material='SmoothPlastic'
  658. local obj19m=Instance.new('SpecialMesh',obj19)
  659. obj19m.MeshId="http://www.roblox.com/asset/?id=20329976"
  660. obj19m.Scale=Vector3.new(1.1,1.2,1.1)
  661. obj19w=Instance.new('Weld',obj19)
  662. obj19w.Part0=obj2
  663. obj19w.Part1=obj19
  664. obj19w.C0=CFrame.new(0,-2.8,-.35)*CFrame.Angles(math.rad(10.5),math.rad(45),math.rad(180))
  665.  
  666.  
  667. for i,v in pairs(tail:children()) do
  668. if v ~= obj5 then
  669. v.Transparency = 1
  670. end
  671. end
  672. ----------------------------------------------------------------------------
  673.  
  674. obj5.Transparency = 1
  675. maus.KeyDown:connect(function(kei)
  676. if string.byte(kei)==48 then
  677. chr.Humanoid.WalkSpeed=40
  678. end
  679.  
  680.  
  681. if kei=='q' and not armmovement then
  682. if holding then armmovement=true armpose='ReplacingStick' wait(.5) armmovement=false holding=false
  683. obj5w.Part0=obj2
  684. obj5w.C0=CFrame.new(0,0,2.5)*CFrame.Angles(math.rad(95),0,0)
  685. obj5.Transparency = 1
  686. elseif not holding then armmovement=true armpose='ReplacingStick' wait(.5) armmovement=false holding=true
  687. obj5w.Part0=rarm
  688. obj5w.C0=CFrame.new(0,-1,-.5)*CFrame.Angles(math.rad(92),0,0)
  689. obj5.Transparency = 0
  690. end
  691. end
  692.  
  693.  
  694.  
  695. if kei=='x' and not jumpdb and not otheranims then
  696. jumpdb=true
  697. otheranims=true
  698. anim='SuperCrouch'
  699. coroutine.resume(coroutine.create(function()
  700. for lal=1,20 do wait()
  701. local jm=Instance.new('Part',chr)
  702. jm.formFactor='Custom'
  703. jm.BrickColor=BrickColor.new(fireclrs[math.random(1,3)])
  704. jm.Size=Vector3.new(3,3,3)
  705. jm.Name='soprjmp'
  706. jm.TopSurface=10
  707. jm.BottomSurface=10
  708. jm.FrontSurface=10
  709. jm.Locked=true
  710. jm.LeftSurface=10
  711. jm.RightSurface=10
  712. jm.BackSurface=10
  713. jm.CanCollide=false
  714. jm.Anchored=true
  715. jm.Material = 'Neon'
  716. jm.CFrame=rleg.CFrame*CFrame.new(-.5,-1,0)*CFrame.Angles(math.random(1,3),math.random(1,3),math.random(1,3))
  717. local jmp=Instance.new('BlockMesh',jm)
  718. game:service'Debris':AddItem(jm,1.5)
  719. coroutine.wrap(function()
  720. for qq=1,20 do wait()
  721. jmp.Scale=jmp.Scale+Vector3.new(.1,.1,.1)
  722. jm.Transparency=jm.Transparency+.1
  723. jm.CFrame=jm.CFrame*CFrame.Angles(math.random(1,3),math.random(1,3),math.random(1,3))
  724. end
  725. end)()
  726. end
  727. end))
  728. wait(.6)
  729. coroutine.resume(coroutine.create(function()
  730. for t=1,5 do wait()
  731. rangclr=ranclrs[t]
  732. local rang=Instance.new('Part',chr)
  733. rang.formFactor='Custom'
  734. rang.BrickColor=BrickColor.new(rangclr)
  735. rang.Size=Vector3.new(2,2,2)
  736. rang.Name='rang'
  737. rang.TopSurface=10
  738. rang.BottomSurface=10
  739. rang.Locked=true
  740. rang.FrontSurface=10
  741. rang.LeftSurface=10
  742. rang.RightSurface=10
  743. rang.BackSurface=10
  744. rang.CanCollide=false
  745. rang.Anchored=true
  746. rang.Material = 'Neon'
  747. rang.CFrame=rleg.CFrame*CFrame.new(-.5,-.75,0)*CFrame.Angles(math.rad(90),0,0)
  748. local rmsh=Instance.new('SpecialMesh',rang)
  749. rmsh.MeshId="http://www.roblox.com/asset/?id=3270017"
  750. rmsh.Scale=Vector3.new(3,3,1.5)
  751. game:service'Debris':AddItem(rang,5)
  752. coroutine.wrap(function()
  753. for lalal=1,50 do wait()
  754. rmsh.Scale=rmsh.Scale+Vector3.new(1,1,.25)
  755. rang.Transparency=rang.Transparency+1/33
  756. end
  757. end)()
  758. end
  759. end))
  760. anim='SuperJump'
  761. local vl=Instance.new("BodyVelocity",torso)
  762. vl.maxForce=Vector3.new(0,1/0,0)
  763. vl.velocity=Vector3.new(0,100,0)
  764. game:service'Debris':AddItem(vl,1)
  765. chr.Humanoid.Jump=true
  766. wait(.5)
  767. otheranims=false
  768. anim='Jumping'
  769. wait(3.5)
  770. jumpdb=false
  771. end
  772. end)
  773.  
  774.  
  775. plr.Chatted:connect(function(ms)
  776. if ms:lower()=='q' and not armmovement then
  777. if holding then armmovement=true armpose='ReplacingStick' wait(.5) armmovement=false holding=false
  778. obj5w.Part0=obj2
  779. obj5w.C0=CFrame.new(0,0,2.5)*CFrame.Angles(math.rad(95),0,0)
  780. elseif not holding then armmovement=true armpose='ReplacingStick' wait(.5) armmovement=false holding=true
  781. obj5w.Part0=rarm
  782. obj5w.C0=CFrame.new(0,-1,-.5)*CFrame.Angles(math.rad(92),0,0)
  783. end
  784. end
  785. if ms:lower()=='x' and not jumpdb and not otheranims then
  786. jumpdb=true
  787. otheranims=true
  788. anim='SuperCrouch'
  789. coroutine.resume(coroutine.create(function()
  790. for lal=1,20 do wait()
  791. local jm=Instance.new('Part',chr)
  792. jm.formFactor='Custom'
  793. jm.BrickColor=BrickColor.new(fireclrs[math.random(1,3)])
  794. jm.Size=Vector3.new(3,3,3)
  795. jm.Name='soprjmp'
  796. jm.TopSurface=10
  797. jm.BottomSurface=10
  798. jm.FrontSurface=10
  799. jm.Locked=true
  800. jm.LeftSurface=10
  801. jm.RightSurface=10
  802. jm.BackSurface=10
  803. jm.CanCollide=false
  804. jm.Anchored=true
  805. jm.Material = 'Neon'
  806. jm.CFrame=rleg.CFrame*CFrame.new(-.5,-1,0)*CFrame.Angles(math.random(1,3),math.random(1,3),math.random(1,3))
  807. local jmp=Instance.new('BlockMesh',jm)
  808. game:service'Debris':AddItem(jm,1.5)
  809. coroutine.wrap(function()
  810. for qq=1,20 do wait()
  811. jmp.Scale=jmp.Scale+Vector3.new(.1,.1,.1)
  812. jm.Transparency=jm.Transparency+.1
  813. jm.CFrame=jm.CFrame*CFrame.Angles(math.random(1,3),math.random(1,3),math.random(1,3))
  814. end
  815. end)()
  816. end
  817. end))
  818. wait(.6)
  819. coroutine.resume(coroutine.create(function()
  820. for t=1,5 do wait()
  821. rangclr=ranclrs[t]
  822. local rang=Instance.new('Part',chr)
  823. rang.formFactor='Custom'
  824. rang.BrickColor=BrickColor.new(rangclr)
  825. rang.Size=Vector3.new(2,2,2)
  826. rang.Name='rang'
  827. rang.TopSurface=10
  828. rang.BottomSurface=10
  829. rang.Locked=true
  830. rang.FrontSurface=10
  831. rang.LeftSurface=10
  832. rang.RightSurface=10
  833. rang.BackSurface=10
  834. rang.CanCollide=false
  835. rang.Anchored=true
  836. rang.Material = 'Neon'
  837. rang.CFrame=rleg.CFrame*CFrame.new(-.5,-.75,0)*CFrame.Angles(math.rad(90),0,0)
  838. local rmsh=Instance.new('SpecialMesh',rang)
  839. rmsh.MeshId="http://www.roblox.com/asset/?id=3270017"
  840. rmsh.Scale=Vector3.new(3,3,1.5)
  841. game:service'Debris':AddItem(rang,5)
  842. coroutine.wrap(function()
  843. for lalal=1,50 do wait()
  844. rmsh.Scale=rmsh.Scale+Vector3.new(1,1,.25)
  845. rang.Transparency=rang.Transparency+1/33
  846. end
  847. end)()
  848. end
  849. end))
  850. anim='SuperJump'
  851. local tv=Instance.new("BodyVelocity",rutprt)
  852. tv.maxForce=Vector3.new(0,math.huge,0)
  853. tv.velocity=Vector3.new(0,200,0)
  854. coroutine.resume(coroutince.create(function()
  855. wait(.5)
  856. tv:Destroy''
  857. end))
  858. chr.Humanoid.Jump=true
  859. wait(.5)
  860. otheranims=false
  861. anim='Jumping'
  862. wait(3.5)
  863. jumpdb=false
  864. end
  865. end)
  866.  
  867.  
  868. maus.KeyUp:connect(function(kei)
  869. if string.byte(kei)==48 then
  870. chr.Humanoid.WalkSpeed=16
  871. end
  872. end)
  873.  
  874.  
  875.  
  876. maus.Button1Down:connect(function()
  877. if holding and not armmovement and not otheranims and not flying then
  878. flying=true
  879. armmovement=true
  880. armpose='PreSwing'
  881. wait(.4)
  882. armpose='Swing'
  883. wait(.3)
  884. local proj=Instance.new('Part',Workspace)
  885. proj.Shape='Ball'
  886. proj.Anchored=false
  887. proj.Name='Fireball'
  888. proj.Locked=true
  889. proj.Size=Vector3.new(1,1,1)
  890. proj.BrickColor=BrickColor.new('Bright red')
  891. proj.Transparency=0
  892. proj.CFrame=torso.CFrame*CFrame.new(3,3,-2)
  893. local prj=Instance.new('BodyVelocity',proj)
  894. prj.velocity=((torso.CFrame*CFrame.new(3,3,-2)).p-maus.Hit.p).unit*-75
  895. proj.Touched:connect(function(hit)
  896. if hit and hit.CanCollide then
  897. proj:Destroy()
  898. local hum=hit.Parent and hit.Parent:findFirstChild('Torso') and hit.Parent:findFirstChild('Humanoid') and hit.Parent ~= chr and hit.Parent.ClassName=='Model'
  899. if hum then hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-(35*(hit.Parent.Humanoid.MaxHealth/100)) end end
  900. end)
  901. armmovement=false
  902. coroutine.resume(coroutine.create(function()
  903. for kthen=1,125 do wait()
  904. local ex=math.random(0,300)*.01
  905. local wy=math.random(0,300)*.01
  906. local ze=math.random(0,300)*.01
  907. local dy=math.random(5,30)*.01
  908. local fir=Instance.new('Part',proj)
  909. fir.formFactor='Custom'
  910. fir.Anchored=true
  911. fir.CanCollide=false
  912. fir.Size=Vector3.new(.8,.8,.8)
  913. fir.TopSurface=10
  914. fir.BottomSurface=10
  915. fir.LeftSurface=10
  916. fir.RightSurface=10
  917. fir.FrontSurface=10
  918. fir.Locked=true
  919. fir.BackSurface=10
  920. fir.Material = 'Neon'
  921. fir.BrickColor=BrickColor.new(fireclrs[math.random(1,#fireclrs)])
  922. fir.CFrame=proj.CFrame*CFrame.Angles(ex,wy,ze)
  923. local lt=Instance.new('PointLight',fir)
  924. lt.Brightness=123123
  925. lt.Range=6
  926. lt.Color=lalalclrs[math.random(1,#lalalclrs)]
  927. game:service'Debris':AddItem(fir,.5)
  928. local frms=Instance.new('BlockMesh',fir)
  929. frms.Scale=Vector3.new(1,1,1)
  930. coroutine.wrap(function()
  931. for lal=1,10 do
  932. frms.Scale=frms.Scale-Vector3.new(.1,.1,.1)
  933. fir.CFrame=fir.CFrame*CFrame.new(0,dy,0)
  934. wait()
  935. end
  936. end)() end end))
  937. wait(.375)
  938. flying=false
  939. end
  940. end)
  941.  
  942. ------------------
  943. coroutine.resume(coroutine.create(function()
  944. while wait() do if holding then
  945. local ex=math.random(0,300)*.01
  946. local wy=math.random(0,300)*.01
  947. local ze=math.random(0,300)*.01
  948. local dy=math.random(5,30)*.01
  949. local fir=Instance.new('Part',obj5)
  950. fir.formFactor='Custom'
  951. fir.Anchored=true
  952. fir.CanCollide=false
  953. fir.Size=Vector3.new(.65,.65,.65)
  954. fir.TopSurface=10
  955. fir.BottomSurface=10
  956. fir.LeftSurface=10
  957. fir.RightSurface=10
  958. fir.FrontSurface=10
  959. fir.Locked=true
  960. fir.BackSurface=10
  961. fir.Material = 'Neon'
  962. fir.BrickColor=BrickColor.new(fireclrs[math.random(1,#fireclrs)])
  963. fir.CFrame=obj5.CFrame*CFrame.new(0,(-obj9.Size.y)-.5,0)*CFrame.Angles(ex,wy,ze)
  964. local lt=Instance.new('PointLight',fir)
  965. lt.Brightness=123123
  966. lt.Range=6
  967. lt.Color=lalalclrs[math.random(1,#lalalclrs)]
  968. game:service'Debris':AddItem(fir,.5)
  969. local frms=Instance.new('BlockMesh',fir)
  970. coroutine.wrap(function()
  971. for lal=1,10 do
  972. frms.Scale=frms.Scale-Vector3.new(.1,.1,.1)
  973. fir.CFrame=fir.CFrame*CFrame.new(0,dy,0)
  974. wait()
  975. end
  976. end)() end end end))
  977.  
  978.  
  979. ----------------------------------------------------------------------------
  980.  
  981. game:service'RunService'.RenderStepped:connect(function()
  982. syne=syne+1
  983. if not otheranims then
  984. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  985. anim="Idling"
  986.  
  987. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < 30 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  988. anim="Walking"
  989.  
  990. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 30 and torso.Velocity.y<1 and torso.Velocity.y>-1 then
  991. anim="Sprinting"
  992.  
  993. elseif (torso.Velocity.y > 1) then
  994. anim="Jumping"
  995.  
  996. elseif (torso.Velocity.y < -1) then
  997. anim="Falling"
  998. torso.Velocity=(((rutprt.CFrame*CFrame.new(0,0,-3)).p-rutprt.CFrame.p).unit*chr.Humanoid.WalkSpeed)+Vector3.new(0,-(27.5),0)
  999. end
  1000. end
  1001.  
  1002. if anim=="Idling" then
  1003. idlesineinc=40
  1004. if not armmovement then
  1005. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(3)),.1)
  1006. end
  1007. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(-3)),.1)
  1008. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1)
  1009. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1)
  1010. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
  1011. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(0),math.rad(0)),.1)
  1012. end
  1013. if anim=="Walking" then
  1014. if not armmovement then
  1015. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(math.cos(syne/6)/1.25,math.rad(5),-(math.cos(syne/6.75)/15)+math.rad(3)),.1)
  1016. end
  1017. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(-(math.cos(syne/6)/1.25),0,-(math.cos(syne/6.75)/15)-math.rad(3)),.1)
  1018. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/6)/10,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
  1019. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/6)/10,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
  1020. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1)
  1021. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-.1+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-3.5),math.cos(syne/6)/10,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1)
  1022. end
  1023.  
  1024. if anim=="Sprinting" then
  1025. if not armmovement then
  1026. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(12.5)),.1)
  1027. end
  1028. obj1w.C0=Lerp(obj1w.C0,CFrame.new(0,-.9,.65)*CFrame.Angles(-math.sin(syne/4)/3+(math.rad(-92.5)),-math.sin(syne/4)/3,0),.05)
  1029. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(-12.5)),.1)
  1030. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.6-math.cos(syne/4)/4,-(math.cos(syne/4)*2))*CFrame.Angles(math.cos(syne/4)*2,0,math.rad(-2.5)),.1)
  1031. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.6-math.cos(syne/4)/4,math.cos(syne/4)*2)*CFrame.Angles(-(math.cos(syne/4)*2),0,math.rad(2.5)),.1)
  1032. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(10),0,0),.1)
  1033. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-.3+math.cos(syne/2.5)/15,math.cos(syne/2.5)/1.5)*CFrame.Angles(math.cos(syne/2.5)/10+math.rad(-15),math.cos(syne/2.5)/10,math.cos(syne/4)/20+math.sin(rutprt.RotVelocity.y/2)/4),.1)
  1034. end
  1035.  
  1036. if anim=="Jumping" then if not armmovement then
  1037. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(30)),.15)
  1038. end
  1039. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(30),0,math.rad(-30)),.15)
  1040. obj1w.C0=Lerp(obj1w.C0,CFrame.new(0,-.9,.65)*CFrame.Angles((math.rad(-55)),0,0),.05)
  1041. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.85,-.1)*CFrame.Angles(0,0,math.rad(-2.5)),.05)
  1042. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.85,-.1)*CFrame.Angles(0,0,math.rad(2.5)),.05)
  1043. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),.05)
  1044. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-.3,0)*CFrame.Angles(math.rad(-20),0,math.sin(rutprt.RotVelocity.y/2)/4),.1)
  1045. end
  1046.  
  1047. if anim=="Falling" then
  1048. if not armmovement then
  1049. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.425,.525,0)*CFrame.Angles(math.rad(65),0,math.rad(45)),.15)
  1050. end
  1051. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.425,.525,0)*CFrame.Angles(math.rad(65),0,math.rad(-45)),.15)
  1052. obj1w.C0=Lerp(obj1w.C0,CFrame.new(0,-.9,.65)*CFrame.Angles((math.rad(-95)),0,0),.05)
  1053. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.75,-1.3,-.8)*CFrame.Angles(math.rad(55),0,math.rad(-15)),.05)
  1054. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.75,-1.3,-.8)*CFrame.Angles(math.rad(55),0,math.rad(15)),.05)
  1055. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),0,0),.05)
  1056. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-.3,0)*CFrame.Angles(math.rad(-40),0,math.sin(rutprt.RotVelocity.y/2)/4),.1)
  1057. end
  1058. if armpose=='ReplacingStick' and armmovement then
  1059. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(-140),0,math.rad(-20)),.075)
  1060. end
  1061.  
  1062. if armpose=='PreSwing' and armmovement then
  1063. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(179),0,math.rad(10)),.15)
  1064. end
  1065.  
  1066. if armpose=='Swing' and armmovement then
  1067. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(25),0,math.rad(10)),.2)
  1068. end
  1069.  
  1070.  
  1071. if otheranims then
  1072. if anim=='SuperCrouch' then
  1073. if not equipped and not armmovement then
  1074. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.05)
  1075. end
  1076. obj1w.C0=Lerp(obj1w.C0,CFrame.new(0,-.9,.65)*CFrame.Angles((math.rad(-25)),0,0),.05)
  1077. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.05)
  1078. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1,0)*CFrame.Angles(math.rad(-20),0,math.rad(-2.5)),.05)
  1079. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-.8,-.65)*CFrame.Angles(math.rad(10),0,math.rad(2.5)),.05)
  1080. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,.3)*CFrame.Angles(math.rad(40),0,0),.05)
  1081. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,-1.4,.2)*CFrame.Angles(math.rad(-14),math.rad(0),math.rad(0)),.05)
  1082. end
  1083.  
  1084. if anim=="SuperJump" then
  1085. if not armmovement and not equipped then
  1086. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.4,.525,0)*CFrame.Angles(math.rad(-10),0,math.rad(20)),.1)
  1087. end
  1088. obj1w.C0=Lerp(obj1w.C0,CFrame.new(0,-.9,.65)*CFrame.Angles((math.rad(-75)),0,0),.05)
  1089. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.4,.525,0)*CFrame.Angles(math.rad(-10),0,math.rad(-20)),.1)
  1090. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.8,0)*CFrame.Angles(math.rad(-2.5),0,math.rad(-2.5)),.1)
  1091. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.8,0)*CFrame.Angles(math.rad(-2.5),0,math.rad(2.5)),.1)
  1092. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,.3)*CFrame.Angles(math.rad(30),0,0),.1)
  1093. rutprt.RootJoint.C0=Lerp(rutprt.RootJoint.C0,CFrame.new(0,0,0)*CFrame.Angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  1094. end
  1095. end
  1096. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  1097. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement