Advertisement
VoidScript

wow

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