Advertisement
firasj082

Cupe script

May 14th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.85 KB | None | 0 0
  1. KEYDOWNS:
  2. B = FREEZE MODE ( Slows )
  3. N = HEAL MODE
  4. M = DARKNESS MODE ( ACTIVATED T ABILITY )
  5. Q = SPINNING CUBE ( DMGS WITH FREEZE/HEALS WITH HEAL MODE )
  6. E = DISINERGRATE
  7. F = TELEPORT ( PRESS F OVER PLAYER AND CLICK LOCATION )
  8. T = BLACK HOLE ( DARNKESS )
  9. --[ ---------------- ]]----
  10. local Player = game:GetService("Players").LocalPlayer
  11. repeat wait(1) until Player.Character
  12. local Character = Player.Character
  13. local la = Character:FindFirstChild("Left Arm")
  14. local ra = Character:FindFirstChild("Right Arm")
  15. local ll = Character:FindFirstChild("Left Leg")
  16. local rl = Character:FindFirstChild("Right Leg")
  17. local Torso = Character:FindFirstChild("Torso")
  18. local Humanoid = Character:findFirstChild("Humanoid")
  19. Character.Animate:Destroy()
  20. Humanoid.Animator:Destroy()
  21.  
  22. local LimbAccess = {LA=true,RA=true,LL=true,RL=true,RJ=true,NJ=true,Ring=true}
  23.  
  24. local State = "Normal"
  25. local Active = true
  26. local Mode = "Polaris"
  27. local mousepos = CFrame.new(0,0,0)
  28.  
  29. function Lerp(a,b,i) -- A = First pos, B = Second Pos, i = Speed
  30. return a:lerp(b,i)
  31. end
  32.  
  33. --Basically it works like this, a is the first position, and b is the position you want to reach. i is the slowness or smoothness factor.
  34. --They're usually labled x1,y1,alpha
  35.  
  36. Left_Arm = Instance.new("Weld",Torso)
  37. Left_Arm.Part0 = Torso
  38. Left_Arm.Part1 = la
  39. Left_Arm.Name = "LeftArmJ"
  40. Left_Arm.C0 = CFrame.new(-1.5,0.5,0)
  41. Left_Arm.C1 = CFrame.new(0,0.5,0)
  42. Right_Arm = Instance.new("Weld",Torso)
  43. Right_Arm.Part0 = Torso
  44. Right_Arm.Part1 = ra
  45. Right_Arm.Name = "RightArmJ"
  46. Right_Arm.C0 = CFrame.new(1.5,0.5,0)
  47. Right_Arm.C1 = CFrame.new(0,0.5,0)
  48. Left_Leg = Instance.new("Weld",Torso)
  49. Left_Leg.Part0 = Torso
  50. Left_Leg.Part1 = ll
  51. Left_Leg.Name = "LeftLegJ"
  52. Left_Leg.C0 = CFrame.new(-0.5,-1,0)
  53. Left_Leg.C1 = CFrame.new(0,1,0)
  54. Right_Leg = Instance.new("Weld",Torso)
  55. Right_Leg.Name = "RightLegJ"
  56. Right_Leg.Part0 = Torso
  57. Right_Leg.Part1 = rl
  58. Right_Leg.C0 = CFrame.new(0.5,-1,0)
  59. Right_Leg.C1 = CFrame.new(0,1,0)
  60.  
  61. local RootJoint = Instance.new("Weld",Character["HumanoidRootPart"])
  62. RootJoint.Name = "RootJ"
  63. RootJoint.Part0 = Character["HumanoidRootPart"]
  64. RootJoint.Part1 = Torso
  65.  
  66. local NeckJ = Instance.new("Weld",Torso)
  67. NeckJ.Name = "NeckJ"
  68. NeckJ.Part0 = Torso
  69. NeckJ.Part1 = Character.Head
  70. NeckJ.C1 = CFrame.new(0,-1.5,0)
  71.  
  72. local Model = Instance.new("Model",Character)
  73. Model.Name = "RingModel"
  74. local RingSize = Vector3.new(.5,.5,.5)
  75. local Ring = Instance.new("Part",Model)
  76. Ring.Name = "Ring"
  77. Ring.FormFactor = "Custom"
  78. Ring.Size = RingSize
  79. Ring.Anchored = true
  80. Ring.CanCollide = false
  81. Ring.BrickColor = BrickColor.new("Bright orange")
  82. Ring.Material = "Neon"
  83. Ring.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  84. Ring.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  85. Ring.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  86. Ring.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  87. Ring.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  88. Ring.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  89.  
  90. local RingClone = Ring:Clone()
  91.  
  92. local Sphere = Instance.new("Part")
  93. Sphere.Shape = "Ball"
  94. Sphere.Name = "Bound"
  95. Sphere.Anchored = true
  96. Sphere.BrickColor = BrickColor.new("Really black")
  97. Sphere.Transparency = .8
  98. Sphere.Material = "Neon"
  99.  
  100. function CreateRegion3FromLocAndSize(Position, Size)
  101. local SizeOffset = Size/2
  102. local Point1 = Position - SizeOffset
  103. local Point2 = Position + SizeOffset
  104. return Region3.new(Point1, Point2)
  105. end
  106.  
  107. function ModeAccess(MODE)
  108. local Colors = {
  109. Freeze=BrickColor.new("Pastel light blue");
  110. Polaris=BrickColor.new("Bright orange");
  111. Hearth=BrickColor.new("Pastel brown");
  112. Darkness=BrickColor.new("Really black");
  113. }
  114. local Mats = {
  115. Freeze = "Ice";
  116. Polaris = "Neon";
  117. Hearth="Neon";
  118. Darkness="Neon";
  119. }
  120. local Refl = {
  121. Freeze = .35;
  122. Polaris = 0;
  123. Hearth=0;
  124. Darkness=0;
  125. }
  126. LimbAccess.LL = false
  127. LimbAccess.LA = false
  128. LimbAccess.RA = false
  129. LimbAccess.RL = false
  130. LimbAccess.NJ = false
  131. LimbAccess.Ring = false
  132. LimbAccess.RJ = false
  133. Character.Humanoid.WalkSpeed = 0
  134. local angle = 0
  135. local angles = 1
  136. for i = 1,6,.1 do
  137. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(0,0,0),.1)
  138. Ring.CFrame = Lerp(Ring.CFrame,Character.Torso.CFrame*CFrame.new(0,3.5,0)*CFrame.Angles(0,angle,0),.1)
  139. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,.5,-1)*CFrame.Angles(math.rad(45),0,0),.25)
  140. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,-1,0)*CFrame.Angles(0,0,math.rad(-2)),.1)
  141. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,-1,0)*CFrame.Angles(0,0,math.rad(2)),.1)
  142. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(180),math.rad(-5),math.rad(0)),.03)
  143. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(180),0,math.rad(0)),.03)
  144. game:GetService("RunService").RenderStepped:wait()
  145. end
  146. for i = 1,6,.1 do
  147. angle = (angle % 100) + angles/10
  148. Ring.Size = Lerp(Ring.Size,Vector3.new(5,5,5),.04)
  149. Ring.CFrame = Lerp(Ring.CFrame,Character.Torso.CFrame*CFrame.new(0,3.5,0)*CFrame.Angles(0,angle,0),.1)
  150. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(180),math.rad(-5),math.rad(25)),.03)
  151. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(180),0,math.rad(-25)),.08)
  152. game:GetService("RunService").RenderStepped:wait()
  153. end
  154. coroutine.resume(coroutine.create(function()
  155. for i = 0,1,.04 do
  156. Ring.Transparency = i
  157. game:GetService("RunService").RenderStepped:wait()
  158. end
  159. end))
  160. for i = 1,6,.1 do
  161. angle = (angle % 100) + angles/10
  162. Ring.Size = Lerp(Ring.Size,Vector3.new(0,0,0),.04)
  163. Ring.CFrame = Lerp(Ring.CFrame,Character.Torso.CFrame*CFrame.new(0,3.5,0)*CFrame.Angles(0,angle,0),.1)
  164. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(5)),.03)
  165. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(180),0,math.rad(0)),.08)
  166. game:GetService("RunService").RenderStepped:wait()
  167. end
  168. coroutine.resume(coroutine.create(function()
  169. for i = 1,0,-.04 do
  170. Ring.Transparency = i
  171. game:GetService("RunService").RenderStepped:wait()
  172. end
  173. end))
  174. Ring.BrickColor = Colors[MODE]
  175. Ring.Material = Mats[MODE]
  176. Ring.Reflectance = Refl[MODE]
  177. for i = 1,6,.1 do
  178. angle = (angle % 100) + angles/10
  179. Ring.Size = Lerp(Ring.Size,Vector3.new(2,2,2),.04)
  180. Ring.CFrame = Lerp(Ring.CFrame,Character.Torso.CFrame*CFrame.new(0,3.5,0)*CFrame.Angles(0,angle,0),.1)
  181. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(180),math.rad(-5),math.rad(25)),.03)
  182. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(180),0,math.rad(-25)),.08)
  183. game:GetService("RunService").RenderStepped:wait()
  184. end
  185. Ring.Transparency = 0
  186. Mode = MODE
  187. LimbAccess.LL = true
  188. LimbAccess.LA = true
  189. LimbAccess.RA = true
  190. LimbAccess.RL = true
  191. LimbAccess.NJ = true
  192. LimbAccess.Ring = true
  193. LimbAccess.RJ = true
  194. end
  195.  
  196. function Dmg(hit)
  197. local DB = false
  198.  
  199. for i,v in ipairs(game.Workspace:FindPartsInRegion3(hit,nil,80)) do
  200. if v and v.Parent and v.Parent:FindFirstChild("Head") and v.Parent.Name ~= Player.Name then
  201. if v.Parent:FindFirstChild("Humanoid") and Mode == "Freeze" then
  202. v.Parent:FindFirstChild("Humanoid"):TakeDamage(v.Parent:FindFirstChild("Humanoid").MaxHealth*.0006)
  203. elseif v.Parent:FindFirstChild("Humanoid") and Mode == "Hearth" then
  204. v.Parent:FindFirstChild("Humanoid").Health = v.Parent:FindFirstChild("Humanoid").Health + (v.Parent:FindFirstChild("Humanoid").MaxHealth*.0006)
  205. end
  206.  
  207. if v.Parent and DB == false then
  208. DB = true
  209. for index,object in pairs(v.Parent:GetChildren()) do
  210. if (object.ClassName == "Humanoid" and object.MaxHealth == math.huge) or (object.ClassName == "Humanoid" and object.ClassName ~= object.Name) then
  211. object:Destroy()
  212. break
  213. end
  214. end
  215. end
  216.  
  217. if Mode == "Freeze" and v and v.Parent and v.Parent:FindFirstChild("Humanoid") and v.Parent:FindFirstChild("Body Colors") then
  218. v.Parent:FindFirstChild("Humanoid").WalkSpeed = 3
  219. local F = Instance.new("Folder",v.Parent)
  220. F.Name = "BCOLORS"
  221.  
  222. v.Parent:FindFirstChild("Body Colors").Parent = F
  223. coroutine.resume(coroutine.create(function()
  224. wait(1)
  225. for i,v in pairs(v.Parent:GetChildren()) do
  226. if v:IsA("Part") then
  227. v.BrickColor = BrickColor.new("Pastel light blue")
  228. end
  229. end
  230. end))
  231. end
  232. if Mode == "Polaris" and v and v.Parent and v.Parent:FindFirstChild("Humanoid") then
  233. v.Parent:FindFirstChild("Humanoid").WalkSpeed = 16
  234. coroutine.resume(coroutine.create(function()
  235. wait(1)
  236. if v.Parent and v.Parent:FindFirstChild("BCOLORS") then
  237. v.Parent:FindFirstChild("BCOLORS")["Body Colors"].Parent = v.Parent
  238. v.Parent:FindFirstChild("BCOLORS"):Destroy()
  239. end
  240. end))
  241. end
  242.  
  243. end
  244. end
  245. --[[if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= Player.Name then
  246. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10)
  247. end]]--
  248. end
  249. Player:GetMouse().KeyDown:connect(function(key)
  250. local h=Player:GetMouse().Hit*CFrame.new(0,5,0)
  251. local a = 0
  252. local a2 = 0
  253. local as = .5
  254. local as2 = 600
  255. if key == "t" and Active == true and Mode == "Darkness" then
  256. Active = false
  257. LimbAccess.Ring = false
  258. for i = 0,6,.1 do
  259. Ring.CFrame = Lerp(Ring.CFrame,h,.1)
  260. game:GetService("RunService").RenderStepped:wait()
  261. end
  262. local news = Sphere:Clone()
  263. news.CanCollide = false
  264. repeat wait() until Character:FindFirstChild("RingModel")
  265. news.Parent = Character.RingModel
  266. news.Size = Vector3.new(100,100,100)
  267. news.CFrame = Ring.CFrame
  268. local CF = Ring.CFrame
  269. coroutine.resume(coroutine.create(function()
  270. for i = 0,40,.1 do
  271. a = (a % 100) + as/10
  272. a2 = (a2 % 100) + as/10
  273. Ring.Size = Lerp(Ring.Size,Vector3.new(3+math.sin(a2)*1,3+math.sin(a2)*1.5,3+math.sin(a2)*2),.1)
  274. Ring.CFrame = h*CFrame.Angles(a,0,a)
  275. news.Size = Lerp(news.Size,Vector3.new(100+math.sin(a2)*1,100+math.sin(a2)*1,100+math.sin(a2)*1),.1)
  276. news.CFrame = CF
  277. news.Transparency = .5+(math.sin(a)*.5)
  278. game:GetService("RunService").RenderStepped:wait()
  279. end
  280. end))
  281. for i = 1,40,.1 do
  282. for i,v in pairs(game.Players:GetChildren()) do
  283. if v and v:IsA("Player") and v.Character ~= nil and v.Character:FindFirstChild("Torso") then
  284. if v and v.Character and v.Character:FindFirstChild("Torso") and v.Name ~= Player.Name then
  285. if v and v.Character and v.Character.Torso and not v.Character.Torso:FindFirstChild("BOD") and (v.Character.Torso.CFrame.p - Ring.CFrame.p).magnitude < 50 then
  286. local V = Instance.new("BodyVelocity",v.Character.Torso)
  287. V.Name = "BOD"
  288. V.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  289. end
  290. if v and v.Character and v.Character:FindFirstChild("Torso") and (v.Character.Torso.CFrame.p - Ring.CFrame.p).magnitude < 50 and v.Name ~= Player.Name then
  291. v.Character.Torso:FindFirstChild("BOD"). Velocity = CFrame.new(v.Character.Torso.CFrame.p,Ring.CFrame.p).lookVector*(v.Character.Torso.CFrame.p - Ring.CFrame.p).magnitude
  292. if v and v.Character and v.Character:FindFirstChild("Torso") and (v.Character.Torso.CFrame.p - Ring.CFrame.p).magnitude < 5 and v.Character:FindFirstChild("Humanoid") then
  293. v.Character:FindFirstChild("Humanoid").Health = v.Character:FindFirstChild("Humanoid").Health - (v.Character:FindFirstChild("Humanoid").MaxHealth*.006)
  294. end
  295. end
  296. end
  297. end
  298. end
  299. game:GetService("RunService").RenderStepped:wait()
  300. end
  301. for i,v in pairs(game.Players:GetChildren()) do
  302. if v and v:IsA("Player") and v.Character and v.Character:FindFirstChild("Torso") and v.Character.Torso:FindFirstChild("BOD") then
  303. v.Character.Torso:FindFirstChild("BOD"):Destroy()
  304. end
  305. end
  306. for i = news.Transparency,1,-.01 do
  307. news.Transparency = i
  308. game:GetService("RunService").RenderStepped:wait()
  309. end
  310. LimbAccess.Ring = true
  311. Active = true
  312. news:Destroy()
  313. end
  314. end)
  315. Player:GetMouse().KeyDown:connect(function(key)
  316. local angle = 0
  317. local anglespeed = 1
  318. if key == "q" and Active == true then
  319. Active = false
  320. LimbAccess.Ring = false
  321. local x,y,z = 50,50,50
  322. local pos = Player:GetMouse().Hit
  323. for i = 0,1,.01 do
  324. angle = (angle % 100) + anglespeed/10
  325. Ring.Size = Lerp(Ring.Size,Vector3.new(x,y,z),.05)
  326. Ring.CFrame = Ring.CFrame:lerp((CFrame.new(pos.p.x,pos.p.y,pos.p.z)*CFrame.new(0,y/2,0)*CFrame.Angles(0,angle,0)),i)
  327. game:GetService("RunService").RenderStepped:wait()
  328. end
  329. for i = 1,10,.1 do
  330. local reg = CreateRegion3FromLocAndSize(pos.p,Vector3.new(x,y,z))
  331. Dmg(reg,Mode)
  332.  
  333. angle = (angle % 100) + anglespeed/10
  334. Ring.CFrame = CFrame.new(pos.p.x,pos.p.y,pos.p.z)*CFrame.new(0,y/2,0)*CFrame.Angles(0,angle,0)
  335. game:GetService("RunService").RenderStepped:wait()
  336. end
  337. LimbAccess.Ring = true
  338. wait(.5)
  339. Active = true
  340. end
  341. end)
  342. Player:GetMouse().KeyDown:connect(function(key)
  343.  
  344. if key == "b" and Active == true then
  345. Active = false
  346. ModeAccess("Freeze")
  347. wait(1)
  348. Active = true
  349. Character.Humanoid.WalkSpeed = 16
  350. elseif key == "p" and Active == true then
  351. Active = false
  352. ModeAccess("Polaris")
  353. wait(1)
  354. Active = true
  355. Character.Humanoid.WalkSpeed = 16
  356. elseif key == "n" and Active == true then
  357. Active = false
  358. ModeAccess("Hearth")
  359. wait(1)
  360. Active = true
  361. Character.Humanoid.WalkSpeed = 16
  362. elseif key == "m" and Active == true then
  363. Active = false
  364. ModeAccess("Darkness")
  365. wait(1)
  366. Active = true
  367. Character.Humanoid.WalkSpeed = 16
  368. end
  369. end)
  370.  
  371. Player:GetMouse().KeyDown:connect(function(key)
  372. local Object = Player:GetMouse().Target
  373. if key == "e" and Active == true and Object:IsA("Part") and Object.Name ~= "BasePlate" and Object.Name ~= "Baseplate" and Object.Name ~= "Base" then
  374. Active = false
  375. LimbAccess.Ring = false
  376. for i = 0,1,.01 do
  377. Ring.Size = Ring.Size:lerp(Object.Size+Vector3.new(.5,.5,.5),i)
  378. Ring.CFrame = Ring.CFrame:lerp(Object.CFrame,i)
  379. game:GetService("RunService").RenderStepped:wait()
  380. end
  381. for i = 0,.5,.01 do
  382. Ring.Size = Object.Size+Vector3.new(.5,.5,.5)
  383. Ring.CFrame = Object.CFrame
  384. game:GetService("RunService").RenderStepped:wait()
  385. end
  386. Object:Destroy()
  387. wait(.5)
  388. LimbAccess.Ring = true
  389. Active = true
  390. end
  391. end)
  392. Player:GetMouse().KeyDown:connect(function(key)
  393. local H = Player:GetMouse().Target
  394. if key == "f" and Active == true and H and H.Parent and H.Parent:FindFirstChild("Torso") then
  395. LimbAccess.Ring = false
  396. Active = false
  397. Ring.Anchored = true
  398. for i = 0,1,.01 do
  399. Ring.Size = Ring.Size:lerp(Vector3.new(4.5,6,2),i)
  400. Ring.CFrame = Ring.CFrame:lerp(H.Parent.Torso.CFrame,i)
  401. game:GetService("RunService").RenderStepped:wait()
  402. end
  403. Ring.Anchored = true
  404. H.Parent.Torso.Anchored = true
  405. for i = 0,1,.01 do
  406. Ring.CFrame = Ring.CFrame:lerp(mousepos*CFrame.new(0,2,0),i)
  407. Ring.CanCollide = false
  408. H.Parent.HumanoidRootPart.CFrame = H.Parent.HumanoidRootPart.CFrame:lerp(mousepos*CFrame.new(0,2,0),i)
  409. H.Parent.Torso.Velocity = Vector3.new(0,0,0)
  410. game:GetService("RunService").RenderStepped:wait()
  411. end
  412. H.Parent.Torso.Anchored = false
  413. Ring.Anchored = true
  414. LimbAccess.Ring = true
  415. H.Parent.Humanoid.WalkSpeed = 16
  416. wait(.7)
  417. Active = true
  418. end
  419. end)
  420.  
  421.  
  422.  
  423. Player:GetMouse().Button1Down:connect(function()
  424. mousepos = Player:GetMouse().Hit
  425. end)
  426.  
  427.  
  428. angle = 0
  429. angle2 = 0
  430. angle3 = 0
  431. anglespeed = 2
  432. anglespeed2 = 1
  433. anglespeed3 = .4
  434. game:GetService("RunService").Stepped:connect(function()
  435. angle = ((angle % 100) + anglespeed/10)
  436. angle2 = ((angle2 % 100) + anglespeed2/10)
  437. angle3 = ((angle3 % 100) + anglespeed3/10) --it'll go from 0 to 100 and repeat in a loop. basically it will get to its destination and back --ok
  438. if Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude < 2 and State == "Normal" then -- idle
  439. if LimbAccess.RJ then
  440. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.5,0,0)*CFrame.Angles(math.sin(angle3)*.02,math.rad(-45),0),.2)
  441. end
  442. if LimbAccess.LA then
  443. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(97)+(math.sin(angle3))*-.05,0,math.rad(-25)),.1)
  444. end
  445. if LimbAccess.NJ then
  446. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(45)+(math.sin(-angle3)*.04),0),.25)
  447. end
  448. if LimbAccess.RA then
  449. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(50)+(math.sin(angle3)*.1),math.rad(-20),math.rad(30)),.1)
  450. end
  451. if LimbAccess.LL then
  452. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,-1,0)*CFrame.Angles(0,0,math.rad(-5)+math.sin(angle3)*.02),.1)
  453. end
  454. if LimbAccess.RL then
  455. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,-1,0)*CFrame.Angles(0,0,math.rad(15)+math.sin(angle3)*-.02),.1)
  456. end
  457. if LimbAccess.Ring then
  458. Ring.CFrame = Lerp(Ring.CFrame,ra.CFrame*CFrame.new(0,-1.1+math.sin(angle2)*.2,-1)*CFrame.Angles(math.rad(40)+angle2,angle2,angle2),.04)
  459. Ring.Size = Lerp(Ring.Size,RingSize,.06)
  460. end
  461. elseif Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "Normal" then -- walk
  462. if LimbAccess.RJ then
  463. RootJoint.C0 = Lerp(RootJoint.C0,CFrame.new(-.2,math.sin(angle2)*.1,0)*CFrame.Angles(0,math.rad(45),0),.2)
  464. end
  465. if LimbAccess.LA then
  466. Left_Arm.C0 = Lerp(Left_Arm.C0,CFrame.new(-1.2,0.35,0)*CFrame.Angles(math.rad(-25)+math.sin(angle3)*.06,0+math.sin(angle3)*.06,math.rad(15)+math.sin(angle3)*.06),.1)
  467. end
  468. if LimbAccess.NJ then
  469. NeckJ.C0 = Lerp(NeckJ.C0,CFrame.new(0,0,0)*CFrame.Angles(math.sin(-angle3)*.04,math.rad(-45)+(math.sin(-angle3)*.04),0),.25)
  470. end
  471. if LimbAccess.RA then
  472. Right_Arm.C0 = Lerp(Right_Arm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90)+math.sin(angle3)*.05,0,math.rad(40)),.1)
  473. end
  474. if LimbAccess.LL then
  475. Left_Leg.C0 = Lerp(Left_Leg.C0,CFrame.new(-0.5,(math.sin(angle3)*.1)-.6,-.2)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(-5)),.1)
  476. end
  477. if LimbAccess.RL then
  478. Right_Leg.C0 = Lerp(Right_Leg.C0,CFrame.new(0.5,(math.sin(angle3)*.1)-.7,-.1)*CFrame.Angles(math.rad(-15)+(math.sin(angle3)*.1),0,math.rad(5)),.1)
  479. end
  480. if LimbAccess.Ring then
  481. local var = math.sin(angle2)*1
  482. Ring.Size = Lerp(Ring.Size,Vector3.new(2+var,2+var,2+var),.06)
  483. Ring.CFrame = Lerp(Ring.CFrame,CFrame.new((ra.CFrame*CFrame.new(0,-3,-.3)).p,Player:GetMouse().hit.p),.8)
  484. Ring.Velocity = Vector3.new(0,0,0)
  485. end
  486. end
  487. if not Character:FindFirstChild("RingModel") or not Character:FindFirstChild("RingModel"):FindFirstChild("Ring") then
  488. Mode = "Polaris"
  489. if Character:FindFirstChild("RingModel") then
  490. local NewRing = RingClone:Clone()
  491. Ring = NewRing
  492. Ring.Parent = Character:FindFirstChild("RingModel")
  493. else
  494. local Model = Instance.new("Model",Character)
  495. Model.Name = "RingModel"
  496. local NewRing = RingClone:Clone()
  497. Ring = NewRing
  498. Ring.Parent = Model
  499. end
  500. end
  501. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement