Advertisement
cat568

Untitled

Feb 8th, 2019
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 214.04 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Model1 = Instance.new("Model")
  21. Folder2 = Instance.new("Folder")
  22. Part3 = Instance.new("Part")
  23. SurfaceGui4 = Instance.new("SurfaceGui")
  24. Frame5 = Instance.new("Frame")
  25. Model6 = Instance.new("Model")
  26. MeshPart7 = Instance.new("MeshPart")
  27. Sound8 = Instance.new("Sound")
  28. Sound9 = Instance.new("Sound")
  29. Sound10 = Instance.new("Sound")
  30. PointLight11 = Instance.new("PointLight")
  31. Sound12 = Instance.new("Sound")
  32. Part13 = Instance.new("Part")
  33. Script14 = Instance.new("Script")
  34. Model15 = Instance.new("Model")
  35. Folder16 = Instance.new("Folder")
  36. Part17 = Instance.new("Part")
  37. SurfaceGui18 = Instance.new("SurfaceGui")
  38. Frame19 = Instance.new("Frame")
  39. Model20 = Instance.new("Model")
  40. MeshPart21 = Instance.new("MeshPart")
  41. Sound22 = Instance.new("Sound")
  42. Sound23 = Instance.new("Sound")
  43. Sound24 = Instance.new("Sound")
  44. PointLight25 = Instance.new("PointLight")
  45. Sound26 = Instance.new("Sound")
  46. Part27 = Instance.new("Part")
  47. Script28 = Instance.new("Script")
  48. Model29 = Instance.new("Model")
  49. Folder30 = Instance.new("Folder")
  50. Part31 = Instance.new("Part")
  51. SurfaceGui32 = Instance.new("SurfaceGui")
  52. Frame33 = Instance.new("Frame")
  53. Model34 = Instance.new("Model")
  54. MeshPart35 = Instance.new("MeshPart")
  55. Sound36 = Instance.new("Sound")
  56. Sound37 = Instance.new("Sound")
  57. Sound38 = Instance.new("Sound")
  58. PointLight39 = Instance.new("PointLight")
  59. Sound40 = Instance.new("Sound")
  60. Part41 = Instance.new("Part")
  61. Script42 = Instance.new("Script")
  62. Model43 = Instance.new("Model")
  63. Folder44 = Instance.new("Folder")
  64. Part45 = Instance.new("Part")
  65. SurfaceGui46 = Instance.new("SurfaceGui")
  66. Frame47 = Instance.new("Frame")
  67. Model48 = Instance.new("Model")
  68. MeshPart49 = Instance.new("MeshPart")
  69. Sound50 = Instance.new("Sound")
  70. Sound51 = Instance.new("Sound")
  71. Sound52 = Instance.new("Sound")
  72. PointLight53 = Instance.new("PointLight")
  73. Sound54 = Instance.new("Sound")
  74. Part55 = Instance.new("Part")
  75. Script56 = Instance.new("Script")
  76. Model57 = Instance.new("Model")
  77. Folder58 = Instance.new("Folder")
  78. Part59 = Instance.new("Part")
  79. SurfaceGui60 = Instance.new("SurfaceGui")
  80. Frame61 = Instance.new("Frame")
  81. Model62 = Instance.new("Model")
  82. MeshPart63 = Instance.new("MeshPart")
  83. Sound64 = Instance.new("Sound")
  84. Sound65 = Instance.new("Sound")
  85. Sound66 = Instance.new("Sound")
  86. PointLight67 = Instance.new("PointLight")
  87. Sound68 = Instance.new("Sound")
  88. Part69 = Instance.new("Part")
  89. Script70 = Instance.new("Script")
  90. Model71 = Instance.new("Model")
  91. Folder72 = Instance.new("Folder")
  92. Part73 = Instance.new("Part")
  93. SurfaceGui74 = Instance.new("SurfaceGui")
  94. Frame75 = Instance.new("Frame")
  95. Model76 = Instance.new("Model")
  96. MeshPart77 = Instance.new("MeshPart")
  97. Sound78 = Instance.new("Sound")
  98. Sound79 = Instance.new("Sound")
  99. Sound80 = Instance.new("Sound")
  100. PointLight81 = Instance.new("PointLight")
  101. Sound82 = Instance.new("Sound")
  102. Part83 = Instance.new("Part")
  103. Script84 = Instance.new("Script")
  104. Model85 = Instance.new("Model")
  105. Folder86 = Instance.new("Folder")
  106. Part87 = Instance.new("Part")
  107. SurfaceGui88 = Instance.new("SurfaceGui")
  108. Frame89 = Instance.new("Frame")
  109. Model90 = Instance.new("Model")
  110. MeshPart91 = Instance.new("MeshPart")
  111. Sound92 = Instance.new("Sound")
  112. Sound93 = Instance.new("Sound")
  113. Sound94 = Instance.new("Sound")
  114. PointLight95 = Instance.new("PointLight")
  115. Sound96 = Instance.new("Sound")
  116. Part97 = Instance.new("Part")
  117. Script98 = Instance.new("Script")
  118. Model99 = Instance.new("Model")
  119. Folder100 = Instance.new("Folder")
  120. Part101 = Instance.new("Part")
  121. SurfaceGui102 = Instance.new("SurfaceGui")
  122. Frame103 = Instance.new("Frame")
  123. Model104 = Instance.new("Model")
  124. MeshPart105 = Instance.new("MeshPart")
  125. Sound106 = Instance.new("Sound")
  126. Sound107 = Instance.new("Sound")
  127. Sound108 = Instance.new("Sound")
  128. PointLight109 = Instance.new("PointLight")
  129. Sound110 = Instance.new("Sound")
  130. Part111 = Instance.new("Part")
  131. Script112 = Instance.new("Script")
  132. Model113 = Instance.new("Model")
  133. Folder114 = Instance.new("Folder")
  134. Part115 = Instance.new("Part")
  135. SurfaceGui116 = Instance.new("SurfaceGui")
  136. Frame117 = Instance.new("Frame")
  137. Model118 = Instance.new("Model")
  138. MeshPart119 = Instance.new("MeshPart")
  139. Sound120 = Instance.new("Sound")
  140. Sound121 = Instance.new("Sound")
  141. Sound122 = Instance.new("Sound")
  142. PointLight123 = Instance.new("PointLight")
  143. Sound124 = Instance.new("Sound")
  144. Part125 = Instance.new("Part")
  145. Script126 = Instance.new("Script")
  146. Model127 = Instance.new("Model")
  147. Folder128 = Instance.new("Folder")
  148. Part129 = Instance.new("Part")
  149. SurfaceGui130 = Instance.new("SurfaceGui")
  150. Frame131 = Instance.new("Frame")
  151. Model132 = Instance.new("Model")
  152. MeshPart133 = Instance.new("MeshPart")
  153. Sound134 = Instance.new("Sound")
  154. Sound135 = Instance.new("Sound")
  155. Sound136 = Instance.new("Sound")
  156. PointLight137 = Instance.new("PointLight")
  157. Sound138 = Instance.new("Sound")
  158. Part139 = Instance.new("Part")
  159. Script140 = Instance.new("Script")
  160. Model141 = Instance.new("Model")
  161. Folder142 = Instance.new("Folder")
  162. Part143 = Instance.new("Part")
  163. SurfaceGui144 = Instance.new("SurfaceGui")
  164. Frame145 = Instance.new("Frame")
  165. Model146 = Instance.new("Model")
  166. MeshPart147 = Instance.new("MeshPart")
  167. Sound148 = Instance.new("Sound")
  168. Sound149 = Instance.new("Sound")
  169. Sound150 = Instance.new("Sound")
  170. PointLight151 = Instance.new("PointLight")
  171. Sound152 = Instance.new("Sound")
  172. Part153 = Instance.new("Part")
  173. Script154 = Instance.new("Script")
  174. Model155 = Instance.new("Model")
  175. Folder156 = Instance.new("Folder")
  176. Part157 = Instance.new("Part")
  177. SurfaceGui158 = Instance.new("SurfaceGui")
  178. Frame159 = Instance.new("Frame")
  179. Model160 = Instance.new("Model")
  180. MeshPart161 = Instance.new("MeshPart")
  181. Sound162 = Instance.new("Sound")
  182. Sound163 = Instance.new("Sound")
  183. Sound164 = Instance.new("Sound")
  184. PointLight165 = Instance.new("PointLight")
  185. Sound166 = Instance.new("Sound")
  186. Part167 = Instance.new("Part")
  187. Script168 = Instance.new("Script")
  188. Model169 = Instance.new("Model")
  189. Folder170 = Instance.new("Folder")
  190. Part171 = Instance.new("Part")
  191. SurfaceGui172 = Instance.new("SurfaceGui")
  192. Frame173 = Instance.new("Frame")
  193. Model174 = Instance.new("Model")
  194. MeshPart175 = Instance.new("MeshPart")
  195. Sound176 = Instance.new("Sound")
  196. Sound177 = Instance.new("Sound")
  197. Sound178 = Instance.new("Sound")
  198. PointLight179 = Instance.new("PointLight")
  199. Sound180 = Instance.new("Sound")
  200. Part181 = Instance.new("Part")
  201. Script182 = Instance.new("Script")
  202. Model183 = Instance.new("Model")
  203. Folder184 = Instance.new("Folder")
  204. Part185 = Instance.new("Part")
  205. SurfaceGui186 = Instance.new("SurfaceGui")
  206. Frame187 = Instance.new("Frame")
  207. Model188 = Instance.new("Model")
  208. MeshPart189 = Instance.new("MeshPart")
  209. Sound190 = Instance.new("Sound")
  210. Sound191 = Instance.new("Sound")
  211. Sound192 = Instance.new("Sound")
  212. PointLight193 = Instance.new("PointLight")
  213. Sound194 = Instance.new("Sound")
  214. Part195 = Instance.new("Part")
  215. Script196 = Instance.new("Script")
  216. Model197 = Instance.new("Model")
  217. Folder198 = Instance.new("Folder")
  218. Part199 = Instance.new("Part")
  219. SurfaceGui200 = Instance.new("SurfaceGui")
  220. Frame201 = Instance.new("Frame")
  221. Model202 = Instance.new("Model")
  222. MeshPart203 = Instance.new("MeshPart")
  223. Sound204 = Instance.new("Sound")
  224. Sound205 = Instance.new("Sound")
  225. Sound206 = Instance.new("Sound")
  226. PointLight207 = Instance.new("PointLight")
  227. Sound208 = Instance.new("Sound")
  228. Part209 = Instance.new("Part")
  229. Script210 = Instance.new("Script")
  230. Model211 = Instance.new("Model")
  231. Folder212 = Instance.new("Folder")
  232. Part213 = Instance.new("Part")
  233. SurfaceGui214 = Instance.new("SurfaceGui")
  234. Frame215 = Instance.new("Frame")
  235. Model216 = Instance.new("Model")
  236. MeshPart217 = Instance.new("MeshPart")
  237. Sound218 = Instance.new("Sound")
  238. Sound219 = Instance.new("Sound")
  239. Sound220 = Instance.new("Sound")
  240. PointLight221 = Instance.new("PointLight")
  241. Sound222 = Instance.new("Sound")
  242. Part223 = Instance.new("Part")
  243. Script224 = Instance.new("Script")
  244. Model225 = Instance.new("Model")
  245. Folder226 = Instance.new("Folder")
  246. Part227 = Instance.new("Part")
  247. SurfaceGui228 = Instance.new("SurfaceGui")
  248. Frame229 = Instance.new("Frame")
  249. Model230 = Instance.new("Model")
  250. MeshPart231 = Instance.new("MeshPart")
  251. Sound232 = Instance.new("Sound")
  252. Sound233 = Instance.new("Sound")
  253. Sound234 = Instance.new("Sound")
  254. PointLight235 = Instance.new("PointLight")
  255. Sound236 = Instance.new("Sound")
  256. Part237 = Instance.new("Part")
  257. Script238 = Instance.new("Script")
  258. Model239 = Instance.new("Model")
  259. Folder240 = Instance.new("Folder")
  260. Part241 = Instance.new("Part")
  261. SurfaceGui242 = Instance.new("SurfaceGui")
  262. Frame243 = Instance.new("Frame")
  263. Model244 = Instance.new("Model")
  264. MeshPart245 = Instance.new("MeshPart")
  265. Sound246 = Instance.new("Sound")
  266. Sound247 = Instance.new("Sound")
  267. Sound248 = Instance.new("Sound")
  268. PointLight249 = Instance.new("PointLight")
  269. Sound250 = Instance.new("Sound")
  270. Part251 = Instance.new("Part")
  271. Script252 = Instance.new("Script")
  272. Model253 = Instance.new("Model")
  273. Folder254 = Instance.new("Folder")
  274. Part255 = Instance.new("Part")
  275. SurfaceGui256 = Instance.new("SurfaceGui")
  276. Frame257 = Instance.new("Frame")
  277. Model258 = Instance.new("Model")
  278. MeshPart259 = Instance.new("MeshPart")
  279. Sound260 = Instance.new("Sound")
  280. Sound261 = Instance.new("Sound")
  281. Sound262 = Instance.new("Sound")
  282. PointLight263 = Instance.new("PointLight")
  283. Sound264 = Instance.new("Sound")
  284. Part265 = Instance.new("Part")
  285. Script266 = Instance.new("Script")
  286. Model267 = Instance.new("Model")
  287. Folder268 = Instance.new("Folder")
  288. Part269 = Instance.new("Part")
  289. SurfaceGui270 = Instance.new("SurfaceGui")
  290. Frame271 = Instance.new("Frame")
  291. Model272 = Instance.new("Model")
  292. MeshPart273 = Instance.new("MeshPart")
  293. Sound274 = Instance.new("Sound")
  294. Sound275 = Instance.new("Sound")
  295. Sound276 = Instance.new("Sound")
  296. PointLight277 = Instance.new("PointLight")
  297. Sound278 = Instance.new("Sound")
  298. Part279 = Instance.new("Part")
  299. Script280 = Instance.new("Script")
  300. Model281 = Instance.new("Model")
  301. Folder282 = Instance.new("Folder")
  302. Part283 = Instance.new("Part")
  303. SurfaceGui284 = Instance.new("SurfaceGui")
  304. Frame285 = Instance.new("Frame")
  305. Model286 = Instance.new("Model")
  306. MeshPart287 = Instance.new("MeshPart")
  307. Sound288 = Instance.new("Sound")
  308. Sound289 = Instance.new("Sound")
  309. Sound290 = Instance.new("Sound")
  310. PointLight291 = Instance.new("PointLight")
  311. Sound292 = Instance.new("Sound")
  312. Part293 = Instance.new("Part")
  313. Script294 = Instance.new("Script")
  314. Model295 = Instance.new("Model")
  315. Folder296 = Instance.new("Folder")
  316. Part297 = Instance.new("Part")
  317. SurfaceGui298 = Instance.new("SurfaceGui")
  318. Frame299 = Instance.new("Frame")
  319. Model300 = Instance.new("Model")
  320. MeshPart301 = Instance.new("MeshPart")
  321. Sound302 = Instance.new("Sound")
  322. Sound303 = Instance.new("Sound")
  323. Sound304 = Instance.new("Sound")
  324. PointLight305 = Instance.new("PointLight")
  325. Sound306 = Instance.new("Sound")
  326. Part307 = Instance.new("Part")
  327. Script308 = Instance.new("Script")
  328. Model309 = Instance.new("Model")
  329. Folder310 = Instance.new("Folder")
  330. Part311 = Instance.new("Part")
  331. SurfaceGui312 = Instance.new("SurfaceGui")
  332. Frame313 = Instance.new("Frame")
  333. Model314 = Instance.new("Model")
  334. MeshPart315 = Instance.new("MeshPart")
  335. Sound316 = Instance.new("Sound")
  336. Sound317 = Instance.new("Sound")
  337. Sound318 = Instance.new("Sound")
  338. PointLight319 = Instance.new("PointLight")
  339. Sound320 = Instance.new("Sound")
  340. Part321 = Instance.new("Part")
  341. Script322 = Instance.new("Script")
  342. Model323 = Instance.new("Model")
  343. Folder324 = Instance.new("Folder")
  344. Part325 = Instance.new("Part")
  345. SurfaceGui326 = Instance.new("SurfaceGui")
  346. Frame327 = Instance.new("Frame")
  347. Model328 = Instance.new("Model")
  348. MeshPart329 = Instance.new("MeshPart")
  349. Sound330 = Instance.new("Sound")
  350. Sound331 = Instance.new("Sound")
  351. Sound332 = Instance.new("Sound")
  352. PointLight333 = Instance.new("PointLight")
  353. Sound334 = Instance.new("Sound")
  354. Part335 = Instance.new("Part")
  355. Script336 = Instance.new("Script")
  356. Model337 = Instance.new("Model")
  357. Folder338 = Instance.new("Folder")
  358. Part339 = Instance.new("Part")
  359. SurfaceGui340 = Instance.new("SurfaceGui")
  360. Frame341 = Instance.new("Frame")
  361. Model342 = Instance.new("Model")
  362. MeshPart343 = Instance.new("MeshPart")
  363. Sound344 = Instance.new("Sound")
  364. Sound345 = Instance.new("Sound")
  365. Sound346 = Instance.new("Sound")
  366. PointLight347 = Instance.new("PointLight")
  367. Sound348 = Instance.new("Sound")
  368. Part349 = Instance.new("Part")
  369. Script350 = Instance.new("Script")
  370. Model351 = Instance.new("Model")
  371. Folder352 = Instance.new("Folder")
  372. Part353 = Instance.new("Part")
  373. SurfaceGui354 = Instance.new("SurfaceGui")
  374. Frame355 = Instance.new("Frame")
  375. Model356 = Instance.new("Model")
  376. MeshPart357 = Instance.new("MeshPart")
  377. Sound358 = Instance.new("Sound")
  378. Sound359 = Instance.new("Sound")
  379. Sound360 = Instance.new("Sound")
  380. PointLight361 = Instance.new("PointLight")
  381. Sound362 = Instance.new("Sound")
  382. Part363 = Instance.new("Part")
  383. Script364 = Instance.new("Script")
  384. Model365 = Instance.new("Model")
  385. Folder366 = Instance.new("Folder")
  386. Part367 = Instance.new("Part")
  387. SurfaceGui368 = Instance.new("SurfaceGui")
  388. Frame369 = Instance.new("Frame")
  389. Model370 = Instance.new("Model")
  390. MeshPart371 = Instance.new("MeshPart")
  391. Sound372 = Instance.new("Sound")
  392. Sound373 = Instance.new("Sound")
  393. Sound374 = Instance.new("Sound")
  394. PointLight375 = Instance.new("PointLight")
  395. Sound376 = Instance.new("Sound")
  396. Part377 = Instance.new("Part")
  397. Script378 = Instance.new("Script")
  398. Model379 = Instance.new("Model")
  399. Folder380 = Instance.new("Folder")
  400. Part381 = Instance.new("Part")
  401. SurfaceGui382 = Instance.new("SurfaceGui")
  402. Frame383 = Instance.new("Frame")
  403. Model384 = Instance.new("Model")
  404. MeshPart385 = Instance.new("MeshPart")
  405. Sound386 = Instance.new("Sound")
  406. Sound387 = Instance.new("Sound")
  407. Sound388 = Instance.new("Sound")
  408. PointLight389 = Instance.new("PointLight")
  409. Sound390 = Instance.new("Sound")
  410. Part391 = Instance.new("Part")
  411. Script392 = Instance.new("Script")
  412. Model393 = Instance.new("Model")
  413. Folder394 = Instance.new("Folder")
  414. Part395 = Instance.new("Part")
  415. SurfaceGui396 = Instance.new("SurfaceGui")
  416. Frame397 = Instance.new("Frame")
  417. Model398 = Instance.new("Model")
  418. MeshPart399 = Instance.new("MeshPart")
  419. Sound400 = Instance.new("Sound")
  420. Sound401 = Instance.new("Sound")
  421. Sound402 = Instance.new("Sound")
  422. PointLight403 = Instance.new("PointLight")
  423. Sound404 = Instance.new("Sound")
  424. Part405 = Instance.new("Part")
  425. Script406 = Instance.new("Script")
  426. Model407 = Instance.new("Model")
  427. Folder408 = Instance.new("Folder")
  428. Part409 = Instance.new("Part")
  429. SurfaceGui410 = Instance.new("SurfaceGui")
  430. Frame411 = Instance.new("Frame")
  431. Model412 = Instance.new("Model")
  432. MeshPart413 = Instance.new("MeshPart")
  433. Sound414 = Instance.new("Sound")
  434. Sound415 = Instance.new("Sound")
  435. Sound416 = Instance.new("Sound")
  436. PointLight417 = Instance.new("PointLight")
  437. Sound418 = Instance.new("Sound")
  438. Part419 = Instance.new("Part")
  439. Script420 = Instance.new("Script")
  440. Model421 = Instance.new("Model")
  441. Folder422 = Instance.new("Folder")
  442. Part423 = Instance.new("Part")
  443. SurfaceGui424 = Instance.new("SurfaceGui")
  444. Frame425 = Instance.new("Frame")
  445. Model426 = Instance.new("Model")
  446. MeshPart427 = Instance.new("MeshPart")
  447. Sound428 = Instance.new("Sound")
  448. Sound429 = Instance.new("Sound")
  449. Sound430 = Instance.new("Sound")
  450. PointLight431 = Instance.new("PointLight")
  451. Sound432 = Instance.new("Sound")
  452. Part433 = Instance.new("Part")
  453. Script434 = Instance.new("Script")
  454. Model435 = Instance.new("Model")
  455. Folder436 = Instance.new("Folder")
  456. Part437 = Instance.new("Part")
  457. SurfaceGui438 = Instance.new("SurfaceGui")
  458. Frame439 = Instance.new("Frame")
  459. Model440 = Instance.new("Model")
  460. MeshPart441 = Instance.new("MeshPart")
  461. Sound442 = Instance.new("Sound")
  462. Sound443 = Instance.new("Sound")
  463. Sound444 = Instance.new("Sound")
  464. PointLight445 = Instance.new("PointLight")
  465. Sound446 = Instance.new("Sound")
  466. Part447 = Instance.new("Part")
  467. Script448 = Instance.new("Script")
  468. Model449 = Instance.new("Model")
  469. Folder450 = Instance.new("Folder")
  470. Part451 = Instance.new("Part")
  471. SurfaceGui452 = Instance.new("SurfaceGui")
  472. Frame453 = Instance.new("Frame")
  473. Model454 = Instance.new("Model")
  474. MeshPart455 = Instance.new("MeshPart")
  475. Sound456 = Instance.new("Sound")
  476. Sound457 = Instance.new("Sound")
  477. Sound458 = Instance.new("Sound")
  478. PointLight459 = Instance.new("PointLight")
  479. Sound460 = Instance.new("Sound")
  480. Part461 = Instance.new("Part")
  481. Script462 = Instance.new("Script")
  482. Model463 = Instance.new("Model")
  483. Folder464 = Instance.new("Folder")
  484. Part465 = Instance.new("Part")
  485. SurfaceGui466 = Instance.new("SurfaceGui")
  486. Frame467 = Instance.new("Frame")
  487. Model468 = Instance.new("Model")
  488. MeshPart469 = Instance.new("MeshPart")
  489. Sound470 = Instance.new("Sound")
  490. Sound471 = Instance.new("Sound")
  491. Sound472 = Instance.new("Sound")
  492. PointLight473 = Instance.new("PointLight")
  493. Sound474 = Instance.new("Sound")
  494. Part475 = Instance.new("Part")
  495. Script476 = Instance.new("Script")
  496. Model477 = Instance.new("Model")
  497. Folder478 = Instance.new("Folder")
  498. Part479 = Instance.new("Part")
  499. SurfaceGui480 = Instance.new("SurfaceGui")
  500. Frame481 = Instance.new("Frame")
  501. Model482 = Instance.new("Model")
  502. MeshPart483 = Instance.new("MeshPart")
  503. Sound484 = Instance.new("Sound")
  504. Sound485 = Instance.new("Sound")
  505. Sound486 = Instance.new("Sound")
  506. PointLight487 = Instance.new("PointLight")
  507. Sound488 = Instance.new("Sound")
  508. Part489 = Instance.new("Part")
  509. Script490 = Instance.new("Script")
  510. Model491 = Instance.new("Model")
  511. Folder492 = Instance.new("Folder")
  512. Part493 = Instance.new("Part")
  513. SurfaceGui494 = Instance.new("SurfaceGui")
  514. Frame495 = Instance.new("Frame")
  515. Model496 = Instance.new("Model")
  516. MeshPart497 = Instance.new("MeshPart")
  517. Sound498 = Instance.new("Sound")
  518. Sound499 = Instance.new("Sound")
  519. Sound500 = Instance.new("Sound")
  520. PointLight501 = Instance.new("PointLight")
  521. Sound502 = Instance.new("Sound")
  522. Part503 = Instance.new("Part")
  523. Script504 = Instance.new("Script")
  524. Model0.Parent = mas
  525. Model1.Name = "Wandering GameCube"
  526. Model1.Parent = Model0
  527. Folder2.Name = "Trail"
  528. Folder2.Parent = Model1
  529. Part3.Name = "TrailThingy"
  530. Part3.Parent = Model1
  531. Part3.CFrame = CFrame.new(-13.4123058, 1.10000801, -11.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  532. Part3.Position = Vector3.new(-13.4123058, 1.10000801, -11.2977943)
  533. Part3.Transparency = 1
  534. Part3.Size = Vector3.new(2, 2, 2)
  535. Part3.Anchored = true
  536. Part3.BottomSurface = Enum.SurfaceType.Smooth
  537. Part3.CanCollide = false
  538. Part3.TopSurface = Enum.SurfaceType.Smooth
  539. SurfaceGui4.Name = "Gui"
  540. SurfaceGui4.Parent = Part3
  541. SurfaceGui4.Enabled = false
  542. SurfaceGui4.Face = Enum.NormalId.Top
  543. SurfaceGui4.ClipsDescendants = true
  544. Frame5.Parent = SurfaceGui4
  545. Frame5.Position = UDim2.new(0.5, 0, 0.5, 0)
  546. Frame5.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  547. Frame5.AnchorPoint = Vector2.new(0.5, 0.5)
  548. Frame5.BackgroundColor = BrickColor.new("Medium bluish violet")
  549. Frame5.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  550. Frame5.BorderSizePixel = 0
  551. Model6.Name = "GameCube"
  552. Model6.Parent = Model1
  553. Model6.PrimaryPart = Part13
  554. MeshPart7.Name = "GameCube"
  555. MeshPart7.Parent = Model6
  556. MeshPart7.CFrame = CFrame.new(-13.4123058, 1.10000801, -11.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  557. MeshPart7.Position = Vector3.new(-13.4123058, 1.10000801, -11.2977943)
  558. MeshPart7.Color = Color3.new(0.376471, 0.329412, 0.729412)
  559. MeshPart7.Size = Vector3.new(2, 2.00000024, 2.00000024)
  560. MeshPart7.Anchored = true
  561. MeshPart7.BrickColor = BrickColor.new("Medium bluish violet")
  562. MeshPart7.Material = Enum.Material.SmoothPlastic
  563. MeshPart7.Reflectance = 0.20000000298023
  564. MeshPart7.brickColor = BrickColor.new("Medium bluish violet")
  565. Sound8.Name = "Landing"
  566. Sound8.Parent = MeshPart7
  567. Sound8.SoundId = "rbxassetid://2125574494"
  568. Sound8.Volume = 2
  569. Sound9.Name = "Finish"
  570. Sound9.Parent = MeshPart7
  571. Sound9.SoundId = "rbxassetid://2125574886"
  572. Sound9.Volume = 2
  573. Sound10.Name = "Rolling"
  574. Sound10.Parent = MeshPart7
  575. Sound10.Looped = true
  576. Sound10.SoundId = "rbxassetid://2125574718"
  577. Sound10.Volume = 2
  578. PointLight11.Parent = MeshPart7
  579. Sound12.Name = "Fricko"
  580. Sound12.Parent = MeshPart7
  581. Sound12.SoundId = "rbxassetid://2084814462"
  582. Sound12.Volume = 4
  583. Part13.Name = "Rollboi"
  584. Part13.Parent = Model6
  585. Part13.CFrame = CFrame.new(-13.4123058, 0.100009143, -12.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  586. Part13.Position = Vector3.new(-13.4123058, 0.100009143, -12.2977943)
  587. Part13.Transparency = 1
  588. Part13.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  589. Part13.Anchored = true
  590. Part13.BottomSurface = Enum.SurfaceType.Smooth
  591. Part13.CanCollide = false
  592. Part13.Material = Enum.Material.SmoothPlastic
  593. Part13.TopSurface = Enum.SurfaceType.Smooth
  594. Script14.Parent = Model1
  595. table.insert(cors,sandbox(Script14,function()
  596. --Scripted by Mah_Bucket, sorry if it's terrible
  597.  
  598. local t = game:GetService("TweenService")
  599. local cube = script.Parent.GameCube.GameCube
  600. local startingpoint = cube.CFrame
  601. local roll = script.Parent.GameCube.Rollboi
  602. math.randomseed(tick()*100)
  603. while true do
  604. cube.Transparency = 1
  605. script.Parent.GameCube.PrimaryPart = cube
  606. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  607. script.Parent.GameCube.PrimaryPart = roll
  608. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  609. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  610. tween:Play()
  611. wait(.2)
  612. cube.Landing:Play()
  613. wait(.35)
  614. local rando = math.random(4,16)
  615. cube.Rolling:Play()
  616. for x=1,rando do
  617. if x == rando then
  618. cube.Rolling:Stop()
  619. cube.Finish:Play()
  620. end
  621. script.Parent.GameCube.PrimaryPart = cube
  622. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  623. script.Parent.GameCube.PrimaryPart = roll
  624. for x=1,4 do
  625. local turn = 6
  626. local gui = script.Parent.TrailThingy:Clone()
  627. gui.Gui.Enabled = true
  628. gui.Transparency = 1
  629. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  630. gui.Parent = script.Parent.Trail
  631. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  632. if r1 ~= nil then
  633. --print("inner corner")
  634. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  635. turn = -1
  636. else
  637. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  638. if r2 == nil then
  639. --print("outer corner")
  640. turn = 12
  641. end
  642. end
  643. if turn ~= -1 then
  644. for x=1,turn do
  645. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  646. wait(.225/turn)
  647. end
  648. else
  649. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  650. end
  651. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  652. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  653. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  654. end
  655. end
  656. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  657. tween:Play()
  658. wait(.5)
  659. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  660. tween:Play()
  661. wait(.2)
  662. if math.random(1,20) == 10 then
  663. cube.Fricko:Play()
  664. end
  665. wait(4)
  666. script.Parent.Trail:ClearAllChildren()
  667. end
  668. end))
  669. Model15.Name = "Wandering GameCube"
  670. Model15.Parent = Model0
  671. Folder16.Name = "Trail"
  672. Folder16.Parent = Model15
  673. Part17.Name = "TrailThingy"
  674. Part17.Parent = Model15
  675. Part17.CFrame = CFrame.new(2.58769393, 1.10001326, -23.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  676. Part17.Position = Vector3.new(2.58769393, 1.10001326, -23.2977943)
  677. Part17.Transparency = 1
  678. Part17.Size = Vector3.new(2, 2, 2)
  679. Part17.Anchored = true
  680. Part17.BottomSurface = Enum.SurfaceType.Smooth
  681. Part17.CanCollide = false
  682. Part17.TopSurface = Enum.SurfaceType.Smooth
  683. SurfaceGui18.Name = "Gui"
  684. SurfaceGui18.Parent = Part17
  685. SurfaceGui18.Enabled = false
  686. SurfaceGui18.Face = Enum.NormalId.Top
  687. SurfaceGui18.ClipsDescendants = true
  688. Frame19.Parent = SurfaceGui18
  689. Frame19.Position = UDim2.new(0.5, 0, 0.5, 0)
  690. Frame19.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  691. Frame19.AnchorPoint = Vector2.new(0.5, 0.5)
  692. Frame19.BackgroundColor = BrickColor.new("Medium bluish violet")
  693. Frame19.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  694. Frame19.BorderSizePixel = 0
  695. Model20.Name = "GameCube"
  696. Model20.Parent = Model15
  697. Model20.PrimaryPart = Part27
  698. MeshPart21.Name = "GameCube"
  699. MeshPart21.Parent = Model20
  700. MeshPart21.CFrame = CFrame.new(2.58769393, 1.10001326, -23.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  701. MeshPart21.Position = Vector3.new(2.58769393, 1.10001326, -23.2977943)
  702. MeshPart21.Color = Color3.new(0.376471, 0.329412, 0.729412)
  703. MeshPart21.Size = Vector3.new(2, 2.00000024, 2.00000024)
  704. MeshPart21.Anchored = true
  705. MeshPart21.BrickColor = BrickColor.new("Medium bluish violet")
  706. MeshPart21.Material = Enum.Material.SmoothPlastic
  707. MeshPart21.Reflectance = 0.20000000298023
  708. MeshPart21.brickColor = BrickColor.new("Medium bluish violet")
  709. Sound22.Name = "Landing"
  710. Sound22.Parent = MeshPart21
  711. Sound22.SoundId = "rbxassetid://2125574494"
  712. Sound22.Volume = 2
  713. Sound23.Name = "Finish"
  714. Sound23.Parent = MeshPart21
  715. Sound23.SoundId = "rbxassetid://2125574886"
  716. Sound23.Volume = 2
  717. Sound24.Name = "Rolling"
  718. Sound24.Parent = MeshPart21
  719. Sound24.Looped = true
  720. Sound24.SoundId = "rbxassetid://2125574718"
  721. Sound24.Volume = 2
  722. PointLight25.Parent = MeshPart21
  723. Sound26.Name = "Fricko"
  724. Sound26.Parent = MeshPart21
  725. Sound26.SoundId = "rbxassetid://2084814462"
  726. Sound26.Volume = 4
  727. Part27.Name = "Rollboi"
  728. Part27.Parent = Model20
  729. Part27.CFrame = CFrame.new(2.58769393, 0.10001415, -24.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  730. Part27.Position = Vector3.new(2.58769393, 0.10001415, -24.2977943)
  731. Part27.Transparency = 1
  732. Part27.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  733. Part27.Anchored = true
  734. Part27.BottomSurface = Enum.SurfaceType.Smooth
  735. Part27.CanCollide = false
  736. Part27.Material = Enum.Material.SmoothPlastic
  737. Part27.TopSurface = Enum.SurfaceType.Smooth
  738. Script28.Parent = Model15
  739. table.insert(cors,sandbox(Script28,function()
  740. --Scripted by Mah_Bucket, sorry if it's terrible
  741.  
  742. local t = game:GetService("TweenService")
  743. local cube = script.Parent.GameCube.GameCube
  744. local startingpoint = cube.CFrame
  745. local roll = script.Parent.GameCube.Rollboi
  746. math.randomseed(tick()*100)
  747. while true do
  748. cube.Transparency = 1
  749. script.Parent.GameCube.PrimaryPart = cube
  750. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  751. script.Parent.GameCube.PrimaryPart = roll
  752. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  753. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  754. tween:Play()
  755. wait(.2)
  756. cube.Landing:Play()
  757. wait(.35)
  758. local rando = math.random(4,16)
  759. cube.Rolling:Play()
  760. for x=1,rando do
  761. if x == rando then
  762. cube.Rolling:Stop()
  763. cube.Finish:Play()
  764. end
  765. script.Parent.GameCube.PrimaryPart = cube
  766. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  767. script.Parent.GameCube.PrimaryPart = roll
  768. for x=1,4 do
  769. local turn = 6
  770. local gui = script.Parent.TrailThingy:Clone()
  771. gui.Gui.Enabled = true
  772. gui.Transparency = 1
  773. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  774. gui.Parent = script.Parent.Trail
  775. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  776. if r1 ~= nil then
  777. --print("inner corner")
  778. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  779. turn = -1
  780. else
  781. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  782. if r2 == nil then
  783. --print("outer corner")
  784. turn = 12
  785. end
  786. end
  787. if turn ~= -1 then
  788. for x=1,turn do
  789. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  790. wait(.225/turn)
  791. end
  792. else
  793. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  794. end
  795. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  796. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  797. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  798. end
  799. end
  800. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  801. tween:Play()
  802. wait(.5)
  803. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  804. tween:Play()
  805. wait(.2)
  806. if math.random(1,20) == 10 then
  807. cube.Fricko:Play()
  808. end
  809. wait(4)
  810. script.Parent.Trail:ClearAllChildren()
  811. end
  812. end))
  813. Model29.Name = "Wandering GameCube"
  814. Model29.Parent = Model0
  815. Folder30.Name = "Trail"
  816. Folder30.Parent = Model29
  817. Part31.Name = "TrailThingy"
  818. Part31.Parent = Model29
  819. Part31.CFrame = CFrame.new(10.5876942, 1.09999895, -9.29779434, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  820. Part31.Position = Vector3.new(10.5876942, 1.09999895, -9.29779434)
  821. Part31.Transparency = 1
  822. Part31.Size = Vector3.new(2, 2, 2)
  823. Part31.Anchored = true
  824. Part31.BottomSurface = Enum.SurfaceType.Smooth
  825. Part31.CanCollide = false
  826. Part31.TopSurface = Enum.SurfaceType.Smooth
  827. SurfaceGui32.Name = "Gui"
  828. SurfaceGui32.Parent = Part31
  829. SurfaceGui32.Enabled = false
  830. SurfaceGui32.Face = Enum.NormalId.Top
  831. SurfaceGui32.ClipsDescendants = true
  832. Frame33.Parent = SurfaceGui32
  833. Frame33.Position = UDim2.new(0.5, 0, 0.5, 0)
  834. Frame33.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  835. Frame33.AnchorPoint = Vector2.new(0.5, 0.5)
  836. Frame33.BackgroundColor = BrickColor.new("Medium bluish violet")
  837. Frame33.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  838. Frame33.BorderSizePixel = 0
  839. Model34.Name = "GameCube"
  840. Model34.Parent = Model29
  841. Model34.PrimaryPart = Part41
  842. MeshPart35.Name = "GameCube"
  843. MeshPart35.Parent = Model34
  844. MeshPart35.CFrame = CFrame.new(10.5876942, 1.09999895, -9.29779434, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  845. MeshPart35.Position = Vector3.new(10.5876942, 1.09999895, -9.29779434)
  846. MeshPart35.Color = Color3.new(0.376471, 0.329412, 0.729412)
  847. MeshPart35.Size = Vector3.new(2, 2.00000024, 2.00000024)
  848. MeshPart35.Anchored = true
  849. MeshPart35.BrickColor = BrickColor.new("Medium bluish violet")
  850. MeshPart35.Material = Enum.Material.SmoothPlastic
  851. MeshPart35.Reflectance = 0.20000000298023
  852. MeshPart35.brickColor = BrickColor.new("Medium bluish violet")
  853. Sound36.Name = "Landing"
  854. Sound36.Parent = MeshPart35
  855. Sound36.SoundId = "rbxassetid://2125574494"
  856. Sound36.Volume = 2
  857. Sound37.Name = "Finish"
  858. Sound37.Parent = MeshPart35
  859. Sound37.SoundId = "rbxassetid://2125574886"
  860. Sound37.Volume = 2
  861. Sound38.Name = "Rolling"
  862. Sound38.Parent = MeshPart35
  863. Sound38.Looped = true
  864. Sound38.SoundId = "rbxassetid://2125574718"
  865. Sound38.Volume = 2
  866. PointLight39.Parent = MeshPart35
  867. Sound40.Name = "Fricko"
  868. Sound40.Parent = MeshPart35
  869. Sound40.SoundId = "rbxassetid://2084814462"
  870. Sound40.Volume = 4
  871. Part41.Name = "Rollboi"
  872. Part41.Parent = Model34
  873. Part41.CFrame = CFrame.new(10.5876942, 0.100000083, -10.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  874. Part41.Position = Vector3.new(10.5876942, 0.100000083, -10.2977943)
  875. Part41.Transparency = 1
  876. Part41.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  877. Part41.Anchored = true
  878. Part41.BottomSurface = Enum.SurfaceType.Smooth
  879. Part41.CanCollide = false
  880. Part41.Material = Enum.Material.SmoothPlastic
  881. Part41.TopSurface = Enum.SurfaceType.Smooth
  882. Script42.Parent = Model29
  883. table.insert(cors,sandbox(Script42,function()
  884. --Scripted by Mah_Bucket, sorry if it's terrible
  885.  
  886. local t = game:GetService("TweenService")
  887. local cube = script.Parent.GameCube.GameCube
  888. local startingpoint = cube.CFrame
  889. local roll = script.Parent.GameCube.Rollboi
  890. math.randomseed(tick()*100)
  891. while true do
  892. cube.Transparency = 1
  893. script.Parent.GameCube.PrimaryPart = cube
  894. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  895. script.Parent.GameCube.PrimaryPart = roll
  896. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  897. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  898. tween:Play()
  899. wait(.2)
  900. cube.Landing:Play()
  901. wait(.35)
  902. local rando = math.random(4,16)
  903. cube.Rolling:Play()
  904. for x=1,rando do
  905. if x == rando then
  906. cube.Rolling:Stop()
  907. cube.Finish:Play()
  908. end
  909. script.Parent.GameCube.PrimaryPart = cube
  910. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  911. script.Parent.GameCube.PrimaryPart = roll
  912. for x=1,4 do
  913. local turn = 6
  914. local gui = script.Parent.TrailThingy:Clone()
  915. gui.Gui.Enabled = true
  916. gui.Transparency = 1
  917. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  918. gui.Parent = script.Parent.Trail
  919. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  920. if r1 ~= nil then
  921. --print("inner corner")
  922. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  923. turn = -1
  924. else
  925. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  926. if r2 == nil then
  927. --print("outer corner")
  928. turn = 12
  929. end
  930. end
  931. if turn ~= -1 then
  932. for x=1,turn do
  933. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  934. wait(.225/turn)
  935. end
  936. else
  937. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  938. end
  939. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  940. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  941. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  942. end
  943. end
  944. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  945. tween:Play()
  946. wait(.5)
  947. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  948. tween:Play()
  949. wait(.2)
  950. if math.random(1,20) == 10 then
  951. cube.Fricko:Play()
  952. end
  953. wait(4)
  954. script.Parent.Trail:ClearAllChildren()
  955. end
  956. end))
  957. Model43.Name = "Wandering GameCube"
  958. Model43.Parent = Model0
  959. Folder44.Name = "Trail"
  960. Folder44.Parent = Model43
  961. Part45.Name = "TrailThingy"
  962. Part45.Parent = Model43
  963. Part45.CFrame = CFrame.new(-19.4123058, 1.1000011, 8.70220566, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  964. Part45.Position = Vector3.new(-19.4123058, 1.1000011, 8.70220566)
  965. Part45.Transparency = 1
  966. Part45.Size = Vector3.new(2, 2, 2)
  967. Part45.Anchored = true
  968. Part45.BottomSurface = Enum.SurfaceType.Smooth
  969. Part45.CanCollide = false
  970. Part45.TopSurface = Enum.SurfaceType.Smooth
  971. SurfaceGui46.Name = "Gui"
  972. SurfaceGui46.Parent = Part45
  973. SurfaceGui46.Enabled = false
  974. SurfaceGui46.Face = Enum.NormalId.Top
  975. SurfaceGui46.ClipsDescendants = true
  976. Frame47.Parent = SurfaceGui46
  977. Frame47.Position = UDim2.new(0.5, 0, 0.5, 0)
  978. Frame47.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  979. Frame47.AnchorPoint = Vector2.new(0.5, 0.5)
  980. Frame47.BackgroundColor = BrickColor.new("Medium bluish violet")
  981. Frame47.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  982. Frame47.BorderSizePixel = 0
  983. Model48.Name = "GameCube"
  984. Model48.Parent = Model43
  985. Model48.PrimaryPart = Part55
  986. MeshPart49.Name = "GameCube"
  987. MeshPart49.Parent = Model48
  988. MeshPart49.CFrame = CFrame.new(-19.4123058, 1.1000011, 8.70220566, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  989. MeshPart49.Position = Vector3.new(-19.4123058, 1.1000011, 8.70220566)
  990. MeshPart49.Color = Color3.new(0.376471, 0.329412, 0.729412)
  991. MeshPart49.Size = Vector3.new(2, 2.00000024, 2.00000024)
  992. MeshPart49.Anchored = true
  993. MeshPart49.BrickColor = BrickColor.new("Medium bluish violet")
  994. MeshPart49.Material = Enum.Material.SmoothPlastic
  995. MeshPart49.Reflectance = 0.20000000298023
  996. MeshPart49.brickColor = BrickColor.new("Medium bluish violet")
  997. Sound50.Name = "Landing"
  998. Sound50.Parent = MeshPart49
  999. Sound50.SoundId = "rbxassetid://2125574494"
  1000. Sound50.Volume = 2
  1001. Sound51.Name = "Finish"
  1002. Sound51.Parent = MeshPart49
  1003. Sound51.SoundId = "rbxassetid://2125574886"
  1004. Sound51.Volume = 2
  1005. Sound52.Name = "Rolling"
  1006. Sound52.Parent = MeshPart49
  1007. Sound52.Looped = true
  1008. Sound52.SoundId = "rbxassetid://2125574718"
  1009. Sound52.Volume = 2
  1010. PointLight53.Parent = MeshPart49
  1011. Sound54.Name = "Fricko"
  1012. Sound54.Parent = MeshPart49
  1013. Sound54.SoundId = "rbxassetid://2084814462"
  1014. Sound54.Volume = 4
  1015. Part55.Name = "Rollboi"
  1016. Part55.Parent = Model48
  1017. Part55.CFrame = CFrame.new(-19.4123058, 0.10000211, 7.70220566, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1018. Part55.Position = Vector3.new(-19.4123058, 0.10000211, 7.70220566)
  1019. Part55.Transparency = 1
  1020. Part55.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  1021. Part55.Anchored = true
  1022. Part55.BottomSurface = Enum.SurfaceType.Smooth
  1023. Part55.CanCollide = false
  1024. Part55.Material = Enum.Material.SmoothPlastic
  1025. Part55.TopSurface = Enum.SurfaceType.Smooth
  1026. Script56.Parent = Model43
  1027. table.insert(cors,sandbox(Script56,function()
  1028. --Scripted by Mah_Bucket, sorry if it's terrible
  1029.  
  1030. local t = game:GetService("TweenService")
  1031. local cube = script.Parent.GameCube.GameCube
  1032. local startingpoint = cube.CFrame
  1033. local roll = script.Parent.GameCube.Rollboi
  1034. math.randomseed(tick()*100)
  1035. while true do
  1036. cube.Transparency = 1
  1037. script.Parent.GameCube.PrimaryPart = cube
  1038. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  1039. script.Parent.GameCube.PrimaryPart = roll
  1040. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  1041. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  1042. tween:Play()
  1043. wait(.2)
  1044. cube.Landing:Play()
  1045. wait(.35)
  1046. local rando = math.random(4,16)
  1047. cube.Rolling:Play()
  1048. for x=1,rando do
  1049. if x == rando then
  1050. cube.Rolling:Stop()
  1051. cube.Finish:Play()
  1052. end
  1053. script.Parent.GameCube.PrimaryPart = cube
  1054. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  1055. script.Parent.GameCube.PrimaryPart = roll
  1056. for x=1,4 do
  1057. local turn = 6
  1058. local gui = script.Parent.TrailThingy:Clone()
  1059. gui.Gui.Enabled = true
  1060. gui.Transparency = 1
  1061. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  1062. gui.Parent = script.Parent.Trail
  1063. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  1064. if r1 ~= nil then
  1065. --print("inner corner")
  1066. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  1067. turn = -1
  1068. else
  1069. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  1070. if r2 == nil then
  1071. --print("outer corner")
  1072. turn = 12
  1073. end
  1074. end
  1075. if turn ~= -1 then
  1076. for x=1,turn do
  1077. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  1078. wait(.225/turn)
  1079. end
  1080. else
  1081. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  1082. end
  1083. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  1084. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  1085. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  1086. end
  1087. end
  1088. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  1089. tween:Play()
  1090. wait(.5)
  1091. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  1092. tween:Play()
  1093. wait(.2)
  1094. if math.random(1,20) == 10 then
  1095. cube.Fricko:Play()
  1096. end
  1097. wait(4)
  1098. script.Parent.Trail:ClearAllChildren()
  1099. end
  1100. end))
  1101. Model57.Name = "Wandering GameCube"
  1102. Model57.Parent = Model0
  1103. Folder58.Name = "Trail"
  1104. Folder58.Parent = Model57
  1105. Part59.Name = "TrailThingy"
  1106. Part59.Parent = Model57
  1107. Part59.CFrame = CFrame.new(28.5876942, 1.099998, -23.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1108. Part59.Position = Vector3.new(28.5876942, 1.099998, -23.2977943)
  1109. Part59.Transparency = 1
  1110. Part59.Size = Vector3.new(2, 2, 2)
  1111. Part59.Anchored = true
  1112. Part59.BottomSurface = Enum.SurfaceType.Smooth
  1113. Part59.CanCollide = false
  1114. Part59.TopSurface = Enum.SurfaceType.Smooth
  1115. SurfaceGui60.Name = "Gui"
  1116. SurfaceGui60.Parent = Part59
  1117. SurfaceGui60.Enabled = false
  1118. SurfaceGui60.Face = Enum.NormalId.Top
  1119. SurfaceGui60.ClipsDescendants = true
  1120. Frame61.Parent = SurfaceGui60
  1121. Frame61.Position = UDim2.new(0.5, 0, 0.5, 0)
  1122. Frame61.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  1123. Frame61.AnchorPoint = Vector2.new(0.5, 0.5)
  1124. Frame61.BackgroundColor = BrickColor.new("Medium bluish violet")
  1125. Frame61.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  1126. Frame61.BorderSizePixel = 0
  1127. Model62.Name = "GameCube"
  1128. Model62.Parent = Model57
  1129. Model62.PrimaryPart = Part69
  1130. MeshPart63.Name = "GameCube"
  1131. MeshPart63.Parent = Model62
  1132. MeshPart63.CFrame = CFrame.new(28.5876942, 1.099998, -23.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1133. MeshPart63.Position = Vector3.new(28.5876942, 1.099998, -23.2977943)
  1134. MeshPart63.Color = Color3.new(0.376471, 0.329412, 0.729412)
  1135. MeshPart63.Size = Vector3.new(2, 2.00000024, 2.00000024)
  1136. MeshPart63.Anchored = true
  1137. MeshPart63.BrickColor = BrickColor.new("Medium bluish violet")
  1138. MeshPart63.Material = Enum.Material.SmoothPlastic
  1139. MeshPart63.Reflectance = 0.20000000298023
  1140. MeshPart63.brickColor = BrickColor.new("Medium bluish violet")
  1141. Sound64.Name = "Landing"
  1142. Sound64.Parent = MeshPart63
  1143. Sound64.SoundId = "rbxassetid://2125574494"
  1144. Sound64.Volume = 2
  1145. Sound65.Name = "Finish"
  1146. Sound65.Parent = MeshPart63
  1147. Sound65.SoundId = "rbxassetid://2125574886"
  1148. Sound65.Volume = 2
  1149. Sound66.Name = "Rolling"
  1150. Sound66.Parent = MeshPart63
  1151. Sound66.Looped = true
  1152. Sound66.SoundId = "rbxassetid://2125574718"
  1153. Sound66.Volume = 2
  1154. PointLight67.Parent = MeshPart63
  1155. Sound68.Name = "Fricko"
  1156. Sound68.Parent = MeshPart63
  1157. Sound68.SoundId = "rbxassetid://2084814462"
  1158. Sound68.Volume = 4
  1159. Part69.Name = "Rollboi"
  1160. Part69.Parent = Model62
  1161. Part69.CFrame = CFrame.new(28.5876942, 0.0999991298, -24.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1162. Part69.Position = Vector3.new(28.5876942, 0.0999991298, -24.2977943)
  1163. Part69.Transparency = 1
  1164. Part69.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  1165. Part69.Anchored = true
  1166. Part69.BottomSurface = Enum.SurfaceType.Smooth
  1167. Part69.CanCollide = false
  1168. Part69.Material = Enum.Material.SmoothPlastic
  1169. Part69.TopSurface = Enum.SurfaceType.Smooth
  1170. Script70.Parent = Model57
  1171. table.insert(cors,sandbox(Script70,function()
  1172. --Scripted by Mah_Bucket, sorry if it's terrible
  1173.  
  1174. local t = game:GetService("TweenService")
  1175. local cube = script.Parent.GameCube.GameCube
  1176. local startingpoint = cube.CFrame
  1177. local roll = script.Parent.GameCube.Rollboi
  1178. math.randomseed(tick()*100)
  1179. while true do
  1180. cube.Transparency = 1
  1181. script.Parent.GameCube.PrimaryPart = cube
  1182. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  1183. script.Parent.GameCube.PrimaryPart = roll
  1184. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  1185. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  1186. tween:Play()
  1187. wait(.2)
  1188. cube.Landing:Play()
  1189. wait(.35)
  1190. local rando = math.random(4,16)
  1191. cube.Rolling:Play()
  1192. for x=1,rando do
  1193. if x == rando then
  1194. cube.Rolling:Stop()
  1195. cube.Finish:Play()
  1196. end
  1197. script.Parent.GameCube.PrimaryPart = cube
  1198. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  1199. script.Parent.GameCube.PrimaryPart = roll
  1200. for x=1,4 do
  1201. local turn = 6
  1202. local gui = script.Parent.TrailThingy:Clone()
  1203. gui.Gui.Enabled = true
  1204. gui.Transparency = 1
  1205. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  1206. gui.Parent = script.Parent.Trail
  1207. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  1208. if r1 ~= nil then
  1209. --print("inner corner")
  1210. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  1211. turn = -1
  1212. else
  1213. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  1214. if r2 == nil then
  1215. --print("outer corner")
  1216. turn = 12
  1217. end
  1218. end
  1219. if turn ~= -1 then
  1220. for x=1,turn do
  1221. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  1222. wait(.225/turn)
  1223. end
  1224. else
  1225. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  1226. end
  1227. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  1228. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  1229. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  1230. end
  1231. end
  1232. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  1233. tween:Play()
  1234. wait(.5)
  1235. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  1236. tween:Play()
  1237. wait(.2)
  1238. if math.random(1,20) == 10 then
  1239. cube.Fricko:Play()
  1240. end
  1241. wait(4)
  1242. script.Parent.Trail:ClearAllChildren()
  1243. end
  1244. end))
  1245. Model71.Name = "Wandering GameCube"
  1246. Model71.Parent = Model0
  1247. Folder72.Name = "Trail"
  1248. Folder72.Parent = Model71
  1249. Part73.Name = "TrailThingy"
  1250. Part73.Parent = Model71
  1251. Part73.CFrame = CFrame.new(10.5876942, 1.10001111, -45.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1252. Part73.Position = Vector3.new(10.5876942, 1.10001111, -45.2977943)
  1253. Part73.Transparency = 1
  1254. Part73.Size = Vector3.new(2, 2, 2)
  1255. Part73.Anchored = true
  1256. Part73.BottomSurface = Enum.SurfaceType.Smooth
  1257. Part73.CanCollide = false
  1258. Part73.TopSurface = Enum.SurfaceType.Smooth
  1259. SurfaceGui74.Name = "Gui"
  1260. SurfaceGui74.Parent = Part73
  1261. SurfaceGui74.Enabled = false
  1262. SurfaceGui74.Face = Enum.NormalId.Top
  1263. SurfaceGui74.ClipsDescendants = true
  1264. Frame75.Parent = SurfaceGui74
  1265. Frame75.Position = UDim2.new(0.5, 0, 0.5, 0)
  1266. Frame75.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  1267. Frame75.AnchorPoint = Vector2.new(0.5, 0.5)
  1268. Frame75.BackgroundColor = BrickColor.new("Medium bluish violet")
  1269. Frame75.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  1270. Frame75.BorderSizePixel = 0
  1271. Model76.Name = "GameCube"
  1272. Model76.Parent = Model71
  1273. Model76.PrimaryPart = Part83
  1274. MeshPart77.Name = "GameCube"
  1275. MeshPart77.Parent = Model76
  1276. MeshPart77.CFrame = CFrame.new(10.5876942, 1.10001111, -45.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1277. MeshPart77.Position = Vector3.new(10.5876942, 1.10001111, -45.2977943)
  1278. MeshPart77.Color = Color3.new(0.376471, 0.329412, 0.729412)
  1279. MeshPart77.Size = Vector3.new(2, 2.00000024, 2.00000024)
  1280. MeshPart77.Anchored = true
  1281. MeshPart77.BrickColor = BrickColor.new("Medium bluish violet")
  1282. MeshPart77.Material = Enum.Material.SmoothPlastic
  1283. MeshPart77.Reflectance = 0.20000000298023
  1284. MeshPart77.brickColor = BrickColor.new("Medium bluish violet")
  1285. Sound78.Name = "Landing"
  1286. Sound78.Parent = MeshPart77
  1287. Sound78.SoundId = "rbxassetid://2125574494"
  1288. Sound78.Volume = 2
  1289. Sound79.Name = "Finish"
  1290. Sound79.Parent = MeshPart77
  1291. Sound79.SoundId = "rbxassetid://2125574886"
  1292. Sound79.Volume = 2
  1293. Sound80.Name = "Rolling"
  1294. Sound80.Parent = MeshPart77
  1295. Sound80.Looped = true
  1296. Sound80.SoundId = "rbxassetid://2125574718"
  1297. Sound80.Volume = 2
  1298. PointLight81.Parent = MeshPart77
  1299. Sound82.Name = "Fricko"
  1300. Sound82.Parent = MeshPart77
  1301. Sound82.SoundId = "rbxassetid://2084814462"
  1302. Sound82.Volume = 4
  1303. Part83.Name = "Rollboi"
  1304. Part83.Parent = Model76
  1305. Part83.CFrame = CFrame.new(10.5876942, 0.100012124, -46.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1306. Part83.Position = Vector3.new(10.5876942, 0.100012124, -46.2977943)
  1307. Part83.Transparency = 1
  1308. Part83.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  1309. Part83.Anchored = true
  1310. Part83.BottomSurface = Enum.SurfaceType.Smooth
  1311. Part83.CanCollide = false
  1312. Part83.Material = Enum.Material.SmoothPlastic
  1313. Part83.TopSurface = Enum.SurfaceType.Smooth
  1314. Script84.Parent = Model71
  1315. table.insert(cors,sandbox(Script84,function()
  1316. --Scripted by Mah_Bucket, sorry if it's terrible
  1317.  
  1318. local t = game:GetService("TweenService")
  1319. local cube = script.Parent.GameCube.GameCube
  1320. local startingpoint = cube.CFrame
  1321. local roll = script.Parent.GameCube.Rollboi
  1322. math.randomseed(tick()*100)
  1323. while true do
  1324. cube.Transparency = 1
  1325. script.Parent.GameCube.PrimaryPart = cube
  1326. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  1327. script.Parent.GameCube.PrimaryPart = roll
  1328. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  1329. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  1330. tween:Play()
  1331. wait(.2)
  1332. cube.Landing:Play()
  1333. wait(.35)
  1334. local rando = math.random(4,16)
  1335. cube.Rolling:Play()
  1336. for x=1,rando do
  1337. if x == rando then
  1338. cube.Rolling:Stop()
  1339. cube.Finish:Play()
  1340. end
  1341. script.Parent.GameCube.PrimaryPart = cube
  1342. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  1343. script.Parent.GameCube.PrimaryPart = roll
  1344. for x=1,4 do
  1345. local turn = 6
  1346. local gui = script.Parent.TrailThingy:Clone()
  1347. gui.Gui.Enabled = true
  1348. gui.Transparency = 1
  1349. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  1350. gui.Parent = script.Parent.Trail
  1351. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  1352. if r1 ~= nil then
  1353. --print("inner corner")
  1354. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  1355. turn = -1
  1356. else
  1357. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  1358. if r2 == nil then
  1359. --print("outer corner")
  1360. turn = 12
  1361. end
  1362. end
  1363. if turn ~= -1 then
  1364. for x=1,turn do
  1365. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  1366. wait(.225/turn)
  1367. end
  1368. else
  1369. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  1370. end
  1371. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  1372. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  1373. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  1374. end
  1375. end
  1376. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  1377. tween:Play()
  1378. wait(.5)
  1379. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  1380. tween:Play()
  1381. wait(.2)
  1382. if math.random(1,20) == 10 then
  1383. cube.Fricko:Play()
  1384. end
  1385. wait(4)
  1386. script.Parent.Trail:ClearAllChildren()
  1387. end
  1388. end))
  1389. Model85.Name = "Wandering GameCube"
  1390. Model85.Parent = Model0
  1391. Folder86.Name = "Trail"
  1392. Folder86.Parent = Model85
  1393. Part87.Name = "TrailThingy"
  1394. Part87.Parent = Model85
  1395. Part87.CFrame = CFrame.new(14.5876942, 1.10000801, 10.7022057, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1396. Part87.Position = Vector3.new(14.5876942, 1.10000801, 10.7022057)
  1397. Part87.Transparency = 1
  1398. Part87.Size = Vector3.new(2, 2, 2)
  1399. Part87.Anchored = true
  1400. Part87.BottomSurface = Enum.SurfaceType.Smooth
  1401. Part87.CanCollide = false
  1402. Part87.TopSurface = Enum.SurfaceType.Smooth
  1403. SurfaceGui88.Name = "Gui"
  1404. SurfaceGui88.Parent = Part87
  1405. SurfaceGui88.Enabled = false
  1406. SurfaceGui88.Face = Enum.NormalId.Top
  1407. SurfaceGui88.ClipsDescendants = true
  1408. Frame89.Parent = SurfaceGui88
  1409. Frame89.Position = UDim2.new(0.5, 0, 0.5, 0)
  1410. Frame89.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  1411. Frame89.AnchorPoint = Vector2.new(0.5, 0.5)
  1412. Frame89.BackgroundColor = BrickColor.new("Medium bluish violet")
  1413. Frame89.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  1414. Frame89.BorderSizePixel = 0
  1415. Model90.Name = "GameCube"
  1416. Model90.Parent = Model85
  1417. Model90.PrimaryPart = Part97
  1418. MeshPart91.Name = "GameCube"
  1419. MeshPart91.Parent = Model90
  1420. MeshPart91.CFrame = CFrame.new(14.5876942, 1.10000801, 10.7022057, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1421. MeshPart91.Position = Vector3.new(14.5876942, 1.10000801, 10.7022057)
  1422. MeshPart91.Color = Color3.new(0.376471, 0.329412, 0.729412)
  1423. MeshPart91.Size = Vector3.new(2, 2.00000024, 2.00000024)
  1424. MeshPart91.Anchored = true
  1425. MeshPart91.BrickColor = BrickColor.new("Medium bluish violet")
  1426. MeshPart91.Material = Enum.Material.SmoothPlastic
  1427. MeshPart91.Reflectance = 0.20000000298023
  1428. MeshPart91.brickColor = BrickColor.new("Medium bluish violet")
  1429. Sound92.Name = "Landing"
  1430. Sound92.Parent = MeshPart91
  1431. Sound92.SoundId = "rbxassetid://2125574494"
  1432. Sound92.Volume = 2
  1433. Sound93.Name = "Finish"
  1434. Sound93.Parent = MeshPart91
  1435. Sound93.SoundId = "rbxassetid://2125574886"
  1436. Sound93.Volume = 2
  1437. Sound94.Name = "Rolling"
  1438. Sound94.Parent = MeshPart91
  1439. Sound94.Looped = true
  1440. Sound94.SoundId = "rbxassetid://2125574718"
  1441. Sound94.Volume = 2
  1442. PointLight95.Parent = MeshPart91
  1443. Sound96.Name = "Fricko"
  1444. Sound96.Parent = MeshPart91
  1445. Sound96.SoundId = "rbxassetid://2084814462"
  1446. Sound96.Volume = 4
  1447. Part97.Name = "Rollboi"
  1448. Part97.Parent = Model90
  1449. Part97.CFrame = CFrame.new(14.5876942, 0.100009143, 9.70220566, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1450. Part97.Position = Vector3.new(14.5876942, 0.100009143, 9.70220566)
  1451. Part97.Transparency = 1
  1452. Part97.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  1453. Part97.Anchored = true
  1454. Part97.BottomSurface = Enum.SurfaceType.Smooth
  1455. Part97.CanCollide = false
  1456. Part97.Material = Enum.Material.SmoothPlastic
  1457. Part97.TopSurface = Enum.SurfaceType.Smooth
  1458. Script98.Parent = Model85
  1459. table.insert(cors,sandbox(Script98,function()
  1460. --Scripted by Mah_Bucket, sorry if it's terrible
  1461.  
  1462. local t = game:GetService("TweenService")
  1463. local cube = script.Parent.GameCube.GameCube
  1464. local startingpoint = cube.CFrame
  1465. local roll = script.Parent.GameCube.Rollboi
  1466. math.randomseed(tick()*100)
  1467. while true do
  1468. cube.Transparency = 1
  1469. script.Parent.GameCube.PrimaryPart = cube
  1470. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  1471. script.Parent.GameCube.PrimaryPart = roll
  1472. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  1473. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  1474. tween:Play()
  1475. wait(.2)
  1476. cube.Landing:Play()
  1477. wait(.35)
  1478. local rando = math.random(4,16)
  1479. cube.Rolling:Play()
  1480. for x=1,rando do
  1481. if x == rando then
  1482. cube.Rolling:Stop()
  1483. cube.Finish:Play()
  1484. end
  1485. script.Parent.GameCube.PrimaryPart = cube
  1486. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  1487. script.Parent.GameCube.PrimaryPart = roll
  1488. for x=1,4 do
  1489. local turn = 6
  1490. local gui = script.Parent.TrailThingy:Clone()
  1491. gui.Gui.Enabled = true
  1492. gui.Transparency = 1
  1493. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  1494. gui.Parent = script.Parent.Trail
  1495. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  1496. if r1 ~= nil then
  1497. --print("inner corner")
  1498. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  1499. turn = -1
  1500. else
  1501. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  1502. if r2 == nil then
  1503. --print("outer corner")
  1504. turn = 12
  1505. end
  1506. end
  1507. if turn ~= -1 then
  1508. for x=1,turn do
  1509. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  1510. wait(.225/turn)
  1511. end
  1512. else
  1513. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  1514. end
  1515. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  1516. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  1517. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  1518. end
  1519. end
  1520. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  1521. tween:Play()
  1522. wait(.5)
  1523. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  1524. tween:Play()
  1525. wait(.2)
  1526. if math.random(1,20) == 10 then
  1527. cube.Fricko:Play()
  1528. end
  1529. wait(4)
  1530. script.Parent.Trail:ClearAllChildren()
  1531. end
  1532. end))
  1533. Model99.Name = "Wandering GameCube"
  1534. Model99.Parent = Model0
  1535. Folder100.Name = "Trail"
  1536. Folder100.Parent = Model99
  1537. Part101.Name = "TrailThingy"
  1538. Part101.Parent = Model99
  1539. Part101.CFrame = CFrame.new(-9.41230583, 1.10001206, -55.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1540. Part101.Position = Vector3.new(-9.41230583, 1.10001206, -55.2977943)
  1541. Part101.Transparency = 1
  1542. Part101.Size = Vector3.new(2, 2, 2)
  1543. Part101.Anchored = true
  1544. Part101.BottomSurface = Enum.SurfaceType.Smooth
  1545. Part101.CanCollide = false
  1546. Part101.TopSurface = Enum.SurfaceType.Smooth
  1547. SurfaceGui102.Name = "Gui"
  1548. SurfaceGui102.Parent = Part101
  1549. SurfaceGui102.Enabled = false
  1550. SurfaceGui102.Face = Enum.NormalId.Top
  1551. SurfaceGui102.ClipsDescendants = true
  1552. Frame103.Parent = SurfaceGui102
  1553. Frame103.Position = UDim2.new(0.5, 0, 0.5, 0)
  1554. Frame103.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  1555. Frame103.AnchorPoint = Vector2.new(0.5, 0.5)
  1556. Frame103.BackgroundColor = BrickColor.new("Medium bluish violet")
  1557. Frame103.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  1558. Frame103.BorderSizePixel = 0
  1559. Model104.Name = "GameCube"
  1560. Model104.Parent = Model99
  1561. Model104.PrimaryPart = Part111
  1562. MeshPart105.Name = "GameCube"
  1563. MeshPart105.Parent = Model104
  1564. MeshPart105.CFrame = CFrame.new(-9.41230583, 1.10001206, -55.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1565. MeshPart105.Position = Vector3.new(-9.41230583, 1.10001206, -55.2977943)
  1566. MeshPart105.Color = Color3.new(0.376471, 0.329412, 0.729412)
  1567. MeshPart105.Size = Vector3.new(2, 2.00000024, 2.00000024)
  1568. MeshPart105.Anchored = true
  1569. MeshPart105.BrickColor = BrickColor.new("Medium bluish violet")
  1570. MeshPart105.Material = Enum.Material.SmoothPlastic
  1571. MeshPart105.Reflectance = 0.20000000298023
  1572. MeshPart105.brickColor = BrickColor.new("Medium bluish violet")
  1573. Sound106.Name = "Landing"
  1574. Sound106.Parent = MeshPart105
  1575. Sound106.SoundId = "rbxassetid://2125574494"
  1576. Sound106.Volume = 2
  1577. Sound107.Name = "Finish"
  1578. Sound107.Parent = MeshPart105
  1579. Sound107.SoundId = "rbxassetid://2125574886"
  1580. Sound107.Volume = 2
  1581. Sound108.Name = "Rolling"
  1582. Sound108.Parent = MeshPart105
  1583. Sound108.Looped = true
  1584. Sound108.SoundId = "rbxassetid://2125574718"
  1585. Sound108.Volume = 2
  1586. PointLight109.Parent = MeshPart105
  1587. Sound110.Name = "Fricko"
  1588. Sound110.Parent = MeshPart105
  1589. Sound110.SoundId = "rbxassetid://2084814462"
  1590. Sound110.Volume = 4
  1591. Part111.Name = "Rollboi"
  1592. Part111.Parent = Model104
  1593. Part111.CFrame = CFrame.new(-9.41230583, 0.100013077, -56.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1594. Part111.Position = Vector3.new(-9.41230583, 0.100013077, -56.2977943)
  1595. Part111.Transparency = 1
  1596. Part111.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  1597. Part111.Anchored = true
  1598. Part111.BottomSurface = Enum.SurfaceType.Smooth
  1599. Part111.CanCollide = false
  1600. Part111.Material = Enum.Material.SmoothPlastic
  1601. Part111.TopSurface = Enum.SurfaceType.Smooth
  1602. Script112.Parent = Model99
  1603. table.insert(cors,sandbox(Script112,function()
  1604. --Scripted by Mah_Bucket, sorry if it's terrible
  1605.  
  1606. local t = game:GetService("TweenService")
  1607. local cube = script.Parent.GameCube.GameCube
  1608. local startingpoint = cube.CFrame
  1609. local roll = script.Parent.GameCube.Rollboi
  1610. math.randomseed(tick()*100)
  1611. while true do
  1612. cube.Transparency = 1
  1613. script.Parent.GameCube.PrimaryPart = cube
  1614. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  1615. script.Parent.GameCube.PrimaryPart = roll
  1616. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  1617. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  1618. tween:Play()
  1619. wait(.2)
  1620. cube.Landing:Play()
  1621. wait(.35)
  1622. local rando = math.random(4,16)
  1623. cube.Rolling:Play()
  1624. for x=1,rando do
  1625. if x == rando then
  1626. cube.Rolling:Stop()
  1627. cube.Finish:Play()
  1628. end
  1629. script.Parent.GameCube.PrimaryPart = cube
  1630. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  1631. script.Parent.GameCube.PrimaryPart = roll
  1632. for x=1,4 do
  1633. local turn = 6
  1634. local gui = script.Parent.TrailThingy:Clone()
  1635. gui.Gui.Enabled = true
  1636. gui.Transparency = 1
  1637. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  1638. gui.Parent = script.Parent.Trail
  1639. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  1640. if r1 ~= nil then
  1641. --print("inner corner")
  1642. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  1643. turn = -1
  1644. else
  1645. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  1646. if r2 == nil then
  1647. --print("outer corner")
  1648. turn = 12
  1649. end
  1650. end
  1651. if turn ~= -1 then
  1652. for x=1,turn do
  1653. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  1654. wait(.225/turn)
  1655. end
  1656. else
  1657. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  1658. end
  1659. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  1660. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  1661. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  1662. end
  1663. end
  1664. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  1665. tween:Play()
  1666. wait(.5)
  1667. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  1668. tween:Play()
  1669. wait(.2)
  1670. if math.random(1,20) == 10 then
  1671. cube.Fricko:Play()
  1672. end
  1673. wait(4)
  1674. script.Parent.Trail:ClearAllChildren()
  1675. end
  1676. end))
  1677. Model113.Name = "Wandering GameCube"
  1678. Model113.Parent = Model0
  1679. Folder114.Name = "Trail"
  1680. Folder114.Parent = Model113
  1681. Part115.Name = "TrailThingy"
  1682. Part115.Parent = Model113
  1683. Part115.CFrame = CFrame.new(8.58769417, 1.10001111, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1684. Part115.Position = Vector3.new(8.58769417, 1.10001111, -69.2977905)
  1685. Part115.Transparency = 1
  1686. Part115.Size = Vector3.new(2, 2, 2)
  1687. Part115.Anchored = true
  1688. Part115.BottomSurface = Enum.SurfaceType.Smooth
  1689. Part115.CanCollide = false
  1690. Part115.TopSurface = Enum.SurfaceType.Smooth
  1691. SurfaceGui116.Name = "Gui"
  1692. SurfaceGui116.Parent = Part115
  1693. SurfaceGui116.Enabled = false
  1694. SurfaceGui116.Face = Enum.NormalId.Top
  1695. SurfaceGui116.ClipsDescendants = true
  1696. Frame117.Parent = SurfaceGui116
  1697. Frame117.Position = UDim2.new(0.5, 0, 0.5, 0)
  1698. Frame117.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  1699. Frame117.AnchorPoint = Vector2.new(0.5, 0.5)
  1700. Frame117.BackgroundColor = BrickColor.new("Medium bluish violet")
  1701. Frame117.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  1702. Frame117.BorderSizePixel = 0
  1703. Model118.Name = "GameCube"
  1704. Model118.Parent = Model113
  1705. Model118.PrimaryPart = Part125
  1706. MeshPart119.Name = "GameCube"
  1707. MeshPart119.Parent = Model118
  1708. MeshPart119.CFrame = CFrame.new(8.58769417, 1.10001111, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1709. MeshPart119.Position = Vector3.new(8.58769417, 1.10001111, -69.2977905)
  1710. MeshPart119.Color = Color3.new(0.376471, 0.329412, 0.729412)
  1711. MeshPart119.Size = Vector3.new(2, 2.00000024, 2.00000024)
  1712. MeshPart119.Anchored = true
  1713. MeshPart119.BrickColor = BrickColor.new("Medium bluish violet")
  1714. MeshPart119.Material = Enum.Material.SmoothPlastic
  1715. MeshPart119.Reflectance = 0.20000000298023
  1716. MeshPart119.brickColor = BrickColor.new("Medium bluish violet")
  1717. Sound120.Name = "Landing"
  1718. Sound120.Parent = MeshPart119
  1719. Sound120.SoundId = "rbxassetid://2125574494"
  1720. Sound120.Volume = 2
  1721. Sound121.Name = "Finish"
  1722. Sound121.Parent = MeshPart119
  1723. Sound121.SoundId = "rbxassetid://2125574886"
  1724. Sound121.Volume = 2
  1725. Sound122.Name = "Rolling"
  1726. Sound122.Parent = MeshPart119
  1727. Sound122.Looped = true
  1728. Sound122.SoundId = "rbxassetid://2125574718"
  1729. Sound122.Volume = 2
  1730. PointLight123.Parent = MeshPart119
  1731. Sound124.Name = "Fricko"
  1732. Sound124.Parent = MeshPart119
  1733. Sound124.SoundId = "rbxassetid://2084814462"
  1734. Sound124.Volume = 4
  1735. Part125.Name = "Rollboi"
  1736. Part125.Parent = Model118
  1737. Part125.CFrame = CFrame.new(8.58769417, 0.100012124, -70.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1738. Part125.Position = Vector3.new(8.58769417, 0.100012124, -70.2977905)
  1739. Part125.Transparency = 1
  1740. Part125.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  1741. Part125.Anchored = true
  1742. Part125.BottomSurface = Enum.SurfaceType.Smooth
  1743. Part125.CanCollide = false
  1744. Part125.Material = Enum.Material.SmoothPlastic
  1745. Part125.TopSurface = Enum.SurfaceType.Smooth
  1746. Script126.Parent = Model113
  1747. table.insert(cors,sandbox(Script126,function()
  1748. --Scripted by Mah_Bucket, sorry if it's terrible
  1749.  
  1750. local t = game:GetService("TweenService")
  1751. local cube = script.Parent.GameCube.GameCube
  1752. local startingpoint = cube.CFrame
  1753. local roll = script.Parent.GameCube.Rollboi
  1754. math.randomseed(tick()*100)
  1755. while true do
  1756. cube.Transparency = 1
  1757. script.Parent.GameCube.PrimaryPart = cube
  1758. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  1759. script.Parent.GameCube.PrimaryPart = roll
  1760. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  1761. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  1762. tween:Play()
  1763. wait(.2)
  1764. cube.Landing:Play()
  1765. wait(.35)
  1766. local rando = math.random(4,16)
  1767. cube.Rolling:Play()
  1768. for x=1,rando do
  1769. if x == rando then
  1770. cube.Rolling:Stop()
  1771. cube.Finish:Play()
  1772. end
  1773. script.Parent.GameCube.PrimaryPart = cube
  1774. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  1775. script.Parent.GameCube.PrimaryPart = roll
  1776. for x=1,4 do
  1777. local turn = 6
  1778. local gui = script.Parent.TrailThingy:Clone()
  1779. gui.Gui.Enabled = true
  1780. gui.Transparency = 1
  1781. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  1782. gui.Parent = script.Parent.Trail
  1783. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  1784. if r1 ~= nil then
  1785. --print("inner corner")
  1786. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  1787. turn = -1
  1788. else
  1789. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  1790. if r2 == nil then
  1791. --print("outer corner")
  1792. turn = 12
  1793. end
  1794. end
  1795. if turn ~= -1 then
  1796. for x=1,turn do
  1797. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  1798. wait(.225/turn)
  1799. end
  1800. else
  1801. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  1802. end
  1803. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  1804. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  1805. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  1806. end
  1807. end
  1808. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  1809. tween:Play()
  1810. wait(.5)
  1811. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  1812. tween:Play()
  1813. wait(.2)
  1814. if math.random(1,20) == 10 then
  1815. cube.Fricko:Play()
  1816. end
  1817. wait(4)
  1818. script.Parent.Trail:ClearAllChildren()
  1819. end
  1820. end))
  1821. Model127.Name = "Wandering GameCube"
  1822. Model127.Parent = Model0
  1823. Folder128.Name = "Trail"
  1824. Folder128.Parent = Model127
  1825. Part129.Name = "TrailThingy"
  1826. Part129.Parent = Model127
  1827. Part129.CFrame = CFrame.new(-9.41230583, 1.10002422, -91.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1828. Part129.Position = Vector3.new(-9.41230583, 1.10002422, -91.2977905)
  1829. Part129.Transparency = 1
  1830. Part129.Size = Vector3.new(2, 2, 2)
  1831. Part129.Anchored = true
  1832. Part129.BottomSurface = Enum.SurfaceType.Smooth
  1833. Part129.CanCollide = false
  1834. Part129.TopSurface = Enum.SurfaceType.Smooth
  1835. SurfaceGui130.Name = "Gui"
  1836. SurfaceGui130.Parent = Part129
  1837. SurfaceGui130.Enabled = false
  1838. SurfaceGui130.Face = Enum.NormalId.Top
  1839. SurfaceGui130.ClipsDescendants = true
  1840. Frame131.Parent = SurfaceGui130
  1841. Frame131.Position = UDim2.new(0.5, 0, 0.5, 0)
  1842. Frame131.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  1843. Frame131.AnchorPoint = Vector2.new(0.5, 0.5)
  1844. Frame131.BackgroundColor = BrickColor.new("Medium bluish violet")
  1845. Frame131.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  1846. Frame131.BorderSizePixel = 0
  1847. Model132.Name = "GameCube"
  1848. Model132.Parent = Model127
  1849. Model132.PrimaryPart = Part139
  1850. MeshPart133.Name = "GameCube"
  1851. MeshPart133.Parent = Model132
  1852. MeshPart133.CFrame = CFrame.new(-9.41230583, 1.10002422, -91.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1853. MeshPart133.Position = Vector3.new(-9.41230583, 1.10002422, -91.2977905)
  1854. MeshPart133.Color = Color3.new(0.376471, 0.329412, 0.729412)
  1855. MeshPart133.Size = Vector3.new(2, 2.00000024, 2.00000024)
  1856. MeshPart133.Anchored = true
  1857. MeshPart133.BrickColor = BrickColor.new("Medium bluish violet")
  1858. MeshPart133.Material = Enum.Material.SmoothPlastic
  1859. MeshPart133.Reflectance = 0.20000000298023
  1860. MeshPart133.brickColor = BrickColor.new("Medium bluish violet")
  1861. Sound134.Name = "Landing"
  1862. Sound134.Parent = MeshPart133
  1863. Sound134.SoundId = "rbxassetid://2125574494"
  1864. Sound134.Volume = 2
  1865. Sound135.Name = "Finish"
  1866. Sound135.Parent = MeshPart133
  1867. Sound135.SoundId = "rbxassetid://2125574886"
  1868. Sound135.Volume = 2
  1869. Sound136.Name = "Rolling"
  1870. Sound136.Parent = MeshPart133
  1871. Sound136.Looped = true
  1872. Sound136.SoundId = "rbxassetid://2125574718"
  1873. Sound136.Volume = 2
  1874. PointLight137.Parent = MeshPart133
  1875. Sound138.Name = "Fricko"
  1876. Sound138.Parent = MeshPart133
  1877. Sound138.SoundId = "rbxassetid://2084814462"
  1878. Sound138.Volume = 4
  1879. Part139.Name = "Rollboi"
  1880. Part139.Parent = Model132
  1881. Part139.CFrame = CFrame.new(-9.41230583, 0.100025117, -92.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1882. Part139.Position = Vector3.new(-9.41230583, 0.100025117, -92.2977905)
  1883. Part139.Transparency = 1
  1884. Part139.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  1885. Part139.Anchored = true
  1886. Part139.BottomSurface = Enum.SurfaceType.Smooth
  1887. Part139.CanCollide = false
  1888. Part139.Material = Enum.Material.SmoothPlastic
  1889. Part139.TopSurface = Enum.SurfaceType.Smooth
  1890. Script140.Parent = Model127
  1891. table.insert(cors,sandbox(Script140,function()
  1892. --Scripted by Mah_Bucket, sorry if it's terrible
  1893.  
  1894. local t = game:GetService("TweenService")
  1895. local cube = script.Parent.GameCube.GameCube
  1896. local startingpoint = cube.CFrame
  1897. local roll = script.Parent.GameCube.Rollboi
  1898. math.randomseed(tick()*100)
  1899. while true do
  1900. cube.Transparency = 1
  1901. script.Parent.GameCube.PrimaryPart = cube
  1902. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  1903. script.Parent.GameCube.PrimaryPart = roll
  1904. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  1905. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  1906. tween:Play()
  1907. wait(.2)
  1908. cube.Landing:Play()
  1909. wait(.35)
  1910. local rando = math.random(4,16)
  1911. cube.Rolling:Play()
  1912. for x=1,rando do
  1913. if x == rando then
  1914. cube.Rolling:Stop()
  1915. cube.Finish:Play()
  1916. end
  1917. script.Parent.GameCube.PrimaryPart = cube
  1918. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  1919. script.Parent.GameCube.PrimaryPart = roll
  1920. for x=1,4 do
  1921. local turn = 6
  1922. local gui = script.Parent.TrailThingy:Clone()
  1923. gui.Gui.Enabled = true
  1924. gui.Transparency = 1
  1925. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  1926. gui.Parent = script.Parent.Trail
  1927. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  1928. if r1 ~= nil then
  1929. --print("inner corner")
  1930. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  1931. turn = -1
  1932. else
  1933. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  1934. if r2 == nil then
  1935. --print("outer corner")
  1936. turn = 12
  1937. end
  1938. end
  1939. if turn ~= -1 then
  1940. for x=1,turn do
  1941. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  1942. wait(.225/turn)
  1943. end
  1944. else
  1945. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  1946. end
  1947. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  1948. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  1949. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  1950. end
  1951. end
  1952. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  1953. tween:Play()
  1954. wait(.5)
  1955. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  1956. tween:Play()
  1957. wait(.2)
  1958. if math.random(1,20) == 10 then
  1959. cube.Fricko:Play()
  1960. end
  1961. wait(4)
  1962. script.Parent.Trail:ClearAllChildren()
  1963. end
  1964. end))
  1965. Model141.Name = "Wandering GameCube"
  1966. Model141.Parent = Model0
  1967. Folder142.Name = "Trail"
  1968. Folder142.Parent = Model141
  1969. Part143.Name = "TrailThingy"
  1970. Part143.Parent = Model141
  1971. Part143.CFrame = CFrame.new(-39.4123077, 1.10001421, -37.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1972. Part143.Position = Vector3.new(-39.4123077, 1.10001421, -37.2977943)
  1973. Part143.Transparency = 1
  1974. Part143.Size = Vector3.new(2, 2, 2)
  1975. Part143.Anchored = true
  1976. Part143.BottomSurface = Enum.SurfaceType.Smooth
  1977. Part143.CanCollide = false
  1978. Part143.TopSurface = Enum.SurfaceType.Smooth
  1979. SurfaceGui144.Name = "Gui"
  1980. SurfaceGui144.Parent = Part143
  1981. SurfaceGui144.Enabled = false
  1982. SurfaceGui144.Face = Enum.NormalId.Top
  1983. SurfaceGui144.ClipsDescendants = true
  1984. Frame145.Parent = SurfaceGui144
  1985. Frame145.Position = UDim2.new(0.5, 0, 0.5, 0)
  1986. Frame145.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  1987. Frame145.AnchorPoint = Vector2.new(0.5, 0.5)
  1988. Frame145.BackgroundColor = BrickColor.new("Medium bluish violet")
  1989. Frame145.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  1990. Frame145.BorderSizePixel = 0
  1991. Model146.Name = "GameCube"
  1992. Model146.Parent = Model141
  1993. Model146.PrimaryPart = Part153
  1994. MeshPart147.Name = "GameCube"
  1995. MeshPart147.Parent = Model146
  1996. MeshPart147.CFrame = CFrame.new(-39.4123077, 1.10001421, -37.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1997. MeshPart147.Position = Vector3.new(-39.4123077, 1.10001421, -37.2977943)
  1998. MeshPart147.Color = Color3.new(0.376471, 0.329412, 0.729412)
  1999. MeshPart147.Size = Vector3.new(2, 2.00000024, 2.00000024)
  2000. MeshPart147.Anchored = true
  2001. MeshPart147.BrickColor = BrickColor.new("Medium bluish violet")
  2002. MeshPart147.Material = Enum.Material.SmoothPlastic
  2003. MeshPart147.Reflectance = 0.20000000298023
  2004. MeshPart147.brickColor = BrickColor.new("Medium bluish violet")
  2005. Sound148.Name = "Landing"
  2006. Sound148.Parent = MeshPart147
  2007. Sound148.SoundId = "rbxassetid://2125574494"
  2008. Sound148.Volume = 2
  2009. Sound149.Name = "Finish"
  2010. Sound149.Parent = MeshPart147
  2011. Sound149.SoundId = "rbxassetid://2125574886"
  2012. Sound149.Volume = 2
  2013. Sound150.Name = "Rolling"
  2014. Sound150.Parent = MeshPart147
  2015. Sound150.Looped = true
  2016. Sound150.SoundId = "rbxassetid://2125574718"
  2017. Sound150.Volume = 2
  2018. PointLight151.Parent = MeshPart147
  2019. Sound152.Name = "Fricko"
  2020. Sound152.Parent = MeshPart147
  2021. Sound152.SoundId = "rbxassetid://2084814462"
  2022. Sound152.Volume = 4
  2023. Part153.Name = "Rollboi"
  2024. Part153.Parent = Model146
  2025. Part153.CFrame = CFrame.new(-39.4123077, 0.100015104, -38.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2026. Part153.Position = Vector3.new(-39.4123077, 0.100015104, -38.2977943)
  2027. Part153.Transparency = 1
  2028. Part153.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  2029. Part153.Anchored = true
  2030. Part153.BottomSurface = Enum.SurfaceType.Smooth
  2031. Part153.CanCollide = false
  2032. Part153.Material = Enum.Material.SmoothPlastic
  2033. Part153.TopSurface = Enum.SurfaceType.Smooth
  2034. Script154.Parent = Model141
  2035. table.insert(cors,sandbox(Script154,function()
  2036. --Scripted by Mah_Bucket, sorry if it's terrible
  2037.  
  2038. local t = game:GetService("TweenService")
  2039. local cube = script.Parent.GameCube.GameCube
  2040. local startingpoint = cube.CFrame
  2041. local roll = script.Parent.GameCube.Rollboi
  2042. math.randomseed(tick()*100)
  2043. while true do
  2044. cube.Transparency = 1
  2045. script.Parent.GameCube.PrimaryPart = cube
  2046. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  2047. script.Parent.GameCube.PrimaryPart = roll
  2048. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  2049. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  2050. tween:Play()
  2051. wait(.2)
  2052. cube.Landing:Play()
  2053. wait(.35)
  2054. local rando = math.random(4,16)
  2055. cube.Rolling:Play()
  2056. for x=1,rando do
  2057. if x == rando then
  2058. cube.Rolling:Stop()
  2059. cube.Finish:Play()
  2060. end
  2061. script.Parent.GameCube.PrimaryPart = cube
  2062. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  2063. script.Parent.GameCube.PrimaryPart = roll
  2064. for x=1,4 do
  2065. local turn = 6
  2066. local gui = script.Parent.TrailThingy:Clone()
  2067. gui.Gui.Enabled = true
  2068. gui.Transparency = 1
  2069. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  2070. gui.Parent = script.Parent.Trail
  2071. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  2072. if r1 ~= nil then
  2073. --print("inner corner")
  2074. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  2075. turn = -1
  2076. else
  2077. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  2078. if r2 == nil then
  2079. --print("outer corner")
  2080. turn = 12
  2081. end
  2082. end
  2083. if turn ~= -1 then
  2084. for x=1,turn do
  2085. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  2086. wait(.225/turn)
  2087. end
  2088. else
  2089. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  2090. end
  2091. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  2092. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  2093. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  2094. end
  2095. end
  2096. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  2097. tween:Play()
  2098. wait(.5)
  2099. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  2100. tween:Play()
  2101. wait(.2)
  2102. if math.random(1,20) == 10 then
  2103. cube.Fricko:Play()
  2104. end
  2105. wait(4)
  2106. script.Parent.Trail:ClearAllChildren()
  2107. end
  2108. end))
  2109. Model155.Name = "Wandering GameCube"
  2110. Model155.Parent = Model0
  2111. Folder156.Name = "Trail"
  2112. Folder156.Parent = Model155
  2113. Part157.Name = "TrailThingy"
  2114. Part157.Parent = Model155
  2115. Part157.CFrame = CFrame.new(-33.4123077, 1.10002112, -57.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2116. Part157.Position = Vector3.new(-33.4123077, 1.10002112, -57.2977943)
  2117. Part157.Transparency = 1
  2118. Part157.Size = Vector3.new(2, 2, 2)
  2119. Part157.Anchored = true
  2120. Part157.BottomSurface = Enum.SurfaceType.Smooth
  2121. Part157.CanCollide = false
  2122. Part157.TopSurface = Enum.SurfaceType.Smooth
  2123. SurfaceGui158.Name = "Gui"
  2124. SurfaceGui158.Parent = Part157
  2125. SurfaceGui158.Enabled = false
  2126. SurfaceGui158.Face = Enum.NormalId.Top
  2127. SurfaceGui158.ClipsDescendants = true
  2128. Frame159.Parent = SurfaceGui158
  2129. Frame159.Position = UDim2.new(0.5, 0, 0.5, 0)
  2130. Frame159.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  2131. Frame159.AnchorPoint = Vector2.new(0.5, 0.5)
  2132. Frame159.BackgroundColor = BrickColor.new("Medium bluish violet")
  2133. Frame159.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  2134. Frame159.BorderSizePixel = 0
  2135. Model160.Name = "GameCube"
  2136. Model160.Parent = Model155
  2137. Model160.PrimaryPart = Part167
  2138. MeshPart161.Name = "GameCube"
  2139. MeshPart161.Parent = Model160
  2140. MeshPart161.CFrame = CFrame.new(-33.4123077, 1.10002112, -57.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2141. MeshPart161.Position = Vector3.new(-33.4123077, 1.10002112, -57.2977943)
  2142. MeshPart161.Color = Color3.new(0.376471, 0.329412, 0.729412)
  2143. MeshPart161.Size = Vector3.new(2, 2.00000024, 2.00000024)
  2144. MeshPart161.Anchored = true
  2145. MeshPart161.BrickColor = BrickColor.new("Medium bluish violet")
  2146. MeshPart161.Material = Enum.Material.SmoothPlastic
  2147. MeshPart161.Reflectance = 0.20000000298023
  2148. MeshPart161.brickColor = BrickColor.new("Medium bluish violet")
  2149. Sound162.Name = "Landing"
  2150. Sound162.Parent = MeshPart161
  2151. Sound162.SoundId = "rbxassetid://2125574494"
  2152. Sound162.Volume = 2
  2153. Sound163.Name = "Finish"
  2154. Sound163.Parent = MeshPart161
  2155. Sound163.SoundId = "rbxassetid://2125574886"
  2156. Sound163.Volume = 2
  2157. Sound164.Name = "Rolling"
  2158. Sound164.Parent = MeshPart161
  2159. Sound164.Looped = true
  2160. Sound164.SoundId = "rbxassetid://2125574718"
  2161. Sound164.Volume = 2
  2162. PointLight165.Parent = MeshPart161
  2163. Sound166.Name = "Fricko"
  2164. Sound166.Parent = MeshPart161
  2165. Sound166.SoundId = "rbxassetid://2084814462"
  2166. Sound166.Volume = 4
  2167. Part167.Name = "Rollboi"
  2168. Part167.Parent = Model160
  2169. Part167.CFrame = CFrame.new(-33.4123077, 0.100022137, -58.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2170. Part167.Position = Vector3.new(-33.4123077, 0.100022137, -58.2977943)
  2171. Part167.Transparency = 1
  2172. Part167.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  2173. Part167.Anchored = true
  2174. Part167.BottomSurface = Enum.SurfaceType.Smooth
  2175. Part167.CanCollide = false
  2176. Part167.Material = Enum.Material.SmoothPlastic
  2177. Part167.TopSurface = Enum.SurfaceType.Smooth
  2178. Script168.Parent = Model155
  2179. table.insert(cors,sandbox(Script168,function()
  2180. --Scripted by Mah_Bucket, sorry if it's terrible
  2181.  
  2182. local t = game:GetService("TweenService")
  2183. local cube = script.Parent.GameCube.GameCube
  2184. local startingpoint = cube.CFrame
  2185. local roll = script.Parent.GameCube.Rollboi
  2186. math.randomseed(tick()*100)
  2187. while true do
  2188. cube.Transparency = 1
  2189. script.Parent.GameCube.PrimaryPart = cube
  2190. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  2191. script.Parent.GameCube.PrimaryPart = roll
  2192. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  2193. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  2194. tween:Play()
  2195. wait(.2)
  2196. cube.Landing:Play()
  2197. wait(.35)
  2198. local rando = math.random(4,16)
  2199. cube.Rolling:Play()
  2200. for x=1,rando do
  2201. if x == rando then
  2202. cube.Rolling:Stop()
  2203. cube.Finish:Play()
  2204. end
  2205. script.Parent.GameCube.PrimaryPart = cube
  2206. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  2207. script.Parent.GameCube.PrimaryPart = roll
  2208. for x=1,4 do
  2209. local turn = 6
  2210. local gui = script.Parent.TrailThingy:Clone()
  2211. gui.Gui.Enabled = true
  2212. gui.Transparency = 1
  2213. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  2214. gui.Parent = script.Parent.Trail
  2215. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  2216. if r1 ~= nil then
  2217. --print("inner corner")
  2218. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  2219. turn = -1
  2220. else
  2221. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  2222. if r2 == nil then
  2223. --print("outer corner")
  2224. turn = 12
  2225. end
  2226. end
  2227. if turn ~= -1 then
  2228. for x=1,turn do
  2229. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  2230. wait(.225/turn)
  2231. end
  2232. else
  2233. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  2234. end
  2235. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  2236. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  2237. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  2238. end
  2239. end
  2240. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  2241. tween:Play()
  2242. wait(.5)
  2243. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  2244. tween:Play()
  2245. wait(.2)
  2246. if math.random(1,20) == 10 then
  2247. cube.Fricko:Play()
  2248. end
  2249. wait(4)
  2250. script.Parent.Trail:ClearAllChildren()
  2251. end
  2252. end))
  2253. Model169.Name = "Wandering GameCube"
  2254. Model169.Parent = Model0
  2255. Folder170.Name = "Trail"
  2256. Folder170.Parent = Model169
  2257. Part171.Name = "TrailThingy"
  2258. Part171.Parent = Model169
  2259. Part171.CFrame = CFrame.new(-17.4123058, 1.10002613, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2260. Part171.Position = Vector3.new(-17.4123058, 1.10002613, -69.2977905)
  2261. Part171.Transparency = 1
  2262. Part171.Size = Vector3.new(2, 2, 2)
  2263. Part171.Anchored = true
  2264. Part171.BottomSurface = Enum.SurfaceType.Smooth
  2265. Part171.CanCollide = false
  2266. Part171.TopSurface = Enum.SurfaceType.Smooth
  2267. SurfaceGui172.Name = "Gui"
  2268. SurfaceGui172.Parent = Part171
  2269. SurfaceGui172.Enabled = false
  2270. SurfaceGui172.Face = Enum.NormalId.Top
  2271. SurfaceGui172.ClipsDescendants = true
  2272. Frame173.Parent = SurfaceGui172
  2273. Frame173.Position = UDim2.new(0.5, 0, 0.5, 0)
  2274. Frame173.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  2275. Frame173.AnchorPoint = Vector2.new(0.5, 0.5)
  2276. Frame173.BackgroundColor = BrickColor.new("Medium bluish violet")
  2277. Frame173.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  2278. Frame173.BorderSizePixel = 0
  2279. Model174.Name = "GameCube"
  2280. Model174.Parent = Model169
  2281. Model174.PrimaryPart = Part181
  2282. MeshPart175.Name = "GameCube"
  2283. MeshPart175.Parent = Model174
  2284. MeshPart175.CFrame = CFrame.new(-17.4123058, 1.10002613, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2285. MeshPart175.Position = Vector3.new(-17.4123058, 1.10002613, -69.2977905)
  2286. MeshPart175.Color = Color3.new(0.376471, 0.329412, 0.729412)
  2287. MeshPart175.Size = Vector3.new(2, 2.00000024, 2.00000024)
  2288. MeshPart175.Anchored = true
  2289. MeshPart175.BrickColor = BrickColor.new("Medium bluish violet")
  2290. MeshPart175.Material = Enum.Material.SmoothPlastic
  2291. MeshPart175.Reflectance = 0.20000000298023
  2292. MeshPart175.brickColor = BrickColor.new("Medium bluish violet")
  2293. Sound176.Name = "Landing"
  2294. Sound176.Parent = MeshPart175
  2295. Sound176.SoundId = "rbxassetid://2125574494"
  2296. Sound176.Volume = 2
  2297. Sound177.Name = "Finish"
  2298. Sound177.Parent = MeshPart175
  2299. Sound177.SoundId = "rbxassetid://2125574886"
  2300. Sound177.Volume = 2
  2301. Sound178.Name = "Rolling"
  2302. Sound178.Parent = MeshPart175
  2303. Sound178.Looped = true
  2304. Sound178.SoundId = "rbxassetid://2125574718"
  2305. Sound178.Volume = 2
  2306. PointLight179.Parent = MeshPart175
  2307. Sound180.Name = "Fricko"
  2308. Sound180.Parent = MeshPart175
  2309. Sound180.SoundId = "rbxassetid://2084814462"
  2310. Sound180.Volume = 4
  2311. Part181.Name = "Rollboi"
  2312. Part181.Parent = Model174
  2313. Part181.CFrame = CFrame.new(-17.4123058, 0.100027144, -70.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2314. Part181.Position = Vector3.new(-17.4123058, 0.100027144, -70.2977905)
  2315. Part181.Transparency = 1
  2316. Part181.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  2317. Part181.Anchored = true
  2318. Part181.BottomSurface = Enum.SurfaceType.Smooth
  2319. Part181.CanCollide = false
  2320. Part181.Material = Enum.Material.SmoothPlastic
  2321. Part181.TopSurface = Enum.SurfaceType.Smooth
  2322. Script182.Parent = Model169
  2323. table.insert(cors,sandbox(Script182,function()
  2324. --Scripted by Mah_Bucket, sorry if it's terrible
  2325.  
  2326. local t = game:GetService("TweenService")
  2327. local cube = script.Parent.GameCube.GameCube
  2328. local startingpoint = cube.CFrame
  2329. local roll = script.Parent.GameCube.Rollboi
  2330. math.randomseed(tick()*100)
  2331. while true do
  2332. cube.Transparency = 1
  2333. script.Parent.GameCube.PrimaryPart = cube
  2334. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  2335. script.Parent.GameCube.PrimaryPart = roll
  2336. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  2337. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  2338. tween:Play()
  2339. wait(.2)
  2340. cube.Landing:Play()
  2341. wait(.35)
  2342. local rando = math.random(4,16)
  2343. cube.Rolling:Play()
  2344. for x=1,rando do
  2345. if x == rando then
  2346. cube.Rolling:Stop()
  2347. cube.Finish:Play()
  2348. end
  2349. script.Parent.GameCube.PrimaryPart = cube
  2350. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  2351. script.Parent.GameCube.PrimaryPart = roll
  2352. for x=1,4 do
  2353. local turn = 6
  2354. local gui = script.Parent.TrailThingy:Clone()
  2355. gui.Gui.Enabled = true
  2356. gui.Transparency = 1
  2357. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  2358. gui.Parent = script.Parent.Trail
  2359. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  2360. if r1 ~= nil then
  2361. --print("inner corner")
  2362. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  2363. turn = -1
  2364. else
  2365. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  2366. if r2 == nil then
  2367. --print("outer corner")
  2368. turn = 12
  2369. end
  2370. end
  2371. if turn ~= -1 then
  2372. for x=1,turn do
  2373. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  2374. wait(.225/turn)
  2375. end
  2376. else
  2377. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  2378. end
  2379. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  2380. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  2381. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  2382. end
  2383. end
  2384. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  2385. tween:Play()
  2386. wait(.5)
  2387. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  2388. tween:Play()
  2389. wait(.2)
  2390. if math.random(1,20) == 10 then
  2391. cube.Fricko:Play()
  2392. end
  2393. wait(4)
  2394. script.Parent.Trail:ClearAllChildren()
  2395. end
  2396. end))
  2397. Model183.Name = "Wandering GameCube"
  2398. Model183.Parent = Model0
  2399. Folder184.Name = "Trail"
  2400. Folder184.Parent = Model183
  2401. Part185.Name = "TrailThingy"
  2402. Part185.Parent = Model183
  2403. Part185.CFrame = CFrame.new(-5.41230583, 1.10002112, -35.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2404. Part185.Position = Vector3.new(-5.41230583, 1.10002112, -35.2977943)
  2405. Part185.Transparency = 1
  2406. Part185.Size = Vector3.new(2, 2, 2)
  2407. Part185.Anchored = true
  2408. Part185.BottomSurface = Enum.SurfaceType.Smooth
  2409. Part185.CanCollide = false
  2410. Part185.TopSurface = Enum.SurfaceType.Smooth
  2411. SurfaceGui186.Name = "Gui"
  2412. SurfaceGui186.Parent = Part185
  2413. SurfaceGui186.Enabled = false
  2414. SurfaceGui186.Face = Enum.NormalId.Top
  2415. SurfaceGui186.ClipsDescendants = true
  2416. Frame187.Parent = SurfaceGui186
  2417. Frame187.Position = UDim2.new(0.5, 0, 0.5, 0)
  2418. Frame187.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  2419. Frame187.AnchorPoint = Vector2.new(0.5, 0.5)
  2420. Frame187.BackgroundColor = BrickColor.new("Medium bluish violet")
  2421. Frame187.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  2422. Frame187.BorderSizePixel = 0
  2423. Model188.Name = "GameCube"
  2424. Model188.Parent = Model183
  2425. Model188.PrimaryPart = Part195
  2426. MeshPart189.Name = "GameCube"
  2427. MeshPart189.Parent = Model188
  2428. MeshPart189.CFrame = CFrame.new(-5.41230583, 1.10002112, -35.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2429. MeshPart189.Position = Vector3.new(-5.41230583, 1.10002112, -35.2977943)
  2430. MeshPart189.Color = Color3.new(0.376471, 0.329412, 0.729412)
  2431. MeshPart189.Size = Vector3.new(2, 2.00000024, 2.00000024)
  2432. MeshPart189.Anchored = true
  2433. MeshPart189.BrickColor = BrickColor.new("Medium bluish violet")
  2434. MeshPart189.Material = Enum.Material.SmoothPlastic
  2435. MeshPart189.Reflectance = 0.20000000298023
  2436. MeshPart189.brickColor = BrickColor.new("Medium bluish violet")
  2437. Sound190.Name = "Landing"
  2438. Sound190.Parent = MeshPart189
  2439. Sound190.SoundId = "rbxassetid://2125574494"
  2440. Sound190.Volume = 2
  2441. Sound191.Name = "Finish"
  2442. Sound191.Parent = MeshPart189
  2443. Sound191.SoundId = "rbxassetid://2125574886"
  2444. Sound191.Volume = 2
  2445. Sound192.Name = "Rolling"
  2446. Sound192.Parent = MeshPart189
  2447. Sound192.Looped = true
  2448. Sound192.SoundId = "rbxassetid://2125574718"
  2449. Sound192.Volume = 2
  2450. PointLight193.Parent = MeshPart189
  2451. Sound194.Name = "Fricko"
  2452. Sound194.Parent = MeshPart189
  2453. Sound194.SoundId = "rbxassetid://2084814462"
  2454. Sound194.Volume = 4
  2455. Part195.Name = "Rollboi"
  2456. Part195.Parent = Model188
  2457. Part195.CFrame = CFrame.new(-5.41230583, 0.100022137, -36.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2458. Part195.Position = Vector3.new(-5.41230583, 0.100022137, -36.2977943)
  2459. Part195.Transparency = 1
  2460. Part195.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  2461. Part195.Anchored = true
  2462. Part195.BottomSurface = Enum.SurfaceType.Smooth
  2463. Part195.CanCollide = false
  2464. Part195.Material = Enum.Material.SmoothPlastic
  2465. Part195.TopSurface = Enum.SurfaceType.Smooth
  2466. Script196.Parent = Model183
  2467. table.insert(cors,sandbox(Script196,function()
  2468. --Scripted by Mah_Bucket, sorry if it's terrible
  2469.  
  2470. local t = game:GetService("TweenService")
  2471. local cube = script.Parent.GameCube.GameCube
  2472. local startingpoint = cube.CFrame
  2473. local roll = script.Parent.GameCube.Rollboi
  2474. math.randomseed(tick()*100)
  2475. while true do
  2476. cube.Transparency = 1
  2477. script.Parent.GameCube.PrimaryPart = cube
  2478. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  2479. script.Parent.GameCube.PrimaryPart = roll
  2480. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  2481. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  2482. tween:Play()
  2483. wait(.2)
  2484. cube.Landing:Play()
  2485. wait(.35)
  2486. local rando = math.random(4,16)
  2487. cube.Rolling:Play()
  2488. for x=1,rando do
  2489. if x == rando then
  2490. cube.Rolling:Stop()
  2491. cube.Finish:Play()
  2492. end
  2493. script.Parent.GameCube.PrimaryPart = cube
  2494. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  2495. script.Parent.GameCube.PrimaryPart = roll
  2496. for x=1,4 do
  2497. local turn = 6
  2498. local gui = script.Parent.TrailThingy:Clone()
  2499. gui.Gui.Enabled = true
  2500. gui.Transparency = 1
  2501. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  2502. gui.Parent = script.Parent.Trail
  2503. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  2504. if r1 ~= nil then
  2505. --print("inner corner")
  2506. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  2507. turn = -1
  2508. else
  2509. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  2510. if r2 == nil then
  2511. --print("outer corner")
  2512. turn = 12
  2513. end
  2514. end
  2515. if turn ~= -1 then
  2516. for x=1,turn do
  2517. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  2518. wait(.225/turn)
  2519. end
  2520. else
  2521. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  2522. end
  2523. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  2524. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  2525. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  2526. end
  2527. end
  2528. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  2529. tween:Play()
  2530. wait(.5)
  2531. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  2532. tween:Play()
  2533. wait(.2)
  2534. if math.random(1,20) == 10 then
  2535. cube.Fricko:Play()
  2536. end
  2537. wait(4)
  2538. script.Parent.Trail:ClearAllChildren()
  2539. end
  2540. end))
  2541. Model197.Name = "Wandering GameCube"
  2542. Model197.Parent = Model0
  2543. Folder198.Name = "Trail"
  2544. Folder198.Parent = Model197
  2545. Part199.Name = "TrailThingy"
  2546. Part199.Parent = Model197
  2547. Part199.CFrame = CFrame.new(8.58769417, 1.10001111, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2548. Part199.Position = Vector3.new(8.58769417, 1.10001111, -69.2977905)
  2549. Part199.Transparency = 1
  2550. Part199.Size = Vector3.new(2, 2, 2)
  2551. Part199.Anchored = true
  2552. Part199.BottomSurface = Enum.SurfaceType.Smooth
  2553. Part199.CanCollide = false
  2554. Part199.TopSurface = Enum.SurfaceType.Smooth
  2555. SurfaceGui200.Name = "Gui"
  2556. SurfaceGui200.Parent = Part199
  2557. SurfaceGui200.Enabled = false
  2558. SurfaceGui200.Face = Enum.NormalId.Top
  2559. SurfaceGui200.ClipsDescendants = true
  2560. Frame201.Parent = SurfaceGui200
  2561. Frame201.Position = UDim2.new(0.5, 0, 0.5, 0)
  2562. Frame201.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  2563. Frame201.AnchorPoint = Vector2.new(0.5, 0.5)
  2564. Frame201.BackgroundColor = BrickColor.new("Medium bluish violet")
  2565. Frame201.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  2566. Frame201.BorderSizePixel = 0
  2567. Model202.Name = "GameCube"
  2568. Model202.Parent = Model197
  2569. Model202.PrimaryPart = Part209
  2570. MeshPart203.Name = "GameCube"
  2571. MeshPart203.Parent = Model202
  2572. MeshPart203.CFrame = CFrame.new(8.58769417, 1.10001111, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2573. MeshPart203.Position = Vector3.new(8.58769417, 1.10001111, -69.2977905)
  2574. MeshPart203.Color = Color3.new(0.376471, 0.329412, 0.729412)
  2575. MeshPart203.Size = Vector3.new(2, 2.00000024, 2.00000024)
  2576. MeshPart203.Anchored = true
  2577. MeshPart203.BrickColor = BrickColor.new("Medium bluish violet")
  2578. MeshPart203.Material = Enum.Material.SmoothPlastic
  2579. MeshPart203.Reflectance = 0.20000000298023
  2580. MeshPart203.brickColor = BrickColor.new("Medium bluish violet")
  2581. Sound204.Name = "Landing"
  2582. Sound204.Parent = MeshPart203
  2583. Sound204.SoundId = "rbxassetid://2125574494"
  2584. Sound204.Volume = 2
  2585. Sound205.Name = "Finish"
  2586. Sound205.Parent = MeshPart203
  2587. Sound205.SoundId = "rbxassetid://2125574886"
  2588. Sound205.Volume = 2
  2589. Sound206.Name = "Rolling"
  2590. Sound206.Parent = MeshPart203
  2591. Sound206.Looped = true
  2592. Sound206.SoundId = "rbxassetid://2125574718"
  2593. Sound206.Volume = 2
  2594. PointLight207.Parent = MeshPart203
  2595. Sound208.Name = "Fricko"
  2596. Sound208.Parent = MeshPart203
  2597. Sound208.SoundId = "rbxassetid://2084814462"
  2598. Sound208.Volume = 4
  2599. Part209.Name = "Rollboi"
  2600. Part209.Parent = Model202
  2601. Part209.CFrame = CFrame.new(8.58769417, 0.100012124, -70.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2602. Part209.Position = Vector3.new(8.58769417, 0.100012124, -70.2977905)
  2603. Part209.Transparency = 1
  2604. Part209.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  2605. Part209.Anchored = true
  2606. Part209.BottomSurface = Enum.SurfaceType.Smooth
  2607. Part209.CanCollide = false
  2608. Part209.Material = Enum.Material.SmoothPlastic
  2609. Part209.TopSurface = Enum.SurfaceType.Smooth
  2610. Script210.Parent = Model197
  2611. table.insert(cors,sandbox(Script210,function()
  2612. --Scripted by Mah_Bucket, sorry if it's terrible
  2613.  
  2614. local t = game:GetService("TweenService")
  2615. local cube = script.Parent.GameCube.GameCube
  2616. local startingpoint = cube.CFrame
  2617. local roll = script.Parent.GameCube.Rollboi
  2618. math.randomseed(tick()*100)
  2619. while true do
  2620. cube.Transparency = 1
  2621. script.Parent.GameCube.PrimaryPart = cube
  2622. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  2623. script.Parent.GameCube.PrimaryPart = roll
  2624. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  2625. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  2626. tween:Play()
  2627. wait(.2)
  2628. cube.Landing:Play()
  2629. wait(.35)
  2630. local rando = math.random(4,16)
  2631. cube.Rolling:Play()
  2632. for x=1,rando do
  2633. if x == rando then
  2634. cube.Rolling:Stop()
  2635. cube.Finish:Play()
  2636. end
  2637. script.Parent.GameCube.PrimaryPart = cube
  2638. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  2639. script.Parent.GameCube.PrimaryPart = roll
  2640. for x=1,4 do
  2641. local turn = 6
  2642. local gui = script.Parent.TrailThingy:Clone()
  2643. gui.Gui.Enabled = true
  2644. gui.Transparency = 1
  2645. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  2646. gui.Parent = script.Parent.Trail
  2647. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  2648. if r1 ~= nil then
  2649. --print("inner corner")
  2650. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  2651. turn = -1
  2652. else
  2653. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  2654. if r2 == nil then
  2655. --print("outer corner")
  2656. turn = 12
  2657. end
  2658. end
  2659. if turn ~= -1 then
  2660. for x=1,turn do
  2661. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  2662. wait(.225/turn)
  2663. end
  2664. else
  2665. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  2666. end
  2667. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  2668. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  2669. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  2670. end
  2671. end
  2672. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  2673. tween:Play()
  2674. wait(.5)
  2675. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  2676. tween:Play()
  2677. wait(.2)
  2678. if math.random(1,20) == 10 then
  2679. cube.Fricko:Play()
  2680. end
  2681. wait(4)
  2682. script.Parent.Trail:ClearAllChildren()
  2683. end
  2684. end))
  2685. Model211.Name = "Wandering GameCube"
  2686. Model211.Parent = Model0
  2687. Folder212.Name = "Trail"
  2688. Folder212.Parent = Model211
  2689. Part213.Name = "TrailThingy"
  2690. Part213.Parent = Model211
  2691. Part213.CFrame = CFrame.new(-9.41230583, 1.10002422, -91.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2692. Part213.Position = Vector3.new(-9.41230583, 1.10002422, -91.2977905)
  2693. Part213.Transparency = 1
  2694. Part213.Size = Vector3.new(2, 2, 2)
  2695. Part213.Anchored = true
  2696. Part213.BottomSurface = Enum.SurfaceType.Smooth
  2697. Part213.CanCollide = false
  2698. Part213.TopSurface = Enum.SurfaceType.Smooth
  2699. SurfaceGui214.Name = "Gui"
  2700. SurfaceGui214.Parent = Part213
  2701. SurfaceGui214.Enabled = false
  2702. SurfaceGui214.Face = Enum.NormalId.Top
  2703. SurfaceGui214.ClipsDescendants = true
  2704. Frame215.Parent = SurfaceGui214
  2705. Frame215.Position = UDim2.new(0.5, 0, 0.5, 0)
  2706. Frame215.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  2707. Frame215.AnchorPoint = Vector2.new(0.5, 0.5)
  2708. Frame215.BackgroundColor = BrickColor.new("Medium bluish violet")
  2709. Frame215.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  2710. Frame215.BorderSizePixel = 0
  2711. Model216.Name = "GameCube"
  2712. Model216.Parent = Model211
  2713. Model216.PrimaryPart = Part223
  2714. MeshPart217.Name = "GameCube"
  2715. MeshPart217.Parent = Model216
  2716. MeshPart217.CFrame = CFrame.new(-9.41230583, 1.10002422, -91.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2717. MeshPart217.Position = Vector3.new(-9.41230583, 1.10002422, -91.2977905)
  2718. MeshPart217.Color = Color3.new(0.376471, 0.329412, 0.729412)
  2719. MeshPart217.Size = Vector3.new(2, 2.00000024, 2.00000024)
  2720. MeshPart217.Anchored = true
  2721. MeshPart217.BrickColor = BrickColor.new("Medium bluish violet")
  2722. MeshPart217.Material = Enum.Material.SmoothPlastic
  2723. MeshPart217.Reflectance = 0.20000000298023
  2724. MeshPart217.brickColor = BrickColor.new("Medium bluish violet")
  2725. Sound218.Name = "Landing"
  2726. Sound218.Parent = MeshPart217
  2727. Sound218.SoundId = "rbxassetid://2125574494"
  2728. Sound218.Volume = 2
  2729. Sound219.Name = "Finish"
  2730. Sound219.Parent = MeshPart217
  2731. Sound219.SoundId = "rbxassetid://2125574886"
  2732. Sound219.Volume = 2
  2733. Sound220.Name = "Rolling"
  2734. Sound220.Parent = MeshPart217
  2735. Sound220.Looped = true
  2736. Sound220.SoundId = "rbxassetid://2125574718"
  2737. Sound220.Volume = 2
  2738. PointLight221.Parent = MeshPart217
  2739. Sound222.Name = "Fricko"
  2740. Sound222.Parent = MeshPart217
  2741. Sound222.SoundId = "rbxassetid://2084814462"
  2742. Sound222.Volume = 4
  2743. Part223.Name = "Rollboi"
  2744. Part223.Parent = Model216
  2745. Part223.CFrame = CFrame.new(-9.41230583, 0.100025117, -92.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2746. Part223.Position = Vector3.new(-9.41230583, 0.100025117, -92.2977905)
  2747. Part223.Transparency = 1
  2748. Part223.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  2749. Part223.Anchored = true
  2750. Part223.BottomSurface = Enum.SurfaceType.Smooth
  2751. Part223.CanCollide = false
  2752. Part223.Material = Enum.Material.SmoothPlastic
  2753. Part223.TopSurface = Enum.SurfaceType.Smooth
  2754. Script224.Parent = Model211
  2755. table.insert(cors,sandbox(Script224,function()
  2756. --Scripted by Mah_Bucket, sorry if it's terrible
  2757.  
  2758. local t = game:GetService("TweenService")
  2759. local cube = script.Parent.GameCube.GameCube
  2760. local startingpoint = cube.CFrame
  2761. local roll = script.Parent.GameCube.Rollboi
  2762. math.randomseed(tick()*100)
  2763. while true do
  2764. cube.Transparency = 1
  2765. script.Parent.GameCube.PrimaryPart = cube
  2766. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  2767. script.Parent.GameCube.PrimaryPart = roll
  2768. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  2769. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  2770. tween:Play()
  2771. wait(.2)
  2772. cube.Landing:Play()
  2773. wait(.35)
  2774. local rando = math.random(4,16)
  2775. cube.Rolling:Play()
  2776. for x=1,rando do
  2777. if x == rando then
  2778. cube.Rolling:Stop()
  2779. cube.Finish:Play()
  2780. end
  2781. script.Parent.GameCube.PrimaryPart = cube
  2782. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  2783. script.Parent.GameCube.PrimaryPart = roll
  2784. for x=1,4 do
  2785. local turn = 6
  2786. local gui = script.Parent.TrailThingy:Clone()
  2787. gui.Gui.Enabled = true
  2788. gui.Transparency = 1
  2789. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  2790. gui.Parent = script.Parent.Trail
  2791. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  2792. if r1 ~= nil then
  2793. --print("inner corner")
  2794. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  2795. turn = -1
  2796. else
  2797. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  2798. if r2 == nil then
  2799. --print("outer corner")
  2800. turn = 12
  2801. end
  2802. end
  2803. if turn ~= -1 then
  2804. for x=1,turn do
  2805. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  2806. wait(.225/turn)
  2807. end
  2808. else
  2809. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  2810. end
  2811. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  2812. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  2813. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  2814. end
  2815. end
  2816. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  2817. tween:Play()
  2818. wait(.5)
  2819. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  2820. tween:Play()
  2821. wait(.2)
  2822. if math.random(1,20) == 10 then
  2823. cube.Fricko:Play()
  2824. end
  2825. wait(4)
  2826. script.Parent.Trail:ClearAllChildren()
  2827. end
  2828. end))
  2829. Model225.Name = "Wandering GameCube"
  2830. Model225.Parent = Model0
  2831. Folder226.Name = "Trail"
  2832. Folder226.Parent = Model225
  2833. Part227.Name = "TrailThingy"
  2834. Part227.Parent = Model225
  2835. Part227.CFrame = CFrame.new(-9.41230583, 1.10001206, -55.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2836. Part227.Position = Vector3.new(-9.41230583, 1.10001206, -55.2977943)
  2837. Part227.Transparency = 1
  2838. Part227.Size = Vector3.new(2, 2, 2)
  2839. Part227.Anchored = true
  2840. Part227.BottomSurface = Enum.SurfaceType.Smooth
  2841. Part227.CanCollide = false
  2842. Part227.TopSurface = Enum.SurfaceType.Smooth
  2843. SurfaceGui228.Name = "Gui"
  2844. SurfaceGui228.Parent = Part227
  2845. SurfaceGui228.Enabled = false
  2846. SurfaceGui228.Face = Enum.NormalId.Top
  2847. SurfaceGui228.ClipsDescendants = true
  2848. Frame229.Parent = SurfaceGui228
  2849. Frame229.Position = UDim2.new(0.5, 0, 0.5, 0)
  2850. Frame229.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  2851. Frame229.AnchorPoint = Vector2.new(0.5, 0.5)
  2852. Frame229.BackgroundColor = BrickColor.new("Medium bluish violet")
  2853. Frame229.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  2854. Frame229.BorderSizePixel = 0
  2855. Model230.Name = "GameCube"
  2856. Model230.Parent = Model225
  2857. Model230.PrimaryPart = Part237
  2858. MeshPart231.Name = "GameCube"
  2859. MeshPart231.Parent = Model230
  2860. MeshPart231.CFrame = CFrame.new(-9.41230583, 1.10001206, -55.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2861. MeshPart231.Position = Vector3.new(-9.41230583, 1.10001206, -55.2977943)
  2862. MeshPart231.Color = Color3.new(0.376471, 0.329412, 0.729412)
  2863. MeshPart231.Size = Vector3.new(2, 2.00000024, 2.00000024)
  2864. MeshPart231.Anchored = true
  2865. MeshPart231.BrickColor = BrickColor.new("Medium bluish violet")
  2866. MeshPart231.Material = Enum.Material.SmoothPlastic
  2867. MeshPart231.Reflectance = 0.20000000298023
  2868. MeshPart231.brickColor = BrickColor.new("Medium bluish violet")
  2869. Sound232.Name = "Landing"
  2870. Sound232.Parent = MeshPart231
  2871. Sound232.SoundId = "rbxassetid://2125574494"
  2872. Sound232.Volume = 2
  2873. Sound233.Name = "Finish"
  2874. Sound233.Parent = MeshPart231
  2875. Sound233.SoundId = "rbxassetid://2125574886"
  2876. Sound233.Volume = 2
  2877. Sound234.Name = "Rolling"
  2878. Sound234.Parent = MeshPart231
  2879. Sound234.Looped = true
  2880. Sound234.SoundId = "rbxassetid://2125574718"
  2881. Sound234.Volume = 2
  2882. PointLight235.Parent = MeshPart231
  2883. Sound236.Name = "Fricko"
  2884. Sound236.Parent = MeshPart231
  2885. Sound236.SoundId = "rbxassetid://2084814462"
  2886. Sound236.Volume = 4
  2887. Part237.Name = "Rollboi"
  2888. Part237.Parent = Model230
  2889. Part237.CFrame = CFrame.new(-9.41230583, 0.100013077, -56.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2890. Part237.Position = Vector3.new(-9.41230583, 0.100013077, -56.2977943)
  2891. Part237.Transparency = 1
  2892. Part237.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  2893. Part237.Anchored = true
  2894. Part237.BottomSurface = Enum.SurfaceType.Smooth
  2895. Part237.CanCollide = false
  2896. Part237.Material = Enum.Material.SmoothPlastic
  2897. Part237.TopSurface = Enum.SurfaceType.Smooth
  2898. Script238.Parent = Model225
  2899. table.insert(cors,sandbox(Script238,function()
  2900. --Scripted by Mah_Bucket, sorry if it's terrible
  2901.  
  2902. local t = game:GetService("TweenService")
  2903. local cube = script.Parent.GameCube.GameCube
  2904. local startingpoint = cube.CFrame
  2905. local roll = script.Parent.GameCube.Rollboi
  2906. math.randomseed(tick()*100)
  2907. while true do
  2908. cube.Transparency = 1
  2909. script.Parent.GameCube.PrimaryPart = cube
  2910. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  2911. script.Parent.GameCube.PrimaryPart = roll
  2912. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  2913. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  2914. tween:Play()
  2915. wait(.2)
  2916. cube.Landing:Play()
  2917. wait(.35)
  2918. local rando = math.random(4,16)
  2919. cube.Rolling:Play()
  2920. for x=1,rando do
  2921. if x == rando then
  2922. cube.Rolling:Stop()
  2923. cube.Finish:Play()
  2924. end
  2925. script.Parent.GameCube.PrimaryPart = cube
  2926. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  2927. script.Parent.GameCube.PrimaryPart = roll
  2928. for x=1,4 do
  2929. local turn = 6
  2930. local gui = script.Parent.TrailThingy:Clone()
  2931. gui.Gui.Enabled = true
  2932. gui.Transparency = 1
  2933. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  2934. gui.Parent = script.Parent.Trail
  2935. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  2936. if r1 ~= nil then
  2937. --print("inner corner")
  2938. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  2939. turn = -1
  2940. else
  2941. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  2942. if r2 == nil then
  2943. --print("outer corner")
  2944. turn = 12
  2945. end
  2946. end
  2947. if turn ~= -1 then
  2948. for x=1,turn do
  2949. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  2950. wait(.225/turn)
  2951. end
  2952. else
  2953. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  2954. end
  2955. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  2956. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  2957. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  2958. end
  2959. end
  2960. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  2961. tween:Play()
  2962. wait(.5)
  2963. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  2964. tween:Play()
  2965. wait(.2)
  2966. if math.random(1,20) == 10 then
  2967. cube.Fricko:Play()
  2968. end
  2969. wait(4)
  2970. script.Parent.Trail:ClearAllChildren()
  2971. end
  2972. end))
  2973. Model239.Name = "Wandering GameCube"
  2974. Model239.Parent = Model0
  2975. Folder240.Name = "Trail"
  2976. Folder240.Parent = Model239
  2977. Part241.Name = "TrailThingy"
  2978. Part241.Parent = Model239
  2979. Part241.CFrame = CFrame.new(-39.4123077, 1.10001421, -37.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2980. Part241.Position = Vector3.new(-39.4123077, 1.10001421, -37.2977943)
  2981. Part241.Transparency = 1
  2982. Part241.Size = Vector3.new(2, 2, 2)
  2983. Part241.Anchored = true
  2984. Part241.BottomSurface = Enum.SurfaceType.Smooth
  2985. Part241.CanCollide = false
  2986. Part241.TopSurface = Enum.SurfaceType.Smooth
  2987. SurfaceGui242.Name = "Gui"
  2988. SurfaceGui242.Parent = Part241
  2989. SurfaceGui242.Enabled = false
  2990. SurfaceGui242.Face = Enum.NormalId.Top
  2991. SurfaceGui242.ClipsDescendants = true
  2992. Frame243.Parent = SurfaceGui242
  2993. Frame243.Position = UDim2.new(0.5, 0, 0.5, 0)
  2994. Frame243.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  2995. Frame243.AnchorPoint = Vector2.new(0.5, 0.5)
  2996. Frame243.BackgroundColor = BrickColor.new("Medium bluish violet")
  2997. Frame243.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  2998. Frame243.BorderSizePixel = 0
  2999. Model244.Name = "GameCube"
  3000. Model244.Parent = Model239
  3001. Model244.PrimaryPart = Part251
  3002. MeshPart245.Name = "GameCube"
  3003. MeshPart245.Parent = Model244
  3004. MeshPart245.CFrame = CFrame.new(-39.4123077, 1.10001421, -37.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3005. MeshPart245.Position = Vector3.new(-39.4123077, 1.10001421, -37.2977943)
  3006. MeshPart245.Color = Color3.new(0.376471, 0.329412, 0.729412)
  3007. MeshPart245.Size = Vector3.new(2, 2.00000024, 2.00000024)
  3008. MeshPart245.Anchored = true
  3009. MeshPart245.BrickColor = BrickColor.new("Medium bluish violet")
  3010. MeshPart245.Material = Enum.Material.SmoothPlastic
  3011. MeshPart245.Reflectance = 0.20000000298023
  3012. MeshPart245.brickColor = BrickColor.new("Medium bluish violet")
  3013. Sound246.Name = "Landing"
  3014. Sound246.Parent = MeshPart245
  3015. Sound246.SoundId = "rbxassetid://2125574494"
  3016. Sound246.Volume = 2
  3017. Sound247.Name = "Finish"
  3018. Sound247.Parent = MeshPart245
  3019. Sound247.SoundId = "rbxassetid://2125574886"
  3020. Sound247.Volume = 2
  3021. Sound248.Name = "Rolling"
  3022. Sound248.Parent = MeshPart245
  3023. Sound248.Looped = true
  3024. Sound248.SoundId = "rbxassetid://2125574718"
  3025. Sound248.Volume = 2
  3026. PointLight249.Parent = MeshPart245
  3027. Sound250.Name = "Fricko"
  3028. Sound250.Parent = MeshPart245
  3029. Sound250.SoundId = "rbxassetid://2084814462"
  3030. Sound250.Volume = 4
  3031. Part251.Name = "Rollboi"
  3032. Part251.Parent = Model244
  3033. Part251.CFrame = CFrame.new(-39.4123077, 0.100015104, -38.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3034. Part251.Position = Vector3.new(-39.4123077, 0.100015104, -38.2977943)
  3035. Part251.Transparency = 1
  3036. Part251.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  3037. Part251.Anchored = true
  3038. Part251.BottomSurface = Enum.SurfaceType.Smooth
  3039. Part251.CanCollide = false
  3040. Part251.Material = Enum.Material.SmoothPlastic
  3041. Part251.TopSurface = Enum.SurfaceType.Smooth
  3042. Script252.Parent = Model239
  3043. table.insert(cors,sandbox(Script252,function()
  3044. --Scripted by Mah_Bucket, sorry if it's terrible
  3045.  
  3046. local t = game:GetService("TweenService")
  3047. local cube = script.Parent.GameCube.GameCube
  3048. local startingpoint = cube.CFrame
  3049. local roll = script.Parent.GameCube.Rollboi
  3050. math.randomseed(tick()*100)
  3051. while true do
  3052. cube.Transparency = 1
  3053. script.Parent.GameCube.PrimaryPart = cube
  3054. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  3055. script.Parent.GameCube.PrimaryPart = roll
  3056. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  3057. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  3058. tween:Play()
  3059. wait(.2)
  3060. cube.Landing:Play()
  3061. wait(.35)
  3062. local rando = math.random(4,16)
  3063. cube.Rolling:Play()
  3064. for x=1,rando do
  3065. if x == rando then
  3066. cube.Rolling:Stop()
  3067. cube.Finish:Play()
  3068. end
  3069. script.Parent.GameCube.PrimaryPart = cube
  3070. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  3071. script.Parent.GameCube.PrimaryPart = roll
  3072. for x=1,4 do
  3073. local turn = 6
  3074. local gui = script.Parent.TrailThingy:Clone()
  3075. gui.Gui.Enabled = true
  3076. gui.Transparency = 1
  3077. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  3078. gui.Parent = script.Parent.Trail
  3079. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  3080. if r1 ~= nil then
  3081. --print("inner corner")
  3082. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  3083. turn = -1
  3084. else
  3085. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  3086. if r2 == nil then
  3087. --print("outer corner")
  3088. turn = 12
  3089. end
  3090. end
  3091. if turn ~= -1 then
  3092. for x=1,turn do
  3093. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  3094. wait(.225/turn)
  3095. end
  3096. else
  3097. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  3098. end
  3099. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  3100. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  3101. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  3102. end
  3103. end
  3104. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  3105. tween:Play()
  3106. wait(.5)
  3107. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  3108. tween:Play()
  3109. wait(.2)
  3110. if math.random(1,20) == 10 then
  3111. cube.Fricko:Play()
  3112. end
  3113. wait(4)
  3114. script.Parent.Trail:ClearAllChildren()
  3115. end
  3116. end))
  3117. Model253.Name = "Wandering GameCube"
  3118. Model253.Parent = Model0
  3119. Folder254.Name = "Trail"
  3120. Folder254.Parent = Model253
  3121. Part255.Name = "TrailThingy"
  3122. Part255.Parent = Model253
  3123. Part255.CFrame = CFrame.new(-5.41230583, 1.10002112, -35.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3124. Part255.Position = Vector3.new(-5.41230583, 1.10002112, -35.2977943)
  3125. Part255.Transparency = 1
  3126. Part255.Size = Vector3.new(2, 2, 2)
  3127. Part255.Anchored = true
  3128. Part255.BottomSurface = Enum.SurfaceType.Smooth
  3129. Part255.CanCollide = false
  3130. Part255.TopSurface = Enum.SurfaceType.Smooth
  3131. SurfaceGui256.Name = "Gui"
  3132. SurfaceGui256.Parent = Part255
  3133. SurfaceGui256.Enabled = false
  3134. SurfaceGui256.Face = Enum.NormalId.Top
  3135. SurfaceGui256.ClipsDescendants = true
  3136. Frame257.Parent = SurfaceGui256
  3137. Frame257.Position = UDim2.new(0.5, 0, 0.5, 0)
  3138. Frame257.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  3139. Frame257.AnchorPoint = Vector2.new(0.5, 0.5)
  3140. Frame257.BackgroundColor = BrickColor.new("Medium bluish violet")
  3141. Frame257.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  3142. Frame257.BorderSizePixel = 0
  3143. Model258.Name = "GameCube"
  3144. Model258.Parent = Model253
  3145. Model258.PrimaryPart = Part265
  3146. MeshPart259.Name = "GameCube"
  3147. MeshPart259.Parent = Model258
  3148. MeshPart259.CFrame = CFrame.new(-5.41230583, 1.10002112, -35.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3149. MeshPart259.Position = Vector3.new(-5.41230583, 1.10002112, -35.2977943)
  3150. MeshPart259.Color = Color3.new(0.376471, 0.329412, 0.729412)
  3151. MeshPart259.Size = Vector3.new(2, 2.00000024, 2.00000024)
  3152. MeshPart259.Anchored = true
  3153. MeshPart259.BrickColor = BrickColor.new("Medium bluish violet")
  3154. MeshPart259.Material = Enum.Material.SmoothPlastic
  3155. MeshPart259.Reflectance = 0.20000000298023
  3156. MeshPart259.brickColor = BrickColor.new("Medium bluish violet")
  3157. Sound260.Name = "Landing"
  3158. Sound260.Parent = MeshPart259
  3159. Sound260.SoundId = "rbxassetid://2125574494"
  3160. Sound260.Volume = 2
  3161. Sound261.Name = "Finish"
  3162. Sound261.Parent = MeshPart259
  3163. Sound261.SoundId = "rbxassetid://2125574886"
  3164. Sound261.Volume = 2
  3165. Sound262.Name = "Rolling"
  3166. Sound262.Parent = MeshPart259
  3167. Sound262.Looped = true
  3168. Sound262.SoundId = "rbxassetid://2125574718"
  3169. Sound262.Volume = 2
  3170. PointLight263.Parent = MeshPart259
  3171. Sound264.Name = "Fricko"
  3172. Sound264.Parent = MeshPart259
  3173. Sound264.SoundId = "rbxassetid://2084814462"
  3174. Sound264.Volume = 4
  3175. Part265.Name = "Rollboi"
  3176. Part265.Parent = Model258
  3177. Part265.CFrame = CFrame.new(-5.41230583, 0.100022137, -36.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3178. Part265.Position = Vector3.new(-5.41230583, 0.100022137, -36.2977943)
  3179. Part265.Transparency = 1
  3180. Part265.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  3181. Part265.Anchored = true
  3182. Part265.BottomSurface = Enum.SurfaceType.Smooth
  3183. Part265.CanCollide = false
  3184. Part265.Material = Enum.Material.SmoothPlastic
  3185. Part265.TopSurface = Enum.SurfaceType.Smooth
  3186. Script266.Parent = Model253
  3187. table.insert(cors,sandbox(Script266,function()
  3188. --Scripted by Mah_Bucket, sorry if it's terrible
  3189.  
  3190. local t = game:GetService("TweenService")
  3191. local cube = script.Parent.GameCube.GameCube
  3192. local startingpoint = cube.CFrame
  3193. local roll = script.Parent.GameCube.Rollboi
  3194. math.randomseed(tick()*100)
  3195. while true do
  3196. cube.Transparency = 1
  3197. script.Parent.GameCube.PrimaryPart = cube
  3198. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  3199. script.Parent.GameCube.PrimaryPart = roll
  3200. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  3201. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  3202. tween:Play()
  3203. wait(.2)
  3204. cube.Landing:Play()
  3205. wait(.35)
  3206. local rando = math.random(4,16)
  3207. cube.Rolling:Play()
  3208. for x=1,rando do
  3209. if x == rando then
  3210. cube.Rolling:Stop()
  3211. cube.Finish:Play()
  3212. end
  3213. script.Parent.GameCube.PrimaryPart = cube
  3214. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  3215. script.Parent.GameCube.PrimaryPart = roll
  3216. for x=1,4 do
  3217. local turn = 6
  3218. local gui = script.Parent.TrailThingy:Clone()
  3219. gui.Gui.Enabled = true
  3220. gui.Transparency = 1
  3221. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  3222. gui.Parent = script.Parent.Trail
  3223. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  3224. if r1 ~= nil then
  3225. --print("inner corner")
  3226. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  3227. turn = -1
  3228. else
  3229. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  3230. if r2 == nil then
  3231. --print("outer corner")
  3232. turn = 12
  3233. end
  3234. end
  3235. if turn ~= -1 then
  3236. for x=1,turn do
  3237. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  3238. wait(.225/turn)
  3239. end
  3240. else
  3241. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  3242. end
  3243. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  3244. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  3245. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  3246. end
  3247. end
  3248. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  3249. tween:Play()
  3250. wait(.5)
  3251. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  3252. tween:Play()
  3253. wait(.2)
  3254. if math.random(1,20) == 10 then
  3255. cube.Fricko:Play()
  3256. end
  3257. wait(4)
  3258. script.Parent.Trail:ClearAllChildren()
  3259. end
  3260. end))
  3261. Model267.Name = "Wandering GameCube"
  3262. Model267.Parent = Model0
  3263. Folder268.Name = "Trail"
  3264. Folder268.Parent = Model267
  3265. Part269.Name = "TrailThingy"
  3266. Part269.Parent = Model267
  3267. Part269.CFrame = CFrame.new(-33.4123077, 1.10002112, -57.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3268. Part269.Position = Vector3.new(-33.4123077, 1.10002112, -57.2977943)
  3269. Part269.Transparency = 1
  3270. Part269.Size = Vector3.new(2, 2, 2)
  3271. Part269.Anchored = true
  3272. Part269.BottomSurface = Enum.SurfaceType.Smooth
  3273. Part269.CanCollide = false
  3274. Part269.TopSurface = Enum.SurfaceType.Smooth
  3275. SurfaceGui270.Name = "Gui"
  3276. SurfaceGui270.Parent = Part269
  3277. SurfaceGui270.Enabled = false
  3278. SurfaceGui270.Face = Enum.NormalId.Top
  3279. SurfaceGui270.ClipsDescendants = true
  3280. Frame271.Parent = SurfaceGui270
  3281. Frame271.Position = UDim2.new(0.5, 0, 0.5, 0)
  3282. Frame271.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  3283. Frame271.AnchorPoint = Vector2.new(0.5, 0.5)
  3284. Frame271.BackgroundColor = BrickColor.new("Medium bluish violet")
  3285. Frame271.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  3286. Frame271.BorderSizePixel = 0
  3287. Model272.Name = "GameCube"
  3288. Model272.Parent = Model267
  3289. Model272.PrimaryPart = Part279
  3290. MeshPart273.Name = "GameCube"
  3291. MeshPart273.Parent = Model272
  3292. MeshPart273.CFrame = CFrame.new(-33.4123077, 1.10002112, -57.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3293. MeshPart273.Position = Vector3.new(-33.4123077, 1.10002112, -57.2977943)
  3294. MeshPart273.Color = Color3.new(0.376471, 0.329412, 0.729412)
  3295. MeshPart273.Size = Vector3.new(2, 2.00000024, 2.00000024)
  3296. MeshPart273.Anchored = true
  3297. MeshPart273.BrickColor = BrickColor.new("Medium bluish violet")
  3298. MeshPart273.Material = Enum.Material.SmoothPlastic
  3299. MeshPart273.Reflectance = 0.20000000298023
  3300. MeshPart273.brickColor = BrickColor.new("Medium bluish violet")
  3301. Sound274.Name = "Landing"
  3302. Sound274.Parent = MeshPart273
  3303. Sound274.SoundId = "rbxassetid://2125574494"
  3304. Sound274.Volume = 2
  3305. Sound275.Name = "Finish"
  3306. Sound275.Parent = MeshPart273
  3307. Sound275.SoundId = "rbxassetid://2125574886"
  3308. Sound275.Volume = 2
  3309. Sound276.Name = "Rolling"
  3310. Sound276.Parent = MeshPart273
  3311. Sound276.Looped = true
  3312. Sound276.SoundId = "rbxassetid://2125574718"
  3313. Sound276.Volume = 2
  3314. PointLight277.Parent = MeshPart273
  3315. Sound278.Name = "Fricko"
  3316. Sound278.Parent = MeshPart273
  3317. Sound278.SoundId = "rbxassetid://2084814462"
  3318. Sound278.Volume = 4
  3319. Part279.Name = "Rollboi"
  3320. Part279.Parent = Model272
  3321. Part279.CFrame = CFrame.new(-33.4123077, 0.100022137, -58.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3322. Part279.Position = Vector3.new(-33.4123077, 0.100022137, -58.2977943)
  3323. Part279.Transparency = 1
  3324. Part279.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  3325. Part279.Anchored = true
  3326. Part279.BottomSurface = Enum.SurfaceType.Smooth
  3327. Part279.CanCollide = false
  3328. Part279.Material = Enum.Material.SmoothPlastic
  3329. Part279.TopSurface = Enum.SurfaceType.Smooth
  3330. Script280.Parent = Model267
  3331. table.insert(cors,sandbox(Script280,function()
  3332. --Scripted by Mah_Bucket, sorry if it's terrible
  3333.  
  3334. local t = game:GetService("TweenService")
  3335. local cube = script.Parent.GameCube.GameCube
  3336. local startingpoint = cube.CFrame
  3337. local roll = script.Parent.GameCube.Rollboi
  3338. math.randomseed(tick()*100)
  3339. while true do
  3340. cube.Transparency = 1
  3341. script.Parent.GameCube.PrimaryPart = cube
  3342. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  3343. script.Parent.GameCube.PrimaryPart = roll
  3344. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  3345. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  3346. tween:Play()
  3347. wait(.2)
  3348. cube.Landing:Play()
  3349. wait(.35)
  3350. local rando = math.random(4,16)
  3351. cube.Rolling:Play()
  3352. for x=1,rando do
  3353. if x == rando then
  3354. cube.Rolling:Stop()
  3355. cube.Finish:Play()
  3356. end
  3357. script.Parent.GameCube.PrimaryPart = cube
  3358. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  3359. script.Parent.GameCube.PrimaryPart = roll
  3360. for x=1,4 do
  3361. local turn = 6
  3362. local gui = script.Parent.TrailThingy:Clone()
  3363. gui.Gui.Enabled = true
  3364. gui.Transparency = 1
  3365. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  3366. gui.Parent = script.Parent.Trail
  3367. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  3368. if r1 ~= nil then
  3369. --print("inner corner")
  3370. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  3371. turn = -1
  3372. else
  3373. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  3374. if r2 == nil then
  3375. --print("outer corner")
  3376. turn = 12
  3377. end
  3378. end
  3379. if turn ~= -1 then
  3380. for x=1,turn do
  3381. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  3382. wait(.225/turn)
  3383. end
  3384. else
  3385. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  3386. end
  3387. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  3388. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  3389. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  3390. end
  3391. end
  3392. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  3393. tween:Play()
  3394. wait(.5)
  3395. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  3396. tween:Play()
  3397. wait(.2)
  3398. if math.random(1,20) == 10 then
  3399. cube.Fricko:Play()
  3400. end
  3401. wait(4)
  3402. script.Parent.Trail:ClearAllChildren()
  3403. end
  3404. end))
  3405. Model281.Name = "Wandering GameCube"
  3406. Model281.Parent = Model0
  3407. Folder282.Name = "Trail"
  3408. Folder282.Parent = Model281
  3409. Part283.Name = "TrailThingy"
  3410. Part283.Parent = Model281
  3411. Part283.CFrame = CFrame.new(-17.4123058, 1.10002613, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3412. Part283.Position = Vector3.new(-17.4123058, 1.10002613, -69.2977905)
  3413. Part283.Transparency = 1
  3414. Part283.Size = Vector3.new(2, 2, 2)
  3415. Part283.Anchored = true
  3416. Part283.BottomSurface = Enum.SurfaceType.Smooth
  3417. Part283.CanCollide = false
  3418. Part283.TopSurface = Enum.SurfaceType.Smooth
  3419. SurfaceGui284.Name = "Gui"
  3420. SurfaceGui284.Parent = Part283
  3421. SurfaceGui284.Enabled = false
  3422. SurfaceGui284.Face = Enum.NormalId.Top
  3423. SurfaceGui284.ClipsDescendants = true
  3424. Frame285.Parent = SurfaceGui284
  3425. Frame285.Position = UDim2.new(0.5, 0, 0.5, 0)
  3426. Frame285.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  3427. Frame285.AnchorPoint = Vector2.new(0.5, 0.5)
  3428. Frame285.BackgroundColor = BrickColor.new("Medium bluish violet")
  3429. Frame285.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  3430. Frame285.BorderSizePixel = 0
  3431. Model286.Name = "GameCube"
  3432. Model286.Parent = Model281
  3433. Model286.PrimaryPart = Part293
  3434. MeshPart287.Name = "GameCube"
  3435. MeshPart287.Parent = Model286
  3436. MeshPart287.CFrame = CFrame.new(-17.4123058, 1.10002613, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3437. MeshPart287.Position = Vector3.new(-17.4123058, 1.10002613, -69.2977905)
  3438. MeshPart287.Color = Color3.new(0.376471, 0.329412, 0.729412)
  3439. MeshPart287.Size = Vector3.new(2, 2.00000024, 2.00000024)
  3440. MeshPart287.Anchored = true
  3441. MeshPart287.BrickColor = BrickColor.new("Medium bluish violet")
  3442. MeshPart287.Material = Enum.Material.SmoothPlastic
  3443. MeshPart287.Reflectance = 0.20000000298023
  3444. MeshPart287.brickColor = BrickColor.new("Medium bluish violet")
  3445. Sound288.Name = "Landing"
  3446. Sound288.Parent = MeshPart287
  3447. Sound288.SoundId = "rbxassetid://2125574494"
  3448. Sound288.Volume = 2
  3449. Sound289.Name = "Finish"
  3450. Sound289.Parent = MeshPart287
  3451. Sound289.SoundId = "rbxassetid://2125574886"
  3452. Sound289.Volume = 2
  3453. Sound290.Name = "Rolling"
  3454. Sound290.Parent = MeshPart287
  3455. Sound290.Looped = true
  3456. Sound290.SoundId = "rbxassetid://2125574718"
  3457. Sound290.Volume = 2
  3458. PointLight291.Parent = MeshPart287
  3459. Sound292.Name = "Fricko"
  3460. Sound292.Parent = MeshPart287
  3461. Sound292.SoundId = "rbxassetid://2084814462"
  3462. Sound292.Volume = 4
  3463. Part293.Name = "Rollboi"
  3464. Part293.Parent = Model286
  3465. Part293.CFrame = CFrame.new(-17.4123058, 0.100027144, -70.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3466. Part293.Position = Vector3.new(-17.4123058, 0.100027144, -70.2977905)
  3467. Part293.Transparency = 1
  3468. Part293.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  3469. Part293.Anchored = true
  3470. Part293.BottomSurface = Enum.SurfaceType.Smooth
  3471. Part293.CanCollide = false
  3472. Part293.Material = Enum.Material.SmoothPlastic
  3473. Part293.TopSurface = Enum.SurfaceType.Smooth
  3474. Script294.Parent = Model281
  3475. table.insert(cors,sandbox(Script294,function()
  3476. --Scripted by Mah_Bucket, sorry if it's terrible
  3477.  
  3478. local t = game:GetService("TweenService")
  3479. local cube = script.Parent.GameCube.GameCube
  3480. local startingpoint = cube.CFrame
  3481. local roll = script.Parent.GameCube.Rollboi
  3482. math.randomseed(tick()*100)
  3483. while true do
  3484. cube.Transparency = 1
  3485. script.Parent.GameCube.PrimaryPart = cube
  3486. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  3487. script.Parent.GameCube.PrimaryPart = roll
  3488. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  3489. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  3490. tween:Play()
  3491. wait(.2)
  3492. cube.Landing:Play()
  3493. wait(.35)
  3494. local rando = math.random(4,16)
  3495. cube.Rolling:Play()
  3496. for x=1,rando do
  3497. if x == rando then
  3498. cube.Rolling:Stop()
  3499. cube.Finish:Play()
  3500. end
  3501. script.Parent.GameCube.PrimaryPart = cube
  3502. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  3503. script.Parent.GameCube.PrimaryPart = roll
  3504. for x=1,4 do
  3505. local turn = 6
  3506. local gui = script.Parent.TrailThingy:Clone()
  3507. gui.Gui.Enabled = true
  3508. gui.Transparency = 1
  3509. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  3510. gui.Parent = script.Parent.Trail
  3511. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  3512. if r1 ~= nil then
  3513. --print("inner corner")
  3514. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  3515. turn = -1
  3516. else
  3517. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  3518. if r2 == nil then
  3519. --print("outer corner")
  3520. turn = 12
  3521. end
  3522. end
  3523. if turn ~= -1 then
  3524. for x=1,turn do
  3525. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  3526. wait(.225/turn)
  3527. end
  3528. else
  3529. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  3530. end
  3531. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  3532. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  3533. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  3534. end
  3535. end
  3536. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  3537. tween:Play()
  3538. wait(.5)
  3539. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  3540. tween:Play()
  3541. wait(.2)
  3542. if math.random(1,20) == 10 then
  3543. cube.Fricko:Play()
  3544. end
  3545. wait(4)
  3546. script.Parent.Trail:ClearAllChildren()
  3547. end
  3548. end))
  3549. Model295.Name = "Wandering GameCube"
  3550. Model295.Parent = Model0
  3551. Folder296.Name = "Trail"
  3552. Folder296.Parent = Model295
  3553. Part297.Name = "TrailThingy"
  3554. Part297.Parent = Model295
  3555. Part297.CFrame = CFrame.new(8.58769226, 1.10001898, 54.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3556. Part297.Position = Vector3.new(8.58769226, 1.10001898, 54.7022095)
  3557. Part297.Transparency = 1
  3558. Part297.Size = Vector3.new(2, 2, 2)
  3559. Part297.Anchored = true
  3560. Part297.BottomSurface = Enum.SurfaceType.Smooth
  3561. Part297.CanCollide = false
  3562. Part297.TopSurface = Enum.SurfaceType.Smooth
  3563. SurfaceGui298.Name = "Gui"
  3564. SurfaceGui298.Parent = Part297
  3565. SurfaceGui298.Enabled = false
  3566. SurfaceGui298.Face = Enum.NormalId.Top
  3567. SurfaceGui298.ClipsDescendants = true
  3568. Frame299.Parent = SurfaceGui298
  3569. Frame299.Position = UDim2.new(0.5, 0, 0.5, 0)
  3570. Frame299.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  3571. Frame299.AnchorPoint = Vector2.new(0.5, 0.5)
  3572. Frame299.BackgroundColor = BrickColor.new("Medium bluish violet")
  3573. Frame299.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  3574. Frame299.BorderSizePixel = 0
  3575. Model300.Name = "GameCube"
  3576. Model300.Parent = Model295
  3577. Model300.PrimaryPart = Part307
  3578. MeshPart301.Name = "GameCube"
  3579. MeshPart301.Parent = Model300
  3580. MeshPart301.CFrame = CFrame.new(8.58769226, 1.10001898, 54.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3581. MeshPart301.Position = Vector3.new(8.58769226, 1.10001898, 54.7022095)
  3582. MeshPart301.Color = Color3.new(0.376471, 0.329412, 0.729412)
  3583. MeshPart301.Size = Vector3.new(2, 2.00000024, 2.00000024)
  3584. MeshPart301.Anchored = true
  3585. MeshPart301.BrickColor = BrickColor.new("Medium bluish violet")
  3586. MeshPart301.Material = Enum.Material.SmoothPlastic
  3587. MeshPart301.Reflectance = 0.20000000298023
  3588. MeshPart301.brickColor = BrickColor.new("Medium bluish violet")
  3589. Sound302.Name = "Landing"
  3590. Sound302.Parent = MeshPart301
  3591. Sound302.SoundId = "rbxassetid://2125574494"
  3592. Sound302.Volume = 2
  3593. Sound303.Name = "Finish"
  3594. Sound303.Parent = MeshPart301
  3595. Sound303.SoundId = "rbxassetid://2125574886"
  3596. Sound303.Volume = 2
  3597. Sound304.Name = "Rolling"
  3598. Sound304.Parent = MeshPart301
  3599. Sound304.Looped = true
  3600. Sound304.SoundId = "rbxassetid://2125574718"
  3601. Sound304.Volume = 2
  3602. PointLight305.Parent = MeshPart301
  3603. Sound306.Name = "Fricko"
  3604. Sound306.Parent = MeshPart301
  3605. Sound306.SoundId = "rbxassetid://2084814462"
  3606. Sound306.Volume = 4
  3607. Part307.Name = "Rollboi"
  3608. Part307.Parent = Model300
  3609. Part307.CFrame = CFrame.new(8.58769226, 0.100020111, 53.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3610. Part307.Position = Vector3.new(8.58769226, 0.100020111, 53.7022095)
  3611. Part307.Transparency = 1
  3612. Part307.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  3613. Part307.Anchored = true
  3614. Part307.BottomSurface = Enum.SurfaceType.Smooth
  3615. Part307.CanCollide = false
  3616. Part307.Material = Enum.Material.SmoothPlastic
  3617. Part307.TopSurface = Enum.SurfaceType.Smooth
  3618. Script308.Parent = Model295
  3619. table.insert(cors,sandbox(Script308,function()
  3620. --Scripted by Mah_Bucket, sorry if it's terrible
  3621.  
  3622. local t = game:GetService("TweenService")
  3623. local cube = script.Parent.GameCube.GameCube
  3624. local startingpoint = cube.CFrame
  3625. local roll = script.Parent.GameCube.Rollboi
  3626. math.randomseed(tick()*100)
  3627. while true do
  3628. cube.Transparency = 1
  3629. script.Parent.GameCube.PrimaryPart = cube
  3630. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  3631. script.Parent.GameCube.PrimaryPart = roll
  3632. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  3633. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  3634. tween:Play()
  3635. wait(.2)
  3636. cube.Landing:Play()
  3637. wait(.35)
  3638. local rando = math.random(4,16)
  3639. cube.Rolling:Play()
  3640. for x=1,rando do
  3641. if x == rando then
  3642. cube.Rolling:Stop()
  3643. cube.Finish:Play()
  3644. end
  3645. script.Parent.GameCube.PrimaryPart = cube
  3646. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  3647. script.Parent.GameCube.PrimaryPart = roll
  3648. for x=1,4 do
  3649. local turn = 6
  3650. local gui = script.Parent.TrailThingy:Clone()
  3651. gui.Gui.Enabled = true
  3652. gui.Transparency = 1
  3653. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  3654. gui.Parent = script.Parent.Trail
  3655. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  3656. if r1 ~= nil then
  3657. --print("inner corner")
  3658. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  3659. turn = -1
  3660. else
  3661. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  3662. if r2 == nil then
  3663. --print("outer corner")
  3664. turn = 12
  3665. end
  3666. end
  3667. if turn ~= -1 then
  3668. for x=1,turn do
  3669. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  3670. wait(.225/turn)
  3671. end
  3672. else
  3673. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  3674. end
  3675. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  3676. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  3677. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  3678. end
  3679. end
  3680. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  3681. tween:Play()
  3682. wait(.5)
  3683. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  3684. tween:Play()
  3685. wait(.2)
  3686. if math.random(1,20) == 10 then
  3687. cube.Fricko:Play()
  3688. end
  3689. wait(4)
  3690. script.Parent.Trail:ClearAllChildren()
  3691. end
  3692. end))
  3693. Model309.Name = "Wandering GameCube"
  3694. Model309.Parent = Model0
  3695. Folder310.Name = "Trail"
  3696. Folder310.Parent = Model309
  3697. Part311.Name = "TrailThingy"
  3698. Part311.Parent = Model309
  3699. Part311.CFrame = CFrame.new(8.58769226, 1.10001898, 54.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3700. Part311.Position = Vector3.new(8.58769226, 1.10001898, 54.7022095)
  3701. Part311.Transparency = 1
  3702. Part311.Size = Vector3.new(2, 2, 2)
  3703. Part311.Anchored = true
  3704. Part311.BottomSurface = Enum.SurfaceType.Smooth
  3705. Part311.CanCollide = false
  3706. Part311.TopSurface = Enum.SurfaceType.Smooth
  3707. SurfaceGui312.Name = "Gui"
  3708. SurfaceGui312.Parent = Part311
  3709. SurfaceGui312.Enabled = false
  3710. SurfaceGui312.Face = Enum.NormalId.Top
  3711. SurfaceGui312.ClipsDescendants = true
  3712. Frame313.Parent = SurfaceGui312
  3713. Frame313.Position = UDim2.new(0.5, 0, 0.5, 0)
  3714. Frame313.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  3715. Frame313.AnchorPoint = Vector2.new(0.5, 0.5)
  3716. Frame313.BackgroundColor = BrickColor.new("Medium bluish violet")
  3717. Frame313.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  3718. Frame313.BorderSizePixel = 0
  3719. Model314.Name = "GameCube"
  3720. Model314.Parent = Model309
  3721. Model314.PrimaryPart = Part321
  3722. MeshPart315.Name = "GameCube"
  3723. MeshPart315.Parent = Model314
  3724. MeshPart315.CFrame = CFrame.new(8.58769226, 1.10001898, 54.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3725. MeshPart315.Position = Vector3.new(8.58769226, 1.10001898, 54.7022095)
  3726. MeshPart315.Color = Color3.new(0.376471, 0.329412, 0.729412)
  3727. MeshPart315.Size = Vector3.new(2, 2.00000024, 2.00000024)
  3728. MeshPart315.Anchored = true
  3729. MeshPart315.BrickColor = BrickColor.new("Medium bluish violet")
  3730. MeshPart315.Material = Enum.Material.SmoothPlastic
  3731. MeshPart315.Reflectance = 0.20000000298023
  3732. MeshPart315.brickColor = BrickColor.new("Medium bluish violet")
  3733. Sound316.Name = "Landing"
  3734. Sound316.Parent = MeshPart315
  3735. Sound316.SoundId = "rbxassetid://2125574494"
  3736. Sound316.Volume = 2
  3737. Sound317.Name = "Finish"
  3738. Sound317.Parent = MeshPart315
  3739. Sound317.SoundId = "rbxassetid://2125574886"
  3740. Sound317.Volume = 2
  3741. Sound318.Name = "Rolling"
  3742. Sound318.Parent = MeshPart315
  3743. Sound318.Looped = true
  3744. Sound318.SoundId = "rbxassetid://2125574718"
  3745. Sound318.Volume = 2
  3746. PointLight319.Parent = MeshPart315
  3747. Sound320.Name = "Fricko"
  3748. Sound320.Parent = MeshPart315
  3749. Sound320.SoundId = "rbxassetid://2084814462"
  3750. Sound320.Volume = 4
  3751. Part321.Name = "Rollboi"
  3752. Part321.Parent = Model314
  3753. Part321.CFrame = CFrame.new(8.58769226, 0.100020111, 53.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3754. Part321.Position = Vector3.new(8.58769226, 0.100020111, 53.7022095)
  3755. Part321.Transparency = 1
  3756. Part321.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  3757. Part321.Anchored = true
  3758. Part321.BottomSurface = Enum.SurfaceType.Smooth
  3759. Part321.CanCollide = false
  3760. Part321.Material = Enum.Material.SmoothPlastic
  3761. Part321.TopSurface = Enum.SurfaceType.Smooth
  3762. Script322.Parent = Model309
  3763. table.insert(cors,sandbox(Script322,function()
  3764. --Scripted by Mah_Bucket, sorry if it's terrible
  3765.  
  3766. local t = game:GetService("TweenService")
  3767. local cube = script.Parent.GameCube.GameCube
  3768. local startingpoint = cube.CFrame
  3769. local roll = script.Parent.GameCube.Rollboi
  3770. math.randomseed(tick()*100)
  3771. while true do
  3772. cube.Transparency = 1
  3773. script.Parent.GameCube.PrimaryPart = cube
  3774. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  3775. script.Parent.GameCube.PrimaryPart = roll
  3776. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  3777. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  3778. tween:Play()
  3779. wait(.2)
  3780. cube.Landing:Play()
  3781. wait(.35)
  3782. local rando = math.random(4,16)
  3783. cube.Rolling:Play()
  3784. for x=1,rando do
  3785. if x == rando then
  3786. cube.Rolling:Stop()
  3787. cube.Finish:Play()
  3788. end
  3789. script.Parent.GameCube.PrimaryPart = cube
  3790. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  3791. script.Parent.GameCube.PrimaryPart = roll
  3792. for x=1,4 do
  3793. local turn = 6
  3794. local gui = script.Parent.TrailThingy:Clone()
  3795. gui.Gui.Enabled = true
  3796. gui.Transparency = 1
  3797. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  3798. gui.Parent = script.Parent.Trail
  3799. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  3800. if r1 ~= nil then
  3801. --print("inner corner")
  3802. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  3803. turn = -1
  3804. else
  3805. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  3806. if r2 == nil then
  3807. --print("outer corner")
  3808. turn = 12
  3809. end
  3810. end
  3811. if turn ~= -1 then
  3812. for x=1,turn do
  3813. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  3814. wait(.225/turn)
  3815. end
  3816. else
  3817. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  3818. end
  3819. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  3820. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  3821. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  3822. end
  3823. end
  3824. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  3825. tween:Play()
  3826. wait(.5)
  3827. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  3828. tween:Play()
  3829. wait(.2)
  3830. if math.random(1,20) == 10 then
  3831. cube.Fricko:Play()
  3832. end
  3833. wait(4)
  3834. script.Parent.Trail:ClearAllChildren()
  3835. end
  3836. end))
  3837. Model323.Name = "Wandering GameCube"
  3838. Model323.Parent = Model0
  3839. Folder324.Name = "Trail"
  3840. Folder324.Parent = Model323
  3841. Part325.Name = "TrailThingy"
  3842. Part325.Parent = Model323
  3843. Part325.CFrame = CFrame.new(56.5876923, 1.10001612, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3844. Part325.Position = Vector3.new(56.5876923, 1.10001612, 22.7022133)
  3845. Part325.Transparency = 1
  3846. Part325.Size = Vector3.new(2, 2, 2)
  3847. Part325.Anchored = true
  3848. Part325.BottomSurface = Enum.SurfaceType.Smooth
  3849. Part325.CanCollide = false
  3850. Part325.TopSurface = Enum.SurfaceType.Smooth
  3851. SurfaceGui326.Name = "Gui"
  3852. SurfaceGui326.Parent = Part325
  3853. SurfaceGui326.Enabled = false
  3854. SurfaceGui326.Face = Enum.NormalId.Top
  3855. SurfaceGui326.ClipsDescendants = true
  3856. Frame327.Parent = SurfaceGui326
  3857. Frame327.Position = UDim2.new(0.5, 0, 0.5, 0)
  3858. Frame327.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  3859. Frame327.AnchorPoint = Vector2.new(0.5, 0.5)
  3860. Frame327.BackgroundColor = BrickColor.new("Medium bluish violet")
  3861. Frame327.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  3862. Frame327.BorderSizePixel = 0
  3863. Model328.Name = "GameCube"
  3864. Model328.Parent = Model323
  3865. Model328.PrimaryPart = Part335
  3866. MeshPart329.Name = "GameCube"
  3867. MeshPart329.Parent = Model328
  3868. MeshPart329.CFrame = CFrame.new(56.5876923, 1.10001612, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3869. MeshPart329.Position = Vector3.new(56.5876923, 1.10001612, 22.7022133)
  3870. MeshPart329.Color = Color3.new(0.376471, 0.329412, 0.729412)
  3871. MeshPart329.Size = Vector3.new(2, 2.00000024, 2.00000024)
  3872. MeshPart329.Anchored = true
  3873. MeshPart329.BrickColor = BrickColor.new("Medium bluish violet")
  3874. MeshPart329.Material = Enum.Material.SmoothPlastic
  3875. MeshPart329.Reflectance = 0.20000000298023
  3876. MeshPart329.brickColor = BrickColor.new("Medium bluish violet")
  3877. Sound330.Name = "Landing"
  3878. Sound330.Parent = MeshPart329
  3879. Sound330.SoundId = "rbxassetid://2125574494"
  3880. Sound330.Volume = 2
  3881. Sound331.Name = "Finish"
  3882. Sound331.Parent = MeshPart329
  3883. Sound331.SoundId = "rbxassetid://2125574886"
  3884. Sound331.Volume = 2
  3885. Sound332.Name = "Rolling"
  3886. Sound332.Parent = MeshPart329
  3887. Sound332.Looped = true
  3888. Sound332.SoundId = "rbxassetid://2125574718"
  3889. Sound332.Volume = 2
  3890. PointLight333.Parent = MeshPart329
  3891. Sound334.Name = "Fricko"
  3892. Sound334.Parent = MeshPart329
  3893. Sound334.SoundId = "rbxassetid://2084814462"
  3894. Sound334.Volume = 4
  3895. Part335.Name = "Rollboi"
  3896. Part335.Parent = Model328
  3897. Part335.CFrame = CFrame.new(56.5876923, 0.10001713, 21.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3898. Part335.Position = Vector3.new(56.5876923, 0.10001713, 21.7022133)
  3899. Part335.Transparency = 1
  3900. Part335.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  3901. Part335.Anchored = true
  3902. Part335.BottomSurface = Enum.SurfaceType.Smooth
  3903. Part335.CanCollide = false
  3904. Part335.Material = Enum.Material.SmoothPlastic
  3905. Part335.TopSurface = Enum.SurfaceType.Smooth
  3906. Script336.Parent = Model323
  3907. table.insert(cors,sandbox(Script336,function()
  3908. --Scripted by Mah_Bucket, sorry if it's terrible
  3909.  
  3910. local t = game:GetService("TweenService")
  3911. local cube = script.Parent.GameCube.GameCube
  3912. local startingpoint = cube.CFrame
  3913. local roll = script.Parent.GameCube.Rollboi
  3914. math.randomseed(tick()*100)
  3915. while true do
  3916. cube.Transparency = 1
  3917. script.Parent.GameCube.PrimaryPart = cube
  3918. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  3919. script.Parent.GameCube.PrimaryPart = roll
  3920. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  3921. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  3922. tween:Play()
  3923. wait(.2)
  3924. cube.Landing:Play()
  3925. wait(.35)
  3926. local rando = math.random(4,16)
  3927. cube.Rolling:Play()
  3928. for x=1,rando do
  3929. if x == rando then
  3930. cube.Rolling:Stop()
  3931. cube.Finish:Play()
  3932. end
  3933. script.Parent.GameCube.PrimaryPart = cube
  3934. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  3935. script.Parent.GameCube.PrimaryPart = roll
  3936. for x=1,4 do
  3937. local turn = 6
  3938. local gui = script.Parent.TrailThingy:Clone()
  3939. gui.Gui.Enabled = true
  3940. gui.Transparency = 1
  3941. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  3942. gui.Parent = script.Parent.Trail
  3943. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  3944. if r1 ~= nil then
  3945. --print("inner corner")
  3946. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  3947. turn = -1
  3948. else
  3949. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  3950. if r2 == nil then
  3951. --print("outer corner")
  3952. turn = 12
  3953. end
  3954. end
  3955. if turn ~= -1 then
  3956. for x=1,turn do
  3957. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  3958. wait(.225/turn)
  3959. end
  3960. else
  3961. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  3962. end
  3963. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  3964. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  3965. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  3966. end
  3967. end
  3968. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  3969. tween:Play()
  3970. wait(.5)
  3971. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  3972. tween:Play()
  3973. wait(.2)
  3974. if math.random(1,20) == 10 then
  3975. cube.Fricko:Play()
  3976. end
  3977. wait(4)
  3978. script.Parent.Trail:ClearAllChildren()
  3979. end
  3980. end))
  3981. Model337.Name = "Wandering GameCube"
  3982. Model337.Parent = Model0
  3983. Folder338.Name = "Trail"
  3984. Folder338.Parent = Model337
  3985. Part339.Name = "TrailThingy"
  3986. Part339.Parent = Model337
  3987. Part339.CFrame = CFrame.new(38.5876923, 1.10002899, 0.702213287, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3988. Part339.Position = Vector3.new(38.5876923, 1.10002899, 0.702213287)
  3989. Part339.Transparency = 1
  3990. Part339.Size = Vector3.new(2, 2, 2)
  3991. Part339.Anchored = true
  3992. Part339.BottomSurface = Enum.SurfaceType.Smooth
  3993. Part339.CanCollide = false
  3994. Part339.TopSurface = Enum.SurfaceType.Smooth
  3995. SurfaceGui340.Name = "Gui"
  3996. SurfaceGui340.Parent = Part339
  3997. SurfaceGui340.Enabled = false
  3998. SurfaceGui340.Face = Enum.NormalId.Top
  3999. SurfaceGui340.ClipsDescendants = true
  4000. Frame341.Parent = SurfaceGui340
  4001. Frame341.Position = UDim2.new(0.5, 0, 0.5, 0)
  4002. Frame341.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  4003. Frame341.AnchorPoint = Vector2.new(0.5, 0.5)
  4004. Frame341.BackgroundColor = BrickColor.new("Medium bluish violet")
  4005. Frame341.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  4006. Frame341.BorderSizePixel = 0
  4007. Model342.Name = "GameCube"
  4008. Model342.Parent = Model337
  4009. Model342.PrimaryPart = Part349
  4010. MeshPart343.Name = "GameCube"
  4011. MeshPart343.Parent = Model342
  4012. MeshPart343.CFrame = CFrame.new(38.5876923, 1.10002899, 0.702213287, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4013. MeshPart343.Position = Vector3.new(38.5876923, 1.10002899, 0.702213287)
  4014. MeshPart343.Color = Color3.new(0.376471, 0.329412, 0.729412)
  4015. MeshPart343.Size = Vector3.new(2, 2.00000024, 2.00000024)
  4016. MeshPart343.Anchored = true
  4017. MeshPart343.BrickColor = BrickColor.new("Medium bluish violet")
  4018. MeshPart343.Material = Enum.Material.SmoothPlastic
  4019. MeshPart343.Reflectance = 0.20000000298023
  4020. MeshPart343.brickColor = BrickColor.new("Medium bluish violet")
  4021. Sound344.Name = "Landing"
  4022. Sound344.Parent = MeshPart343
  4023. Sound344.SoundId = "rbxassetid://2125574494"
  4024. Sound344.Volume = 2
  4025. Sound345.Name = "Finish"
  4026. Sound345.Parent = MeshPart343
  4027. Sound345.SoundId = "rbxassetid://2125574886"
  4028. Sound345.Volume = 2
  4029. Sound346.Name = "Rolling"
  4030. Sound346.Parent = MeshPart343
  4031. Sound346.Looped = true
  4032. Sound346.SoundId = "rbxassetid://2125574718"
  4033. Sound346.Volume = 2
  4034. PointLight347.Parent = MeshPart343
  4035. Sound348.Name = "Fricko"
  4036. Sound348.Parent = MeshPart343
  4037. Sound348.SoundId = "rbxassetid://2084814462"
  4038. Sound348.Volume = 4
  4039. Part349.Name = "Rollboi"
  4040. Part349.Parent = Model342
  4041. Part349.CFrame = CFrame.new(38.5876923, 0.100030124, -0.297786713, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4042. Part349.Position = Vector3.new(38.5876923, 0.100030124, -0.297786713)
  4043. Part349.Transparency = 1
  4044. Part349.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  4045. Part349.Anchored = true
  4046. Part349.BottomSurface = Enum.SurfaceType.Smooth
  4047. Part349.CanCollide = false
  4048. Part349.Material = Enum.Material.SmoothPlastic
  4049. Part349.TopSurface = Enum.SurfaceType.Smooth
  4050. Script350.Parent = Model337
  4051. table.insert(cors,sandbox(Script350,function()
  4052. --Scripted by Mah_Bucket, sorry if it's terrible
  4053.  
  4054. local t = game:GetService("TweenService")
  4055. local cube = script.Parent.GameCube.GameCube
  4056. local startingpoint = cube.CFrame
  4057. local roll = script.Parent.GameCube.Rollboi
  4058. math.randomseed(tick()*100)
  4059. while true do
  4060. cube.Transparency = 1
  4061. script.Parent.GameCube.PrimaryPart = cube
  4062. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  4063. script.Parent.GameCube.PrimaryPart = roll
  4064. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  4065. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  4066. tween:Play()
  4067. wait(.2)
  4068. cube.Landing:Play()
  4069. wait(.35)
  4070. local rando = math.random(4,16)
  4071. cube.Rolling:Play()
  4072. for x=1,rando do
  4073. if x == rando then
  4074. cube.Rolling:Stop()
  4075. cube.Finish:Play()
  4076. end
  4077. script.Parent.GameCube.PrimaryPart = cube
  4078. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  4079. script.Parent.GameCube.PrimaryPart = roll
  4080. for x=1,4 do
  4081. local turn = 6
  4082. local gui = script.Parent.TrailThingy:Clone()
  4083. gui.Gui.Enabled = true
  4084. gui.Transparency = 1
  4085. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  4086. gui.Parent = script.Parent.Trail
  4087. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  4088. if r1 ~= nil then
  4089. --print("inner corner")
  4090. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  4091. turn = -1
  4092. else
  4093. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  4094. if r2 == nil then
  4095. --print("outer corner")
  4096. turn = 12
  4097. end
  4098. end
  4099. if turn ~= -1 then
  4100. for x=1,turn do
  4101. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  4102. wait(.225/turn)
  4103. end
  4104. else
  4105. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  4106. end
  4107. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  4108. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  4109. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  4110. end
  4111. end
  4112. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  4113. tween:Play()
  4114. wait(.5)
  4115. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  4116. tween:Play()
  4117. wait(.2)
  4118. if math.random(1,20) == 10 then
  4119. cube.Fricko:Play()
  4120. end
  4121. wait(4)
  4122. script.Parent.Trail:ClearAllChildren()
  4123. end
  4124. end))
  4125. Model351.Name = "Wandering GameCube"
  4126. Model351.Parent = Model0
  4127. Folder352.Name = "Trail"
  4128. Folder352.Parent = Model351
  4129. Part353.Name = "TrailThingy"
  4130. Part353.Parent = Model351
  4131. Part353.CFrame = CFrame.new(38.5876923, 1.10002899, 0.702213287, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4132. Part353.Position = Vector3.new(38.5876923, 1.10002899, 0.702213287)
  4133. Part353.Transparency = 1
  4134. Part353.Size = Vector3.new(2, 2, 2)
  4135. Part353.Anchored = true
  4136. Part353.BottomSurface = Enum.SurfaceType.Smooth
  4137. Part353.CanCollide = false
  4138. Part353.TopSurface = Enum.SurfaceType.Smooth
  4139. SurfaceGui354.Name = "Gui"
  4140. SurfaceGui354.Parent = Part353
  4141. SurfaceGui354.Enabled = false
  4142. SurfaceGui354.Face = Enum.NormalId.Top
  4143. SurfaceGui354.ClipsDescendants = true
  4144. Frame355.Parent = SurfaceGui354
  4145. Frame355.Position = UDim2.new(0.5, 0, 0.5, 0)
  4146. Frame355.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  4147. Frame355.AnchorPoint = Vector2.new(0.5, 0.5)
  4148. Frame355.BackgroundColor = BrickColor.new("Medium bluish violet")
  4149. Frame355.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  4150. Frame355.BorderSizePixel = 0
  4151. Model356.Name = "GameCube"
  4152. Model356.Parent = Model351
  4153. Model356.PrimaryPart = Part363
  4154. MeshPart357.Name = "GameCube"
  4155. MeshPart357.Parent = Model356
  4156. MeshPart357.CFrame = CFrame.new(38.5876923, 1.10002899, 0.702213287, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4157. MeshPart357.Position = Vector3.new(38.5876923, 1.10002899, 0.702213287)
  4158. MeshPart357.Color = Color3.new(0.376471, 0.329412, 0.729412)
  4159. MeshPart357.Size = Vector3.new(2, 2.00000024, 2.00000024)
  4160. MeshPart357.Anchored = true
  4161. MeshPart357.BrickColor = BrickColor.new("Medium bluish violet")
  4162. MeshPart357.Material = Enum.Material.SmoothPlastic
  4163. MeshPart357.Reflectance = 0.20000000298023
  4164. MeshPart357.brickColor = BrickColor.new("Medium bluish violet")
  4165. Sound358.Name = "Landing"
  4166. Sound358.Parent = MeshPart357
  4167. Sound358.SoundId = "rbxassetid://2125574494"
  4168. Sound358.Volume = 2
  4169. Sound359.Name = "Finish"
  4170. Sound359.Parent = MeshPart357
  4171. Sound359.SoundId = "rbxassetid://2125574886"
  4172. Sound359.Volume = 2
  4173. Sound360.Name = "Rolling"
  4174. Sound360.Parent = MeshPart357
  4175. Sound360.Looped = true
  4176. Sound360.SoundId = "rbxassetid://2125574718"
  4177. Sound360.Volume = 2
  4178. PointLight361.Parent = MeshPart357
  4179. Sound362.Name = "Fricko"
  4180. Sound362.Parent = MeshPart357
  4181. Sound362.SoundId = "rbxassetid://2084814462"
  4182. Sound362.Volume = 4
  4183. Part363.Name = "Rollboi"
  4184. Part363.Parent = Model356
  4185. Part363.CFrame = CFrame.new(38.5876923, 0.100030124, -0.297786713, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4186. Part363.Position = Vector3.new(38.5876923, 0.100030124, -0.297786713)
  4187. Part363.Transparency = 1
  4188. Part363.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  4189. Part363.Anchored = true
  4190. Part363.BottomSurface = Enum.SurfaceType.Smooth
  4191. Part363.CanCollide = false
  4192. Part363.Material = Enum.Material.SmoothPlastic
  4193. Part363.TopSurface = Enum.SurfaceType.Smooth
  4194. Script364.Parent = Model351
  4195. table.insert(cors,sandbox(Script364,function()
  4196. --Scripted by Mah_Bucket, sorry if it's terrible
  4197.  
  4198. local t = game:GetService("TweenService")
  4199. local cube = script.Parent.GameCube.GameCube
  4200. local startingpoint = cube.CFrame
  4201. local roll = script.Parent.GameCube.Rollboi
  4202. math.randomseed(tick()*100)
  4203. while true do
  4204. cube.Transparency = 1
  4205. script.Parent.GameCube.PrimaryPart = cube
  4206. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  4207. script.Parent.GameCube.PrimaryPart = roll
  4208. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  4209. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  4210. tween:Play()
  4211. wait(.2)
  4212. cube.Landing:Play()
  4213. wait(.35)
  4214. local rando = math.random(4,16)
  4215. cube.Rolling:Play()
  4216. for x=1,rando do
  4217. if x == rando then
  4218. cube.Rolling:Stop()
  4219. cube.Finish:Play()
  4220. end
  4221. script.Parent.GameCube.PrimaryPart = cube
  4222. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  4223. script.Parent.GameCube.PrimaryPart = roll
  4224. for x=1,4 do
  4225. local turn = 6
  4226. local gui = script.Parent.TrailThingy:Clone()
  4227. gui.Gui.Enabled = true
  4228. gui.Transparency = 1
  4229. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  4230. gui.Parent = script.Parent.Trail
  4231. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  4232. if r1 ~= nil then
  4233. --print("inner corner")
  4234. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  4235. turn = -1
  4236. else
  4237. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  4238. if r2 == nil then
  4239. --print("outer corner")
  4240. turn = 12
  4241. end
  4242. end
  4243. if turn ~= -1 then
  4244. for x=1,turn do
  4245. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  4246. wait(.225/turn)
  4247. end
  4248. else
  4249. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  4250. end
  4251. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  4252. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  4253. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  4254. end
  4255. end
  4256. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  4257. tween:Play()
  4258. wait(.5)
  4259. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  4260. tween:Play()
  4261. wait(.2)
  4262. if math.random(1,20) == 10 then
  4263. cube.Fricko:Play()
  4264. end
  4265. wait(4)
  4266. script.Parent.Trail:ClearAllChildren()
  4267. end
  4268. end))
  4269. Model365.Name = "Wandering GameCube"
  4270. Model365.Parent = Model0
  4271. Folder366.Name = "Trail"
  4272. Folder366.Parent = Model365
  4273. Part367.Name = "TrailThingy"
  4274. Part367.Parent = Model365
  4275. Part367.CFrame = CFrame.new(56.5876923, 1.10001612, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4276. Part367.Position = Vector3.new(56.5876923, 1.10001612, 22.7022133)
  4277. Part367.Transparency = 1
  4278. Part367.Size = Vector3.new(2, 2, 2)
  4279. Part367.Anchored = true
  4280. Part367.BottomSurface = Enum.SurfaceType.Smooth
  4281. Part367.CanCollide = false
  4282. Part367.TopSurface = Enum.SurfaceType.Smooth
  4283. SurfaceGui368.Name = "Gui"
  4284. SurfaceGui368.Parent = Part367
  4285. SurfaceGui368.Enabled = false
  4286. SurfaceGui368.Face = Enum.NormalId.Top
  4287. SurfaceGui368.ClipsDescendants = true
  4288. Frame369.Parent = SurfaceGui368
  4289. Frame369.Position = UDim2.new(0.5, 0, 0.5, 0)
  4290. Frame369.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  4291. Frame369.AnchorPoint = Vector2.new(0.5, 0.5)
  4292. Frame369.BackgroundColor = BrickColor.new("Medium bluish violet")
  4293. Frame369.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  4294. Frame369.BorderSizePixel = 0
  4295. Model370.Name = "GameCube"
  4296. Model370.Parent = Model365
  4297. Model370.PrimaryPart = Part377
  4298. MeshPart371.Name = "GameCube"
  4299. MeshPart371.Parent = Model370
  4300. MeshPart371.CFrame = CFrame.new(56.5876923, 1.10001612, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4301. MeshPart371.Position = Vector3.new(56.5876923, 1.10001612, 22.7022133)
  4302. MeshPart371.Color = Color3.new(0.376471, 0.329412, 0.729412)
  4303. MeshPart371.Size = Vector3.new(2, 2.00000024, 2.00000024)
  4304. MeshPart371.Anchored = true
  4305. MeshPart371.BrickColor = BrickColor.new("Medium bluish violet")
  4306. MeshPart371.Material = Enum.Material.SmoothPlastic
  4307. MeshPart371.Reflectance = 0.20000000298023
  4308. MeshPart371.brickColor = BrickColor.new("Medium bluish violet")
  4309. Sound372.Name = "Landing"
  4310. Sound372.Parent = MeshPart371
  4311. Sound372.SoundId = "rbxassetid://2125574494"
  4312. Sound372.Volume = 2
  4313. Sound373.Name = "Finish"
  4314. Sound373.Parent = MeshPart371
  4315. Sound373.SoundId = "rbxassetid://2125574886"
  4316. Sound373.Volume = 2
  4317. Sound374.Name = "Rolling"
  4318. Sound374.Parent = MeshPart371
  4319. Sound374.Looped = true
  4320. Sound374.SoundId = "rbxassetid://2125574718"
  4321. Sound374.Volume = 2
  4322. PointLight375.Parent = MeshPart371
  4323. Sound376.Name = "Fricko"
  4324. Sound376.Parent = MeshPart371
  4325. Sound376.SoundId = "rbxassetid://2084814462"
  4326. Sound376.Volume = 4
  4327. Part377.Name = "Rollboi"
  4328. Part377.Parent = Model370
  4329. Part377.CFrame = CFrame.new(56.5876923, 0.10001713, 21.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4330. Part377.Position = Vector3.new(56.5876923, 0.10001713, 21.7022133)
  4331. Part377.Transparency = 1
  4332. Part377.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  4333. Part377.Anchored = true
  4334. Part377.BottomSurface = Enum.SurfaceType.Smooth
  4335. Part377.CanCollide = false
  4336. Part377.Material = Enum.Material.SmoothPlastic
  4337. Part377.TopSurface = Enum.SurfaceType.Smooth
  4338. Script378.Parent = Model365
  4339. table.insert(cors,sandbox(Script378,function()
  4340. --Scripted by Mah_Bucket, sorry if it's terrible
  4341.  
  4342. local t = game:GetService("TweenService")
  4343. local cube = script.Parent.GameCube.GameCube
  4344. local startingpoint = cube.CFrame
  4345. local roll = script.Parent.GameCube.Rollboi
  4346. math.randomseed(tick()*100)
  4347. while true do
  4348. cube.Transparency = 1
  4349. script.Parent.GameCube.PrimaryPart = cube
  4350. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  4351. script.Parent.GameCube.PrimaryPart = roll
  4352. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  4353. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  4354. tween:Play()
  4355. wait(.2)
  4356. cube.Landing:Play()
  4357. wait(.35)
  4358. local rando = math.random(4,16)
  4359. cube.Rolling:Play()
  4360. for x=1,rando do
  4361. if x == rando then
  4362. cube.Rolling:Stop()
  4363. cube.Finish:Play()
  4364. end
  4365. script.Parent.GameCube.PrimaryPart = cube
  4366. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  4367. script.Parent.GameCube.PrimaryPart = roll
  4368. for x=1,4 do
  4369. local turn = 6
  4370. local gui = script.Parent.TrailThingy:Clone()
  4371. gui.Gui.Enabled = true
  4372. gui.Transparency = 1
  4373. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  4374. gui.Parent = script.Parent.Trail
  4375. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  4376. if r1 ~= nil then
  4377. --print("inner corner")
  4378. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  4379. turn = -1
  4380. else
  4381. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  4382. if r2 == nil then
  4383. --print("outer corner")
  4384. turn = 12
  4385. end
  4386. end
  4387. if turn ~= -1 then
  4388. for x=1,turn do
  4389. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  4390. wait(.225/turn)
  4391. end
  4392. else
  4393. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  4394. end
  4395. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  4396. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  4397. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  4398. end
  4399. end
  4400. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  4401. tween:Play()
  4402. wait(.5)
  4403. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  4404. tween:Play()
  4405. wait(.2)
  4406. if math.random(1,20) == 10 then
  4407. cube.Fricko:Play()
  4408. end
  4409. wait(4)
  4410. script.Parent.Trail:ClearAllChildren()
  4411. end
  4412. end))
  4413. Model379.Name = "Wandering GameCube"
  4414. Model379.Parent = Model0
  4415. Folder380.Name = "Trail"
  4416. Folder380.Parent = Model379
  4417. Part381.Name = "TrailThingy"
  4418. Part381.Parent = Model379
  4419. Part381.CFrame = CFrame.new(38.5876923, 1.10001707, 36.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4420. Part381.Position = Vector3.new(38.5876923, 1.10001707, 36.7022095)
  4421. Part381.Transparency = 1
  4422. Part381.Size = Vector3.new(2, 2, 2)
  4423. Part381.Anchored = true
  4424. Part381.BottomSurface = Enum.SurfaceType.Smooth
  4425. Part381.CanCollide = false
  4426. Part381.TopSurface = Enum.SurfaceType.Smooth
  4427. SurfaceGui382.Name = "Gui"
  4428. SurfaceGui382.Parent = Part381
  4429. SurfaceGui382.Enabled = false
  4430. SurfaceGui382.Face = Enum.NormalId.Top
  4431. SurfaceGui382.ClipsDescendants = true
  4432. Frame383.Parent = SurfaceGui382
  4433. Frame383.Position = UDim2.new(0.5, 0, 0.5, 0)
  4434. Frame383.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  4435. Frame383.AnchorPoint = Vector2.new(0.5, 0.5)
  4436. Frame383.BackgroundColor = BrickColor.new("Medium bluish violet")
  4437. Frame383.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  4438. Frame383.BorderSizePixel = 0
  4439. Model384.Name = "GameCube"
  4440. Model384.Parent = Model379
  4441. Model384.PrimaryPart = Part391
  4442. MeshPart385.Name = "GameCube"
  4443. MeshPart385.Parent = Model384
  4444. MeshPart385.CFrame = CFrame.new(38.5876923, 1.10001707, 36.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4445. MeshPart385.Position = Vector3.new(38.5876923, 1.10001707, 36.7022095)
  4446. MeshPart385.Color = Color3.new(0.376471, 0.329412, 0.729412)
  4447. MeshPart385.Size = Vector3.new(2, 2.00000024, 2.00000024)
  4448. MeshPart385.Anchored = true
  4449. MeshPart385.BrickColor = BrickColor.new("Medium bluish violet")
  4450. MeshPart385.Material = Enum.Material.SmoothPlastic
  4451. MeshPart385.Reflectance = 0.20000000298023
  4452. MeshPart385.brickColor = BrickColor.new("Medium bluish violet")
  4453. Sound386.Name = "Landing"
  4454. Sound386.Parent = MeshPart385
  4455. Sound386.SoundId = "rbxassetid://2125574494"
  4456. Sound386.Volume = 2
  4457. Sound387.Name = "Finish"
  4458. Sound387.Parent = MeshPart385
  4459. Sound387.SoundId = "rbxassetid://2125574886"
  4460. Sound387.Volume = 2
  4461. Sound388.Name = "Rolling"
  4462. Sound388.Parent = MeshPart385
  4463. Sound388.Looped = true
  4464. Sound388.SoundId = "rbxassetid://2125574718"
  4465. Sound388.Volume = 2
  4466. PointLight389.Parent = MeshPart385
  4467. Sound390.Name = "Fricko"
  4468. Sound390.Parent = MeshPart385
  4469. Sound390.SoundId = "rbxassetid://2084814462"
  4470. Sound390.Volume = 4
  4471. Part391.Name = "Rollboi"
  4472. Part391.Parent = Model384
  4473. Part391.CFrame = CFrame.new(38.5876923, 0.100018084, 35.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4474. Part391.Position = Vector3.new(38.5876923, 0.100018084, 35.7022095)
  4475. Part391.Transparency = 1
  4476. Part391.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  4477. Part391.Anchored = true
  4478. Part391.BottomSurface = Enum.SurfaceType.Smooth
  4479. Part391.CanCollide = false
  4480. Part391.Material = Enum.Material.SmoothPlastic
  4481. Part391.TopSurface = Enum.SurfaceType.Smooth
  4482. Script392.Parent = Model379
  4483. table.insert(cors,sandbox(Script392,function()
  4484. --Scripted by Mah_Bucket, sorry if it's terrible
  4485.  
  4486. local t = game:GetService("TweenService")
  4487. local cube = script.Parent.GameCube.GameCube
  4488. local startingpoint = cube.CFrame
  4489. local roll = script.Parent.GameCube.Rollboi
  4490. math.randomseed(tick()*100)
  4491. while true do
  4492. cube.Transparency = 1
  4493. script.Parent.GameCube.PrimaryPart = cube
  4494. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  4495. script.Parent.GameCube.PrimaryPart = roll
  4496. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  4497. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  4498. tween:Play()
  4499. wait(.2)
  4500. cube.Landing:Play()
  4501. wait(.35)
  4502. local rando = math.random(4,16)
  4503. cube.Rolling:Play()
  4504. for x=1,rando do
  4505. if x == rando then
  4506. cube.Rolling:Stop()
  4507. cube.Finish:Play()
  4508. end
  4509. script.Parent.GameCube.PrimaryPart = cube
  4510. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  4511. script.Parent.GameCube.PrimaryPart = roll
  4512. for x=1,4 do
  4513. local turn = 6
  4514. local gui = script.Parent.TrailThingy:Clone()
  4515. gui.Gui.Enabled = true
  4516. gui.Transparency = 1
  4517. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  4518. gui.Parent = script.Parent.Trail
  4519. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  4520. if r1 ~= nil then
  4521. --print("inner corner")
  4522. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  4523. turn = -1
  4524. else
  4525. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  4526. if r2 == nil then
  4527. --print("outer corner")
  4528. turn = 12
  4529. end
  4530. end
  4531. if turn ~= -1 then
  4532. for x=1,turn do
  4533. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  4534. wait(.225/turn)
  4535. end
  4536. else
  4537. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  4538. end
  4539. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  4540. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  4541. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  4542. end
  4543. end
  4544. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  4545. tween:Play()
  4546. wait(.5)
  4547. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  4548. tween:Play()
  4549. wait(.2)
  4550. if math.random(1,20) == 10 then
  4551. cube.Fricko:Play()
  4552. end
  4553. wait(4)
  4554. script.Parent.Trail:ClearAllChildren()
  4555. end
  4556. end))
  4557. Model393.Name = "Wandering GameCube"
  4558. Model393.Parent = Model0
  4559. Folder394.Name = "Trail"
  4560. Folder394.Parent = Model393
  4561. Part395.Name = "TrailThingy"
  4562. Part395.Parent = Model393
  4563. Part395.CFrame = CFrame.new(30.5876923, 1.10003114, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4564. Part395.Position = Vector3.new(30.5876923, 1.10003114, 22.7022133)
  4565. Part395.Transparency = 1
  4566. Part395.Size = Vector3.new(2, 2, 2)
  4567. Part395.Anchored = true
  4568. Part395.BottomSurface = Enum.SurfaceType.Smooth
  4569. Part395.CanCollide = false
  4570. Part395.TopSurface = Enum.SurfaceType.Smooth
  4571. SurfaceGui396.Name = "Gui"
  4572. SurfaceGui396.Parent = Part395
  4573. SurfaceGui396.Enabled = false
  4574. SurfaceGui396.Face = Enum.NormalId.Top
  4575. SurfaceGui396.ClipsDescendants = true
  4576. Frame397.Parent = SurfaceGui396
  4577. Frame397.Position = UDim2.new(0.5, 0, 0.5, 0)
  4578. Frame397.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  4579. Frame397.AnchorPoint = Vector2.new(0.5, 0.5)
  4580. Frame397.BackgroundColor = BrickColor.new("Medium bluish violet")
  4581. Frame397.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  4582. Frame397.BorderSizePixel = 0
  4583. Model398.Name = "GameCube"
  4584. Model398.Parent = Model393
  4585. Model398.PrimaryPart = Part405
  4586. MeshPart399.Name = "GameCube"
  4587. MeshPart399.Parent = Model398
  4588. MeshPart399.CFrame = CFrame.new(30.5876923, 1.10003114, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4589. MeshPart399.Position = Vector3.new(30.5876923, 1.10003114, 22.7022133)
  4590. MeshPart399.Color = Color3.new(0.376471, 0.329412, 0.729412)
  4591. MeshPart399.Size = Vector3.new(2, 2.00000024, 2.00000024)
  4592. MeshPart399.Anchored = true
  4593. MeshPart399.BrickColor = BrickColor.new("Medium bluish violet")
  4594. MeshPart399.Material = Enum.Material.SmoothPlastic
  4595. MeshPart399.Reflectance = 0.20000000298023
  4596. MeshPart399.brickColor = BrickColor.new("Medium bluish violet")
  4597. Sound400.Name = "Landing"
  4598. Sound400.Parent = MeshPart399
  4599. Sound400.SoundId = "rbxassetid://2125574494"
  4600. Sound400.Volume = 2
  4601. Sound401.Name = "Finish"
  4602. Sound401.Parent = MeshPart399
  4603. Sound401.SoundId = "rbxassetid://2125574886"
  4604. Sound401.Volume = 2
  4605. Sound402.Name = "Rolling"
  4606. Sound402.Parent = MeshPart399
  4607. Sound402.Looped = true
  4608. Sound402.SoundId = "rbxassetid://2125574718"
  4609. Sound402.Volume = 2
  4610. PointLight403.Parent = MeshPart399
  4611. Sound404.Name = "Fricko"
  4612. Sound404.Parent = MeshPart399
  4613. Sound404.SoundId = "rbxassetid://2084814462"
  4614. Sound404.Volume = 4
  4615. Part405.Name = "Rollboi"
  4616. Part405.Parent = Model398
  4617. Part405.CFrame = CFrame.new(30.5876923, 0.100032151, 21.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4618. Part405.Position = Vector3.new(30.5876923, 0.100032151, 21.7022133)
  4619. Part405.Transparency = 1
  4620. Part405.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  4621. Part405.Anchored = true
  4622. Part405.BottomSurface = Enum.SurfaceType.Smooth
  4623. Part405.CanCollide = false
  4624. Part405.Material = Enum.Material.SmoothPlastic
  4625. Part405.TopSurface = Enum.SurfaceType.Smooth
  4626. Script406.Parent = Model393
  4627. table.insert(cors,sandbox(Script406,function()
  4628. --Scripted by Mah_Bucket, sorry if it's terrible
  4629.  
  4630. local t = game:GetService("TweenService")
  4631. local cube = script.Parent.GameCube.GameCube
  4632. local startingpoint = cube.CFrame
  4633. local roll = script.Parent.GameCube.Rollboi
  4634. math.randomseed(tick()*100)
  4635. while true do
  4636. cube.Transparency = 1
  4637. script.Parent.GameCube.PrimaryPart = cube
  4638. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  4639. script.Parent.GameCube.PrimaryPart = roll
  4640. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  4641. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  4642. tween:Play()
  4643. wait(.2)
  4644. cube.Landing:Play()
  4645. wait(.35)
  4646. local rando = math.random(4,16)
  4647. cube.Rolling:Play()
  4648. for x=1,rando do
  4649. if x == rando then
  4650. cube.Rolling:Stop()
  4651. cube.Finish:Play()
  4652. end
  4653. script.Parent.GameCube.PrimaryPart = cube
  4654. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  4655. script.Parent.GameCube.PrimaryPart = roll
  4656. for x=1,4 do
  4657. local turn = 6
  4658. local gui = script.Parent.TrailThingy:Clone()
  4659. gui.Gui.Enabled = true
  4660. gui.Transparency = 1
  4661. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  4662. gui.Parent = script.Parent.Trail
  4663. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  4664. if r1 ~= nil then
  4665. --print("inner corner")
  4666. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  4667. turn = -1
  4668. else
  4669. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  4670. if r2 == nil then
  4671. --print("outer corner")
  4672. turn = 12
  4673. end
  4674. end
  4675. if turn ~= -1 then
  4676. for x=1,turn do
  4677. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  4678. wait(.225/turn)
  4679. end
  4680. else
  4681. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  4682. end
  4683. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  4684. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  4685. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  4686. end
  4687. end
  4688. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  4689. tween:Play()
  4690. wait(.5)
  4691. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  4692. tween:Play()
  4693. wait(.2)
  4694. if math.random(1,20) == 10 then
  4695. cube.Fricko:Play()
  4696. end
  4697. wait(4)
  4698. script.Parent.Trail:ClearAllChildren()
  4699. end
  4700. end))
  4701. Model407.Name = "Wandering GameCube"
  4702. Model407.Parent = Model0
  4703. Folder408.Name = "Trail"
  4704. Folder408.Parent = Model407
  4705. Part409.Name = "TrailThingy"
  4706. Part409.Parent = Model407
  4707. Part409.CFrame = CFrame.new(58.5876923, 1.10001612, 46.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4708. Part409.Position = Vector3.new(58.5876923, 1.10001612, 46.7022095)
  4709. Part409.Transparency = 1
  4710. Part409.Size = Vector3.new(2, 2, 2)
  4711. Part409.Anchored = true
  4712. Part409.BottomSurface = Enum.SurfaceType.Smooth
  4713. Part409.CanCollide = false
  4714. Part409.TopSurface = Enum.SurfaceType.Smooth
  4715. SurfaceGui410.Name = "Gui"
  4716. SurfaceGui410.Parent = Part409
  4717. SurfaceGui410.Enabled = false
  4718. SurfaceGui410.Face = Enum.NormalId.Top
  4719. SurfaceGui410.ClipsDescendants = true
  4720. Frame411.Parent = SurfaceGui410
  4721. Frame411.Position = UDim2.new(0.5, 0, 0.5, 0)
  4722. Frame411.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  4723. Frame411.AnchorPoint = Vector2.new(0.5, 0.5)
  4724. Frame411.BackgroundColor = BrickColor.new("Medium bluish violet")
  4725. Frame411.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  4726. Frame411.BorderSizePixel = 0
  4727. Model412.Name = "GameCube"
  4728. Model412.Parent = Model407
  4729. Model412.PrimaryPart = Part419
  4730. MeshPart413.Name = "GameCube"
  4731. MeshPart413.Parent = Model412
  4732. MeshPart413.CFrame = CFrame.new(58.5876923, 1.10001612, 46.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4733. MeshPart413.Position = Vector3.new(58.5876923, 1.10001612, 46.7022095)
  4734. MeshPart413.Color = Color3.new(0.376471, 0.329412, 0.729412)
  4735. MeshPart413.Size = Vector3.new(2, 2.00000024, 2.00000024)
  4736. MeshPart413.Anchored = true
  4737. MeshPart413.BrickColor = BrickColor.new("Medium bluish violet")
  4738. MeshPart413.Material = Enum.Material.SmoothPlastic
  4739. MeshPart413.Reflectance = 0.20000000298023
  4740. MeshPart413.brickColor = BrickColor.new("Medium bluish violet")
  4741. Sound414.Name = "Landing"
  4742. Sound414.Parent = MeshPart413
  4743. Sound414.SoundId = "rbxassetid://2125574494"
  4744. Sound414.Volume = 2
  4745. Sound415.Name = "Finish"
  4746. Sound415.Parent = MeshPart413
  4747. Sound415.SoundId = "rbxassetid://2125574886"
  4748. Sound415.Volume = 2
  4749. Sound416.Name = "Rolling"
  4750. Sound416.Parent = MeshPart413
  4751. Sound416.Looped = true
  4752. Sound416.SoundId = "rbxassetid://2125574718"
  4753. Sound416.Volume = 2
  4754. PointLight417.Parent = MeshPart413
  4755. Sound418.Name = "Fricko"
  4756. Sound418.Parent = MeshPart413
  4757. Sound418.SoundId = "rbxassetid://2084814462"
  4758. Sound418.Volume = 4
  4759. Part419.Name = "Rollboi"
  4760. Part419.Parent = Model412
  4761. Part419.CFrame = CFrame.new(58.5876923, 0.10001713, 45.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4762. Part419.Position = Vector3.new(58.5876923, 0.10001713, 45.7022095)
  4763. Part419.Transparency = 1
  4764. Part419.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  4765. Part419.Anchored = true
  4766. Part419.BottomSurface = Enum.SurfaceType.Smooth
  4767. Part419.CanCollide = false
  4768. Part419.Material = Enum.Material.SmoothPlastic
  4769. Part419.TopSurface = Enum.SurfaceType.Smooth
  4770. Script420.Parent = Model407
  4771. table.insert(cors,sandbox(Script420,function()
  4772. --Scripted by Mah_Bucket, sorry if it's terrible
  4773.  
  4774. local t = game:GetService("TweenService")
  4775. local cube = script.Parent.GameCube.GameCube
  4776. local startingpoint = cube.CFrame
  4777. local roll = script.Parent.GameCube.Rollboi
  4778. math.randomseed(tick()*100)
  4779. while true do
  4780. cube.Transparency = 1
  4781. script.Parent.GameCube.PrimaryPart = cube
  4782. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  4783. script.Parent.GameCube.PrimaryPart = roll
  4784. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  4785. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  4786. tween:Play()
  4787. wait(.2)
  4788. cube.Landing:Play()
  4789. wait(.35)
  4790. local rando = math.random(4,16)
  4791. cube.Rolling:Play()
  4792. for x=1,rando do
  4793. if x == rando then
  4794. cube.Rolling:Stop()
  4795. cube.Finish:Play()
  4796. end
  4797. script.Parent.GameCube.PrimaryPart = cube
  4798. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  4799. script.Parent.GameCube.PrimaryPart = roll
  4800. for x=1,4 do
  4801. local turn = 6
  4802. local gui = script.Parent.TrailThingy:Clone()
  4803. gui.Gui.Enabled = true
  4804. gui.Transparency = 1
  4805. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  4806. gui.Parent = script.Parent.Trail
  4807. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  4808. if r1 ~= nil then
  4809. --print("inner corner")
  4810. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  4811. turn = -1
  4812. else
  4813. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  4814. if r2 == nil then
  4815. --print("outer corner")
  4816. turn = 12
  4817. end
  4818. end
  4819. if turn ~= -1 then
  4820. for x=1,turn do
  4821. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  4822. wait(.225/turn)
  4823. end
  4824. else
  4825. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  4826. end
  4827. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  4828. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  4829. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  4830. end
  4831. end
  4832. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  4833. tween:Play()
  4834. wait(.5)
  4835. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  4836. tween:Play()
  4837. wait(.2)
  4838. if math.random(1,20) == 10 then
  4839. cube.Fricko:Play()
  4840. end
  4841. wait(4)
  4842. script.Parent.Trail:ClearAllChildren()
  4843. end
  4844. end))
  4845. Model421.Name = "Wandering GameCube"
  4846. Model421.Parent = Model0
  4847. Folder422.Name = "Trail"
  4848. Folder422.Parent = Model421
  4849. Part423.Name = "TrailThingy"
  4850. Part423.Parent = Model421
  4851. Part423.CFrame = CFrame.new(30.5876923, 1.10003114, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4852. Part423.Position = Vector3.new(30.5876923, 1.10003114, 22.7022133)
  4853. Part423.Transparency = 1
  4854. Part423.Size = Vector3.new(2, 2, 2)
  4855. Part423.Anchored = true
  4856. Part423.BottomSurface = Enum.SurfaceType.Smooth
  4857. Part423.CanCollide = false
  4858. Part423.TopSurface = Enum.SurfaceType.Smooth
  4859. SurfaceGui424.Name = "Gui"
  4860. SurfaceGui424.Parent = Part423
  4861. SurfaceGui424.Enabled = false
  4862. SurfaceGui424.Face = Enum.NormalId.Top
  4863. SurfaceGui424.ClipsDescendants = true
  4864. Frame425.Parent = SurfaceGui424
  4865. Frame425.Position = UDim2.new(0.5, 0, 0.5, 0)
  4866. Frame425.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  4867. Frame425.AnchorPoint = Vector2.new(0.5, 0.5)
  4868. Frame425.BackgroundColor = BrickColor.new("Medium bluish violet")
  4869. Frame425.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  4870. Frame425.BorderSizePixel = 0
  4871. Model426.Name = "GameCube"
  4872. Model426.Parent = Model421
  4873. Model426.PrimaryPart = Part433
  4874. MeshPart427.Name = "GameCube"
  4875. MeshPart427.Parent = Model426
  4876. MeshPart427.CFrame = CFrame.new(30.5876923, 1.10003114, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4877. MeshPart427.Position = Vector3.new(30.5876923, 1.10003114, 22.7022133)
  4878. MeshPart427.Color = Color3.new(0.376471, 0.329412, 0.729412)
  4879. MeshPart427.Size = Vector3.new(2, 2.00000024, 2.00000024)
  4880. MeshPart427.Anchored = true
  4881. MeshPart427.BrickColor = BrickColor.new("Medium bluish violet")
  4882. MeshPart427.Material = Enum.Material.SmoothPlastic
  4883. MeshPart427.Reflectance = 0.20000000298023
  4884. MeshPart427.brickColor = BrickColor.new("Medium bluish violet")
  4885. Sound428.Name = "Landing"
  4886. Sound428.Parent = MeshPart427
  4887. Sound428.SoundId = "rbxassetid://2125574494"
  4888. Sound428.Volume = 2
  4889. Sound429.Name = "Finish"
  4890. Sound429.Parent = MeshPart427
  4891. Sound429.SoundId = "rbxassetid://2125574886"
  4892. Sound429.Volume = 2
  4893. Sound430.Name = "Rolling"
  4894. Sound430.Parent = MeshPart427
  4895. Sound430.Looped = true
  4896. Sound430.SoundId = "rbxassetid://2125574718"
  4897. Sound430.Volume = 2
  4898. PointLight431.Parent = MeshPart427
  4899. Sound432.Name = "Fricko"
  4900. Sound432.Parent = MeshPart427
  4901. Sound432.SoundId = "rbxassetid://2084814462"
  4902. Sound432.Volume = 4
  4903. Part433.Name = "Rollboi"
  4904. Part433.Parent = Model426
  4905. Part433.CFrame = CFrame.new(30.5876923, 0.100032151, 21.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4906. Part433.Position = Vector3.new(30.5876923, 0.100032151, 21.7022133)
  4907. Part433.Transparency = 1
  4908. Part433.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  4909. Part433.Anchored = true
  4910. Part433.BottomSurface = Enum.SurfaceType.Smooth
  4911. Part433.CanCollide = false
  4912. Part433.Material = Enum.Material.SmoothPlastic
  4913. Part433.TopSurface = Enum.SurfaceType.Smooth
  4914. Script434.Parent = Model421
  4915. table.insert(cors,sandbox(Script434,function()
  4916. --Scripted by Mah_Bucket, sorry if it's terrible
  4917.  
  4918. local t = game:GetService("TweenService")
  4919. local cube = script.Parent.GameCube.GameCube
  4920. local startingpoint = cube.CFrame
  4921. local roll = script.Parent.GameCube.Rollboi
  4922. math.randomseed(tick()*100)
  4923. while true do
  4924. cube.Transparency = 1
  4925. script.Parent.GameCube.PrimaryPart = cube
  4926. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  4927. script.Parent.GameCube.PrimaryPart = roll
  4928. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  4929. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  4930. tween:Play()
  4931. wait(.2)
  4932. cube.Landing:Play()
  4933. wait(.35)
  4934. local rando = math.random(4,16)
  4935. cube.Rolling:Play()
  4936. for x=1,rando do
  4937. if x == rando then
  4938. cube.Rolling:Stop()
  4939. cube.Finish:Play()
  4940. end
  4941. script.Parent.GameCube.PrimaryPart = cube
  4942. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  4943. script.Parent.GameCube.PrimaryPart = roll
  4944. for x=1,4 do
  4945. local turn = 6
  4946. local gui = script.Parent.TrailThingy:Clone()
  4947. gui.Gui.Enabled = true
  4948. gui.Transparency = 1
  4949. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  4950. gui.Parent = script.Parent.Trail
  4951. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  4952. if r1 ~= nil then
  4953. --print("inner corner")
  4954. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  4955. turn = -1
  4956. else
  4957. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  4958. if r2 == nil then
  4959. --print("outer corner")
  4960. turn = 12
  4961. end
  4962. end
  4963. if turn ~= -1 then
  4964. for x=1,turn do
  4965. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  4966. wait(.225/turn)
  4967. end
  4968. else
  4969. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  4970. end
  4971. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  4972. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  4973. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  4974. end
  4975. end
  4976. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  4977. tween:Play()
  4978. wait(.5)
  4979. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  4980. tween:Play()
  4981. wait(.2)
  4982. if math.random(1,20) == 10 then
  4983. cube.Fricko:Play()
  4984. end
  4985. wait(4)
  4986. script.Parent.Trail:ClearAllChildren()
  4987. end
  4988. end))
  4989. Model435.Name = "Wandering GameCube"
  4990. Model435.Parent = Model0
  4991. Folder436.Name = "Trail"
  4992. Folder436.Parent = Model435
  4993. Part437.Name = "TrailThingy"
  4994. Part437.Parent = Model435
  4995. Part437.CFrame = CFrame.new(38.5876923, 1.10001707, 36.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4996. Part437.Position = Vector3.new(38.5876923, 1.10001707, 36.7022095)
  4997. Part437.Transparency = 1
  4998. Part437.Size = Vector3.new(2, 2, 2)
  4999. Part437.Anchored = true
  5000. Part437.BottomSurface = Enum.SurfaceType.Smooth
  5001. Part437.CanCollide = false
  5002. Part437.TopSurface = Enum.SurfaceType.Smooth
  5003. SurfaceGui438.Name = "Gui"
  5004. SurfaceGui438.Parent = Part437
  5005. SurfaceGui438.Enabled = false
  5006. SurfaceGui438.Face = Enum.NormalId.Top
  5007. SurfaceGui438.ClipsDescendants = true
  5008. Frame439.Parent = SurfaceGui438
  5009. Frame439.Position = UDim2.new(0.5, 0, 0.5, 0)
  5010. Frame439.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  5011. Frame439.AnchorPoint = Vector2.new(0.5, 0.5)
  5012. Frame439.BackgroundColor = BrickColor.new("Medium bluish violet")
  5013. Frame439.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  5014. Frame439.BorderSizePixel = 0
  5015. Model440.Name = "GameCube"
  5016. Model440.Parent = Model435
  5017. Model440.PrimaryPart = Part447
  5018. MeshPart441.Name = "GameCube"
  5019. MeshPart441.Parent = Model440
  5020. MeshPart441.CFrame = CFrame.new(38.5876923, 1.10001707, 36.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5021. MeshPart441.Position = Vector3.new(38.5876923, 1.10001707, 36.7022095)
  5022. MeshPart441.Color = Color3.new(0.376471, 0.329412, 0.729412)
  5023. MeshPart441.Size = Vector3.new(2, 2.00000024, 2.00000024)
  5024. MeshPart441.Anchored = true
  5025. MeshPart441.BrickColor = BrickColor.new("Medium bluish violet")
  5026. MeshPart441.Material = Enum.Material.SmoothPlastic
  5027. MeshPart441.Reflectance = 0.20000000298023
  5028. MeshPart441.brickColor = BrickColor.new("Medium bluish violet")
  5029. Sound442.Name = "Landing"
  5030. Sound442.Parent = MeshPart441
  5031. Sound442.SoundId = "rbxassetid://2125574494"
  5032. Sound442.Volume = 2
  5033. Sound443.Name = "Finish"
  5034. Sound443.Parent = MeshPart441
  5035. Sound443.SoundId = "rbxassetid://2125574886"
  5036. Sound443.Volume = 2
  5037. Sound444.Name = "Rolling"
  5038. Sound444.Parent = MeshPart441
  5039. Sound444.Looped = true
  5040. Sound444.SoundId = "rbxassetid://2125574718"
  5041. Sound444.Volume = 2
  5042. PointLight445.Parent = MeshPart441
  5043. Sound446.Name = "Fricko"
  5044. Sound446.Parent = MeshPart441
  5045. Sound446.SoundId = "rbxassetid://2084814462"
  5046. Sound446.Volume = 4
  5047. Part447.Name = "Rollboi"
  5048. Part447.Parent = Model440
  5049. Part447.CFrame = CFrame.new(38.5876923, 0.100018084, 35.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5050. Part447.Position = Vector3.new(38.5876923, 0.100018084, 35.7022095)
  5051. Part447.Transparency = 1
  5052. Part447.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  5053. Part447.Anchored = true
  5054. Part447.BottomSurface = Enum.SurfaceType.Smooth
  5055. Part447.CanCollide = false
  5056. Part447.Material = Enum.Material.SmoothPlastic
  5057. Part447.TopSurface = Enum.SurfaceType.Smooth
  5058. Script448.Parent = Model435
  5059. table.insert(cors,sandbox(Script448,function()
  5060. --Scripted by Mah_Bucket, sorry if it's terrible
  5061.  
  5062. local t = game:GetService("TweenService")
  5063. local cube = script.Parent.GameCube.GameCube
  5064. local startingpoint = cube.CFrame
  5065. local roll = script.Parent.GameCube.Rollboi
  5066. math.randomseed(tick()*100)
  5067. while true do
  5068. cube.Transparency = 1
  5069. script.Parent.GameCube.PrimaryPart = cube
  5070. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  5071. script.Parent.GameCube.PrimaryPart = roll
  5072. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  5073. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  5074. tween:Play()
  5075. wait(.2)
  5076. cube.Landing:Play()
  5077. wait(.35)
  5078. local rando = math.random(4,16)
  5079. cube.Rolling:Play()
  5080. for x=1,rando do
  5081. if x == rando then
  5082. cube.Rolling:Stop()
  5083. cube.Finish:Play()
  5084. end
  5085. script.Parent.GameCube.PrimaryPart = cube
  5086. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  5087. script.Parent.GameCube.PrimaryPart = roll
  5088. for x=1,4 do
  5089. local turn = 6
  5090. local gui = script.Parent.TrailThingy:Clone()
  5091. gui.Gui.Enabled = true
  5092. gui.Transparency = 1
  5093. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  5094. gui.Parent = script.Parent.Trail
  5095. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  5096. if r1 ~= nil then
  5097. --print("inner corner")
  5098. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  5099. turn = -1
  5100. else
  5101. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  5102. if r2 == nil then
  5103. --print("outer corner")
  5104. turn = 12
  5105. end
  5106. end
  5107. if turn ~= -1 then
  5108. for x=1,turn do
  5109. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  5110. wait(.225/turn)
  5111. end
  5112. else
  5113. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  5114. end
  5115. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  5116. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  5117. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  5118. end
  5119. end
  5120. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  5121. tween:Play()
  5122. wait(.5)
  5123. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  5124. tween:Play()
  5125. wait(.2)
  5126. if math.random(1,20) == 10 then
  5127. cube.Fricko:Play()
  5128. end
  5129. wait(4)
  5130. script.Parent.Trail:ClearAllChildren()
  5131. end
  5132. end))
  5133. Model449.Name = "Wandering GameCube"
  5134. Model449.Parent = Model0
  5135. Folder450.Name = "Trail"
  5136. Folder450.Parent = Model449
  5137. Part451.Name = "TrailThingy"
  5138. Part451.Parent = Model449
  5139. Part451.CFrame = CFrame.new(14.5876904, 1.10002613, 34.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5140. Part451.Position = Vector3.new(14.5876904, 1.10002613, 34.7022095)
  5141. Part451.Transparency = 1
  5142. Part451.Size = Vector3.new(2, 2, 2)
  5143. Part451.Anchored = true
  5144. Part451.BottomSurface = Enum.SurfaceType.Smooth
  5145. Part451.CanCollide = false
  5146. Part451.TopSurface = Enum.SurfaceType.Smooth
  5147. SurfaceGui452.Name = "Gui"
  5148. SurfaceGui452.Parent = Part451
  5149. SurfaceGui452.Enabled = false
  5150. SurfaceGui452.Face = Enum.NormalId.Top
  5151. SurfaceGui452.ClipsDescendants = true
  5152. Frame453.Parent = SurfaceGui452
  5153. Frame453.Position = UDim2.new(0.5, 0, 0.5, 0)
  5154. Frame453.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  5155. Frame453.AnchorPoint = Vector2.new(0.5, 0.5)
  5156. Frame453.BackgroundColor = BrickColor.new("Medium bluish violet")
  5157. Frame453.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  5158. Frame453.BorderSizePixel = 0
  5159. Model454.Name = "GameCube"
  5160. Model454.Parent = Model449
  5161. Model454.PrimaryPart = Part461
  5162. MeshPart455.Name = "GameCube"
  5163. MeshPart455.Parent = Model454
  5164. MeshPart455.CFrame = CFrame.new(14.5876904, 1.10002613, 34.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5165. MeshPart455.Position = Vector3.new(14.5876904, 1.10002613, 34.7022095)
  5166. MeshPart455.Color = Color3.new(0.376471, 0.329412, 0.729412)
  5167. MeshPart455.Size = Vector3.new(2, 2.00000024, 2.00000024)
  5168. MeshPart455.Anchored = true
  5169. MeshPart455.BrickColor = BrickColor.new("Medium bluish violet")
  5170. MeshPart455.Material = Enum.Material.SmoothPlastic
  5171. MeshPart455.Reflectance = 0.20000000298023
  5172. MeshPart455.brickColor = BrickColor.new("Medium bluish violet")
  5173. Sound456.Name = "Landing"
  5174. Sound456.Parent = MeshPart455
  5175. Sound456.SoundId = "rbxassetid://2125574494"
  5176. Sound456.Volume = 2
  5177. Sound457.Name = "Finish"
  5178. Sound457.Parent = MeshPart455
  5179. Sound457.SoundId = "rbxassetid://2125574886"
  5180. Sound457.Volume = 2
  5181. Sound458.Name = "Rolling"
  5182. Sound458.Parent = MeshPart455
  5183. Sound458.Looped = true
  5184. Sound458.SoundId = "rbxassetid://2125574718"
  5185. Sound458.Volume = 2
  5186. PointLight459.Parent = MeshPart455
  5187. Sound460.Name = "Fricko"
  5188. Sound460.Parent = MeshPart455
  5189. Sound460.SoundId = "rbxassetid://2084814462"
  5190. Sound460.Volume = 4
  5191. Part461.Name = "Rollboi"
  5192. Part461.Parent = Model454
  5193. Part461.CFrame = CFrame.new(14.5876904, 0.100027144, 33.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5194. Part461.Position = Vector3.new(14.5876904, 0.100027144, 33.7022095)
  5195. Part461.Transparency = 1
  5196. Part461.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  5197. Part461.Anchored = true
  5198. Part461.BottomSurface = Enum.SurfaceType.Smooth
  5199. Part461.CanCollide = false
  5200. Part461.Material = Enum.Material.SmoothPlastic
  5201. Part461.TopSurface = Enum.SurfaceType.Smooth
  5202. Script462.Parent = Model449
  5203. table.insert(cors,sandbox(Script462,function()
  5204. --Scripted by Mah_Bucket, sorry if it's terrible
  5205.  
  5206. local t = game:GetService("TweenService")
  5207. local cube = script.Parent.GameCube.GameCube
  5208. local startingpoint = cube.CFrame
  5209. local roll = script.Parent.GameCube.Rollboi
  5210. math.randomseed(tick()*100)
  5211. while true do
  5212. cube.Transparency = 1
  5213. script.Parent.GameCube.PrimaryPart = cube
  5214. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  5215. script.Parent.GameCube.PrimaryPart = roll
  5216. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  5217. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  5218. tween:Play()
  5219. wait(.2)
  5220. cube.Landing:Play()
  5221. wait(.35)
  5222. local rando = math.random(4,16)
  5223. cube.Rolling:Play()
  5224. for x=1,rando do
  5225. if x == rando then
  5226. cube.Rolling:Stop()
  5227. cube.Finish:Play()
  5228. end
  5229. script.Parent.GameCube.PrimaryPart = cube
  5230. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  5231. script.Parent.GameCube.PrimaryPart = roll
  5232. for x=1,4 do
  5233. local turn = 6
  5234. local gui = script.Parent.TrailThingy:Clone()
  5235. gui.Gui.Enabled = true
  5236. gui.Transparency = 1
  5237. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  5238. gui.Parent = script.Parent.Trail
  5239. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  5240. if r1 ~= nil then
  5241. --print("inner corner")
  5242. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  5243. turn = -1
  5244. else
  5245. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  5246. if r2 == nil then
  5247. --print("outer corner")
  5248. turn = 12
  5249. end
  5250. end
  5251. if turn ~= -1 then
  5252. for x=1,turn do
  5253. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  5254. wait(.225/turn)
  5255. end
  5256. else
  5257. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  5258. end
  5259. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  5260. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  5261. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  5262. end
  5263. end
  5264. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  5265. tween:Play()
  5266. wait(.5)
  5267. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  5268. tween:Play()
  5269. wait(.2)
  5270. if math.random(1,20) == 10 then
  5271. cube.Fricko:Play()
  5272. end
  5273. wait(4)
  5274. script.Parent.Trail:ClearAllChildren()
  5275. end
  5276. end))
  5277. Model463.Name = "Wandering GameCube"
  5278. Model463.Parent = Model0
  5279. Folder464.Name = "Trail"
  5280. Folder464.Parent = Model463
  5281. Part465.Name = "TrailThingy"
  5282. Part465.Parent = Model463
  5283. Part465.CFrame = CFrame.new(14.5876904, 1.10002613, 34.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5284. Part465.Position = Vector3.new(14.5876904, 1.10002613, 34.7022095)
  5285. Part465.Transparency = 1
  5286. Part465.Size = Vector3.new(2, 2, 2)
  5287. Part465.Anchored = true
  5288. Part465.BottomSurface = Enum.SurfaceType.Smooth
  5289. Part465.CanCollide = false
  5290. Part465.TopSurface = Enum.SurfaceType.Smooth
  5291. SurfaceGui466.Name = "Gui"
  5292. SurfaceGui466.Parent = Part465
  5293. SurfaceGui466.Enabled = false
  5294. SurfaceGui466.Face = Enum.NormalId.Top
  5295. SurfaceGui466.ClipsDescendants = true
  5296. Frame467.Parent = SurfaceGui466
  5297. Frame467.Position = UDim2.new(0.5, 0, 0.5, 0)
  5298. Frame467.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  5299. Frame467.AnchorPoint = Vector2.new(0.5, 0.5)
  5300. Frame467.BackgroundColor = BrickColor.new("Medium bluish violet")
  5301. Frame467.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  5302. Frame467.BorderSizePixel = 0
  5303. Model468.Name = "GameCube"
  5304. Model468.Parent = Model463
  5305. Model468.PrimaryPart = Part475
  5306. MeshPart469.Name = "GameCube"
  5307. MeshPart469.Parent = Model468
  5308. MeshPart469.CFrame = CFrame.new(14.5876904, 1.10002613, 34.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5309. MeshPart469.Position = Vector3.new(14.5876904, 1.10002613, 34.7022095)
  5310. MeshPart469.Color = Color3.new(0.376471, 0.329412, 0.729412)
  5311. MeshPart469.Size = Vector3.new(2, 2.00000024, 2.00000024)
  5312. MeshPart469.Anchored = true
  5313. MeshPart469.BrickColor = BrickColor.new("Medium bluish violet")
  5314. MeshPart469.Material = Enum.Material.SmoothPlastic
  5315. MeshPart469.Reflectance = 0.20000000298023
  5316. MeshPart469.brickColor = BrickColor.new("Medium bluish violet")
  5317. Sound470.Name = "Landing"
  5318. Sound470.Parent = MeshPart469
  5319. Sound470.SoundId = "rbxassetid://2125574494"
  5320. Sound470.Volume = 2
  5321. Sound471.Name = "Finish"
  5322. Sound471.Parent = MeshPart469
  5323. Sound471.SoundId = "rbxassetid://2125574886"
  5324. Sound471.Volume = 2
  5325. Sound472.Name = "Rolling"
  5326. Sound472.Parent = MeshPart469
  5327. Sound472.Looped = true
  5328. Sound472.SoundId = "rbxassetid://2125574718"
  5329. Sound472.Volume = 2
  5330. PointLight473.Parent = MeshPart469
  5331. Sound474.Name = "Fricko"
  5332. Sound474.Parent = MeshPart469
  5333. Sound474.SoundId = "rbxassetid://2084814462"
  5334. Sound474.Volume = 4
  5335. Part475.Name = "Rollboi"
  5336. Part475.Parent = Model468
  5337. Part475.CFrame = CFrame.new(14.5876904, 0.100027144, 33.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5338. Part475.Position = Vector3.new(14.5876904, 0.100027144, 33.7022095)
  5339. Part475.Transparency = 1
  5340. Part475.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  5341. Part475.Anchored = true
  5342. Part475.BottomSurface = Enum.SurfaceType.Smooth
  5343. Part475.CanCollide = false
  5344. Part475.Material = Enum.Material.SmoothPlastic
  5345. Part475.TopSurface = Enum.SurfaceType.Smooth
  5346. Script476.Parent = Model463
  5347. table.insert(cors,sandbox(Script476,function()
  5348. --Scripted by Mah_Bucket, sorry if it's terrible
  5349.  
  5350. local t = game:GetService("TweenService")
  5351. local cube = script.Parent.GameCube.GameCube
  5352. local startingpoint = cube.CFrame
  5353. local roll = script.Parent.GameCube.Rollboi
  5354. math.randomseed(tick()*100)
  5355. while true do
  5356. cube.Transparency = 1
  5357. script.Parent.GameCube.PrimaryPart = cube
  5358. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  5359. script.Parent.GameCube.PrimaryPart = roll
  5360. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  5361. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  5362. tween:Play()
  5363. wait(.2)
  5364. cube.Landing:Play()
  5365. wait(.35)
  5366. local rando = math.random(4,16)
  5367. cube.Rolling:Play()
  5368. for x=1,rando do
  5369. if x == rando then
  5370. cube.Rolling:Stop()
  5371. cube.Finish:Play()
  5372. end
  5373. script.Parent.GameCube.PrimaryPart = cube
  5374. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  5375. script.Parent.GameCube.PrimaryPart = roll
  5376. for x=1,4 do
  5377. local turn = 6
  5378. local gui = script.Parent.TrailThingy:Clone()
  5379. gui.Gui.Enabled = true
  5380. gui.Transparency = 1
  5381. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  5382. gui.Parent = script.Parent.Trail
  5383. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  5384. if r1 ~= nil then
  5385. --print("inner corner")
  5386. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  5387. turn = -1
  5388. else
  5389. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  5390. if r2 == nil then
  5391. --print("outer corner")
  5392. turn = 12
  5393. end
  5394. end
  5395. if turn ~= -1 then
  5396. for x=1,turn do
  5397. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  5398. wait(.225/turn)
  5399. end
  5400. else
  5401. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  5402. end
  5403. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  5404. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  5405. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  5406. end
  5407. end
  5408. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  5409. tween:Play()
  5410. wait(.5)
  5411. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  5412. tween:Play()
  5413. wait(.2)
  5414. if math.random(1,20) == 10 then
  5415. cube.Fricko:Play()
  5416. end
  5417. wait(4)
  5418. script.Parent.Trail:ClearAllChildren()
  5419. end
  5420. end))
  5421. Model477.Name = "Wandering GameCube"
  5422. Model477.Parent = Model0
  5423. Folder478.Name = "Trail"
  5424. Folder478.Parent = Model477
  5425. Part479.Name = "TrailThingy"
  5426. Part479.Parent = Model477
  5427. Part479.CFrame = CFrame.new(42.5876923, 1.10002613, 56.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5428. Part479.Position = Vector3.new(42.5876923, 1.10002613, 56.7022095)
  5429. Part479.Transparency = 1
  5430. Part479.Size = Vector3.new(2, 2, 2)
  5431. Part479.Anchored = true
  5432. Part479.BottomSurface = Enum.SurfaceType.Smooth
  5433. Part479.CanCollide = false
  5434. Part479.TopSurface = Enum.SurfaceType.Smooth
  5435. SurfaceGui480.Name = "Gui"
  5436. SurfaceGui480.Parent = Part479
  5437. SurfaceGui480.Enabled = false
  5438. SurfaceGui480.Face = Enum.NormalId.Top
  5439. SurfaceGui480.ClipsDescendants = true
  5440. Frame481.Parent = SurfaceGui480
  5441. Frame481.Position = UDim2.new(0.5, 0, 0.5, 0)
  5442. Frame481.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  5443. Frame481.AnchorPoint = Vector2.new(0.5, 0.5)
  5444. Frame481.BackgroundColor = BrickColor.new("Medium bluish violet")
  5445. Frame481.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  5446. Frame481.BorderSizePixel = 0
  5447. Model482.Name = "GameCube"
  5448. Model482.Parent = Model477
  5449. Model482.PrimaryPart = Part489
  5450. MeshPart483.Name = "GameCube"
  5451. MeshPart483.Parent = Model482
  5452. MeshPart483.CFrame = CFrame.new(42.5876923, 1.10002613, 56.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5453. MeshPart483.Position = Vector3.new(42.5876923, 1.10002613, 56.7022095)
  5454. MeshPart483.Color = Color3.new(0.376471, 0.329412, 0.729412)
  5455. MeshPart483.Size = Vector3.new(2, 2.00000024, 2.00000024)
  5456. MeshPart483.Anchored = true
  5457. MeshPart483.BrickColor = BrickColor.new("Medium bluish violet")
  5458. MeshPart483.Material = Enum.Material.SmoothPlastic
  5459. MeshPart483.Reflectance = 0.20000000298023
  5460. MeshPart483.brickColor = BrickColor.new("Medium bluish violet")
  5461. Sound484.Name = "Landing"
  5462. Sound484.Parent = MeshPart483
  5463. Sound484.SoundId = "rbxassetid://2125574494"
  5464. Sound484.Volume = 2
  5465. Sound485.Name = "Finish"
  5466. Sound485.Parent = MeshPart483
  5467. Sound485.SoundId = "rbxassetid://2125574886"
  5468. Sound485.Volume = 2
  5469. Sound486.Name = "Rolling"
  5470. Sound486.Parent = MeshPart483
  5471. Sound486.Looped = true
  5472. Sound486.SoundId = "rbxassetid://2125574718"
  5473. Sound486.Volume = 2
  5474. PointLight487.Parent = MeshPart483
  5475. Sound488.Name = "Fricko"
  5476. Sound488.Parent = MeshPart483
  5477. Sound488.SoundId = "rbxassetid://2084814462"
  5478. Sound488.Volume = 4
  5479. Part489.Name = "Rollboi"
  5480. Part489.Parent = Model482
  5481. Part489.CFrame = CFrame.new(42.5876923, 0.100027144, 55.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5482. Part489.Position = Vector3.new(42.5876923, 0.100027144, 55.7022095)
  5483. Part489.Transparency = 1
  5484. Part489.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  5485. Part489.Anchored = true
  5486. Part489.BottomSurface = Enum.SurfaceType.Smooth
  5487. Part489.CanCollide = false
  5488. Part489.Material = Enum.Material.SmoothPlastic
  5489. Part489.TopSurface = Enum.SurfaceType.Smooth
  5490. Script490.Parent = Model477
  5491. table.insert(cors,sandbox(Script490,function()
  5492. --Scripted by Mah_Bucket, sorry if it's terrible
  5493.  
  5494. local t = game:GetService("TweenService")
  5495. local cube = script.Parent.GameCube.GameCube
  5496. local startingpoint = cube.CFrame
  5497. local roll = script.Parent.GameCube.Rollboi
  5498. math.randomseed(tick()*100)
  5499. while true do
  5500. cube.Transparency = 1
  5501. script.Parent.GameCube.PrimaryPart = cube
  5502. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  5503. script.Parent.GameCube.PrimaryPart = roll
  5504. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  5505. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  5506. tween:Play()
  5507. wait(.2)
  5508. cube.Landing:Play()
  5509. wait(.35)
  5510. local rando = math.random(4,16)
  5511. cube.Rolling:Play()
  5512. for x=1,rando do
  5513. if x == rando then
  5514. cube.Rolling:Stop()
  5515. cube.Finish:Play()
  5516. end
  5517. script.Parent.GameCube.PrimaryPart = cube
  5518. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  5519. script.Parent.GameCube.PrimaryPart = roll
  5520. for x=1,4 do
  5521. local turn = 6
  5522. local gui = script.Parent.TrailThingy:Clone()
  5523. gui.Gui.Enabled = true
  5524. gui.Transparency = 1
  5525. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  5526. gui.Parent = script.Parent.Trail
  5527. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  5528. if r1 ~= nil then
  5529. --print("inner corner")
  5530. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  5531. turn = -1
  5532. else
  5533. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  5534. if r2 == nil then
  5535. --print("outer corner")
  5536. turn = 12
  5537. end
  5538. end
  5539. if turn ~= -1 then
  5540. for x=1,turn do
  5541. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  5542. wait(.225/turn)
  5543. end
  5544. else
  5545. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  5546. end
  5547. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  5548. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  5549. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  5550. end
  5551. end
  5552. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  5553. tween:Play()
  5554. wait(.5)
  5555. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  5556. tween:Play()
  5557. wait(.2)
  5558. if math.random(1,20) == 10 then
  5559. cube.Fricko:Play()
  5560. end
  5561. wait(4)
  5562. script.Parent.Trail:ClearAllChildren()
  5563. end
  5564. end))
  5565. Model491.Name = "Wandering GameCube"
  5566. Model491.Parent = Model0
  5567. Folder492.Name = "Trail"
  5568. Folder492.Parent = Model491
  5569. Part493.Name = "TrailThingy"
  5570. Part493.Parent = Model491
  5571. Part493.CFrame = CFrame.new(42.5876923, 1.10002613, 56.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5572. Part493.Position = Vector3.new(42.5876923, 1.10002613, 56.7022095)
  5573. Part493.Transparency = 1
  5574. Part493.Size = Vector3.new(2, 2, 2)
  5575. Part493.Anchored = true
  5576. Part493.BottomSurface = Enum.SurfaceType.Smooth
  5577. Part493.CanCollide = false
  5578. Part493.TopSurface = Enum.SurfaceType.Smooth
  5579. SurfaceGui494.Name = "Gui"
  5580. SurfaceGui494.Parent = Part493
  5581. SurfaceGui494.Enabled = false
  5582. SurfaceGui494.Face = Enum.NormalId.Top
  5583. SurfaceGui494.ClipsDescendants = true
  5584. Frame495.Parent = SurfaceGui494
  5585. Frame495.Position = UDim2.new(0.5, 0, 0.5, 0)
  5586. Frame495.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  5587. Frame495.AnchorPoint = Vector2.new(0.5, 0.5)
  5588. Frame495.BackgroundColor = BrickColor.new("Medium bluish violet")
  5589. Frame495.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
  5590. Frame495.BorderSizePixel = 0
  5591. Model496.Name = "GameCube"
  5592. Model496.Parent = Model491
  5593. Model496.PrimaryPart = Part503
  5594. MeshPart497.Name = "GameCube"
  5595. MeshPart497.Parent = Model496
  5596. MeshPart497.CFrame = CFrame.new(42.5876923, 1.10002613, 56.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5597. MeshPart497.Position = Vector3.new(42.5876923, 1.10002613, 56.7022095)
  5598. MeshPart497.Color = Color3.new(0.376471, 0.329412, 0.729412)
  5599. MeshPart497.Size = Vector3.new(2, 2.00000024, 2.00000024)
  5600. MeshPart497.Anchored = true
  5601. MeshPart497.BrickColor = BrickColor.new("Medium bluish violet")
  5602. MeshPart497.Material = Enum.Material.SmoothPlastic
  5603. MeshPart497.Reflectance = 0.20000000298023
  5604. MeshPart497.brickColor = BrickColor.new("Medium bluish violet")
  5605. Sound498.Name = "Landing"
  5606. Sound498.Parent = MeshPart497
  5607. Sound498.SoundId = "rbxassetid://2125574494"
  5608. Sound498.Volume = 2
  5609. Sound499.Name = "Finish"
  5610. Sound499.Parent = MeshPart497
  5611. Sound499.SoundId = "rbxassetid://2125574886"
  5612. Sound499.Volume = 2
  5613. Sound500.Name = "Rolling"
  5614. Sound500.Parent = MeshPart497
  5615. Sound500.Looped = true
  5616. Sound500.SoundId = "rbxassetid://2125574718"
  5617. Sound500.Volume = 2
  5618. PointLight501.Parent = MeshPart497
  5619. Sound502.Name = "Fricko"
  5620. Sound502.Parent = MeshPart497
  5621. Sound502.SoundId = "rbxassetid://2084814462"
  5622. Sound502.Volume = 4
  5623. Part503.Name = "Rollboi"
  5624. Part503.Parent = Model496
  5625. Part503.CFrame = CFrame.new(42.5876923, 0.100027144, 55.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5626. Part503.Position = Vector3.new(42.5876923, 0.100027144, 55.7022095)
  5627. Part503.Transparency = 1
  5628. Part503.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
  5629. Part503.Anchored = true
  5630. Part503.BottomSurface = Enum.SurfaceType.Smooth
  5631. Part503.CanCollide = false
  5632. Part503.Material = Enum.Material.SmoothPlastic
  5633. Part503.TopSurface = Enum.SurfaceType.Smooth
  5634. Script504.Parent = Model491
  5635. table.insert(cors,sandbox(Script504,function()
  5636. --Scripted by Mah_Bucket, sorry if it's terrible
  5637.  
  5638. local t = game:GetService("TweenService")
  5639. local cube = script.Parent.GameCube.GameCube
  5640. local startingpoint = cube.CFrame
  5641. local roll = script.Parent.GameCube.Rollboi
  5642. math.randomseed(tick()*100)
  5643. while true do
  5644. cube.Transparency = 1
  5645. script.Parent.GameCube.PrimaryPart = cube
  5646. script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
  5647. script.Parent.GameCube.PrimaryPart = roll
  5648. cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
  5649. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
  5650. tween:Play()
  5651. wait(.2)
  5652. cube.Landing:Play()
  5653. wait(.35)
  5654. local rando = math.random(4,16)
  5655. cube.Rolling:Play()
  5656. for x=1,rando do
  5657. if x == rando then
  5658. cube.Rolling:Stop()
  5659. cube.Finish:Play()
  5660. end
  5661. script.Parent.GameCube.PrimaryPart = cube
  5662. script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
  5663. script.Parent.GameCube.PrimaryPart = roll
  5664. for x=1,4 do
  5665. local turn = 6
  5666. local gui = script.Parent.TrailThingy:Clone()
  5667. gui.Gui.Enabled = true
  5668. gui.Transparency = 1
  5669. gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
  5670. gui.Parent = script.Parent.Trail
  5671. local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
  5672. if r1 ~= nil then
  5673. --print("inner corner")
  5674. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
  5675. turn = -1
  5676. else
  5677. local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
  5678. if r2 == nil then
  5679. --print("outer corner")
  5680. turn = 12
  5681. end
  5682. end
  5683. if turn ~= -1 then
  5684. for x=1,turn do
  5685. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
  5686. wait(.225/turn)
  5687. end
  5688. else
  5689. script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
  5690. end
  5691. cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
  5692. roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
  5693. roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
  5694. end
  5695. end
  5696. local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
  5697. tween:Play()
  5698. wait(.5)
  5699. local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
  5700. tween:Play()
  5701. wait(.2)
  5702. if math.random(1,20) == 10 then
  5703. cube.Fricko:Play()
  5704. end
  5705. wait(4)
  5706. script.Parent.Trail:ClearAllChildren()
  5707. end
  5708. end))
  5709. for i,v in pairs(mas:GetChildren()) do
  5710. v.Parent = workspace
  5711. pcall(function() v:MakeJoints() end)
  5712. end
  5713. mas:Destroy()
  5714. for i,v in pairs(cors) do
  5715. spawn(function()
  5716. pcall(v)
  5717. end)
  5718. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement