SCR1PT_ED1T0R

FE Rubiks Cube

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