Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Model1 = Instance.new("Model")
- Folder2 = Instance.new("Folder")
- Part3 = Instance.new("Part")
- SurfaceGui4 = Instance.new("SurfaceGui")
- Frame5 = Instance.new("Frame")
- Model6 = Instance.new("Model")
- MeshPart7 = Instance.new("MeshPart")
- Sound8 = Instance.new("Sound")
- Sound9 = Instance.new("Sound")
- Sound10 = Instance.new("Sound")
- PointLight11 = Instance.new("PointLight")
- Sound12 = Instance.new("Sound")
- Part13 = Instance.new("Part")
- Script14 = Instance.new("Script")
- Model15 = Instance.new("Model")
- Folder16 = Instance.new("Folder")
- Part17 = Instance.new("Part")
- SurfaceGui18 = Instance.new("SurfaceGui")
- Frame19 = Instance.new("Frame")
- Model20 = Instance.new("Model")
- MeshPart21 = Instance.new("MeshPart")
- Sound22 = Instance.new("Sound")
- Sound23 = Instance.new("Sound")
- Sound24 = Instance.new("Sound")
- PointLight25 = Instance.new("PointLight")
- Sound26 = Instance.new("Sound")
- Part27 = Instance.new("Part")
- Script28 = Instance.new("Script")
- Model29 = Instance.new("Model")
- Folder30 = Instance.new("Folder")
- Part31 = Instance.new("Part")
- SurfaceGui32 = Instance.new("SurfaceGui")
- Frame33 = Instance.new("Frame")
- Model34 = Instance.new("Model")
- MeshPart35 = Instance.new("MeshPart")
- Sound36 = Instance.new("Sound")
- Sound37 = Instance.new("Sound")
- Sound38 = Instance.new("Sound")
- PointLight39 = Instance.new("PointLight")
- Sound40 = Instance.new("Sound")
- Part41 = Instance.new("Part")
- Script42 = Instance.new("Script")
- Model43 = Instance.new("Model")
- Folder44 = Instance.new("Folder")
- Part45 = Instance.new("Part")
- SurfaceGui46 = Instance.new("SurfaceGui")
- Frame47 = Instance.new("Frame")
- Model48 = Instance.new("Model")
- MeshPart49 = Instance.new("MeshPart")
- Sound50 = Instance.new("Sound")
- Sound51 = Instance.new("Sound")
- Sound52 = Instance.new("Sound")
- PointLight53 = Instance.new("PointLight")
- Sound54 = Instance.new("Sound")
- Part55 = Instance.new("Part")
- Script56 = Instance.new("Script")
- Model57 = Instance.new("Model")
- Folder58 = Instance.new("Folder")
- Part59 = Instance.new("Part")
- SurfaceGui60 = Instance.new("SurfaceGui")
- Frame61 = Instance.new("Frame")
- Model62 = Instance.new("Model")
- MeshPart63 = Instance.new("MeshPart")
- Sound64 = Instance.new("Sound")
- Sound65 = Instance.new("Sound")
- Sound66 = Instance.new("Sound")
- PointLight67 = Instance.new("PointLight")
- Sound68 = Instance.new("Sound")
- Part69 = Instance.new("Part")
- Script70 = Instance.new("Script")
- Model71 = Instance.new("Model")
- Folder72 = Instance.new("Folder")
- Part73 = Instance.new("Part")
- SurfaceGui74 = Instance.new("SurfaceGui")
- Frame75 = Instance.new("Frame")
- Model76 = Instance.new("Model")
- MeshPart77 = Instance.new("MeshPart")
- Sound78 = Instance.new("Sound")
- Sound79 = Instance.new("Sound")
- Sound80 = Instance.new("Sound")
- PointLight81 = Instance.new("PointLight")
- Sound82 = Instance.new("Sound")
- Part83 = Instance.new("Part")
- Script84 = Instance.new("Script")
- Model85 = Instance.new("Model")
- Folder86 = Instance.new("Folder")
- Part87 = Instance.new("Part")
- SurfaceGui88 = Instance.new("SurfaceGui")
- Frame89 = Instance.new("Frame")
- Model90 = Instance.new("Model")
- MeshPart91 = Instance.new("MeshPart")
- Sound92 = Instance.new("Sound")
- Sound93 = Instance.new("Sound")
- Sound94 = Instance.new("Sound")
- PointLight95 = Instance.new("PointLight")
- Sound96 = Instance.new("Sound")
- Part97 = Instance.new("Part")
- Script98 = Instance.new("Script")
- Model99 = Instance.new("Model")
- Folder100 = Instance.new("Folder")
- Part101 = Instance.new("Part")
- SurfaceGui102 = Instance.new("SurfaceGui")
- Frame103 = Instance.new("Frame")
- Model104 = Instance.new("Model")
- MeshPart105 = Instance.new("MeshPart")
- Sound106 = Instance.new("Sound")
- Sound107 = Instance.new("Sound")
- Sound108 = Instance.new("Sound")
- PointLight109 = Instance.new("PointLight")
- Sound110 = Instance.new("Sound")
- Part111 = Instance.new("Part")
- Script112 = Instance.new("Script")
- Model113 = Instance.new("Model")
- Folder114 = Instance.new("Folder")
- Part115 = Instance.new("Part")
- SurfaceGui116 = Instance.new("SurfaceGui")
- Frame117 = Instance.new("Frame")
- Model118 = Instance.new("Model")
- MeshPart119 = Instance.new("MeshPart")
- Sound120 = Instance.new("Sound")
- Sound121 = Instance.new("Sound")
- Sound122 = Instance.new("Sound")
- PointLight123 = Instance.new("PointLight")
- Sound124 = Instance.new("Sound")
- Part125 = Instance.new("Part")
- Script126 = Instance.new("Script")
- Model127 = Instance.new("Model")
- Folder128 = Instance.new("Folder")
- Part129 = Instance.new("Part")
- SurfaceGui130 = Instance.new("SurfaceGui")
- Frame131 = Instance.new("Frame")
- Model132 = Instance.new("Model")
- MeshPart133 = Instance.new("MeshPart")
- Sound134 = Instance.new("Sound")
- Sound135 = Instance.new("Sound")
- Sound136 = Instance.new("Sound")
- PointLight137 = Instance.new("PointLight")
- Sound138 = Instance.new("Sound")
- Part139 = Instance.new("Part")
- Script140 = Instance.new("Script")
- Model141 = Instance.new("Model")
- Folder142 = Instance.new("Folder")
- Part143 = Instance.new("Part")
- SurfaceGui144 = Instance.new("SurfaceGui")
- Frame145 = Instance.new("Frame")
- Model146 = Instance.new("Model")
- MeshPart147 = Instance.new("MeshPart")
- Sound148 = Instance.new("Sound")
- Sound149 = Instance.new("Sound")
- Sound150 = Instance.new("Sound")
- PointLight151 = Instance.new("PointLight")
- Sound152 = Instance.new("Sound")
- Part153 = Instance.new("Part")
- Script154 = Instance.new("Script")
- Model155 = Instance.new("Model")
- Folder156 = Instance.new("Folder")
- Part157 = Instance.new("Part")
- SurfaceGui158 = Instance.new("SurfaceGui")
- Frame159 = Instance.new("Frame")
- Model160 = Instance.new("Model")
- MeshPart161 = Instance.new("MeshPart")
- Sound162 = Instance.new("Sound")
- Sound163 = Instance.new("Sound")
- Sound164 = Instance.new("Sound")
- PointLight165 = Instance.new("PointLight")
- Sound166 = Instance.new("Sound")
- Part167 = Instance.new("Part")
- Script168 = Instance.new("Script")
- Model169 = Instance.new("Model")
- Folder170 = Instance.new("Folder")
- Part171 = Instance.new("Part")
- SurfaceGui172 = Instance.new("SurfaceGui")
- Frame173 = Instance.new("Frame")
- Model174 = Instance.new("Model")
- MeshPart175 = Instance.new("MeshPart")
- Sound176 = Instance.new("Sound")
- Sound177 = Instance.new("Sound")
- Sound178 = Instance.new("Sound")
- PointLight179 = Instance.new("PointLight")
- Sound180 = Instance.new("Sound")
- Part181 = Instance.new("Part")
- Script182 = Instance.new("Script")
- Model183 = Instance.new("Model")
- Folder184 = Instance.new("Folder")
- Part185 = Instance.new("Part")
- SurfaceGui186 = Instance.new("SurfaceGui")
- Frame187 = Instance.new("Frame")
- Model188 = Instance.new("Model")
- MeshPart189 = Instance.new("MeshPart")
- Sound190 = Instance.new("Sound")
- Sound191 = Instance.new("Sound")
- Sound192 = Instance.new("Sound")
- PointLight193 = Instance.new("PointLight")
- Sound194 = Instance.new("Sound")
- Part195 = Instance.new("Part")
- Script196 = Instance.new("Script")
- Model197 = Instance.new("Model")
- Folder198 = Instance.new("Folder")
- Part199 = Instance.new("Part")
- SurfaceGui200 = Instance.new("SurfaceGui")
- Frame201 = Instance.new("Frame")
- Model202 = Instance.new("Model")
- MeshPart203 = Instance.new("MeshPart")
- Sound204 = Instance.new("Sound")
- Sound205 = Instance.new("Sound")
- Sound206 = Instance.new("Sound")
- PointLight207 = Instance.new("PointLight")
- Sound208 = Instance.new("Sound")
- Part209 = Instance.new("Part")
- Script210 = Instance.new("Script")
- Model211 = Instance.new("Model")
- Folder212 = Instance.new("Folder")
- Part213 = Instance.new("Part")
- SurfaceGui214 = Instance.new("SurfaceGui")
- Frame215 = Instance.new("Frame")
- Model216 = Instance.new("Model")
- MeshPart217 = Instance.new("MeshPart")
- Sound218 = Instance.new("Sound")
- Sound219 = Instance.new("Sound")
- Sound220 = Instance.new("Sound")
- PointLight221 = Instance.new("PointLight")
- Sound222 = Instance.new("Sound")
- Part223 = Instance.new("Part")
- Script224 = Instance.new("Script")
- Model225 = Instance.new("Model")
- Folder226 = Instance.new("Folder")
- Part227 = Instance.new("Part")
- SurfaceGui228 = Instance.new("SurfaceGui")
- Frame229 = Instance.new("Frame")
- Model230 = Instance.new("Model")
- MeshPart231 = Instance.new("MeshPart")
- Sound232 = Instance.new("Sound")
- Sound233 = Instance.new("Sound")
- Sound234 = Instance.new("Sound")
- PointLight235 = Instance.new("PointLight")
- Sound236 = Instance.new("Sound")
- Part237 = Instance.new("Part")
- Script238 = Instance.new("Script")
- Model239 = Instance.new("Model")
- Folder240 = Instance.new("Folder")
- Part241 = Instance.new("Part")
- SurfaceGui242 = Instance.new("SurfaceGui")
- Frame243 = Instance.new("Frame")
- Model244 = Instance.new("Model")
- MeshPart245 = Instance.new("MeshPart")
- Sound246 = Instance.new("Sound")
- Sound247 = Instance.new("Sound")
- Sound248 = Instance.new("Sound")
- PointLight249 = Instance.new("PointLight")
- Sound250 = Instance.new("Sound")
- Part251 = Instance.new("Part")
- Script252 = Instance.new("Script")
- Model253 = Instance.new("Model")
- Folder254 = Instance.new("Folder")
- Part255 = Instance.new("Part")
- SurfaceGui256 = Instance.new("SurfaceGui")
- Frame257 = Instance.new("Frame")
- Model258 = Instance.new("Model")
- MeshPart259 = Instance.new("MeshPart")
- Sound260 = Instance.new("Sound")
- Sound261 = Instance.new("Sound")
- Sound262 = Instance.new("Sound")
- PointLight263 = Instance.new("PointLight")
- Sound264 = Instance.new("Sound")
- Part265 = Instance.new("Part")
- Script266 = Instance.new("Script")
- Model267 = Instance.new("Model")
- Folder268 = Instance.new("Folder")
- Part269 = Instance.new("Part")
- SurfaceGui270 = Instance.new("SurfaceGui")
- Frame271 = Instance.new("Frame")
- Model272 = Instance.new("Model")
- MeshPart273 = Instance.new("MeshPart")
- Sound274 = Instance.new("Sound")
- Sound275 = Instance.new("Sound")
- Sound276 = Instance.new("Sound")
- PointLight277 = Instance.new("PointLight")
- Sound278 = Instance.new("Sound")
- Part279 = Instance.new("Part")
- Script280 = Instance.new("Script")
- Model281 = Instance.new("Model")
- Folder282 = Instance.new("Folder")
- Part283 = Instance.new("Part")
- SurfaceGui284 = Instance.new("SurfaceGui")
- Frame285 = Instance.new("Frame")
- Model286 = Instance.new("Model")
- MeshPart287 = Instance.new("MeshPart")
- Sound288 = Instance.new("Sound")
- Sound289 = Instance.new("Sound")
- Sound290 = Instance.new("Sound")
- PointLight291 = Instance.new("PointLight")
- Sound292 = Instance.new("Sound")
- Part293 = Instance.new("Part")
- Script294 = Instance.new("Script")
- Model295 = Instance.new("Model")
- Folder296 = Instance.new("Folder")
- Part297 = Instance.new("Part")
- SurfaceGui298 = Instance.new("SurfaceGui")
- Frame299 = Instance.new("Frame")
- Model300 = Instance.new("Model")
- MeshPart301 = Instance.new("MeshPart")
- Sound302 = Instance.new("Sound")
- Sound303 = Instance.new("Sound")
- Sound304 = Instance.new("Sound")
- PointLight305 = Instance.new("PointLight")
- Sound306 = Instance.new("Sound")
- Part307 = Instance.new("Part")
- Script308 = Instance.new("Script")
- Model309 = Instance.new("Model")
- Folder310 = Instance.new("Folder")
- Part311 = Instance.new("Part")
- SurfaceGui312 = Instance.new("SurfaceGui")
- Frame313 = Instance.new("Frame")
- Model314 = Instance.new("Model")
- MeshPart315 = Instance.new("MeshPart")
- Sound316 = Instance.new("Sound")
- Sound317 = Instance.new("Sound")
- Sound318 = Instance.new("Sound")
- PointLight319 = Instance.new("PointLight")
- Sound320 = Instance.new("Sound")
- Part321 = Instance.new("Part")
- Script322 = Instance.new("Script")
- Model323 = Instance.new("Model")
- Folder324 = Instance.new("Folder")
- Part325 = Instance.new("Part")
- SurfaceGui326 = Instance.new("SurfaceGui")
- Frame327 = Instance.new("Frame")
- Model328 = Instance.new("Model")
- MeshPart329 = Instance.new("MeshPart")
- Sound330 = Instance.new("Sound")
- Sound331 = Instance.new("Sound")
- Sound332 = Instance.new("Sound")
- PointLight333 = Instance.new("PointLight")
- Sound334 = Instance.new("Sound")
- Part335 = Instance.new("Part")
- Script336 = Instance.new("Script")
- Model337 = Instance.new("Model")
- Folder338 = Instance.new("Folder")
- Part339 = Instance.new("Part")
- SurfaceGui340 = Instance.new("SurfaceGui")
- Frame341 = Instance.new("Frame")
- Model342 = Instance.new("Model")
- MeshPart343 = Instance.new("MeshPart")
- Sound344 = Instance.new("Sound")
- Sound345 = Instance.new("Sound")
- Sound346 = Instance.new("Sound")
- PointLight347 = Instance.new("PointLight")
- Sound348 = Instance.new("Sound")
- Part349 = Instance.new("Part")
- Script350 = Instance.new("Script")
- Model351 = Instance.new("Model")
- Folder352 = Instance.new("Folder")
- Part353 = Instance.new("Part")
- SurfaceGui354 = Instance.new("SurfaceGui")
- Frame355 = Instance.new("Frame")
- Model356 = Instance.new("Model")
- MeshPart357 = Instance.new("MeshPart")
- Sound358 = Instance.new("Sound")
- Sound359 = Instance.new("Sound")
- Sound360 = Instance.new("Sound")
- PointLight361 = Instance.new("PointLight")
- Sound362 = Instance.new("Sound")
- Part363 = Instance.new("Part")
- Script364 = Instance.new("Script")
- Model365 = Instance.new("Model")
- Folder366 = Instance.new("Folder")
- Part367 = Instance.new("Part")
- SurfaceGui368 = Instance.new("SurfaceGui")
- Frame369 = Instance.new("Frame")
- Model370 = Instance.new("Model")
- MeshPart371 = Instance.new("MeshPart")
- Sound372 = Instance.new("Sound")
- Sound373 = Instance.new("Sound")
- Sound374 = Instance.new("Sound")
- PointLight375 = Instance.new("PointLight")
- Sound376 = Instance.new("Sound")
- Part377 = Instance.new("Part")
- Script378 = Instance.new("Script")
- Model379 = Instance.new("Model")
- Folder380 = Instance.new("Folder")
- Part381 = Instance.new("Part")
- SurfaceGui382 = Instance.new("SurfaceGui")
- Frame383 = Instance.new("Frame")
- Model384 = Instance.new("Model")
- MeshPart385 = Instance.new("MeshPart")
- Sound386 = Instance.new("Sound")
- Sound387 = Instance.new("Sound")
- Sound388 = Instance.new("Sound")
- PointLight389 = Instance.new("PointLight")
- Sound390 = Instance.new("Sound")
- Part391 = Instance.new("Part")
- Script392 = Instance.new("Script")
- Model393 = Instance.new("Model")
- Folder394 = Instance.new("Folder")
- Part395 = Instance.new("Part")
- SurfaceGui396 = Instance.new("SurfaceGui")
- Frame397 = Instance.new("Frame")
- Model398 = Instance.new("Model")
- MeshPart399 = Instance.new("MeshPart")
- Sound400 = Instance.new("Sound")
- Sound401 = Instance.new("Sound")
- Sound402 = Instance.new("Sound")
- PointLight403 = Instance.new("PointLight")
- Sound404 = Instance.new("Sound")
- Part405 = Instance.new("Part")
- Script406 = Instance.new("Script")
- Model407 = Instance.new("Model")
- Folder408 = Instance.new("Folder")
- Part409 = Instance.new("Part")
- SurfaceGui410 = Instance.new("SurfaceGui")
- Frame411 = Instance.new("Frame")
- Model412 = Instance.new("Model")
- MeshPart413 = Instance.new("MeshPart")
- Sound414 = Instance.new("Sound")
- Sound415 = Instance.new("Sound")
- Sound416 = Instance.new("Sound")
- PointLight417 = Instance.new("PointLight")
- Sound418 = Instance.new("Sound")
- Part419 = Instance.new("Part")
- Script420 = Instance.new("Script")
- Model421 = Instance.new("Model")
- Folder422 = Instance.new("Folder")
- Part423 = Instance.new("Part")
- SurfaceGui424 = Instance.new("SurfaceGui")
- Frame425 = Instance.new("Frame")
- Model426 = Instance.new("Model")
- MeshPart427 = Instance.new("MeshPart")
- Sound428 = Instance.new("Sound")
- Sound429 = Instance.new("Sound")
- Sound430 = Instance.new("Sound")
- PointLight431 = Instance.new("PointLight")
- Sound432 = Instance.new("Sound")
- Part433 = Instance.new("Part")
- Script434 = Instance.new("Script")
- Model435 = Instance.new("Model")
- Folder436 = Instance.new("Folder")
- Part437 = Instance.new("Part")
- SurfaceGui438 = Instance.new("SurfaceGui")
- Frame439 = Instance.new("Frame")
- Model440 = Instance.new("Model")
- MeshPart441 = Instance.new("MeshPart")
- Sound442 = Instance.new("Sound")
- Sound443 = Instance.new("Sound")
- Sound444 = Instance.new("Sound")
- PointLight445 = Instance.new("PointLight")
- Sound446 = Instance.new("Sound")
- Part447 = Instance.new("Part")
- Script448 = Instance.new("Script")
- Model449 = Instance.new("Model")
- Folder450 = Instance.new("Folder")
- Part451 = Instance.new("Part")
- SurfaceGui452 = Instance.new("SurfaceGui")
- Frame453 = Instance.new("Frame")
- Model454 = Instance.new("Model")
- MeshPart455 = Instance.new("MeshPart")
- Sound456 = Instance.new("Sound")
- Sound457 = Instance.new("Sound")
- Sound458 = Instance.new("Sound")
- PointLight459 = Instance.new("PointLight")
- Sound460 = Instance.new("Sound")
- Part461 = Instance.new("Part")
- Script462 = Instance.new("Script")
- Model463 = Instance.new("Model")
- Folder464 = Instance.new("Folder")
- Part465 = Instance.new("Part")
- SurfaceGui466 = Instance.new("SurfaceGui")
- Frame467 = Instance.new("Frame")
- Model468 = Instance.new("Model")
- MeshPart469 = Instance.new("MeshPart")
- Sound470 = Instance.new("Sound")
- Sound471 = Instance.new("Sound")
- Sound472 = Instance.new("Sound")
- PointLight473 = Instance.new("PointLight")
- Sound474 = Instance.new("Sound")
- Part475 = Instance.new("Part")
- Script476 = Instance.new("Script")
- Model477 = Instance.new("Model")
- Folder478 = Instance.new("Folder")
- Part479 = Instance.new("Part")
- SurfaceGui480 = Instance.new("SurfaceGui")
- Frame481 = Instance.new("Frame")
- Model482 = Instance.new("Model")
- MeshPart483 = Instance.new("MeshPart")
- Sound484 = Instance.new("Sound")
- Sound485 = Instance.new("Sound")
- Sound486 = Instance.new("Sound")
- PointLight487 = Instance.new("PointLight")
- Sound488 = Instance.new("Sound")
- Part489 = Instance.new("Part")
- Script490 = Instance.new("Script")
- Model491 = Instance.new("Model")
- Folder492 = Instance.new("Folder")
- Part493 = Instance.new("Part")
- SurfaceGui494 = Instance.new("SurfaceGui")
- Frame495 = Instance.new("Frame")
- Model496 = Instance.new("Model")
- MeshPart497 = Instance.new("MeshPart")
- Sound498 = Instance.new("Sound")
- Sound499 = Instance.new("Sound")
- Sound500 = Instance.new("Sound")
- PointLight501 = Instance.new("PointLight")
- Sound502 = Instance.new("Sound")
- Part503 = Instance.new("Part")
- Script504 = Instance.new("Script")
- Model0.Parent = mas
- Model1.Name = "Wandering GameCube"
- Model1.Parent = Model0
- Folder2.Name = "Trail"
- Folder2.Parent = Model1
- Part3.Name = "TrailThingy"
- Part3.Parent = Model1
- Part3.CFrame = CFrame.new(-13.4123058, 1.10000801, -11.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.Position = Vector3.new(-13.4123058, 1.10000801, -11.2977943)
- Part3.Transparency = 1
- Part3.Size = Vector3.new(2, 2, 2)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.CanCollide = false
- Part3.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui4.Name = "Gui"
- SurfaceGui4.Parent = Part3
- SurfaceGui4.Enabled = false
- SurfaceGui4.Face = Enum.NormalId.Top
- SurfaceGui4.ClipsDescendants = true
- Frame5.Parent = SurfaceGui4
- Frame5.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame5.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame5.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame5.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame5.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame5.BorderSizePixel = 0
- Model6.Name = "GameCube"
- Model6.Parent = Model1
- Model6.PrimaryPart = Part13
- MeshPart7.Name = "GameCube"
- MeshPart7.Parent = Model6
- MeshPart7.CFrame = CFrame.new(-13.4123058, 1.10000801, -11.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart7.Position = Vector3.new(-13.4123058, 1.10000801, -11.2977943)
- MeshPart7.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart7.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart7.Anchored = true
- MeshPart7.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart7.Material = Enum.Material.SmoothPlastic
- MeshPart7.Reflectance = 0.20000000298023
- MeshPart7.brickColor = BrickColor.new("Medium bluish violet")
- Sound8.Name = "Landing"
- Sound8.Parent = MeshPart7
- Sound8.SoundId = "rbxassetid://2125574494"
- Sound8.Volume = 2
- Sound9.Name = "Finish"
- Sound9.Parent = MeshPart7
- Sound9.SoundId = "rbxassetid://2125574886"
- Sound9.Volume = 2
- Sound10.Name = "Rolling"
- Sound10.Parent = MeshPart7
- Sound10.Looped = true
- Sound10.SoundId = "rbxassetid://2125574718"
- Sound10.Volume = 2
- PointLight11.Parent = MeshPart7
- Sound12.Name = "Fricko"
- Sound12.Parent = MeshPart7
- Sound12.SoundId = "rbxassetid://2084814462"
- Sound12.Volume = 4
- Part13.Name = "Rollboi"
- Part13.Parent = Model6
- Part13.CFrame = CFrame.new(-13.4123058, 0.100009143, -12.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part13.Position = Vector3.new(-13.4123058, 0.100009143, -12.2977943)
- Part13.Transparency = 1
- Part13.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part13.Anchored = true
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.CanCollide = false
- Part13.Material = Enum.Material.SmoothPlastic
- Part13.TopSurface = Enum.SurfaceType.Smooth
- Script14.Parent = Model1
- table.insert(cors,sandbox(Script14,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model15.Name = "Wandering GameCube"
- Model15.Parent = Model0
- Folder16.Name = "Trail"
- Folder16.Parent = Model15
- Part17.Name = "TrailThingy"
- Part17.Parent = Model15
- Part17.CFrame = CFrame.new(2.58769393, 1.10001326, -23.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part17.Position = Vector3.new(2.58769393, 1.10001326, -23.2977943)
- Part17.Transparency = 1
- Part17.Size = Vector3.new(2, 2, 2)
- Part17.Anchored = true
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.CanCollide = false
- Part17.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui18.Name = "Gui"
- SurfaceGui18.Parent = Part17
- SurfaceGui18.Enabled = false
- SurfaceGui18.Face = Enum.NormalId.Top
- SurfaceGui18.ClipsDescendants = true
- Frame19.Parent = SurfaceGui18
- Frame19.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame19.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame19.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame19.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame19.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame19.BorderSizePixel = 0
- Model20.Name = "GameCube"
- Model20.Parent = Model15
- Model20.PrimaryPart = Part27
- MeshPart21.Name = "GameCube"
- MeshPart21.Parent = Model20
- MeshPart21.CFrame = CFrame.new(2.58769393, 1.10001326, -23.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart21.Position = Vector3.new(2.58769393, 1.10001326, -23.2977943)
- MeshPart21.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart21.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart21.Anchored = true
- MeshPart21.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart21.Material = Enum.Material.SmoothPlastic
- MeshPart21.Reflectance = 0.20000000298023
- MeshPart21.brickColor = BrickColor.new("Medium bluish violet")
- Sound22.Name = "Landing"
- Sound22.Parent = MeshPart21
- Sound22.SoundId = "rbxassetid://2125574494"
- Sound22.Volume = 2
- Sound23.Name = "Finish"
- Sound23.Parent = MeshPart21
- Sound23.SoundId = "rbxassetid://2125574886"
- Sound23.Volume = 2
- Sound24.Name = "Rolling"
- Sound24.Parent = MeshPart21
- Sound24.Looped = true
- Sound24.SoundId = "rbxassetid://2125574718"
- Sound24.Volume = 2
- PointLight25.Parent = MeshPart21
- Sound26.Name = "Fricko"
- Sound26.Parent = MeshPart21
- Sound26.SoundId = "rbxassetid://2084814462"
- Sound26.Volume = 4
- Part27.Name = "Rollboi"
- Part27.Parent = Model20
- Part27.CFrame = CFrame.new(2.58769393, 0.10001415, -24.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part27.Position = Vector3.new(2.58769393, 0.10001415, -24.2977943)
- Part27.Transparency = 1
- Part27.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part27.Anchored = true
- Part27.BottomSurface = Enum.SurfaceType.Smooth
- Part27.CanCollide = false
- Part27.Material = Enum.Material.SmoothPlastic
- Part27.TopSurface = Enum.SurfaceType.Smooth
- Script28.Parent = Model15
- table.insert(cors,sandbox(Script28,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model29.Name = "Wandering GameCube"
- Model29.Parent = Model0
- Folder30.Name = "Trail"
- Folder30.Parent = Model29
- Part31.Name = "TrailThingy"
- Part31.Parent = Model29
- Part31.CFrame = CFrame.new(10.5876942, 1.09999895, -9.29779434, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part31.Position = Vector3.new(10.5876942, 1.09999895, -9.29779434)
- Part31.Transparency = 1
- Part31.Size = Vector3.new(2, 2, 2)
- Part31.Anchored = true
- Part31.BottomSurface = Enum.SurfaceType.Smooth
- Part31.CanCollide = false
- Part31.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui32.Name = "Gui"
- SurfaceGui32.Parent = Part31
- SurfaceGui32.Enabled = false
- SurfaceGui32.Face = Enum.NormalId.Top
- SurfaceGui32.ClipsDescendants = true
- Frame33.Parent = SurfaceGui32
- Frame33.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame33.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame33.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame33.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame33.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame33.BorderSizePixel = 0
- Model34.Name = "GameCube"
- Model34.Parent = Model29
- Model34.PrimaryPart = Part41
- MeshPart35.Name = "GameCube"
- MeshPart35.Parent = Model34
- MeshPart35.CFrame = CFrame.new(10.5876942, 1.09999895, -9.29779434, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart35.Position = Vector3.new(10.5876942, 1.09999895, -9.29779434)
- MeshPart35.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart35.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart35.Anchored = true
- MeshPart35.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart35.Material = Enum.Material.SmoothPlastic
- MeshPart35.Reflectance = 0.20000000298023
- MeshPart35.brickColor = BrickColor.new("Medium bluish violet")
- Sound36.Name = "Landing"
- Sound36.Parent = MeshPart35
- Sound36.SoundId = "rbxassetid://2125574494"
- Sound36.Volume = 2
- Sound37.Name = "Finish"
- Sound37.Parent = MeshPart35
- Sound37.SoundId = "rbxassetid://2125574886"
- Sound37.Volume = 2
- Sound38.Name = "Rolling"
- Sound38.Parent = MeshPart35
- Sound38.Looped = true
- Sound38.SoundId = "rbxassetid://2125574718"
- Sound38.Volume = 2
- PointLight39.Parent = MeshPart35
- Sound40.Name = "Fricko"
- Sound40.Parent = MeshPart35
- Sound40.SoundId = "rbxassetid://2084814462"
- Sound40.Volume = 4
- Part41.Name = "Rollboi"
- Part41.Parent = Model34
- Part41.CFrame = CFrame.new(10.5876942, 0.100000083, -10.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part41.Position = Vector3.new(10.5876942, 0.100000083, -10.2977943)
- Part41.Transparency = 1
- Part41.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part41.Anchored = true
- Part41.BottomSurface = Enum.SurfaceType.Smooth
- Part41.CanCollide = false
- Part41.Material = Enum.Material.SmoothPlastic
- Part41.TopSurface = Enum.SurfaceType.Smooth
- Script42.Parent = Model29
- table.insert(cors,sandbox(Script42,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model43.Name = "Wandering GameCube"
- Model43.Parent = Model0
- Folder44.Name = "Trail"
- Folder44.Parent = Model43
- Part45.Name = "TrailThingy"
- Part45.Parent = Model43
- Part45.CFrame = CFrame.new(-19.4123058, 1.1000011, 8.70220566, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part45.Position = Vector3.new(-19.4123058, 1.1000011, 8.70220566)
- Part45.Transparency = 1
- Part45.Size = Vector3.new(2, 2, 2)
- Part45.Anchored = true
- Part45.BottomSurface = Enum.SurfaceType.Smooth
- Part45.CanCollide = false
- Part45.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui46.Name = "Gui"
- SurfaceGui46.Parent = Part45
- SurfaceGui46.Enabled = false
- SurfaceGui46.Face = Enum.NormalId.Top
- SurfaceGui46.ClipsDescendants = true
- Frame47.Parent = SurfaceGui46
- Frame47.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame47.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame47.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame47.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame47.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame47.BorderSizePixel = 0
- Model48.Name = "GameCube"
- Model48.Parent = Model43
- Model48.PrimaryPart = Part55
- MeshPart49.Name = "GameCube"
- MeshPart49.Parent = Model48
- MeshPart49.CFrame = CFrame.new(-19.4123058, 1.1000011, 8.70220566, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart49.Position = Vector3.new(-19.4123058, 1.1000011, 8.70220566)
- MeshPart49.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart49.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart49.Anchored = true
- MeshPart49.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart49.Material = Enum.Material.SmoothPlastic
- MeshPart49.Reflectance = 0.20000000298023
- MeshPart49.brickColor = BrickColor.new("Medium bluish violet")
- Sound50.Name = "Landing"
- Sound50.Parent = MeshPart49
- Sound50.SoundId = "rbxassetid://2125574494"
- Sound50.Volume = 2
- Sound51.Name = "Finish"
- Sound51.Parent = MeshPart49
- Sound51.SoundId = "rbxassetid://2125574886"
- Sound51.Volume = 2
- Sound52.Name = "Rolling"
- Sound52.Parent = MeshPart49
- Sound52.Looped = true
- Sound52.SoundId = "rbxassetid://2125574718"
- Sound52.Volume = 2
- PointLight53.Parent = MeshPart49
- Sound54.Name = "Fricko"
- Sound54.Parent = MeshPart49
- Sound54.SoundId = "rbxassetid://2084814462"
- Sound54.Volume = 4
- Part55.Name = "Rollboi"
- Part55.Parent = Model48
- Part55.CFrame = CFrame.new(-19.4123058, 0.10000211, 7.70220566, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part55.Position = Vector3.new(-19.4123058, 0.10000211, 7.70220566)
- Part55.Transparency = 1
- Part55.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part55.Anchored = true
- Part55.BottomSurface = Enum.SurfaceType.Smooth
- Part55.CanCollide = false
- Part55.Material = Enum.Material.SmoothPlastic
- Part55.TopSurface = Enum.SurfaceType.Smooth
- Script56.Parent = Model43
- table.insert(cors,sandbox(Script56,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model57.Name = "Wandering GameCube"
- Model57.Parent = Model0
- Folder58.Name = "Trail"
- Folder58.Parent = Model57
- Part59.Name = "TrailThingy"
- Part59.Parent = Model57
- Part59.CFrame = CFrame.new(28.5876942, 1.099998, -23.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part59.Position = Vector3.new(28.5876942, 1.099998, -23.2977943)
- Part59.Transparency = 1
- Part59.Size = Vector3.new(2, 2, 2)
- Part59.Anchored = true
- Part59.BottomSurface = Enum.SurfaceType.Smooth
- Part59.CanCollide = false
- Part59.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui60.Name = "Gui"
- SurfaceGui60.Parent = Part59
- SurfaceGui60.Enabled = false
- SurfaceGui60.Face = Enum.NormalId.Top
- SurfaceGui60.ClipsDescendants = true
- Frame61.Parent = SurfaceGui60
- Frame61.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame61.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame61.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame61.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame61.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame61.BorderSizePixel = 0
- Model62.Name = "GameCube"
- Model62.Parent = Model57
- Model62.PrimaryPart = Part69
- MeshPart63.Name = "GameCube"
- MeshPart63.Parent = Model62
- MeshPart63.CFrame = CFrame.new(28.5876942, 1.099998, -23.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart63.Position = Vector3.new(28.5876942, 1.099998, -23.2977943)
- MeshPart63.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart63.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart63.Anchored = true
- MeshPart63.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart63.Material = Enum.Material.SmoothPlastic
- MeshPart63.Reflectance = 0.20000000298023
- MeshPart63.brickColor = BrickColor.new("Medium bluish violet")
- Sound64.Name = "Landing"
- Sound64.Parent = MeshPart63
- Sound64.SoundId = "rbxassetid://2125574494"
- Sound64.Volume = 2
- Sound65.Name = "Finish"
- Sound65.Parent = MeshPart63
- Sound65.SoundId = "rbxassetid://2125574886"
- Sound65.Volume = 2
- Sound66.Name = "Rolling"
- Sound66.Parent = MeshPart63
- Sound66.Looped = true
- Sound66.SoundId = "rbxassetid://2125574718"
- Sound66.Volume = 2
- PointLight67.Parent = MeshPart63
- Sound68.Name = "Fricko"
- Sound68.Parent = MeshPart63
- Sound68.SoundId = "rbxassetid://2084814462"
- Sound68.Volume = 4
- Part69.Name = "Rollboi"
- Part69.Parent = Model62
- Part69.CFrame = CFrame.new(28.5876942, 0.0999991298, -24.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part69.Position = Vector3.new(28.5876942, 0.0999991298, -24.2977943)
- Part69.Transparency = 1
- Part69.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part69.Anchored = true
- Part69.BottomSurface = Enum.SurfaceType.Smooth
- Part69.CanCollide = false
- Part69.Material = Enum.Material.SmoothPlastic
- Part69.TopSurface = Enum.SurfaceType.Smooth
- Script70.Parent = Model57
- table.insert(cors,sandbox(Script70,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model71.Name = "Wandering GameCube"
- Model71.Parent = Model0
- Folder72.Name = "Trail"
- Folder72.Parent = Model71
- Part73.Name = "TrailThingy"
- Part73.Parent = Model71
- Part73.CFrame = CFrame.new(10.5876942, 1.10001111, -45.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part73.Position = Vector3.new(10.5876942, 1.10001111, -45.2977943)
- Part73.Transparency = 1
- Part73.Size = Vector3.new(2, 2, 2)
- Part73.Anchored = true
- Part73.BottomSurface = Enum.SurfaceType.Smooth
- Part73.CanCollide = false
- Part73.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui74.Name = "Gui"
- SurfaceGui74.Parent = Part73
- SurfaceGui74.Enabled = false
- SurfaceGui74.Face = Enum.NormalId.Top
- SurfaceGui74.ClipsDescendants = true
- Frame75.Parent = SurfaceGui74
- Frame75.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame75.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame75.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame75.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame75.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame75.BorderSizePixel = 0
- Model76.Name = "GameCube"
- Model76.Parent = Model71
- Model76.PrimaryPart = Part83
- MeshPart77.Name = "GameCube"
- MeshPart77.Parent = Model76
- MeshPart77.CFrame = CFrame.new(10.5876942, 1.10001111, -45.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart77.Position = Vector3.new(10.5876942, 1.10001111, -45.2977943)
- MeshPart77.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart77.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart77.Anchored = true
- MeshPart77.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart77.Material = Enum.Material.SmoothPlastic
- MeshPart77.Reflectance = 0.20000000298023
- MeshPart77.brickColor = BrickColor.new("Medium bluish violet")
- Sound78.Name = "Landing"
- Sound78.Parent = MeshPart77
- Sound78.SoundId = "rbxassetid://2125574494"
- Sound78.Volume = 2
- Sound79.Name = "Finish"
- Sound79.Parent = MeshPart77
- Sound79.SoundId = "rbxassetid://2125574886"
- Sound79.Volume = 2
- Sound80.Name = "Rolling"
- Sound80.Parent = MeshPart77
- Sound80.Looped = true
- Sound80.SoundId = "rbxassetid://2125574718"
- Sound80.Volume = 2
- PointLight81.Parent = MeshPart77
- Sound82.Name = "Fricko"
- Sound82.Parent = MeshPart77
- Sound82.SoundId = "rbxassetid://2084814462"
- Sound82.Volume = 4
- Part83.Name = "Rollboi"
- Part83.Parent = Model76
- Part83.CFrame = CFrame.new(10.5876942, 0.100012124, -46.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part83.Position = Vector3.new(10.5876942, 0.100012124, -46.2977943)
- Part83.Transparency = 1
- Part83.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part83.Anchored = true
- Part83.BottomSurface = Enum.SurfaceType.Smooth
- Part83.CanCollide = false
- Part83.Material = Enum.Material.SmoothPlastic
- Part83.TopSurface = Enum.SurfaceType.Smooth
- Script84.Parent = Model71
- table.insert(cors,sandbox(Script84,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model85.Name = "Wandering GameCube"
- Model85.Parent = Model0
- Folder86.Name = "Trail"
- Folder86.Parent = Model85
- Part87.Name = "TrailThingy"
- Part87.Parent = Model85
- Part87.CFrame = CFrame.new(14.5876942, 1.10000801, 10.7022057, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part87.Position = Vector3.new(14.5876942, 1.10000801, 10.7022057)
- Part87.Transparency = 1
- Part87.Size = Vector3.new(2, 2, 2)
- Part87.Anchored = true
- Part87.BottomSurface = Enum.SurfaceType.Smooth
- Part87.CanCollide = false
- Part87.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui88.Name = "Gui"
- SurfaceGui88.Parent = Part87
- SurfaceGui88.Enabled = false
- SurfaceGui88.Face = Enum.NormalId.Top
- SurfaceGui88.ClipsDescendants = true
- Frame89.Parent = SurfaceGui88
- Frame89.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame89.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame89.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame89.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame89.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame89.BorderSizePixel = 0
- Model90.Name = "GameCube"
- Model90.Parent = Model85
- Model90.PrimaryPart = Part97
- MeshPart91.Name = "GameCube"
- MeshPart91.Parent = Model90
- MeshPart91.CFrame = CFrame.new(14.5876942, 1.10000801, 10.7022057, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart91.Position = Vector3.new(14.5876942, 1.10000801, 10.7022057)
- MeshPart91.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart91.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart91.Anchored = true
- MeshPart91.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart91.Material = Enum.Material.SmoothPlastic
- MeshPart91.Reflectance = 0.20000000298023
- MeshPart91.brickColor = BrickColor.new("Medium bluish violet")
- Sound92.Name = "Landing"
- Sound92.Parent = MeshPart91
- Sound92.SoundId = "rbxassetid://2125574494"
- Sound92.Volume = 2
- Sound93.Name = "Finish"
- Sound93.Parent = MeshPart91
- Sound93.SoundId = "rbxassetid://2125574886"
- Sound93.Volume = 2
- Sound94.Name = "Rolling"
- Sound94.Parent = MeshPart91
- Sound94.Looped = true
- Sound94.SoundId = "rbxassetid://2125574718"
- Sound94.Volume = 2
- PointLight95.Parent = MeshPart91
- Sound96.Name = "Fricko"
- Sound96.Parent = MeshPart91
- Sound96.SoundId = "rbxassetid://2084814462"
- Sound96.Volume = 4
- Part97.Name = "Rollboi"
- Part97.Parent = Model90
- Part97.CFrame = CFrame.new(14.5876942, 0.100009143, 9.70220566, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part97.Position = Vector3.new(14.5876942, 0.100009143, 9.70220566)
- Part97.Transparency = 1
- Part97.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part97.Anchored = true
- Part97.BottomSurface = Enum.SurfaceType.Smooth
- Part97.CanCollide = false
- Part97.Material = Enum.Material.SmoothPlastic
- Part97.TopSurface = Enum.SurfaceType.Smooth
- Script98.Parent = Model85
- table.insert(cors,sandbox(Script98,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model99.Name = "Wandering GameCube"
- Model99.Parent = Model0
- Folder100.Name = "Trail"
- Folder100.Parent = Model99
- Part101.Name = "TrailThingy"
- Part101.Parent = Model99
- Part101.CFrame = CFrame.new(-9.41230583, 1.10001206, -55.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part101.Position = Vector3.new(-9.41230583, 1.10001206, -55.2977943)
- Part101.Transparency = 1
- Part101.Size = Vector3.new(2, 2, 2)
- Part101.Anchored = true
- Part101.BottomSurface = Enum.SurfaceType.Smooth
- Part101.CanCollide = false
- Part101.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui102.Name = "Gui"
- SurfaceGui102.Parent = Part101
- SurfaceGui102.Enabled = false
- SurfaceGui102.Face = Enum.NormalId.Top
- SurfaceGui102.ClipsDescendants = true
- Frame103.Parent = SurfaceGui102
- Frame103.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame103.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame103.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame103.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame103.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame103.BorderSizePixel = 0
- Model104.Name = "GameCube"
- Model104.Parent = Model99
- Model104.PrimaryPart = Part111
- MeshPart105.Name = "GameCube"
- MeshPart105.Parent = Model104
- MeshPart105.CFrame = CFrame.new(-9.41230583, 1.10001206, -55.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart105.Position = Vector3.new(-9.41230583, 1.10001206, -55.2977943)
- MeshPart105.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart105.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart105.Anchored = true
- MeshPart105.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart105.Material = Enum.Material.SmoothPlastic
- MeshPart105.Reflectance = 0.20000000298023
- MeshPart105.brickColor = BrickColor.new("Medium bluish violet")
- Sound106.Name = "Landing"
- Sound106.Parent = MeshPart105
- Sound106.SoundId = "rbxassetid://2125574494"
- Sound106.Volume = 2
- Sound107.Name = "Finish"
- Sound107.Parent = MeshPart105
- Sound107.SoundId = "rbxassetid://2125574886"
- Sound107.Volume = 2
- Sound108.Name = "Rolling"
- Sound108.Parent = MeshPart105
- Sound108.Looped = true
- Sound108.SoundId = "rbxassetid://2125574718"
- Sound108.Volume = 2
- PointLight109.Parent = MeshPart105
- Sound110.Name = "Fricko"
- Sound110.Parent = MeshPart105
- Sound110.SoundId = "rbxassetid://2084814462"
- Sound110.Volume = 4
- Part111.Name = "Rollboi"
- Part111.Parent = Model104
- Part111.CFrame = CFrame.new(-9.41230583, 0.100013077, -56.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part111.Position = Vector3.new(-9.41230583, 0.100013077, -56.2977943)
- Part111.Transparency = 1
- Part111.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part111.Anchored = true
- Part111.BottomSurface = Enum.SurfaceType.Smooth
- Part111.CanCollide = false
- Part111.Material = Enum.Material.SmoothPlastic
- Part111.TopSurface = Enum.SurfaceType.Smooth
- Script112.Parent = Model99
- table.insert(cors,sandbox(Script112,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model113.Name = "Wandering GameCube"
- Model113.Parent = Model0
- Folder114.Name = "Trail"
- Folder114.Parent = Model113
- Part115.Name = "TrailThingy"
- Part115.Parent = Model113
- Part115.CFrame = CFrame.new(8.58769417, 1.10001111, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part115.Position = Vector3.new(8.58769417, 1.10001111, -69.2977905)
- Part115.Transparency = 1
- Part115.Size = Vector3.new(2, 2, 2)
- Part115.Anchored = true
- Part115.BottomSurface = Enum.SurfaceType.Smooth
- Part115.CanCollide = false
- Part115.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui116.Name = "Gui"
- SurfaceGui116.Parent = Part115
- SurfaceGui116.Enabled = false
- SurfaceGui116.Face = Enum.NormalId.Top
- SurfaceGui116.ClipsDescendants = true
- Frame117.Parent = SurfaceGui116
- Frame117.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame117.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame117.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame117.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame117.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame117.BorderSizePixel = 0
- Model118.Name = "GameCube"
- Model118.Parent = Model113
- Model118.PrimaryPart = Part125
- MeshPart119.Name = "GameCube"
- MeshPart119.Parent = Model118
- MeshPart119.CFrame = CFrame.new(8.58769417, 1.10001111, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart119.Position = Vector3.new(8.58769417, 1.10001111, -69.2977905)
- MeshPart119.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart119.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart119.Anchored = true
- MeshPart119.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart119.Material = Enum.Material.SmoothPlastic
- MeshPart119.Reflectance = 0.20000000298023
- MeshPart119.brickColor = BrickColor.new("Medium bluish violet")
- Sound120.Name = "Landing"
- Sound120.Parent = MeshPart119
- Sound120.SoundId = "rbxassetid://2125574494"
- Sound120.Volume = 2
- Sound121.Name = "Finish"
- Sound121.Parent = MeshPart119
- Sound121.SoundId = "rbxassetid://2125574886"
- Sound121.Volume = 2
- Sound122.Name = "Rolling"
- Sound122.Parent = MeshPart119
- Sound122.Looped = true
- Sound122.SoundId = "rbxassetid://2125574718"
- Sound122.Volume = 2
- PointLight123.Parent = MeshPart119
- Sound124.Name = "Fricko"
- Sound124.Parent = MeshPart119
- Sound124.SoundId = "rbxassetid://2084814462"
- Sound124.Volume = 4
- Part125.Name = "Rollboi"
- Part125.Parent = Model118
- Part125.CFrame = CFrame.new(8.58769417, 0.100012124, -70.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part125.Position = Vector3.new(8.58769417, 0.100012124, -70.2977905)
- Part125.Transparency = 1
- Part125.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part125.Anchored = true
- Part125.BottomSurface = Enum.SurfaceType.Smooth
- Part125.CanCollide = false
- Part125.Material = Enum.Material.SmoothPlastic
- Part125.TopSurface = Enum.SurfaceType.Smooth
- Script126.Parent = Model113
- table.insert(cors,sandbox(Script126,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model127.Name = "Wandering GameCube"
- Model127.Parent = Model0
- Folder128.Name = "Trail"
- Folder128.Parent = Model127
- Part129.Name = "TrailThingy"
- Part129.Parent = Model127
- Part129.CFrame = CFrame.new(-9.41230583, 1.10002422, -91.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part129.Position = Vector3.new(-9.41230583, 1.10002422, -91.2977905)
- Part129.Transparency = 1
- Part129.Size = Vector3.new(2, 2, 2)
- Part129.Anchored = true
- Part129.BottomSurface = Enum.SurfaceType.Smooth
- Part129.CanCollide = false
- Part129.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui130.Name = "Gui"
- SurfaceGui130.Parent = Part129
- SurfaceGui130.Enabled = false
- SurfaceGui130.Face = Enum.NormalId.Top
- SurfaceGui130.ClipsDescendants = true
- Frame131.Parent = SurfaceGui130
- Frame131.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame131.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame131.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame131.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame131.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame131.BorderSizePixel = 0
- Model132.Name = "GameCube"
- Model132.Parent = Model127
- Model132.PrimaryPart = Part139
- MeshPart133.Name = "GameCube"
- MeshPart133.Parent = Model132
- MeshPart133.CFrame = CFrame.new(-9.41230583, 1.10002422, -91.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart133.Position = Vector3.new(-9.41230583, 1.10002422, -91.2977905)
- MeshPart133.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart133.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart133.Anchored = true
- MeshPart133.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart133.Material = Enum.Material.SmoothPlastic
- MeshPart133.Reflectance = 0.20000000298023
- MeshPart133.brickColor = BrickColor.new("Medium bluish violet")
- Sound134.Name = "Landing"
- Sound134.Parent = MeshPart133
- Sound134.SoundId = "rbxassetid://2125574494"
- Sound134.Volume = 2
- Sound135.Name = "Finish"
- Sound135.Parent = MeshPart133
- Sound135.SoundId = "rbxassetid://2125574886"
- Sound135.Volume = 2
- Sound136.Name = "Rolling"
- Sound136.Parent = MeshPart133
- Sound136.Looped = true
- Sound136.SoundId = "rbxassetid://2125574718"
- Sound136.Volume = 2
- PointLight137.Parent = MeshPart133
- Sound138.Name = "Fricko"
- Sound138.Parent = MeshPart133
- Sound138.SoundId = "rbxassetid://2084814462"
- Sound138.Volume = 4
- Part139.Name = "Rollboi"
- Part139.Parent = Model132
- Part139.CFrame = CFrame.new(-9.41230583, 0.100025117, -92.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part139.Position = Vector3.new(-9.41230583, 0.100025117, -92.2977905)
- Part139.Transparency = 1
- Part139.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part139.Anchored = true
- Part139.BottomSurface = Enum.SurfaceType.Smooth
- Part139.CanCollide = false
- Part139.Material = Enum.Material.SmoothPlastic
- Part139.TopSurface = Enum.SurfaceType.Smooth
- Script140.Parent = Model127
- table.insert(cors,sandbox(Script140,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model141.Name = "Wandering GameCube"
- Model141.Parent = Model0
- Folder142.Name = "Trail"
- Folder142.Parent = Model141
- Part143.Name = "TrailThingy"
- Part143.Parent = Model141
- Part143.CFrame = CFrame.new(-39.4123077, 1.10001421, -37.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part143.Position = Vector3.new(-39.4123077, 1.10001421, -37.2977943)
- Part143.Transparency = 1
- Part143.Size = Vector3.new(2, 2, 2)
- Part143.Anchored = true
- Part143.BottomSurface = Enum.SurfaceType.Smooth
- Part143.CanCollide = false
- Part143.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui144.Name = "Gui"
- SurfaceGui144.Parent = Part143
- SurfaceGui144.Enabled = false
- SurfaceGui144.Face = Enum.NormalId.Top
- SurfaceGui144.ClipsDescendants = true
- Frame145.Parent = SurfaceGui144
- Frame145.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame145.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame145.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame145.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame145.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame145.BorderSizePixel = 0
- Model146.Name = "GameCube"
- Model146.Parent = Model141
- Model146.PrimaryPart = Part153
- MeshPart147.Name = "GameCube"
- MeshPart147.Parent = Model146
- MeshPart147.CFrame = CFrame.new(-39.4123077, 1.10001421, -37.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart147.Position = Vector3.new(-39.4123077, 1.10001421, -37.2977943)
- MeshPart147.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart147.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart147.Anchored = true
- MeshPart147.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart147.Material = Enum.Material.SmoothPlastic
- MeshPart147.Reflectance = 0.20000000298023
- MeshPart147.brickColor = BrickColor.new("Medium bluish violet")
- Sound148.Name = "Landing"
- Sound148.Parent = MeshPart147
- Sound148.SoundId = "rbxassetid://2125574494"
- Sound148.Volume = 2
- Sound149.Name = "Finish"
- Sound149.Parent = MeshPart147
- Sound149.SoundId = "rbxassetid://2125574886"
- Sound149.Volume = 2
- Sound150.Name = "Rolling"
- Sound150.Parent = MeshPart147
- Sound150.Looped = true
- Sound150.SoundId = "rbxassetid://2125574718"
- Sound150.Volume = 2
- PointLight151.Parent = MeshPart147
- Sound152.Name = "Fricko"
- Sound152.Parent = MeshPart147
- Sound152.SoundId = "rbxassetid://2084814462"
- Sound152.Volume = 4
- Part153.Name = "Rollboi"
- Part153.Parent = Model146
- Part153.CFrame = CFrame.new(-39.4123077, 0.100015104, -38.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part153.Position = Vector3.new(-39.4123077, 0.100015104, -38.2977943)
- Part153.Transparency = 1
- Part153.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part153.Anchored = true
- Part153.BottomSurface = Enum.SurfaceType.Smooth
- Part153.CanCollide = false
- Part153.Material = Enum.Material.SmoothPlastic
- Part153.TopSurface = Enum.SurfaceType.Smooth
- Script154.Parent = Model141
- table.insert(cors,sandbox(Script154,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model155.Name = "Wandering GameCube"
- Model155.Parent = Model0
- Folder156.Name = "Trail"
- Folder156.Parent = Model155
- Part157.Name = "TrailThingy"
- Part157.Parent = Model155
- Part157.CFrame = CFrame.new(-33.4123077, 1.10002112, -57.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part157.Position = Vector3.new(-33.4123077, 1.10002112, -57.2977943)
- Part157.Transparency = 1
- Part157.Size = Vector3.new(2, 2, 2)
- Part157.Anchored = true
- Part157.BottomSurface = Enum.SurfaceType.Smooth
- Part157.CanCollide = false
- Part157.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui158.Name = "Gui"
- SurfaceGui158.Parent = Part157
- SurfaceGui158.Enabled = false
- SurfaceGui158.Face = Enum.NormalId.Top
- SurfaceGui158.ClipsDescendants = true
- Frame159.Parent = SurfaceGui158
- Frame159.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame159.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame159.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame159.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame159.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame159.BorderSizePixel = 0
- Model160.Name = "GameCube"
- Model160.Parent = Model155
- Model160.PrimaryPart = Part167
- MeshPart161.Name = "GameCube"
- MeshPart161.Parent = Model160
- MeshPart161.CFrame = CFrame.new(-33.4123077, 1.10002112, -57.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart161.Position = Vector3.new(-33.4123077, 1.10002112, -57.2977943)
- MeshPart161.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart161.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart161.Anchored = true
- MeshPart161.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart161.Material = Enum.Material.SmoothPlastic
- MeshPart161.Reflectance = 0.20000000298023
- MeshPart161.brickColor = BrickColor.new("Medium bluish violet")
- Sound162.Name = "Landing"
- Sound162.Parent = MeshPart161
- Sound162.SoundId = "rbxassetid://2125574494"
- Sound162.Volume = 2
- Sound163.Name = "Finish"
- Sound163.Parent = MeshPart161
- Sound163.SoundId = "rbxassetid://2125574886"
- Sound163.Volume = 2
- Sound164.Name = "Rolling"
- Sound164.Parent = MeshPart161
- Sound164.Looped = true
- Sound164.SoundId = "rbxassetid://2125574718"
- Sound164.Volume = 2
- PointLight165.Parent = MeshPart161
- Sound166.Name = "Fricko"
- Sound166.Parent = MeshPart161
- Sound166.SoundId = "rbxassetid://2084814462"
- Sound166.Volume = 4
- Part167.Name = "Rollboi"
- Part167.Parent = Model160
- Part167.CFrame = CFrame.new(-33.4123077, 0.100022137, -58.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part167.Position = Vector3.new(-33.4123077, 0.100022137, -58.2977943)
- Part167.Transparency = 1
- Part167.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part167.Anchored = true
- Part167.BottomSurface = Enum.SurfaceType.Smooth
- Part167.CanCollide = false
- Part167.Material = Enum.Material.SmoothPlastic
- Part167.TopSurface = Enum.SurfaceType.Smooth
- Script168.Parent = Model155
- table.insert(cors,sandbox(Script168,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model169.Name = "Wandering GameCube"
- Model169.Parent = Model0
- Folder170.Name = "Trail"
- Folder170.Parent = Model169
- Part171.Name = "TrailThingy"
- Part171.Parent = Model169
- Part171.CFrame = CFrame.new(-17.4123058, 1.10002613, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part171.Position = Vector3.new(-17.4123058, 1.10002613, -69.2977905)
- Part171.Transparency = 1
- Part171.Size = Vector3.new(2, 2, 2)
- Part171.Anchored = true
- Part171.BottomSurface = Enum.SurfaceType.Smooth
- Part171.CanCollide = false
- Part171.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui172.Name = "Gui"
- SurfaceGui172.Parent = Part171
- SurfaceGui172.Enabled = false
- SurfaceGui172.Face = Enum.NormalId.Top
- SurfaceGui172.ClipsDescendants = true
- Frame173.Parent = SurfaceGui172
- Frame173.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame173.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame173.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame173.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame173.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame173.BorderSizePixel = 0
- Model174.Name = "GameCube"
- Model174.Parent = Model169
- Model174.PrimaryPart = Part181
- MeshPart175.Name = "GameCube"
- MeshPart175.Parent = Model174
- MeshPart175.CFrame = CFrame.new(-17.4123058, 1.10002613, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart175.Position = Vector3.new(-17.4123058, 1.10002613, -69.2977905)
- MeshPart175.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart175.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart175.Anchored = true
- MeshPart175.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart175.Material = Enum.Material.SmoothPlastic
- MeshPart175.Reflectance = 0.20000000298023
- MeshPart175.brickColor = BrickColor.new("Medium bluish violet")
- Sound176.Name = "Landing"
- Sound176.Parent = MeshPart175
- Sound176.SoundId = "rbxassetid://2125574494"
- Sound176.Volume = 2
- Sound177.Name = "Finish"
- Sound177.Parent = MeshPart175
- Sound177.SoundId = "rbxassetid://2125574886"
- Sound177.Volume = 2
- Sound178.Name = "Rolling"
- Sound178.Parent = MeshPart175
- Sound178.Looped = true
- Sound178.SoundId = "rbxassetid://2125574718"
- Sound178.Volume = 2
- PointLight179.Parent = MeshPart175
- Sound180.Name = "Fricko"
- Sound180.Parent = MeshPart175
- Sound180.SoundId = "rbxassetid://2084814462"
- Sound180.Volume = 4
- Part181.Name = "Rollboi"
- Part181.Parent = Model174
- Part181.CFrame = CFrame.new(-17.4123058, 0.100027144, -70.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part181.Position = Vector3.new(-17.4123058, 0.100027144, -70.2977905)
- Part181.Transparency = 1
- Part181.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part181.Anchored = true
- Part181.BottomSurface = Enum.SurfaceType.Smooth
- Part181.CanCollide = false
- Part181.Material = Enum.Material.SmoothPlastic
- Part181.TopSurface = Enum.SurfaceType.Smooth
- Script182.Parent = Model169
- table.insert(cors,sandbox(Script182,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model183.Name = "Wandering GameCube"
- Model183.Parent = Model0
- Folder184.Name = "Trail"
- Folder184.Parent = Model183
- Part185.Name = "TrailThingy"
- Part185.Parent = Model183
- Part185.CFrame = CFrame.new(-5.41230583, 1.10002112, -35.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part185.Position = Vector3.new(-5.41230583, 1.10002112, -35.2977943)
- Part185.Transparency = 1
- Part185.Size = Vector3.new(2, 2, 2)
- Part185.Anchored = true
- Part185.BottomSurface = Enum.SurfaceType.Smooth
- Part185.CanCollide = false
- Part185.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui186.Name = "Gui"
- SurfaceGui186.Parent = Part185
- SurfaceGui186.Enabled = false
- SurfaceGui186.Face = Enum.NormalId.Top
- SurfaceGui186.ClipsDescendants = true
- Frame187.Parent = SurfaceGui186
- Frame187.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame187.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame187.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame187.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame187.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame187.BorderSizePixel = 0
- Model188.Name = "GameCube"
- Model188.Parent = Model183
- Model188.PrimaryPart = Part195
- MeshPart189.Name = "GameCube"
- MeshPart189.Parent = Model188
- MeshPart189.CFrame = CFrame.new(-5.41230583, 1.10002112, -35.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart189.Position = Vector3.new(-5.41230583, 1.10002112, -35.2977943)
- MeshPart189.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart189.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart189.Anchored = true
- MeshPart189.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart189.Material = Enum.Material.SmoothPlastic
- MeshPart189.Reflectance = 0.20000000298023
- MeshPart189.brickColor = BrickColor.new("Medium bluish violet")
- Sound190.Name = "Landing"
- Sound190.Parent = MeshPart189
- Sound190.SoundId = "rbxassetid://2125574494"
- Sound190.Volume = 2
- Sound191.Name = "Finish"
- Sound191.Parent = MeshPart189
- Sound191.SoundId = "rbxassetid://2125574886"
- Sound191.Volume = 2
- Sound192.Name = "Rolling"
- Sound192.Parent = MeshPart189
- Sound192.Looped = true
- Sound192.SoundId = "rbxassetid://2125574718"
- Sound192.Volume = 2
- PointLight193.Parent = MeshPart189
- Sound194.Name = "Fricko"
- Sound194.Parent = MeshPart189
- Sound194.SoundId = "rbxassetid://2084814462"
- Sound194.Volume = 4
- Part195.Name = "Rollboi"
- Part195.Parent = Model188
- Part195.CFrame = CFrame.new(-5.41230583, 0.100022137, -36.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part195.Position = Vector3.new(-5.41230583, 0.100022137, -36.2977943)
- Part195.Transparency = 1
- Part195.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part195.Anchored = true
- Part195.BottomSurface = Enum.SurfaceType.Smooth
- Part195.CanCollide = false
- Part195.Material = Enum.Material.SmoothPlastic
- Part195.TopSurface = Enum.SurfaceType.Smooth
- Script196.Parent = Model183
- table.insert(cors,sandbox(Script196,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model197.Name = "Wandering GameCube"
- Model197.Parent = Model0
- Folder198.Name = "Trail"
- Folder198.Parent = Model197
- Part199.Name = "TrailThingy"
- Part199.Parent = Model197
- Part199.CFrame = CFrame.new(8.58769417, 1.10001111, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part199.Position = Vector3.new(8.58769417, 1.10001111, -69.2977905)
- Part199.Transparency = 1
- Part199.Size = Vector3.new(2, 2, 2)
- Part199.Anchored = true
- Part199.BottomSurface = Enum.SurfaceType.Smooth
- Part199.CanCollide = false
- Part199.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui200.Name = "Gui"
- SurfaceGui200.Parent = Part199
- SurfaceGui200.Enabled = false
- SurfaceGui200.Face = Enum.NormalId.Top
- SurfaceGui200.ClipsDescendants = true
- Frame201.Parent = SurfaceGui200
- Frame201.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame201.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame201.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame201.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame201.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame201.BorderSizePixel = 0
- Model202.Name = "GameCube"
- Model202.Parent = Model197
- Model202.PrimaryPart = Part209
- MeshPart203.Name = "GameCube"
- MeshPart203.Parent = Model202
- MeshPart203.CFrame = CFrame.new(8.58769417, 1.10001111, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart203.Position = Vector3.new(8.58769417, 1.10001111, -69.2977905)
- MeshPart203.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart203.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart203.Anchored = true
- MeshPart203.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart203.Material = Enum.Material.SmoothPlastic
- MeshPart203.Reflectance = 0.20000000298023
- MeshPart203.brickColor = BrickColor.new("Medium bluish violet")
- Sound204.Name = "Landing"
- Sound204.Parent = MeshPart203
- Sound204.SoundId = "rbxassetid://2125574494"
- Sound204.Volume = 2
- Sound205.Name = "Finish"
- Sound205.Parent = MeshPart203
- Sound205.SoundId = "rbxassetid://2125574886"
- Sound205.Volume = 2
- Sound206.Name = "Rolling"
- Sound206.Parent = MeshPart203
- Sound206.Looped = true
- Sound206.SoundId = "rbxassetid://2125574718"
- Sound206.Volume = 2
- PointLight207.Parent = MeshPart203
- Sound208.Name = "Fricko"
- Sound208.Parent = MeshPart203
- Sound208.SoundId = "rbxassetid://2084814462"
- Sound208.Volume = 4
- Part209.Name = "Rollboi"
- Part209.Parent = Model202
- Part209.CFrame = CFrame.new(8.58769417, 0.100012124, -70.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part209.Position = Vector3.new(8.58769417, 0.100012124, -70.2977905)
- Part209.Transparency = 1
- Part209.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part209.Anchored = true
- Part209.BottomSurface = Enum.SurfaceType.Smooth
- Part209.CanCollide = false
- Part209.Material = Enum.Material.SmoothPlastic
- Part209.TopSurface = Enum.SurfaceType.Smooth
- Script210.Parent = Model197
- table.insert(cors,sandbox(Script210,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model211.Name = "Wandering GameCube"
- Model211.Parent = Model0
- Folder212.Name = "Trail"
- Folder212.Parent = Model211
- Part213.Name = "TrailThingy"
- Part213.Parent = Model211
- Part213.CFrame = CFrame.new(-9.41230583, 1.10002422, -91.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part213.Position = Vector3.new(-9.41230583, 1.10002422, -91.2977905)
- Part213.Transparency = 1
- Part213.Size = Vector3.new(2, 2, 2)
- Part213.Anchored = true
- Part213.BottomSurface = Enum.SurfaceType.Smooth
- Part213.CanCollide = false
- Part213.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui214.Name = "Gui"
- SurfaceGui214.Parent = Part213
- SurfaceGui214.Enabled = false
- SurfaceGui214.Face = Enum.NormalId.Top
- SurfaceGui214.ClipsDescendants = true
- Frame215.Parent = SurfaceGui214
- Frame215.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame215.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame215.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame215.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame215.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame215.BorderSizePixel = 0
- Model216.Name = "GameCube"
- Model216.Parent = Model211
- Model216.PrimaryPart = Part223
- MeshPart217.Name = "GameCube"
- MeshPart217.Parent = Model216
- MeshPart217.CFrame = CFrame.new(-9.41230583, 1.10002422, -91.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart217.Position = Vector3.new(-9.41230583, 1.10002422, -91.2977905)
- MeshPart217.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart217.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart217.Anchored = true
- MeshPart217.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart217.Material = Enum.Material.SmoothPlastic
- MeshPart217.Reflectance = 0.20000000298023
- MeshPart217.brickColor = BrickColor.new("Medium bluish violet")
- Sound218.Name = "Landing"
- Sound218.Parent = MeshPart217
- Sound218.SoundId = "rbxassetid://2125574494"
- Sound218.Volume = 2
- Sound219.Name = "Finish"
- Sound219.Parent = MeshPart217
- Sound219.SoundId = "rbxassetid://2125574886"
- Sound219.Volume = 2
- Sound220.Name = "Rolling"
- Sound220.Parent = MeshPart217
- Sound220.Looped = true
- Sound220.SoundId = "rbxassetid://2125574718"
- Sound220.Volume = 2
- PointLight221.Parent = MeshPart217
- Sound222.Name = "Fricko"
- Sound222.Parent = MeshPart217
- Sound222.SoundId = "rbxassetid://2084814462"
- Sound222.Volume = 4
- Part223.Name = "Rollboi"
- Part223.Parent = Model216
- Part223.CFrame = CFrame.new(-9.41230583, 0.100025117, -92.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part223.Position = Vector3.new(-9.41230583, 0.100025117, -92.2977905)
- Part223.Transparency = 1
- Part223.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part223.Anchored = true
- Part223.BottomSurface = Enum.SurfaceType.Smooth
- Part223.CanCollide = false
- Part223.Material = Enum.Material.SmoothPlastic
- Part223.TopSurface = Enum.SurfaceType.Smooth
- Script224.Parent = Model211
- table.insert(cors,sandbox(Script224,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model225.Name = "Wandering GameCube"
- Model225.Parent = Model0
- Folder226.Name = "Trail"
- Folder226.Parent = Model225
- Part227.Name = "TrailThingy"
- Part227.Parent = Model225
- Part227.CFrame = CFrame.new(-9.41230583, 1.10001206, -55.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part227.Position = Vector3.new(-9.41230583, 1.10001206, -55.2977943)
- Part227.Transparency = 1
- Part227.Size = Vector3.new(2, 2, 2)
- Part227.Anchored = true
- Part227.BottomSurface = Enum.SurfaceType.Smooth
- Part227.CanCollide = false
- Part227.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui228.Name = "Gui"
- SurfaceGui228.Parent = Part227
- SurfaceGui228.Enabled = false
- SurfaceGui228.Face = Enum.NormalId.Top
- SurfaceGui228.ClipsDescendants = true
- Frame229.Parent = SurfaceGui228
- Frame229.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame229.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame229.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame229.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame229.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame229.BorderSizePixel = 0
- Model230.Name = "GameCube"
- Model230.Parent = Model225
- Model230.PrimaryPart = Part237
- MeshPart231.Name = "GameCube"
- MeshPart231.Parent = Model230
- MeshPart231.CFrame = CFrame.new(-9.41230583, 1.10001206, -55.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart231.Position = Vector3.new(-9.41230583, 1.10001206, -55.2977943)
- MeshPart231.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart231.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart231.Anchored = true
- MeshPart231.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart231.Material = Enum.Material.SmoothPlastic
- MeshPart231.Reflectance = 0.20000000298023
- MeshPart231.brickColor = BrickColor.new("Medium bluish violet")
- Sound232.Name = "Landing"
- Sound232.Parent = MeshPart231
- Sound232.SoundId = "rbxassetid://2125574494"
- Sound232.Volume = 2
- Sound233.Name = "Finish"
- Sound233.Parent = MeshPart231
- Sound233.SoundId = "rbxassetid://2125574886"
- Sound233.Volume = 2
- Sound234.Name = "Rolling"
- Sound234.Parent = MeshPart231
- Sound234.Looped = true
- Sound234.SoundId = "rbxassetid://2125574718"
- Sound234.Volume = 2
- PointLight235.Parent = MeshPart231
- Sound236.Name = "Fricko"
- Sound236.Parent = MeshPart231
- Sound236.SoundId = "rbxassetid://2084814462"
- Sound236.Volume = 4
- Part237.Name = "Rollboi"
- Part237.Parent = Model230
- Part237.CFrame = CFrame.new(-9.41230583, 0.100013077, -56.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part237.Position = Vector3.new(-9.41230583, 0.100013077, -56.2977943)
- Part237.Transparency = 1
- Part237.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part237.Anchored = true
- Part237.BottomSurface = Enum.SurfaceType.Smooth
- Part237.CanCollide = false
- Part237.Material = Enum.Material.SmoothPlastic
- Part237.TopSurface = Enum.SurfaceType.Smooth
- Script238.Parent = Model225
- table.insert(cors,sandbox(Script238,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model239.Name = "Wandering GameCube"
- Model239.Parent = Model0
- Folder240.Name = "Trail"
- Folder240.Parent = Model239
- Part241.Name = "TrailThingy"
- Part241.Parent = Model239
- Part241.CFrame = CFrame.new(-39.4123077, 1.10001421, -37.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part241.Position = Vector3.new(-39.4123077, 1.10001421, -37.2977943)
- Part241.Transparency = 1
- Part241.Size = Vector3.new(2, 2, 2)
- Part241.Anchored = true
- Part241.BottomSurface = Enum.SurfaceType.Smooth
- Part241.CanCollide = false
- Part241.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui242.Name = "Gui"
- SurfaceGui242.Parent = Part241
- SurfaceGui242.Enabled = false
- SurfaceGui242.Face = Enum.NormalId.Top
- SurfaceGui242.ClipsDescendants = true
- Frame243.Parent = SurfaceGui242
- Frame243.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame243.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame243.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame243.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame243.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame243.BorderSizePixel = 0
- Model244.Name = "GameCube"
- Model244.Parent = Model239
- Model244.PrimaryPart = Part251
- MeshPart245.Name = "GameCube"
- MeshPart245.Parent = Model244
- MeshPart245.CFrame = CFrame.new(-39.4123077, 1.10001421, -37.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart245.Position = Vector3.new(-39.4123077, 1.10001421, -37.2977943)
- MeshPart245.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart245.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart245.Anchored = true
- MeshPart245.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart245.Material = Enum.Material.SmoothPlastic
- MeshPart245.Reflectance = 0.20000000298023
- MeshPart245.brickColor = BrickColor.new("Medium bluish violet")
- Sound246.Name = "Landing"
- Sound246.Parent = MeshPart245
- Sound246.SoundId = "rbxassetid://2125574494"
- Sound246.Volume = 2
- Sound247.Name = "Finish"
- Sound247.Parent = MeshPart245
- Sound247.SoundId = "rbxassetid://2125574886"
- Sound247.Volume = 2
- Sound248.Name = "Rolling"
- Sound248.Parent = MeshPart245
- Sound248.Looped = true
- Sound248.SoundId = "rbxassetid://2125574718"
- Sound248.Volume = 2
- PointLight249.Parent = MeshPart245
- Sound250.Name = "Fricko"
- Sound250.Parent = MeshPart245
- Sound250.SoundId = "rbxassetid://2084814462"
- Sound250.Volume = 4
- Part251.Name = "Rollboi"
- Part251.Parent = Model244
- Part251.CFrame = CFrame.new(-39.4123077, 0.100015104, -38.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part251.Position = Vector3.new(-39.4123077, 0.100015104, -38.2977943)
- Part251.Transparency = 1
- Part251.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part251.Anchored = true
- Part251.BottomSurface = Enum.SurfaceType.Smooth
- Part251.CanCollide = false
- Part251.Material = Enum.Material.SmoothPlastic
- Part251.TopSurface = Enum.SurfaceType.Smooth
- Script252.Parent = Model239
- table.insert(cors,sandbox(Script252,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model253.Name = "Wandering GameCube"
- Model253.Parent = Model0
- Folder254.Name = "Trail"
- Folder254.Parent = Model253
- Part255.Name = "TrailThingy"
- Part255.Parent = Model253
- Part255.CFrame = CFrame.new(-5.41230583, 1.10002112, -35.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part255.Position = Vector3.new(-5.41230583, 1.10002112, -35.2977943)
- Part255.Transparency = 1
- Part255.Size = Vector3.new(2, 2, 2)
- Part255.Anchored = true
- Part255.BottomSurface = Enum.SurfaceType.Smooth
- Part255.CanCollide = false
- Part255.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui256.Name = "Gui"
- SurfaceGui256.Parent = Part255
- SurfaceGui256.Enabled = false
- SurfaceGui256.Face = Enum.NormalId.Top
- SurfaceGui256.ClipsDescendants = true
- Frame257.Parent = SurfaceGui256
- Frame257.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame257.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame257.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame257.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame257.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame257.BorderSizePixel = 0
- Model258.Name = "GameCube"
- Model258.Parent = Model253
- Model258.PrimaryPart = Part265
- MeshPart259.Name = "GameCube"
- MeshPart259.Parent = Model258
- MeshPart259.CFrame = CFrame.new(-5.41230583, 1.10002112, -35.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart259.Position = Vector3.new(-5.41230583, 1.10002112, -35.2977943)
- MeshPart259.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart259.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart259.Anchored = true
- MeshPart259.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart259.Material = Enum.Material.SmoothPlastic
- MeshPart259.Reflectance = 0.20000000298023
- MeshPart259.brickColor = BrickColor.new("Medium bluish violet")
- Sound260.Name = "Landing"
- Sound260.Parent = MeshPart259
- Sound260.SoundId = "rbxassetid://2125574494"
- Sound260.Volume = 2
- Sound261.Name = "Finish"
- Sound261.Parent = MeshPart259
- Sound261.SoundId = "rbxassetid://2125574886"
- Sound261.Volume = 2
- Sound262.Name = "Rolling"
- Sound262.Parent = MeshPart259
- Sound262.Looped = true
- Sound262.SoundId = "rbxassetid://2125574718"
- Sound262.Volume = 2
- PointLight263.Parent = MeshPart259
- Sound264.Name = "Fricko"
- Sound264.Parent = MeshPart259
- Sound264.SoundId = "rbxassetid://2084814462"
- Sound264.Volume = 4
- Part265.Name = "Rollboi"
- Part265.Parent = Model258
- Part265.CFrame = CFrame.new(-5.41230583, 0.100022137, -36.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part265.Position = Vector3.new(-5.41230583, 0.100022137, -36.2977943)
- Part265.Transparency = 1
- Part265.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part265.Anchored = true
- Part265.BottomSurface = Enum.SurfaceType.Smooth
- Part265.CanCollide = false
- Part265.Material = Enum.Material.SmoothPlastic
- Part265.TopSurface = Enum.SurfaceType.Smooth
- Script266.Parent = Model253
- table.insert(cors,sandbox(Script266,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model267.Name = "Wandering GameCube"
- Model267.Parent = Model0
- Folder268.Name = "Trail"
- Folder268.Parent = Model267
- Part269.Name = "TrailThingy"
- Part269.Parent = Model267
- Part269.CFrame = CFrame.new(-33.4123077, 1.10002112, -57.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part269.Position = Vector3.new(-33.4123077, 1.10002112, -57.2977943)
- Part269.Transparency = 1
- Part269.Size = Vector3.new(2, 2, 2)
- Part269.Anchored = true
- Part269.BottomSurface = Enum.SurfaceType.Smooth
- Part269.CanCollide = false
- Part269.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui270.Name = "Gui"
- SurfaceGui270.Parent = Part269
- SurfaceGui270.Enabled = false
- SurfaceGui270.Face = Enum.NormalId.Top
- SurfaceGui270.ClipsDescendants = true
- Frame271.Parent = SurfaceGui270
- Frame271.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame271.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame271.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame271.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame271.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame271.BorderSizePixel = 0
- Model272.Name = "GameCube"
- Model272.Parent = Model267
- Model272.PrimaryPart = Part279
- MeshPart273.Name = "GameCube"
- MeshPart273.Parent = Model272
- MeshPart273.CFrame = CFrame.new(-33.4123077, 1.10002112, -57.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart273.Position = Vector3.new(-33.4123077, 1.10002112, -57.2977943)
- MeshPart273.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart273.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart273.Anchored = true
- MeshPart273.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart273.Material = Enum.Material.SmoothPlastic
- MeshPart273.Reflectance = 0.20000000298023
- MeshPart273.brickColor = BrickColor.new("Medium bluish violet")
- Sound274.Name = "Landing"
- Sound274.Parent = MeshPart273
- Sound274.SoundId = "rbxassetid://2125574494"
- Sound274.Volume = 2
- Sound275.Name = "Finish"
- Sound275.Parent = MeshPart273
- Sound275.SoundId = "rbxassetid://2125574886"
- Sound275.Volume = 2
- Sound276.Name = "Rolling"
- Sound276.Parent = MeshPart273
- Sound276.Looped = true
- Sound276.SoundId = "rbxassetid://2125574718"
- Sound276.Volume = 2
- PointLight277.Parent = MeshPart273
- Sound278.Name = "Fricko"
- Sound278.Parent = MeshPart273
- Sound278.SoundId = "rbxassetid://2084814462"
- Sound278.Volume = 4
- Part279.Name = "Rollboi"
- Part279.Parent = Model272
- Part279.CFrame = CFrame.new(-33.4123077, 0.100022137, -58.2977943, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part279.Position = Vector3.new(-33.4123077, 0.100022137, -58.2977943)
- Part279.Transparency = 1
- Part279.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part279.Anchored = true
- Part279.BottomSurface = Enum.SurfaceType.Smooth
- Part279.CanCollide = false
- Part279.Material = Enum.Material.SmoothPlastic
- Part279.TopSurface = Enum.SurfaceType.Smooth
- Script280.Parent = Model267
- table.insert(cors,sandbox(Script280,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model281.Name = "Wandering GameCube"
- Model281.Parent = Model0
- Folder282.Name = "Trail"
- Folder282.Parent = Model281
- Part283.Name = "TrailThingy"
- Part283.Parent = Model281
- Part283.CFrame = CFrame.new(-17.4123058, 1.10002613, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part283.Position = Vector3.new(-17.4123058, 1.10002613, -69.2977905)
- Part283.Transparency = 1
- Part283.Size = Vector3.new(2, 2, 2)
- Part283.Anchored = true
- Part283.BottomSurface = Enum.SurfaceType.Smooth
- Part283.CanCollide = false
- Part283.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui284.Name = "Gui"
- SurfaceGui284.Parent = Part283
- SurfaceGui284.Enabled = false
- SurfaceGui284.Face = Enum.NormalId.Top
- SurfaceGui284.ClipsDescendants = true
- Frame285.Parent = SurfaceGui284
- Frame285.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame285.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame285.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame285.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame285.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame285.BorderSizePixel = 0
- Model286.Name = "GameCube"
- Model286.Parent = Model281
- Model286.PrimaryPart = Part293
- MeshPart287.Name = "GameCube"
- MeshPart287.Parent = Model286
- MeshPart287.CFrame = CFrame.new(-17.4123058, 1.10002613, -69.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart287.Position = Vector3.new(-17.4123058, 1.10002613, -69.2977905)
- MeshPart287.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart287.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart287.Anchored = true
- MeshPart287.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart287.Material = Enum.Material.SmoothPlastic
- MeshPart287.Reflectance = 0.20000000298023
- MeshPart287.brickColor = BrickColor.new("Medium bluish violet")
- Sound288.Name = "Landing"
- Sound288.Parent = MeshPart287
- Sound288.SoundId = "rbxassetid://2125574494"
- Sound288.Volume = 2
- Sound289.Name = "Finish"
- Sound289.Parent = MeshPart287
- Sound289.SoundId = "rbxassetid://2125574886"
- Sound289.Volume = 2
- Sound290.Name = "Rolling"
- Sound290.Parent = MeshPart287
- Sound290.Looped = true
- Sound290.SoundId = "rbxassetid://2125574718"
- Sound290.Volume = 2
- PointLight291.Parent = MeshPart287
- Sound292.Name = "Fricko"
- Sound292.Parent = MeshPart287
- Sound292.SoundId = "rbxassetid://2084814462"
- Sound292.Volume = 4
- Part293.Name = "Rollboi"
- Part293.Parent = Model286
- Part293.CFrame = CFrame.new(-17.4123058, 0.100027144, -70.2977905, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part293.Position = Vector3.new(-17.4123058, 0.100027144, -70.2977905)
- Part293.Transparency = 1
- Part293.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part293.Anchored = true
- Part293.BottomSurface = Enum.SurfaceType.Smooth
- Part293.CanCollide = false
- Part293.Material = Enum.Material.SmoothPlastic
- Part293.TopSurface = Enum.SurfaceType.Smooth
- Script294.Parent = Model281
- table.insert(cors,sandbox(Script294,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model295.Name = "Wandering GameCube"
- Model295.Parent = Model0
- Folder296.Name = "Trail"
- Folder296.Parent = Model295
- Part297.Name = "TrailThingy"
- Part297.Parent = Model295
- Part297.CFrame = CFrame.new(8.58769226, 1.10001898, 54.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part297.Position = Vector3.new(8.58769226, 1.10001898, 54.7022095)
- Part297.Transparency = 1
- Part297.Size = Vector3.new(2, 2, 2)
- Part297.Anchored = true
- Part297.BottomSurface = Enum.SurfaceType.Smooth
- Part297.CanCollide = false
- Part297.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui298.Name = "Gui"
- SurfaceGui298.Parent = Part297
- SurfaceGui298.Enabled = false
- SurfaceGui298.Face = Enum.NormalId.Top
- SurfaceGui298.ClipsDescendants = true
- Frame299.Parent = SurfaceGui298
- Frame299.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame299.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame299.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame299.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame299.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame299.BorderSizePixel = 0
- Model300.Name = "GameCube"
- Model300.Parent = Model295
- Model300.PrimaryPart = Part307
- MeshPart301.Name = "GameCube"
- MeshPart301.Parent = Model300
- MeshPart301.CFrame = CFrame.new(8.58769226, 1.10001898, 54.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart301.Position = Vector3.new(8.58769226, 1.10001898, 54.7022095)
- MeshPart301.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart301.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart301.Anchored = true
- MeshPart301.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart301.Material = Enum.Material.SmoothPlastic
- MeshPart301.Reflectance = 0.20000000298023
- MeshPart301.brickColor = BrickColor.new("Medium bluish violet")
- Sound302.Name = "Landing"
- Sound302.Parent = MeshPart301
- Sound302.SoundId = "rbxassetid://2125574494"
- Sound302.Volume = 2
- Sound303.Name = "Finish"
- Sound303.Parent = MeshPart301
- Sound303.SoundId = "rbxassetid://2125574886"
- Sound303.Volume = 2
- Sound304.Name = "Rolling"
- Sound304.Parent = MeshPart301
- Sound304.Looped = true
- Sound304.SoundId = "rbxassetid://2125574718"
- Sound304.Volume = 2
- PointLight305.Parent = MeshPart301
- Sound306.Name = "Fricko"
- Sound306.Parent = MeshPart301
- Sound306.SoundId = "rbxassetid://2084814462"
- Sound306.Volume = 4
- Part307.Name = "Rollboi"
- Part307.Parent = Model300
- Part307.CFrame = CFrame.new(8.58769226, 0.100020111, 53.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part307.Position = Vector3.new(8.58769226, 0.100020111, 53.7022095)
- Part307.Transparency = 1
- Part307.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part307.Anchored = true
- Part307.BottomSurface = Enum.SurfaceType.Smooth
- Part307.CanCollide = false
- Part307.Material = Enum.Material.SmoothPlastic
- Part307.TopSurface = Enum.SurfaceType.Smooth
- Script308.Parent = Model295
- table.insert(cors,sandbox(Script308,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model309.Name = "Wandering GameCube"
- Model309.Parent = Model0
- Folder310.Name = "Trail"
- Folder310.Parent = Model309
- Part311.Name = "TrailThingy"
- Part311.Parent = Model309
- Part311.CFrame = CFrame.new(8.58769226, 1.10001898, 54.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part311.Position = Vector3.new(8.58769226, 1.10001898, 54.7022095)
- Part311.Transparency = 1
- Part311.Size = Vector3.new(2, 2, 2)
- Part311.Anchored = true
- Part311.BottomSurface = Enum.SurfaceType.Smooth
- Part311.CanCollide = false
- Part311.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui312.Name = "Gui"
- SurfaceGui312.Parent = Part311
- SurfaceGui312.Enabled = false
- SurfaceGui312.Face = Enum.NormalId.Top
- SurfaceGui312.ClipsDescendants = true
- Frame313.Parent = SurfaceGui312
- Frame313.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame313.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame313.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame313.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame313.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame313.BorderSizePixel = 0
- Model314.Name = "GameCube"
- Model314.Parent = Model309
- Model314.PrimaryPart = Part321
- MeshPart315.Name = "GameCube"
- MeshPart315.Parent = Model314
- MeshPart315.CFrame = CFrame.new(8.58769226, 1.10001898, 54.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart315.Position = Vector3.new(8.58769226, 1.10001898, 54.7022095)
- MeshPart315.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart315.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart315.Anchored = true
- MeshPart315.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart315.Material = Enum.Material.SmoothPlastic
- MeshPart315.Reflectance = 0.20000000298023
- MeshPart315.brickColor = BrickColor.new("Medium bluish violet")
- Sound316.Name = "Landing"
- Sound316.Parent = MeshPart315
- Sound316.SoundId = "rbxassetid://2125574494"
- Sound316.Volume = 2
- Sound317.Name = "Finish"
- Sound317.Parent = MeshPart315
- Sound317.SoundId = "rbxassetid://2125574886"
- Sound317.Volume = 2
- Sound318.Name = "Rolling"
- Sound318.Parent = MeshPart315
- Sound318.Looped = true
- Sound318.SoundId = "rbxassetid://2125574718"
- Sound318.Volume = 2
- PointLight319.Parent = MeshPart315
- Sound320.Name = "Fricko"
- Sound320.Parent = MeshPart315
- Sound320.SoundId = "rbxassetid://2084814462"
- Sound320.Volume = 4
- Part321.Name = "Rollboi"
- Part321.Parent = Model314
- Part321.CFrame = CFrame.new(8.58769226, 0.100020111, 53.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part321.Position = Vector3.new(8.58769226, 0.100020111, 53.7022095)
- Part321.Transparency = 1
- Part321.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part321.Anchored = true
- Part321.BottomSurface = Enum.SurfaceType.Smooth
- Part321.CanCollide = false
- Part321.Material = Enum.Material.SmoothPlastic
- Part321.TopSurface = Enum.SurfaceType.Smooth
- Script322.Parent = Model309
- table.insert(cors,sandbox(Script322,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model323.Name = "Wandering GameCube"
- Model323.Parent = Model0
- Folder324.Name = "Trail"
- Folder324.Parent = Model323
- Part325.Name = "TrailThingy"
- Part325.Parent = Model323
- Part325.CFrame = CFrame.new(56.5876923, 1.10001612, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part325.Position = Vector3.new(56.5876923, 1.10001612, 22.7022133)
- Part325.Transparency = 1
- Part325.Size = Vector3.new(2, 2, 2)
- Part325.Anchored = true
- Part325.BottomSurface = Enum.SurfaceType.Smooth
- Part325.CanCollide = false
- Part325.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui326.Name = "Gui"
- SurfaceGui326.Parent = Part325
- SurfaceGui326.Enabled = false
- SurfaceGui326.Face = Enum.NormalId.Top
- SurfaceGui326.ClipsDescendants = true
- Frame327.Parent = SurfaceGui326
- Frame327.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame327.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame327.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame327.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame327.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame327.BorderSizePixel = 0
- Model328.Name = "GameCube"
- Model328.Parent = Model323
- Model328.PrimaryPart = Part335
- MeshPart329.Name = "GameCube"
- MeshPart329.Parent = Model328
- MeshPart329.CFrame = CFrame.new(56.5876923, 1.10001612, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart329.Position = Vector3.new(56.5876923, 1.10001612, 22.7022133)
- MeshPart329.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart329.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart329.Anchored = true
- MeshPart329.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart329.Material = Enum.Material.SmoothPlastic
- MeshPart329.Reflectance = 0.20000000298023
- MeshPart329.brickColor = BrickColor.new("Medium bluish violet")
- Sound330.Name = "Landing"
- Sound330.Parent = MeshPart329
- Sound330.SoundId = "rbxassetid://2125574494"
- Sound330.Volume = 2
- Sound331.Name = "Finish"
- Sound331.Parent = MeshPart329
- Sound331.SoundId = "rbxassetid://2125574886"
- Sound331.Volume = 2
- Sound332.Name = "Rolling"
- Sound332.Parent = MeshPart329
- Sound332.Looped = true
- Sound332.SoundId = "rbxassetid://2125574718"
- Sound332.Volume = 2
- PointLight333.Parent = MeshPart329
- Sound334.Name = "Fricko"
- Sound334.Parent = MeshPart329
- Sound334.SoundId = "rbxassetid://2084814462"
- Sound334.Volume = 4
- Part335.Name = "Rollboi"
- Part335.Parent = Model328
- Part335.CFrame = CFrame.new(56.5876923, 0.10001713, 21.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part335.Position = Vector3.new(56.5876923, 0.10001713, 21.7022133)
- Part335.Transparency = 1
- Part335.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part335.Anchored = true
- Part335.BottomSurface = Enum.SurfaceType.Smooth
- Part335.CanCollide = false
- Part335.Material = Enum.Material.SmoothPlastic
- Part335.TopSurface = Enum.SurfaceType.Smooth
- Script336.Parent = Model323
- table.insert(cors,sandbox(Script336,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model337.Name = "Wandering GameCube"
- Model337.Parent = Model0
- Folder338.Name = "Trail"
- Folder338.Parent = Model337
- Part339.Name = "TrailThingy"
- Part339.Parent = Model337
- Part339.CFrame = CFrame.new(38.5876923, 1.10002899, 0.702213287, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part339.Position = Vector3.new(38.5876923, 1.10002899, 0.702213287)
- Part339.Transparency = 1
- Part339.Size = Vector3.new(2, 2, 2)
- Part339.Anchored = true
- Part339.BottomSurface = Enum.SurfaceType.Smooth
- Part339.CanCollide = false
- Part339.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui340.Name = "Gui"
- SurfaceGui340.Parent = Part339
- SurfaceGui340.Enabled = false
- SurfaceGui340.Face = Enum.NormalId.Top
- SurfaceGui340.ClipsDescendants = true
- Frame341.Parent = SurfaceGui340
- Frame341.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame341.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame341.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame341.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame341.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame341.BorderSizePixel = 0
- Model342.Name = "GameCube"
- Model342.Parent = Model337
- Model342.PrimaryPart = Part349
- MeshPart343.Name = "GameCube"
- MeshPart343.Parent = Model342
- MeshPart343.CFrame = CFrame.new(38.5876923, 1.10002899, 0.702213287, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart343.Position = Vector3.new(38.5876923, 1.10002899, 0.702213287)
- MeshPart343.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart343.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart343.Anchored = true
- MeshPart343.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart343.Material = Enum.Material.SmoothPlastic
- MeshPart343.Reflectance = 0.20000000298023
- MeshPart343.brickColor = BrickColor.new("Medium bluish violet")
- Sound344.Name = "Landing"
- Sound344.Parent = MeshPart343
- Sound344.SoundId = "rbxassetid://2125574494"
- Sound344.Volume = 2
- Sound345.Name = "Finish"
- Sound345.Parent = MeshPart343
- Sound345.SoundId = "rbxassetid://2125574886"
- Sound345.Volume = 2
- Sound346.Name = "Rolling"
- Sound346.Parent = MeshPart343
- Sound346.Looped = true
- Sound346.SoundId = "rbxassetid://2125574718"
- Sound346.Volume = 2
- PointLight347.Parent = MeshPart343
- Sound348.Name = "Fricko"
- Sound348.Parent = MeshPart343
- Sound348.SoundId = "rbxassetid://2084814462"
- Sound348.Volume = 4
- Part349.Name = "Rollboi"
- Part349.Parent = Model342
- Part349.CFrame = CFrame.new(38.5876923, 0.100030124, -0.297786713, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part349.Position = Vector3.new(38.5876923, 0.100030124, -0.297786713)
- Part349.Transparency = 1
- Part349.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part349.Anchored = true
- Part349.BottomSurface = Enum.SurfaceType.Smooth
- Part349.CanCollide = false
- Part349.Material = Enum.Material.SmoothPlastic
- Part349.TopSurface = Enum.SurfaceType.Smooth
- Script350.Parent = Model337
- table.insert(cors,sandbox(Script350,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model351.Name = "Wandering GameCube"
- Model351.Parent = Model0
- Folder352.Name = "Trail"
- Folder352.Parent = Model351
- Part353.Name = "TrailThingy"
- Part353.Parent = Model351
- Part353.CFrame = CFrame.new(38.5876923, 1.10002899, 0.702213287, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part353.Position = Vector3.new(38.5876923, 1.10002899, 0.702213287)
- Part353.Transparency = 1
- Part353.Size = Vector3.new(2, 2, 2)
- Part353.Anchored = true
- Part353.BottomSurface = Enum.SurfaceType.Smooth
- Part353.CanCollide = false
- Part353.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui354.Name = "Gui"
- SurfaceGui354.Parent = Part353
- SurfaceGui354.Enabled = false
- SurfaceGui354.Face = Enum.NormalId.Top
- SurfaceGui354.ClipsDescendants = true
- Frame355.Parent = SurfaceGui354
- Frame355.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame355.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame355.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame355.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame355.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame355.BorderSizePixel = 0
- Model356.Name = "GameCube"
- Model356.Parent = Model351
- Model356.PrimaryPart = Part363
- MeshPart357.Name = "GameCube"
- MeshPart357.Parent = Model356
- MeshPart357.CFrame = CFrame.new(38.5876923, 1.10002899, 0.702213287, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart357.Position = Vector3.new(38.5876923, 1.10002899, 0.702213287)
- MeshPart357.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart357.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart357.Anchored = true
- MeshPart357.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart357.Material = Enum.Material.SmoothPlastic
- MeshPart357.Reflectance = 0.20000000298023
- MeshPart357.brickColor = BrickColor.new("Medium bluish violet")
- Sound358.Name = "Landing"
- Sound358.Parent = MeshPart357
- Sound358.SoundId = "rbxassetid://2125574494"
- Sound358.Volume = 2
- Sound359.Name = "Finish"
- Sound359.Parent = MeshPart357
- Sound359.SoundId = "rbxassetid://2125574886"
- Sound359.Volume = 2
- Sound360.Name = "Rolling"
- Sound360.Parent = MeshPart357
- Sound360.Looped = true
- Sound360.SoundId = "rbxassetid://2125574718"
- Sound360.Volume = 2
- PointLight361.Parent = MeshPart357
- Sound362.Name = "Fricko"
- Sound362.Parent = MeshPart357
- Sound362.SoundId = "rbxassetid://2084814462"
- Sound362.Volume = 4
- Part363.Name = "Rollboi"
- Part363.Parent = Model356
- Part363.CFrame = CFrame.new(38.5876923, 0.100030124, -0.297786713, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part363.Position = Vector3.new(38.5876923, 0.100030124, -0.297786713)
- Part363.Transparency = 1
- Part363.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part363.Anchored = true
- Part363.BottomSurface = Enum.SurfaceType.Smooth
- Part363.CanCollide = false
- Part363.Material = Enum.Material.SmoothPlastic
- Part363.TopSurface = Enum.SurfaceType.Smooth
- Script364.Parent = Model351
- table.insert(cors,sandbox(Script364,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model365.Name = "Wandering GameCube"
- Model365.Parent = Model0
- Folder366.Name = "Trail"
- Folder366.Parent = Model365
- Part367.Name = "TrailThingy"
- Part367.Parent = Model365
- Part367.CFrame = CFrame.new(56.5876923, 1.10001612, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part367.Position = Vector3.new(56.5876923, 1.10001612, 22.7022133)
- Part367.Transparency = 1
- Part367.Size = Vector3.new(2, 2, 2)
- Part367.Anchored = true
- Part367.BottomSurface = Enum.SurfaceType.Smooth
- Part367.CanCollide = false
- Part367.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui368.Name = "Gui"
- SurfaceGui368.Parent = Part367
- SurfaceGui368.Enabled = false
- SurfaceGui368.Face = Enum.NormalId.Top
- SurfaceGui368.ClipsDescendants = true
- Frame369.Parent = SurfaceGui368
- Frame369.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame369.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame369.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame369.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame369.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame369.BorderSizePixel = 0
- Model370.Name = "GameCube"
- Model370.Parent = Model365
- Model370.PrimaryPart = Part377
- MeshPart371.Name = "GameCube"
- MeshPart371.Parent = Model370
- MeshPart371.CFrame = CFrame.new(56.5876923, 1.10001612, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart371.Position = Vector3.new(56.5876923, 1.10001612, 22.7022133)
- MeshPart371.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart371.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart371.Anchored = true
- MeshPart371.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart371.Material = Enum.Material.SmoothPlastic
- MeshPart371.Reflectance = 0.20000000298023
- MeshPart371.brickColor = BrickColor.new("Medium bluish violet")
- Sound372.Name = "Landing"
- Sound372.Parent = MeshPart371
- Sound372.SoundId = "rbxassetid://2125574494"
- Sound372.Volume = 2
- Sound373.Name = "Finish"
- Sound373.Parent = MeshPart371
- Sound373.SoundId = "rbxassetid://2125574886"
- Sound373.Volume = 2
- Sound374.Name = "Rolling"
- Sound374.Parent = MeshPart371
- Sound374.Looped = true
- Sound374.SoundId = "rbxassetid://2125574718"
- Sound374.Volume = 2
- PointLight375.Parent = MeshPart371
- Sound376.Name = "Fricko"
- Sound376.Parent = MeshPart371
- Sound376.SoundId = "rbxassetid://2084814462"
- Sound376.Volume = 4
- Part377.Name = "Rollboi"
- Part377.Parent = Model370
- Part377.CFrame = CFrame.new(56.5876923, 0.10001713, 21.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part377.Position = Vector3.new(56.5876923, 0.10001713, 21.7022133)
- Part377.Transparency = 1
- Part377.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part377.Anchored = true
- Part377.BottomSurface = Enum.SurfaceType.Smooth
- Part377.CanCollide = false
- Part377.Material = Enum.Material.SmoothPlastic
- Part377.TopSurface = Enum.SurfaceType.Smooth
- Script378.Parent = Model365
- table.insert(cors,sandbox(Script378,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model379.Name = "Wandering GameCube"
- Model379.Parent = Model0
- Folder380.Name = "Trail"
- Folder380.Parent = Model379
- Part381.Name = "TrailThingy"
- Part381.Parent = Model379
- Part381.CFrame = CFrame.new(38.5876923, 1.10001707, 36.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part381.Position = Vector3.new(38.5876923, 1.10001707, 36.7022095)
- Part381.Transparency = 1
- Part381.Size = Vector3.new(2, 2, 2)
- Part381.Anchored = true
- Part381.BottomSurface = Enum.SurfaceType.Smooth
- Part381.CanCollide = false
- Part381.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui382.Name = "Gui"
- SurfaceGui382.Parent = Part381
- SurfaceGui382.Enabled = false
- SurfaceGui382.Face = Enum.NormalId.Top
- SurfaceGui382.ClipsDescendants = true
- Frame383.Parent = SurfaceGui382
- Frame383.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame383.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame383.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame383.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame383.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame383.BorderSizePixel = 0
- Model384.Name = "GameCube"
- Model384.Parent = Model379
- Model384.PrimaryPart = Part391
- MeshPart385.Name = "GameCube"
- MeshPart385.Parent = Model384
- MeshPart385.CFrame = CFrame.new(38.5876923, 1.10001707, 36.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart385.Position = Vector3.new(38.5876923, 1.10001707, 36.7022095)
- MeshPart385.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart385.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart385.Anchored = true
- MeshPart385.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart385.Material = Enum.Material.SmoothPlastic
- MeshPart385.Reflectance = 0.20000000298023
- MeshPart385.brickColor = BrickColor.new("Medium bluish violet")
- Sound386.Name = "Landing"
- Sound386.Parent = MeshPart385
- Sound386.SoundId = "rbxassetid://2125574494"
- Sound386.Volume = 2
- Sound387.Name = "Finish"
- Sound387.Parent = MeshPart385
- Sound387.SoundId = "rbxassetid://2125574886"
- Sound387.Volume = 2
- Sound388.Name = "Rolling"
- Sound388.Parent = MeshPart385
- Sound388.Looped = true
- Sound388.SoundId = "rbxassetid://2125574718"
- Sound388.Volume = 2
- PointLight389.Parent = MeshPart385
- Sound390.Name = "Fricko"
- Sound390.Parent = MeshPart385
- Sound390.SoundId = "rbxassetid://2084814462"
- Sound390.Volume = 4
- Part391.Name = "Rollboi"
- Part391.Parent = Model384
- Part391.CFrame = CFrame.new(38.5876923, 0.100018084, 35.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part391.Position = Vector3.new(38.5876923, 0.100018084, 35.7022095)
- Part391.Transparency = 1
- Part391.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part391.Anchored = true
- Part391.BottomSurface = Enum.SurfaceType.Smooth
- Part391.CanCollide = false
- Part391.Material = Enum.Material.SmoothPlastic
- Part391.TopSurface = Enum.SurfaceType.Smooth
- Script392.Parent = Model379
- table.insert(cors,sandbox(Script392,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model393.Name = "Wandering GameCube"
- Model393.Parent = Model0
- Folder394.Name = "Trail"
- Folder394.Parent = Model393
- Part395.Name = "TrailThingy"
- Part395.Parent = Model393
- Part395.CFrame = CFrame.new(30.5876923, 1.10003114, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part395.Position = Vector3.new(30.5876923, 1.10003114, 22.7022133)
- Part395.Transparency = 1
- Part395.Size = Vector3.new(2, 2, 2)
- Part395.Anchored = true
- Part395.BottomSurface = Enum.SurfaceType.Smooth
- Part395.CanCollide = false
- Part395.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui396.Name = "Gui"
- SurfaceGui396.Parent = Part395
- SurfaceGui396.Enabled = false
- SurfaceGui396.Face = Enum.NormalId.Top
- SurfaceGui396.ClipsDescendants = true
- Frame397.Parent = SurfaceGui396
- Frame397.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame397.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame397.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame397.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame397.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame397.BorderSizePixel = 0
- Model398.Name = "GameCube"
- Model398.Parent = Model393
- Model398.PrimaryPart = Part405
- MeshPart399.Name = "GameCube"
- MeshPart399.Parent = Model398
- MeshPart399.CFrame = CFrame.new(30.5876923, 1.10003114, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart399.Position = Vector3.new(30.5876923, 1.10003114, 22.7022133)
- MeshPart399.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart399.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart399.Anchored = true
- MeshPart399.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart399.Material = Enum.Material.SmoothPlastic
- MeshPart399.Reflectance = 0.20000000298023
- MeshPart399.brickColor = BrickColor.new("Medium bluish violet")
- Sound400.Name = "Landing"
- Sound400.Parent = MeshPart399
- Sound400.SoundId = "rbxassetid://2125574494"
- Sound400.Volume = 2
- Sound401.Name = "Finish"
- Sound401.Parent = MeshPart399
- Sound401.SoundId = "rbxassetid://2125574886"
- Sound401.Volume = 2
- Sound402.Name = "Rolling"
- Sound402.Parent = MeshPart399
- Sound402.Looped = true
- Sound402.SoundId = "rbxassetid://2125574718"
- Sound402.Volume = 2
- PointLight403.Parent = MeshPart399
- Sound404.Name = "Fricko"
- Sound404.Parent = MeshPart399
- Sound404.SoundId = "rbxassetid://2084814462"
- Sound404.Volume = 4
- Part405.Name = "Rollboi"
- Part405.Parent = Model398
- Part405.CFrame = CFrame.new(30.5876923, 0.100032151, 21.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part405.Position = Vector3.new(30.5876923, 0.100032151, 21.7022133)
- Part405.Transparency = 1
- Part405.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part405.Anchored = true
- Part405.BottomSurface = Enum.SurfaceType.Smooth
- Part405.CanCollide = false
- Part405.Material = Enum.Material.SmoothPlastic
- Part405.TopSurface = Enum.SurfaceType.Smooth
- Script406.Parent = Model393
- table.insert(cors,sandbox(Script406,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model407.Name = "Wandering GameCube"
- Model407.Parent = Model0
- Folder408.Name = "Trail"
- Folder408.Parent = Model407
- Part409.Name = "TrailThingy"
- Part409.Parent = Model407
- Part409.CFrame = CFrame.new(58.5876923, 1.10001612, 46.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part409.Position = Vector3.new(58.5876923, 1.10001612, 46.7022095)
- Part409.Transparency = 1
- Part409.Size = Vector3.new(2, 2, 2)
- Part409.Anchored = true
- Part409.BottomSurface = Enum.SurfaceType.Smooth
- Part409.CanCollide = false
- Part409.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui410.Name = "Gui"
- SurfaceGui410.Parent = Part409
- SurfaceGui410.Enabled = false
- SurfaceGui410.Face = Enum.NormalId.Top
- SurfaceGui410.ClipsDescendants = true
- Frame411.Parent = SurfaceGui410
- Frame411.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame411.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame411.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame411.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame411.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame411.BorderSizePixel = 0
- Model412.Name = "GameCube"
- Model412.Parent = Model407
- Model412.PrimaryPart = Part419
- MeshPart413.Name = "GameCube"
- MeshPart413.Parent = Model412
- MeshPart413.CFrame = CFrame.new(58.5876923, 1.10001612, 46.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart413.Position = Vector3.new(58.5876923, 1.10001612, 46.7022095)
- MeshPart413.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart413.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart413.Anchored = true
- MeshPart413.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart413.Material = Enum.Material.SmoothPlastic
- MeshPart413.Reflectance = 0.20000000298023
- MeshPart413.brickColor = BrickColor.new("Medium bluish violet")
- Sound414.Name = "Landing"
- Sound414.Parent = MeshPart413
- Sound414.SoundId = "rbxassetid://2125574494"
- Sound414.Volume = 2
- Sound415.Name = "Finish"
- Sound415.Parent = MeshPart413
- Sound415.SoundId = "rbxassetid://2125574886"
- Sound415.Volume = 2
- Sound416.Name = "Rolling"
- Sound416.Parent = MeshPart413
- Sound416.Looped = true
- Sound416.SoundId = "rbxassetid://2125574718"
- Sound416.Volume = 2
- PointLight417.Parent = MeshPart413
- Sound418.Name = "Fricko"
- Sound418.Parent = MeshPart413
- Sound418.SoundId = "rbxassetid://2084814462"
- Sound418.Volume = 4
- Part419.Name = "Rollboi"
- Part419.Parent = Model412
- Part419.CFrame = CFrame.new(58.5876923, 0.10001713, 45.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part419.Position = Vector3.new(58.5876923, 0.10001713, 45.7022095)
- Part419.Transparency = 1
- Part419.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part419.Anchored = true
- Part419.BottomSurface = Enum.SurfaceType.Smooth
- Part419.CanCollide = false
- Part419.Material = Enum.Material.SmoothPlastic
- Part419.TopSurface = Enum.SurfaceType.Smooth
- Script420.Parent = Model407
- table.insert(cors,sandbox(Script420,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model421.Name = "Wandering GameCube"
- Model421.Parent = Model0
- Folder422.Name = "Trail"
- Folder422.Parent = Model421
- Part423.Name = "TrailThingy"
- Part423.Parent = Model421
- Part423.CFrame = CFrame.new(30.5876923, 1.10003114, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part423.Position = Vector3.new(30.5876923, 1.10003114, 22.7022133)
- Part423.Transparency = 1
- Part423.Size = Vector3.new(2, 2, 2)
- Part423.Anchored = true
- Part423.BottomSurface = Enum.SurfaceType.Smooth
- Part423.CanCollide = false
- Part423.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui424.Name = "Gui"
- SurfaceGui424.Parent = Part423
- SurfaceGui424.Enabled = false
- SurfaceGui424.Face = Enum.NormalId.Top
- SurfaceGui424.ClipsDescendants = true
- Frame425.Parent = SurfaceGui424
- Frame425.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame425.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame425.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame425.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame425.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame425.BorderSizePixel = 0
- Model426.Name = "GameCube"
- Model426.Parent = Model421
- Model426.PrimaryPart = Part433
- MeshPart427.Name = "GameCube"
- MeshPart427.Parent = Model426
- MeshPart427.CFrame = CFrame.new(30.5876923, 1.10003114, 22.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart427.Position = Vector3.new(30.5876923, 1.10003114, 22.7022133)
- MeshPart427.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart427.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart427.Anchored = true
- MeshPart427.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart427.Material = Enum.Material.SmoothPlastic
- MeshPart427.Reflectance = 0.20000000298023
- MeshPart427.brickColor = BrickColor.new("Medium bluish violet")
- Sound428.Name = "Landing"
- Sound428.Parent = MeshPart427
- Sound428.SoundId = "rbxassetid://2125574494"
- Sound428.Volume = 2
- Sound429.Name = "Finish"
- Sound429.Parent = MeshPart427
- Sound429.SoundId = "rbxassetid://2125574886"
- Sound429.Volume = 2
- Sound430.Name = "Rolling"
- Sound430.Parent = MeshPart427
- Sound430.Looped = true
- Sound430.SoundId = "rbxassetid://2125574718"
- Sound430.Volume = 2
- PointLight431.Parent = MeshPart427
- Sound432.Name = "Fricko"
- Sound432.Parent = MeshPart427
- Sound432.SoundId = "rbxassetid://2084814462"
- Sound432.Volume = 4
- Part433.Name = "Rollboi"
- Part433.Parent = Model426
- Part433.CFrame = CFrame.new(30.5876923, 0.100032151, 21.7022133, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part433.Position = Vector3.new(30.5876923, 0.100032151, 21.7022133)
- Part433.Transparency = 1
- Part433.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part433.Anchored = true
- Part433.BottomSurface = Enum.SurfaceType.Smooth
- Part433.CanCollide = false
- Part433.Material = Enum.Material.SmoothPlastic
- Part433.TopSurface = Enum.SurfaceType.Smooth
- Script434.Parent = Model421
- table.insert(cors,sandbox(Script434,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model435.Name = "Wandering GameCube"
- Model435.Parent = Model0
- Folder436.Name = "Trail"
- Folder436.Parent = Model435
- Part437.Name = "TrailThingy"
- Part437.Parent = Model435
- Part437.CFrame = CFrame.new(38.5876923, 1.10001707, 36.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part437.Position = Vector3.new(38.5876923, 1.10001707, 36.7022095)
- Part437.Transparency = 1
- Part437.Size = Vector3.new(2, 2, 2)
- Part437.Anchored = true
- Part437.BottomSurface = Enum.SurfaceType.Smooth
- Part437.CanCollide = false
- Part437.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui438.Name = "Gui"
- SurfaceGui438.Parent = Part437
- SurfaceGui438.Enabled = false
- SurfaceGui438.Face = Enum.NormalId.Top
- SurfaceGui438.ClipsDescendants = true
- Frame439.Parent = SurfaceGui438
- Frame439.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame439.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame439.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame439.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame439.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame439.BorderSizePixel = 0
- Model440.Name = "GameCube"
- Model440.Parent = Model435
- Model440.PrimaryPart = Part447
- MeshPart441.Name = "GameCube"
- MeshPart441.Parent = Model440
- MeshPart441.CFrame = CFrame.new(38.5876923, 1.10001707, 36.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart441.Position = Vector3.new(38.5876923, 1.10001707, 36.7022095)
- MeshPart441.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart441.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart441.Anchored = true
- MeshPart441.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart441.Material = Enum.Material.SmoothPlastic
- MeshPart441.Reflectance = 0.20000000298023
- MeshPart441.brickColor = BrickColor.new("Medium bluish violet")
- Sound442.Name = "Landing"
- Sound442.Parent = MeshPart441
- Sound442.SoundId = "rbxassetid://2125574494"
- Sound442.Volume = 2
- Sound443.Name = "Finish"
- Sound443.Parent = MeshPart441
- Sound443.SoundId = "rbxassetid://2125574886"
- Sound443.Volume = 2
- Sound444.Name = "Rolling"
- Sound444.Parent = MeshPart441
- Sound444.Looped = true
- Sound444.SoundId = "rbxassetid://2125574718"
- Sound444.Volume = 2
- PointLight445.Parent = MeshPart441
- Sound446.Name = "Fricko"
- Sound446.Parent = MeshPart441
- Sound446.SoundId = "rbxassetid://2084814462"
- Sound446.Volume = 4
- Part447.Name = "Rollboi"
- Part447.Parent = Model440
- Part447.CFrame = CFrame.new(38.5876923, 0.100018084, 35.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part447.Position = Vector3.new(38.5876923, 0.100018084, 35.7022095)
- Part447.Transparency = 1
- Part447.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part447.Anchored = true
- Part447.BottomSurface = Enum.SurfaceType.Smooth
- Part447.CanCollide = false
- Part447.Material = Enum.Material.SmoothPlastic
- Part447.TopSurface = Enum.SurfaceType.Smooth
- Script448.Parent = Model435
- table.insert(cors,sandbox(Script448,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model449.Name = "Wandering GameCube"
- Model449.Parent = Model0
- Folder450.Name = "Trail"
- Folder450.Parent = Model449
- Part451.Name = "TrailThingy"
- Part451.Parent = Model449
- Part451.CFrame = CFrame.new(14.5876904, 1.10002613, 34.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part451.Position = Vector3.new(14.5876904, 1.10002613, 34.7022095)
- Part451.Transparency = 1
- Part451.Size = Vector3.new(2, 2, 2)
- Part451.Anchored = true
- Part451.BottomSurface = Enum.SurfaceType.Smooth
- Part451.CanCollide = false
- Part451.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui452.Name = "Gui"
- SurfaceGui452.Parent = Part451
- SurfaceGui452.Enabled = false
- SurfaceGui452.Face = Enum.NormalId.Top
- SurfaceGui452.ClipsDescendants = true
- Frame453.Parent = SurfaceGui452
- Frame453.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame453.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame453.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame453.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame453.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame453.BorderSizePixel = 0
- Model454.Name = "GameCube"
- Model454.Parent = Model449
- Model454.PrimaryPart = Part461
- MeshPart455.Name = "GameCube"
- MeshPart455.Parent = Model454
- MeshPart455.CFrame = CFrame.new(14.5876904, 1.10002613, 34.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart455.Position = Vector3.new(14.5876904, 1.10002613, 34.7022095)
- MeshPart455.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart455.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart455.Anchored = true
- MeshPart455.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart455.Material = Enum.Material.SmoothPlastic
- MeshPart455.Reflectance = 0.20000000298023
- MeshPart455.brickColor = BrickColor.new("Medium bluish violet")
- Sound456.Name = "Landing"
- Sound456.Parent = MeshPart455
- Sound456.SoundId = "rbxassetid://2125574494"
- Sound456.Volume = 2
- Sound457.Name = "Finish"
- Sound457.Parent = MeshPart455
- Sound457.SoundId = "rbxassetid://2125574886"
- Sound457.Volume = 2
- Sound458.Name = "Rolling"
- Sound458.Parent = MeshPart455
- Sound458.Looped = true
- Sound458.SoundId = "rbxassetid://2125574718"
- Sound458.Volume = 2
- PointLight459.Parent = MeshPart455
- Sound460.Name = "Fricko"
- Sound460.Parent = MeshPart455
- Sound460.SoundId = "rbxassetid://2084814462"
- Sound460.Volume = 4
- Part461.Name = "Rollboi"
- Part461.Parent = Model454
- Part461.CFrame = CFrame.new(14.5876904, 0.100027144, 33.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part461.Position = Vector3.new(14.5876904, 0.100027144, 33.7022095)
- Part461.Transparency = 1
- Part461.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part461.Anchored = true
- Part461.BottomSurface = Enum.SurfaceType.Smooth
- Part461.CanCollide = false
- Part461.Material = Enum.Material.SmoothPlastic
- Part461.TopSurface = Enum.SurfaceType.Smooth
- Script462.Parent = Model449
- table.insert(cors,sandbox(Script462,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model463.Name = "Wandering GameCube"
- Model463.Parent = Model0
- Folder464.Name = "Trail"
- Folder464.Parent = Model463
- Part465.Name = "TrailThingy"
- Part465.Parent = Model463
- Part465.CFrame = CFrame.new(14.5876904, 1.10002613, 34.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part465.Position = Vector3.new(14.5876904, 1.10002613, 34.7022095)
- Part465.Transparency = 1
- Part465.Size = Vector3.new(2, 2, 2)
- Part465.Anchored = true
- Part465.BottomSurface = Enum.SurfaceType.Smooth
- Part465.CanCollide = false
- Part465.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui466.Name = "Gui"
- SurfaceGui466.Parent = Part465
- SurfaceGui466.Enabled = false
- SurfaceGui466.Face = Enum.NormalId.Top
- SurfaceGui466.ClipsDescendants = true
- Frame467.Parent = SurfaceGui466
- Frame467.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame467.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame467.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame467.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame467.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame467.BorderSizePixel = 0
- Model468.Name = "GameCube"
- Model468.Parent = Model463
- Model468.PrimaryPart = Part475
- MeshPart469.Name = "GameCube"
- MeshPart469.Parent = Model468
- MeshPart469.CFrame = CFrame.new(14.5876904, 1.10002613, 34.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart469.Position = Vector3.new(14.5876904, 1.10002613, 34.7022095)
- MeshPart469.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart469.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart469.Anchored = true
- MeshPart469.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart469.Material = Enum.Material.SmoothPlastic
- MeshPart469.Reflectance = 0.20000000298023
- MeshPart469.brickColor = BrickColor.new("Medium bluish violet")
- Sound470.Name = "Landing"
- Sound470.Parent = MeshPart469
- Sound470.SoundId = "rbxassetid://2125574494"
- Sound470.Volume = 2
- Sound471.Name = "Finish"
- Sound471.Parent = MeshPart469
- Sound471.SoundId = "rbxassetid://2125574886"
- Sound471.Volume = 2
- Sound472.Name = "Rolling"
- Sound472.Parent = MeshPart469
- Sound472.Looped = true
- Sound472.SoundId = "rbxassetid://2125574718"
- Sound472.Volume = 2
- PointLight473.Parent = MeshPart469
- Sound474.Name = "Fricko"
- Sound474.Parent = MeshPart469
- Sound474.SoundId = "rbxassetid://2084814462"
- Sound474.Volume = 4
- Part475.Name = "Rollboi"
- Part475.Parent = Model468
- Part475.CFrame = CFrame.new(14.5876904, 0.100027144, 33.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part475.Position = Vector3.new(14.5876904, 0.100027144, 33.7022095)
- Part475.Transparency = 1
- Part475.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part475.Anchored = true
- Part475.BottomSurface = Enum.SurfaceType.Smooth
- Part475.CanCollide = false
- Part475.Material = Enum.Material.SmoothPlastic
- Part475.TopSurface = Enum.SurfaceType.Smooth
- Script476.Parent = Model463
- table.insert(cors,sandbox(Script476,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model477.Name = "Wandering GameCube"
- Model477.Parent = Model0
- Folder478.Name = "Trail"
- Folder478.Parent = Model477
- Part479.Name = "TrailThingy"
- Part479.Parent = Model477
- Part479.CFrame = CFrame.new(42.5876923, 1.10002613, 56.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part479.Position = Vector3.new(42.5876923, 1.10002613, 56.7022095)
- Part479.Transparency = 1
- Part479.Size = Vector3.new(2, 2, 2)
- Part479.Anchored = true
- Part479.BottomSurface = Enum.SurfaceType.Smooth
- Part479.CanCollide = false
- Part479.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui480.Name = "Gui"
- SurfaceGui480.Parent = Part479
- SurfaceGui480.Enabled = false
- SurfaceGui480.Face = Enum.NormalId.Top
- SurfaceGui480.ClipsDescendants = true
- Frame481.Parent = SurfaceGui480
- Frame481.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame481.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame481.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame481.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame481.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame481.BorderSizePixel = 0
- Model482.Name = "GameCube"
- Model482.Parent = Model477
- Model482.PrimaryPart = Part489
- MeshPart483.Name = "GameCube"
- MeshPart483.Parent = Model482
- MeshPart483.CFrame = CFrame.new(42.5876923, 1.10002613, 56.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart483.Position = Vector3.new(42.5876923, 1.10002613, 56.7022095)
- MeshPart483.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart483.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart483.Anchored = true
- MeshPart483.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart483.Material = Enum.Material.SmoothPlastic
- MeshPart483.Reflectance = 0.20000000298023
- MeshPart483.brickColor = BrickColor.new("Medium bluish violet")
- Sound484.Name = "Landing"
- Sound484.Parent = MeshPart483
- Sound484.SoundId = "rbxassetid://2125574494"
- Sound484.Volume = 2
- Sound485.Name = "Finish"
- Sound485.Parent = MeshPart483
- Sound485.SoundId = "rbxassetid://2125574886"
- Sound485.Volume = 2
- Sound486.Name = "Rolling"
- Sound486.Parent = MeshPart483
- Sound486.Looped = true
- Sound486.SoundId = "rbxassetid://2125574718"
- Sound486.Volume = 2
- PointLight487.Parent = MeshPart483
- Sound488.Name = "Fricko"
- Sound488.Parent = MeshPart483
- Sound488.SoundId = "rbxassetid://2084814462"
- Sound488.Volume = 4
- Part489.Name = "Rollboi"
- Part489.Parent = Model482
- Part489.CFrame = CFrame.new(42.5876923, 0.100027144, 55.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part489.Position = Vector3.new(42.5876923, 0.100027144, 55.7022095)
- Part489.Transparency = 1
- Part489.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part489.Anchored = true
- Part489.BottomSurface = Enum.SurfaceType.Smooth
- Part489.CanCollide = false
- Part489.Material = Enum.Material.SmoothPlastic
- Part489.TopSurface = Enum.SurfaceType.Smooth
- Script490.Parent = Model477
- table.insert(cors,sandbox(Script490,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- Model491.Name = "Wandering GameCube"
- Model491.Parent = Model0
- Folder492.Name = "Trail"
- Folder492.Parent = Model491
- Part493.Name = "TrailThingy"
- Part493.Parent = Model491
- Part493.CFrame = CFrame.new(42.5876923, 1.10002613, 56.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part493.Position = Vector3.new(42.5876923, 1.10002613, 56.7022095)
- Part493.Transparency = 1
- Part493.Size = Vector3.new(2, 2, 2)
- Part493.Anchored = true
- Part493.BottomSurface = Enum.SurfaceType.Smooth
- Part493.CanCollide = false
- Part493.TopSurface = Enum.SurfaceType.Smooth
- SurfaceGui494.Name = "Gui"
- SurfaceGui494.Parent = Part493
- SurfaceGui494.Enabled = false
- SurfaceGui494.Face = Enum.NormalId.Top
- SurfaceGui494.ClipsDescendants = true
- Frame495.Parent = SurfaceGui494
- Frame495.Position = UDim2.new(0.5, 0, 0.5, 0)
- Frame495.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- Frame495.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame495.BackgroundColor = BrickColor.new("Medium bluish violet")
- Frame495.BackgroundColor3 = Color3.new(0.376471, 0.329412, 0.729412)
- Frame495.BorderSizePixel = 0
- Model496.Name = "GameCube"
- Model496.Parent = Model491
- Model496.PrimaryPart = Part503
- MeshPart497.Name = "GameCube"
- MeshPart497.Parent = Model496
- MeshPart497.CFrame = CFrame.new(42.5876923, 1.10002613, 56.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- MeshPart497.Position = Vector3.new(42.5876923, 1.10002613, 56.7022095)
- MeshPart497.Color = Color3.new(0.376471, 0.329412, 0.729412)
- MeshPart497.Size = Vector3.new(2, 2.00000024, 2.00000024)
- MeshPart497.Anchored = true
- MeshPart497.BrickColor = BrickColor.new("Medium bluish violet")
- MeshPart497.Material = Enum.Material.SmoothPlastic
- MeshPart497.Reflectance = 0.20000000298023
- MeshPart497.brickColor = BrickColor.new("Medium bluish violet")
- Sound498.Name = "Landing"
- Sound498.Parent = MeshPart497
- Sound498.SoundId = "rbxassetid://2125574494"
- Sound498.Volume = 2
- Sound499.Name = "Finish"
- Sound499.Parent = MeshPart497
- Sound499.SoundId = "rbxassetid://2125574886"
- Sound499.Volume = 2
- Sound500.Name = "Rolling"
- Sound500.Parent = MeshPart497
- Sound500.Looped = true
- Sound500.SoundId = "rbxassetid://2125574718"
- Sound500.Volume = 2
- PointLight501.Parent = MeshPart497
- Sound502.Name = "Fricko"
- Sound502.Parent = MeshPart497
- Sound502.SoundId = "rbxassetid://2084814462"
- Sound502.Volume = 4
- Part503.Name = "Rollboi"
- Part503.Parent = Model496
- Part503.CFrame = CFrame.new(42.5876923, 0.100027144, 55.7022095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part503.Position = Vector3.new(42.5876923, 0.100027144, 55.7022095)
- Part503.Transparency = 1
- Part503.Size = Vector3.new(1.80000007, 0.200000003, 0.200000003)
- Part503.Anchored = true
- Part503.BottomSurface = Enum.SurfaceType.Smooth
- Part503.CanCollide = false
- Part503.Material = Enum.Material.SmoothPlastic
- Part503.TopSurface = Enum.SurfaceType.Smooth
- Script504.Parent = Model491
- table.insert(cors,sandbox(Script504,function()
- --Scripted by Mah_Bucket, sorry if it's terrible
- local t = game:GetService("TweenService")
- local cube = script.Parent.GameCube.GameCube
- local startingpoint = cube.CFrame
- local roll = script.Parent.GameCube.Rollboi
- math.randomseed(tick()*100)
- while true do
- cube.Transparency = 1
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(startingpoint)
- script.Parent.GameCube.PrimaryPart = roll
- cube.CFrame = cube.CFrame + Vector3.new(0,6,0)
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Back),{Transparency = 0,CFrame = startingpoint})
- tween:Play()
- wait(.2)
- cube.Landing:Play()
- wait(.35)
- local rando = math.random(4,16)
- cube.Rolling:Play()
- for x=1,rando do
- if x == rando then
- cube.Rolling:Stop()
- cube.Finish:Play()
- end
- script.Parent.GameCube.PrimaryPart = cube
- script.Parent.GameCube:SetPrimaryPartCFrame(cube.CFrame*CFrame.Angles(0,math.rad(math.random(-1,1)*90),0))
- script.Parent.GameCube.PrimaryPart = roll
- for x=1,4 do
- local turn = 6
- local gui = script.Parent.TrailThingy:Clone()
- gui.Gui.Enabled = true
- gui.Transparency = 1
- gui.CFrame = cube.CFrame - cube.CFrame.UpVector*2
- gui.Parent = script.Parent.Trail
- local r1 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position,roll.CFrame.LookVector*1.5),script.Parent:GetDescendants())
- if r1 ~= nil then
- --print("inner corner")
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(90),0,0))
- turn = -1
- else
- local r2 = workspace:FindPartOnRayWithIgnoreList(Ray.new(cube.Position+roll.CFrame.LookVector*2,roll.CFrame.UpVector*-2),script.Parent:GetDescendants())
- if r2 == nil then
- --print("outer corner")
- turn = 12
- end
- end
- if turn ~= -1 then
- for x=1,turn do
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-15),0,0))
- wait(.225/turn)
- end
- else
- script.Parent.GameCube:SetPrimaryPartCFrame(roll.CFrame*CFrame.Angles(math.rad(-90),0,0))
- end
- cube.CFrame = cube.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame*CFrame.Angles(math.rad(90),0,0)
- roll.CFrame = roll.CFrame + roll.CFrame.LookVector*2
- end
- end
- local tween = t:Create(cube,TweenInfo.new(.5,Enum.EasingStyle.Linear),{CFrame = cube.CFrame + cube.CFrame.UpVector*6})
- tween:Play()
- wait(.5)
- local tween = t:Create(cube,TweenInfo.new(.3,Enum.EasingStyle.Back),{CFrame = cube.CFrame - cube.CFrame.UpVector*6})
- tween:Play()
- wait(.2)
- if math.random(1,20) == 10 then
- cube.Fricko:Play()
- end
- wait(4)
- script.Parent.Trail:ClearAllChildren()
- end
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement