Okkkkk

FE PRIVATE SCRIPT, DONT YOU DARE LEAK IT!

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