Dark_EccentricYT

Untitled

Jan 18th, 2018
3,721
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.29 KB | None | 0 0
  1. --[[ A script By makhail07
  2.  
  3.  
  4. Discord demitasse#2958
  5.  
  6. Description:
  7.  
  8. Also Join Our Discord Server :D discord.gg/fhhzeNq
  9. ]]--
  10.  
  11. local IDs = {340106355,927529620,876981900,398987889}
  12.  
  13. function swait(num)
  14. if num==0 or num==nil then
  15. game:service'RunService'.Stepped:wait(0)
  16. else
  17. for i=0,num do
  18. game:service'RunService'.Stepped:wait(0)
  19. end
  20. end
  21. end
  22. function thread(f)
  23. coroutine.resume(coroutine.create(f))
  24. end
  25. function clerp(a, b, t)
  26. local qa = {
  27. QuaternionFromCFrame(a)
  28. }
  29. local qb = {
  30. QuaternionFromCFrame(b)
  31. }
  32. local ax, ay, az = a.x, a.y, a.z
  33. local bx, by, bz = b.x, b.y, b.z
  34. local _t = 1 - t
  35. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  36. end
  37. function QuaternionFromCFrame(cf)
  38. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  39. local trace = m00 + m11 + m22
  40. if trace > 0 then
  41. local s = math.sqrt(1 + trace)
  42. local recip = 0.5 / s
  43. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  44. else
  45. local i = 0
  46. if m00 < m11 then
  47. i = 1
  48. end
  49. if m22 > (i == 0 and m00 or m11) then
  50. i = 2
  51. end
  52. if i == 0 then
  53. local s = math.sqrt(m00 - m11 - m22 + 1)
  54. local recip = 0.5 / s
  55. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  56. elseif i == 1 then
  57. local s = math.sqrt(m11 - m22 - m00 + 1)
  58. local recip = 0.5 / s
  59. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  60. elseif i == 2 then
  61. local s = math.sqrt(m22 - m00 - m11 + 1)
  62. local recip = 0.5 / s
  63. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  64. end
  65. end
  66. end
  67. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  68. local xs, ys, zs = x + x, y + y, z + z
  69. local wx, wy, wz = w * xs, w * ys, w * zs
  70. local xx = x * xs
  71. local xy = x * ys
  72. local xz = x * zs
  73. local yy = y * ys
  74. local yz = y * zs
  75. local zz = z * zs
  76. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  77. end
  78. function QuaternionSlerp(a, b, t)
  79. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  80. local startInterp, finishInterp
  81. if cosTheta >= 1.0E-4 then
  82. if 1 - cosTheta > 1.0E-4 then
  83. local theta = math.acos(cosTheta)
  84. local invSinTheta = 1 / math.sin(theta)
  85. startInterp = math.sin((1 - t) * theta) * invSinTheta
  86. finishInterp = math.sin(t * theta) * invSinTheta
  87. else
  88. startInterp = 1 - t
  89. finishInterp = t
  90. end
  91. elseif 1 + cosTheta > 1.0E-4 then
  92. local theta = math.acos(-cosTheta)
  93. local invSinTheta = 1 / math.sin(theta)
  94. startInterp = math.sin((t - 1) * theta) * invSinTheta
  95. finishInterp = math.sin(t * theta) * invSinTheta
  96. else
  97. startInterp = t - 1
  98. finishInterp = t
  99. end
  100. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  101. end
  102. function rayCast(Position, Direction, Range, Ignore)
  103. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  104. end
  105. --Wait what okay
  106. wait()
  107. local plr = game:service'Players'.LocalPlayer
  108. local char = plr.Character
  109. local hum = char.Humanoid
  110. local ra = char["Right Arm"]
  111. local la= char["Left Arm"]
  112. local rl= char["Right Leg"]
  113. local ll = char["Left Leg"]
  114. local hed = char.Head
  115. local root = char.HumanoidRootPart
  116. local rootj = root.RootJoint
  117. local tors = char.Torso
  118. local mouse = plr:GetMouse()
  119. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  120. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  121. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  122. local maincolor = BrickColor.new("Magenta")
  123. cf = CFrame.new
  124. angles = CFrame.Angles
  125. attack = false
  126. euler=CFrame.fromEulerAnglesXYZ
  127. equipped = false
  128. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  129. RSH, LSH = nil, nil
  130. RW = Instance.new("Weld")
  131. LW = Instance.new("Weld")
  132. RH = tors["Right Hip"]
  133. LH = tors["Left Hip"]
  134. RSH = tors["Right Shoulder"]
  135. LSH = tors["Left Shoulder"]
  136. RSH.Parent = nil
  137. LSH.Parent = nil
  138. RW.Name = "RW"
  139. RW.Part0 = tors
  140. RW.C0 = CFrame.new(1.5, 0.5, 0)
  141. RW.C1 = CFrame.new(0, 0.5, 0)
  142. RW.Part1 = ra
  143. RW.Parent = tors
  144. LW.Name = "LW"
  145. LW.Part0 = tors
  146. LW.C0 = CFrame.new(-1.5, 0.5, 0)
  147. LW.C1 = CFrame.new(0, 0.5, 0)
  148. LW.Part1 = la
  149. LW.Parent = tors
  150. print('User is '..plr.Name)
  151. Effects = {}
  152.  
  153. ArtificialHB = Instance.new("BindableEvent", script)
  154. ArtificialHB.Name = "Heartbeat"
  155.  
  156. script:WaitForChild("Heartbeat")
  157.  
  158. frame = 1 / 60
  159. tf = 0
  160. allowframeloss = false
  161. tossremainder = false
  162. lastframe = tick()
  163. script.Heartbeat:Fire()
  164.  
  165. game:GetService("RunService").Heartbeat:connect(function(s, p)
  166. tf = tf + s
  167. if tf >= frame then
  168. if allowframeloss then
  169. script.Heartbeat:Fire()
  170. lastframe = tick()
  171. else
  172. for i = 1, math.floor(tf / frame) do
  173. script.Heartbeat:Fire()
  174. end
  175. lastframe = tick()
  176. end
  177. if tossremainder then
  178. tf = 0
  179. else
  180. tf = tf - frame * math.floor(tf / frame)
  181. end
  182. end
  183. end)
  184. local RbxUtility = LoadLibrary("RbxUtility")
  185. local Create = RbxUtility.Create
  186.  
  187. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  188. if hit.Parent == nil then
  189. return
  190. end
  191. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  192. for _, v in pairs(hit.Parent:children()) do
  193. if v:IsA("Humanoid") then
  194. h = v
  195. end
  196. end
  197. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  198. warn'No R15 allowed'
  199. hit.Parent:FindFirstChild("Head"):BreakJoints()
  200. end
  201.  
  202. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  203. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  204. if hit.Parent.DebounceHit.Value == true then
  205. return
  206. end
  207. end
  208. if insta == true then
  209. hit.Parent:FindFirstChild("Head"):BreakJoints()
  210. end
  211. local c = Create("ObjectValue"){
  212. Name = "creator",
  213. Value = game:service("Players").LocalPlayer,
  214. Parent = h,
  215. }
  216. game:GetService("Debris"):AddItem(c, .5)
  217. if HitSound ~= nil and HitPitch ~= nil then
  218. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  219. end
  220. local Damage = math.random(minim, maxim)
  221. local blocked = false
  222. local block = hit.Parent:findFirstChild("Block")
  223. if block ~= nil then
  224. if block.className == "IntValue" then
  225. if block.Value > 0 then
  226. blocked = true
  227. block.Value = block.Value - 1
  228. print(block.Value)
  229. end
  230. end
  231. end
  232. if blocked == false then
  233. h.Health = h.Health - Damage
  234. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  235. else
  236. h.Health = h.Health - (Damage / 2)
  237. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  238. end
  239. if Type == "Knockdown" then
  240. local hum = hit.Parent.Humanoid
  241. hum.PlatformStand = true
  242. coroutine.resume(coroutine.create(function(HHumanoid)
  243. swait(1)
  244. HHumanoid.PlatformStand = false
  245. end), hum)
  246. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  247. local bodvol = Create("BodyVelocity"){
  248. velocity = angle * knockback,
  249. P = 5000,
  250. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  251. Parent = hit,
  252. }
  253. local rl = Create("BodyAngularVelocity"){
  254. P = 3000,
  255. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  256. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  257. Parent = hit,
  258. }
  259. game:GetService("Debris"):AddItem(bodvol, .5)
  260. game:GetService("Debris"):AddItem(rl, .5)
  261. elseif Type == "Normal" then
  262. local vp = Create("BodyVelocity"){
  263. P = 500,
  264. maxForce = Vector3.new(math.huge, 0, math.huge),
  265. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  266. }
  267. if knockback > 0 then
  268. vp.Parent = hit.Parent.Torso
  269. end
  270. game:GetService("Debris"):AddItem(vp, .5)
  271. elseif Type == "Up" then
  272. local bodyVelocity = Create("BodyVelocity"){
  273. velocity = Vector3.new(0, 20, 0),
  274. P = 5000,
  275. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  276. Parent = hit,
  277. }
  278. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  279. elseif Type == "DarkUp" then
  280. coroutine.resume(coroutine.create(function()
  281. for i = 0, 1, 0.1 do
  282. swait()
  283. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  284. end
  285. end))
  286. local bodyVelocity = Create("BodyVelocity"){
  287. velocity = Vector3.new(0, 20, 0),
  288. P = 5000,
  289. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  290. Parent = hit,
  291. }
  292. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  293. elseif Type == "Snare" then
  294. local bp = Create("BodyPosition"){
  295. P = 2000,
  296. D = 100,
  297. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  298. position = hit.Parent.Torso.Position,
  299. Parent = hit.Parent.Torso,
  300. }
  301. game:GetService("Debris"):AddItem(bp, 1)
  302. elseif Type == "Freeze" then
  303. local BodPos = Create("BodyPosition"){
  304. P = 50000,
  305. D = 1000,
  306. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  307. position = hit.Parent.Torso.Position,
  308. Parent = hit.Parent.Torso,
  309. }
  310. local BodGy = Create("BodyGyro") {
  311. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  312. P = 20e+003,
  313. Parent = hit.Parent.Torso,
  314. cframe = hit.Parent.Torso.CFrame,
  315. }
  316. hit.Parent.Torso.Anchored = true
  317. coroutine.resume(coroutine.create(function(Part)
  318. swait(1.5)
  319. Part.Anchored = false
  320. end), hit.Parent.Torso)
  321. game:GetService("Debris"):AddItem(BodPos, 3)
  322. game:GetService("Debris"):AddItem(BodGy, 3)
  323. end
  324. local debounce = Create("BoolValue"){
  325. Name = "DebounceHit",
  326. Parent = hit.Parent,
  327. Value = true,
  328. }
  329. game:GetService("Debris"):AddItem(debounce, Delay)
  330. c = Create("ObjectValue"){
  331. Name = "creator",
  332. Value = Player,
  333. Parent = h,
  334. }
  335. game:GetService("Debris"):AddItem(c, .5)
  336. end
  337. end
  338.  
  339. function ShowDamage(Pos, Text, Time, Color)
  340. local Rate = (1 / 30)
  341. local Pos = (Pos or Vector3.new(0, 0, 0))
  342. local Text = (Text or "")
  343. local Time = (Time or 2)
  344. local Color = (Color or Color3.new(1, 0, 1))
  345. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  346. EffectPart.Anchored = true
  347. local BillboardGui = Create("BillboardGui"){
  348. Size = UDim2.new(3, 0, 3, 0),
  349. Adornee = EffectPart,
  350. Parent = EffectPart,
  351. }
  352. local TextLabel = Create("TextLabel"){
  353. BackgroundTransparency = 1,
  354. Size = UDim2.new(1, 0, 1, 0),
  355. Text = Text,
  356. Font = "Highway",
  357. TextColor3 = Color,
  358. TextScaled = true,
  359. Parent = BillboardGui,
  360. }
  361. game.Debris:AddItem(EffectPart, (Time))
  362. EffectPart.Parent = game:GetService("Workspace")
  363. delay(0, function()
  364. local Frames = (Time / Rate)
  365. for Frame = 1, Frames do
  366. wait(Rate)
  367. local Percent = (Frame / Frames)
  368. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  369. TextLabel.TextTransparency = Percent
  370. end
  371. if EffectPart and EffectPart.Parent then
  372. EffectPart:Destroy()
  373. end
  374. end)
  375. end
  376. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  377. for _, c in pairs(workspace:children()) do
  378. local hum = c:findFirstChild("Humanoid")
  379. if hum ~= nil then
  380. local head = c:findFirstChild("Torso") or c:findFirstChild("UpperTorso") or c:FindFirstChild('LowerTorso')
  381. if head ~= nil then
  382. local targ = head.Position - Part.Position
  383. local mag = targ.magnitude
  384. if mag <= Magnitude and c.Name ~= plr.Name then
  385. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, root, .1, "rbxassetid://" .. HitSound, HitPitch)
  386. end
  387. end
  388. end
  389. end
  390. end
  391. CFuncs = {
  392. Part = {
  393. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  394. local Part = Create("Part")({
  395. Parent = Parent,
  396. Reflectance = Reflectance,
  397. Transparency = Transparency,
  398. CanCollide = false,
  399. Locked = true,
  400. BrickColor = BrickColor.new(tostring(BColor)),
  401. Name = Name,
  402. Size = Size,
  403. Material = Material
  404. })
  405. RemoveOutlines(Part)
  406. return Part
  407. end
  408. },
  409. Mesh = {
  410. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  411. local Msh = Create(Mesh)({
  412. Parent = Part,
  413. Offset = OffSet,
  414. Scale = Scale
  415. })
  416. if Mesh == "SpecialMesh" then
  417. Msh.MeshType = MeshType
  418. Msh.MeshId = MeshId
  419. end
  420. return Msh
  421. end
  422. },
  423. Mesh = {
  424. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  425. local Msh = Create(Mesh)({
  426. Parent = Part,
  427. Offset = OffSet,
  428. Scale = Scale
  429. })
  430. if Mesh == "SpecialMesh" then
  431. Msh.MeshType = MeshType
  432. Msh.MeshId = MeshId
  433. end
  434. return Msh
  435. end
  436. },
  437. Weld = {
  438. Create = function(Parent, Part0, Part1, C0, C1)
  439. local Weld = Create("Weld")({
  440. Parent = Parent,
  441. Part0 = Part0,
  442. Part1 = Part1,
  443. C0 = C0,
  444. C1 = C1
  445. })
  446. return Weld
  447. end
  448. },
  449. Sound = {
  450. Create = function(id, par, vol, pit)
  451. coroutine.resume(coroutine.create(function()
  452. local S = Create("Sound")({
  453. Volume = vol,
  454. Pitch = pit or 1,
  455. SoundId = id,
  456. Parent = par or workspace
  457. })
  458. wait()
  459. S:play()
  460. game:GetService("Debris"):AddItem(S, 6)
  461. end))
  462. end
  463. },
  464. ParticleEmitter = {
  465. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  466. local fp = Create("ParticleEmitter")({
  467. Parent = Parent,
  468. Color = ColorSequence.new(Color1, Color2),
  469. LightEmission = LightEmission,
  470. Size = Size,
  471. Texture = Texture,
  472. Transparency = Transparency,
  473. ZOffset = ZOffset,
  474. Acceleration = Accel,
  475. Drag = Drag,
  476. LockedToPart = LockedToPart,
  477. VelocityInheritance = VelocityInheritance,
  478. EmissionDirection = EmissionDirection,
  479. Enabled = Enabled,
  480. Lifetime = LifeTime,
  481. Rate = Rate,
  482. Rotation = Rotation,
  483. RotSpeed = RotSpeed,
  484. Speed = Speed,
  485. VelocitySpread = VelocitySpread
  486. })
  487. return fp
  488. end
  489. }
  490. }
  491. function RemoveOutlines(part)
  492. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  493. end
  494. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  495. local Part = Create("Part")({
  496. formFactor = FormFactor,
  497. Parent = Parent,
  498. Reflectance = Reflectance,
  499. Transparency = Transparency,
  500. CanCollide = false,
  501. Locked = true,
  502. BrickColor = BrickColor.new(tostring(BColor)),
  503. Name = Name,
  504. Size = Size,
  505. Material = Material
  506. })
  507. RemoveOutlines(Part)
  508. return Part
  509. end
  510. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  511. local Msh = Create(Mesh)({
  512. Parent = Part,
  513. Offset = OffSet,
  514. Scale = Scale
  515. })
  516. if Mesh == "SpecialMesh" then
  517. Msh.MeshType = MeshType
  518. Msh.MeshId = MeshId
  519. end
  520. return Msh
  521. end
  522. function CreateWeld(Parent, Part0, Part1, C0, C1)
  523. local Weld = Create("Weld")({
  524. Parent = Parent,
  525. Part0 = Part0,
  526. Part1 = Part1,
  527. C0 = C0,
  528. C1 = C1
  529. })
  530. return Weld
  531. end
  532. EffectModel = Instance.new("Model", char)
  533. Effects = {
  534. Block = {
  535. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  536. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  537. prt.Anchored = true
  538. prt.CFrame = cframe
  539. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  540. game:GetService("Debris"):AddItem(prt, 10)
  541. if Type == 1 or Type == nil then
  542. table.insert(Effects, {
  543. prt,
  544. "Block1",
  545. delay,
  546. x3,
  547. y3,
  548. z3,
  549. msh
  550. })
  551. elseif Type == 2 then
  552. table.insert(Effects, {
  553. prt,
  554. "Block2",
  555. delay,
  556. x3,
  557. y3,
  558. z3,
  559. msh
  560. })
  561. else
  562. table.insert(Effects, {
  563. prt,
  564. "Block3",
  565. delay,
  566. x3,
  567. y3,
  568. z3,
  569. msh
  570. })
  571. end
  572. end
  573. },
  574. Sphere = {
  575. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  576. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  577. prt.Anchored = true
  578. prt.CFrame = cframe
  579. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  580. game:GetService("Debris"):AddItem(prt, 10)
  581. table.insert(Effects, {
  582. prt,
  583. "Cylinder",
  584. delay,
  585. x3,
  586. y3,
  587. z3,
  588. msh
  589. })
  590. end
  591. },
  592. Cylinder = {
  593. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  594. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  595. prt.Anchored = true
  596. prt.CFrame = cframe
  597. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  598. game:GetService("Debris"):AddItem(prt, 10)
  599. table.insert(Effects, {
  600. prt,
  601. "Cylinder",
  602. delay,
  603. x3,
  604. y3,
  605. z3,
  606. msh
  607. })
  608. end
  609. },
  610. Wave = {
  611. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  612. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  613. prt.Anchored = true
  614. prt.CFrame = cframe
  615. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  616. game:GetService("Debris"):AddItem(prt, 10)
  617. table.insert(Effects, {
  618. prt,
  619. "Cylinder",
  620. delay,
  621. x3 / 60,
  622. y3 / 60,
  623. z3 / 60,
  624. msh
  625. })
  626. end
  627. },
  628. Ring = {
  629. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  630. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  631. prt.Anchored = true
  632. prt.CFrame = cframe
  633. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  634. game:GetService("Debris"):AddItem(prt, 10)
  635. table.insert(Effects, {
  636. prt,
  637. "Cylinder",
  638. delay,
  639. x3,
  640. y3,
  641. z3,
  642. msh
  643. })
  644. end
  645. },
  646. Break = {
  647. Create = function(brickcolor, cframe, x1, y1, z1)
  648. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  649. prt.Anchored = true
  650. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  651. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  652. local num = math.random(10, 50) / 1000
  653. game:GetService("Debris"):AddItem(prt, 10)
  654. table.insert(Effects, {
  655. prt,
  656. "Shatter",
  657. num,
  658. prt.CFrame,
  659. math.random() - math.random(),
  660. 0,
  661. math.random(50, 100) / 100
  662. })
  663. end
  664. }
  665. }
  666. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  667. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  668. prt.Anchored = true
  669. prt.CFrame = cframe
  670. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  671. game:GetService("Debris"):AddItem(prt, 10)
  672. if Type == 1 or Type == nil then
  673. table.insert(Effects, {
  674. prt,
  675. "Block1",
  676. delay,
  677. x3,
  678. y3,
  679. z3,
  680. msh
  681. })
  682. elseif Type == 2 then
  683. table.insert(Effects, {
  684. prt,
  685. "Block2",
  686. delay,
  687. x3,
  688. y3,
  689. z3,
  690. msh
  691. })
  692. elseif Type == 3 then
  693. table.insert(Effects, {
  694. prt,
  695. "Block3",
  696. delay,
  697. x3,
  698. y3,
  699. z3,
  700. msh
  701. })
  702. end
  703. end
  704. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  705. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  706. prt.Anchored = true
  707. prt.CFrame = cframe
  708. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  709. game:GetService("Debris"):AddItem(prt, 10)
  710. table.insert(Effects, {
  711. prt,
  712. "Cylinder",
  713. delay,
  714. x3,
  715. y3,
  716. z3,
  717. msh
  718. })
  719. end
  720. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  721. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  722. prt.Anchored = true
  723. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  724. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  725. game:GetService("Debris"):AddItem(prt, 10)
  726. table.insert(Effects, {
  727. prt,
  728. "Cylinder",
  729. delay,
  730. x3,
  731. y3,
  732. z3,
  733. msh
  734. })
  735. end
  736. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  737. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  738. prt.Anchored = true
  739. prt.CFrame = cframe
  740. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  741. game:GetService("Debris"):AddItem(prt, 10)
  742. table.insert(Effects, {
  743. prt,
  744. "Cylinder",
  745. delay,
  746. x3,
  747. y3,
  748. z3,
  749. msh
  750. })
  751. end
  752. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  753. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  754. prt.Anchored = true
  755. prt.CFrame = cframe
  756. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  757. game:GetService("Debris"):AddItem(prt, 10)
  758. table.insert(Effects, {
  759. prt,
  760. "Cylinder",
  761. delay,
  762. x3,
  763. y3,
  764. z3,
  765. msh
  766. })
  767. end
  768. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  769. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  770. prt.Anchored = true
  771. prt.CFrame = cframe
  772. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  773. game:GetService("Debris"):AddItem(prt, 10)
  774. table.insert(Effects, {
  775. prt,
  776. "Cylinder",
  777. delay,
  778. x3,
  779. y3,
  780. z3,
  781. msh
  782. })
  783. end
  784. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  785. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  786. prt.Anchored = true
  787. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  788. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  789. local num = math.random(10, 50) / 1000
  790. game:GetService("Debris"):AddItem(prt, 10)
  791. table.insert(Effects, {
  792. prt,
  793. "Shatter",
  794. num,
  795. prt.CFrame,
  796. math.random() - math.random(),
  797. 0,
  798. math.random(50, 100) / 100
  799. })
  800. end
  801. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  802. local fp=Instance.new("Part")
  803. fp.formFactor=formfactor
  804. fp.Parent=parent
  805. fp.Reflectance=reflectance
  806. fp.Transparency=transparency
  807. fp.CanCollide=false
  808. fp.Locked=true
  809. fp.BrickColor=brickcolor
  810. fp.Name=name
  811. fp.Size=size
  812. fp.Position=tors.Position
  813. RemoveOutlines(fp)
  814. fp.Material="SmoothPlastic"
  815. fp:BreakJoints()
  816. return fp
  817. end
  818.  
  819. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  820. local mesh=Instance.new(Mesh)
  821. mesh.Parent=part
  822. if Mesh=="SpecialMesh" then
  823. mesh.MeshType=meshtype
  824. if meshid~="nil" then
  825. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  826. end
  827. end
  828. mesh.Offset=offset
  829. mesh.Scale=scale
  830. return mesh
  831. end
  832. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  833. local prt=part(3,char,0,0,brickcolor,"Effect",Vector3.new(0.5,0.5,0.5))
  834. prt.Anchored=true
  835. prt.Material = "Neon"
  836. prt.CFrame=cframe
  837. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  838. msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  839. game:GetService("Debris"):AddItem(prt,5)
  840. coroutine.resume(coroutine.create(function(Part,Mesh)
  841. for i=0,1,delay do
  842. swait()
  843. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  844. Part.Transparency=i
  845. Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
  846. end
  847. Part.Parent=nil
  848. end),prt,msh)
  849. end
  850. function MagicShockTrailAlt2(origcolor2,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  851. local prt=part(3,char,0,0,origcolor2,"Effect",Vector3.new(0.5,0.5,0.5))
  852. prt.Anchored=true
  853. prt.Material = "Neon"
  854. prt.CFrame=cframe
  855. msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
  856. game:GetService("Debris"):AddItem(prt,5)
  857. coroutine.resume(coroutine.create(function(Part,Mesh)
  858. local rtype = rottype
  859. for i=0,1,delay do
  860. swait()
  861. if rtype == 1 then
  862. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  863. elseif rtype == 2 then
  864. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  865. end
  866. prt.Transparency=i
  867. Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
  868. end
  869. Part.Parent=nil
  870. end),prt,msh)
  871. end
  872.  
  873. --[[
  874. Thanks for using Build-To-Lua by jarredbcv.
  875. ]]--
  876.  
  877. New = function(Object, Parent, Name, Data)
  878. local Object = Instance.new(Object)
  879. for Index, Value in pairs(Data or {}) do
  880. Object[Index] = Value
  881. end
  882. Object.Parent = Parent
  883. Object.Name = Name
  884. return Object
  885. end
  886.  
  887. RubiksCube = New("Model",char,"RubiksCube",{})
  888. Handle = New("Part",RubiksCube,"Handle",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.19135904, 1.19135904, 1.19135904),CFrame = CFrame.new(98.4000549, 0.595682025, 171.196167, 1, 0, 0, 0, 1, 0, 0, 0, 1),TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  889. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029755, 1.17155194, 171.196136, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
  890. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  891. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(-0.397079468, 0.575869918, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  892. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.595685005, 170.799026, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
  893. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  894. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, 2.98023224e-06, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  895. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.992842019, 171.196136, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
  896. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  897. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, 0.397159994, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  898. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.992842019, 170.799026, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
  899. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  900. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, 0.397159994, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  901. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029602, 1.17155194, 170.799026, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
  902. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  903. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(-0.397094727, 0.575869918, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  904. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029755, 1.17155194, 171.593292, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
  905. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  906. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(-0.397079468, 0.575869918, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  907. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029907, 0.198476017, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
  908. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  909. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.397064209, -0.397206008, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  910. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029907, 0.595668972, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
  911. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  912. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.397064209, -1.30534172e-05, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  913. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.198473006, 170.799026, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
  914. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  915. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, -0.397209018, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  916. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029907, 0.992832005, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
  917. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  918. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.397064209, 0.39714998, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  919. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.595685005, 171.196136, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
  920. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  921. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, 2.98023224e-06, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  922. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 1.17155194, 171.593292, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
  923. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  924. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(3.05175781e-05, 0.575869918, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  925. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 1.17155194, 171.196136, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
  926. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  927. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(3.05175781e-05, 0.575869918, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  928. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.198473006, 171.196136, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
  929. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  930. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, -0.397209018, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  931. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 0.198476017, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
  932. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  933. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.397109985, -0.397206008, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  934. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.992842019, 171.593292, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
  935. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  936. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, 0.397159994, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  937. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 1.17155194, 170.799026, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
  938. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  939. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(3.05175781e-05, 0.575869918, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  940. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 0.198477983, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
  941. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  942. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.05175781e-05, -0.397204041, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  943. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 0.595668972, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
  944. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  945. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.05175781e-05, -1.30534172e-05, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  946. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 0.992810011, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
  947. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  948. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.05175781e-05, 0.397127986, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  949. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.595685005, 171.593292, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
  950. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  951. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, 2.98023224e-06, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  952. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029907, 0.992810011, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
  953. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  954. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.397064209, 0.397127986, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  955. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 1.17155194, 171.196136, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
  956. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  957. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(0.397109985, 0.575869918, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  958. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 1.17155194, 171.593292, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
  959. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  960. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(0.397109985, 0.575869918, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  961. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.198473006, 171.593292, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
  962. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  963. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, -0.397209018, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  964. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029907, 0.595668972, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
  965. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  966. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.397064209, -1.30534172e-05, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  967. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 0.992811978, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
  968. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  969. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.05175781e-05, 0.397129953, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  970. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 0.595668972, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
  971. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  972. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.397109985, -1.30534172e-05, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  973. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 0.198476017, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
  974. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  975. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.397109985, -0.397206008, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  976. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.198473006, 171.196136, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
  977. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  978. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, -0.397209018, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  979. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.992842019, 171.593292, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
  980. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  981. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, 0.397159994, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  982. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 1.17155194, 170.799026, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
  983. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  984. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(0.397109985, 0.575869918, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  985. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 0.992810011, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
  986. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  987. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.397109985, 0.397127986, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  988. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 0.992810011, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
  989. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  990. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.397109985, 0.397127986, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  991. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029907, 0.198476017, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
  992. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  993. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.397064209, -0.397206008, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  994. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 0.595668972, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
  995. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  996. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.05175781e-05, -1.30534172e-05, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  997. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.595685005, 171.196136, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
  998. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  999. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, 2.98023224e-06, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  1000. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.595685005, 170.799026, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
  1001. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  1002. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, 2.98023224e-06, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  1003. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.595685005, 171.593292, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
  1004. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  1005. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, 2.98023224e-06, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  1006. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.992842019, 171.196136, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
  1007. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  1008. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, 0.397159994, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  1009. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.198473006, 170.799026, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
  1010. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  1011. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, -0.397209018, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  1012. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 0.198476017, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
  1013. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  1014. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.05175781e-05, -0.397206008, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  1015. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 0.595668972, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
  1016. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  1017. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.397109985, -1.30534172e-05, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  1018. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.992842019, 170.799026, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
  1019. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  1020. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, 0.397159994, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  1021. Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.198473006, 171.593292, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
  1022. Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
  1023. mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, -0.397209018, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  1024. local NewInstance = function(instance,parent,properties)
  1025. local inst = Instance.new(instance,parent)
  1026. if(properties)then
  1027. for i,v in next, properties do
  1028. pcall(function() inst[i] = v end)
  1029. end
  1030. end
  1031. return inst;
  1032. end
  1033. local HW = NewInstance('Weld',char,{Part0=tors,Part1=Handle,C0 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-65),0,math.rad(-90))})
  1034.  
  1035. function intro()
  1036. attack = true
  1037. for i = 0,2,0.1 do
  1038. swait()
  1039. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(55)),.3)
  1040. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-65)),.3)
  1041. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(76)), 0.3)
  1042. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1043. end
  1044. end
  1045.  
  1046.  
  1047. local idle=0
  1048. local sine = 0
  1049. local change = 1
  1050. local val = 0
  1051. toim = 0
  1052. hum.Animator.Parent = nil
  1053. idleanim=.4
  1054. while true do
  1055. swait()
  1056. sine = sine + change
  1057. local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude
  1058. local velderp=root.Velocity.y
  1059. hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char)
  1060. if equipped==true or equipped==false then
  1061. if attack==false then
  1062. idle=idle+1
  1063. else
  1064. idle=0
  1065. end
  1066. if root.Velocity.y > 1 and hitfloor==nil then
  1067. Anim="Jump"
  1068. if attack==false then
  1069. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1070. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1071. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3)
  1072. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1073. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1074. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1075. end
  1076. elseif root.Velocity.y < -1 and hitfloor==nil then
  1077. Anim="Fall"
  1078. if attack==false then
  1079. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  1080. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
  1081. rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1082. tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
  1083. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3)
  1084. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1085. end
  1086. elseif torvel<1 and hitfloor~=nil then
  1087. Anim="Idle"
  1088. change = 2
  1089.  
  1090. if attack==false then
  1091. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
  1092. tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(25),math.rad(0),math.rad(0)),.3)
  1093. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0)*angles(math.rad(-2.5),math.rad(90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15)
  1094. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0)*angles(math.rad(-2.5),math.rad(-90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15)
  1095. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(65 - 1), math.rad(-7), math.rad(-35)), 0.3)
  1096. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(90 - 1), math.rad(-7), math.rad(55)), 0.1)
  1097. HW.C0=euler(0,2.57*math.cos(sine/60)/1,0)*cf(0,2.1+1.7,0)* angles(math.rad(55 - 1), math.rad(-7), math.rad(55), 0.1)
  1098. end
  1099.  
  1100. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1101. Anim="Walk"
  1102. change = 1
  1103. if attack==false then
  1104. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
  1105. tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1106. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 7), math.rad(0), math.rad(5)), 0.3)
  1107. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40) * math.cos(sine / 7), math.rad(0), math.rad(-5)), 0.3)
  1108. RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1.5,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1109. LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1110. HW.C0=euler(0,2.57*math.cos(sine/60)/1,0)*cf(0,2.1+1.7,0)* angles(math.rad(55 - 1), math.rad(-7), math.rad(55*math.cos(sine/60)), 0.1)
  1111. end
  1112. elseif torvel>=22 and hitfloor~=nil then
  1113. Anim="Run"
  1114. change = 2
  1115. rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(25),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
  1116. tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1117. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(55), math.rad(-55), math.rad(90)), 0.3)
  1118. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 60),-0.65)*angles(math.rad(40),math.rad(0),math.rad(90 + 2.5)),.3)
  1119. RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/1)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1120. LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/1)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
  1121. HW.C0=clerp(HW.C0,cf(0,-1,0)*angles(math.rad(-65),math.rad(0),math.rad(-90)),0.15)
  1122.  
  1123. end
  1124. end
  1125. if 0 < #Effects then
  1126. for e = 1, #Effects do
  1127. if Effects[e] ~= nil then
  1128. local Thing = Effects[e]
  1129. if Thing ~= nil then
  1130. local Part = Thing[1]
  1131. local Mode = Thing[2]
  1132. local Delay = Thing[3]
  1133. local IncX = Thing[4]
  1134. local IncY = Thing[5]
  1135. local IncZ = Thing[6]
  1136. if 1 >= Thing[1].Transparency then
  1137. if Thing[2] == "Block1" then
  1138. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1139. local Mesh = Thing[1].Mesh
  1140. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1141. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1142. elseif Thing[2] == "Block2" then
  1143. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1144. local Mesh = Thing[7]
  1145. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1146. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1147. elseif Thing[2] == "Block3" then
  1148. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1149. local Mesh = Thing[7]
  1150. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1151. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1152. elseif Thing[2] == "Cylinder" then
  1153. local Mesh = Thing[1].Mesh
  1154. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1155. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1156. elseif Thing[2] == "Blood" then
  1157. local Mesh = Thing[7]
  1158. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1159. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1160. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1161. elseif Thing[2] == "Elec" then
  1162. local Mesh = Thing[1].Mesh
  1163. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1164. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1165. elseif Thing[2] == "Disappear" then
  1166. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1167. elseif Thing[2] == "Shatter" then
  1168. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1169. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1170. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1171. Thing[6] = Thing[6] + Thing[5]
  1172. end
  1173. else
  1174. Part.Parent = nil
  1175. table.remove(Effects, e)
  1176. end
  1177. end
  1178. end
  1179. end
  1180. end
  1181. end
Add Comment
Please, Sign In to add comment