Advertisement
IINaoki

Untitled

Feb 23rd, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.54 KB | None | 0 0
  1. local runDummyScript = function(f,scri)
  2. local oldenv = getfenv(f)
  3. local newenv = setmetatable({}, {
  4. __index = function(_, k)
  5. if k:lower() == 'script' then
  6. return scri
  7. else
  8. return oldenv[k]
  9. end
  10. end
  11. })
  12. setfenv(f, newenv)
  13. ypcall(function() f() end)
  14. end
  15. cors = {}
  16. mas = Instance.new("Model",game:GetService("Lighting"))
  17. mas.Name = "CompiledModel"
  18. o1 = Instance.new("Model")
  19. o2 = Instance.new("SkateboardPlatform")
  20. o3 = Instance.new("LocalScript")
  21. o4 = Instance.new("Script")
  22. o5 = Instance.new("Script")
  23. o6 = Instance.new("Animation")
  24. o7 = Instance.new("Animation")
  25. o8 = Instance.new("Animation")
  26. o9 = Instance.new("Animation")
  27. o10 = Instance.new("Animation")
  28. o11 = Instance.new("BlockMesh")
  29. o13 = Instance.new("BodyThrust")
  30. o14 = Instance.new("Model")
  31. o15 = Instance.new("Part")
  32. o16 = Instance.new("CylinderMesh")
  33. o17 = Instance.new("Part")
  34. o18 = Instance.new("CylinderMesh")
  35. o19 = Instance.new("Part")
  36. o20 = Instance.new("CylinderMesh")
  37. o21 = Instance.new("Part")
  38. o22 = Instance.new("CylinderMesh")
  39. o23 = Instance.new("Part")
  40. o24 = Instance.new("CylinderMesh")
  41. o25 = Instance.new("Part")
  42. o26 = Instance.new("BlockMesh")
  43. o27 = Instance.new("Decal")
  44. o28 = Instance.new("Part")
  45. o29 = Instance.new("BlockMesh")
  46. o30 = Instance.new("Part")
  47. o31 = Instance.new("CylinderMesh")
  48. o32 = Instance.new("Part")
  49. o33 = Instance.new("BlockMesh")
  50. o34 = Instance.new("Part")
  51. o35 = Instance.new("BlockMesh")
  52. o36 = Instance.new("Part")
  53. o37 = Instance.new("BlockMesh")
  54. o38 = Instance.new("Part")
  55. o39 = Instance.new("BlockMesh")
  56. o40 = Instance.new("Part")
  57. o41 = Instance.new("BlockMesh")
  58. o42 = Instance.new("Part")
  59. o43 = Instance.new("Part")
  60. o44 = Instance.new("Part")
  61. o45 = Instance.new("Part")
  62. o1.Name = "Board"
  63. o1.Parent = mas
  64. o2.Parent = o1
  65. o2.BrickColor = BrickColor.new("Black")
  66. o2.Position = Vector3.new(4.65764141, 2.78797436, -59.6390381)
  67. o2.Rotation = Vector3.new(-179.856201, 78.6911697, 179.868515)
  68. o2.FormFactor = Enum.FormFactor.Plate
  69. o2.Size = Vector3.new(2, 0.400000006, 6)
  70. o2.CFrame = CFrame.new(4.65764141, 2.78797436, -59.6390381, -0.196096867, -0.000450041844, 0.980584443, 0.000165962614, 0.999999881, 0.000492141757, -0.980584502, 0.000259247812, -0.196096778)
  71. o2.BottomSurface = Enum.SurfaceType.Smooth
  72. o2.TopSurface = Enum.SurfaceType.Smooth
  73. o2.Color = Color3.new(0.105882, 0.164706, 0.207843)
  74. o2.Position = Vector3.new(4.65764141, 2.78797436, -59.6390381)
  75. o3.Name = "Skateboard"
  76. o3.Parent = o2
  77. table.insert(cors,coroutine.create(function()
  78. wait()
  79. runDummyScript(function()
  80. ----------------------------------------------------------------------
  81. --
  82. -- HERE BE DRAGONS!
  83. --
  84. -- You can hack together your own scripts using the objects
  85. -- in here, but this is all highly experimental and *WILL BREAK*
  86. -- in a future release. If that bothers you, look away...
  87. --
  88. -- T
  89. --
  90. -----------------------------------------------------------------------
  91.  
  92. local Board = script.Parent
  93. local Controller
  94. local Gyro
  95. local CoastingAnim
  96. local KickAnim
  97. local LeftAnim
  98. local RightAnim
  99. local OllieAnim
  100.  
  101. local OllieHack = script.Parent:FindFirstChild("OllieThrust")
  102. if (OllieHack == nil) then
  103. OllieHack = Instance.new("BodyThrust")
  104. OllieHack.Name = "OllieThrust"
  105. OllieHack.force = Vector3.new(0,0,0)
  106. OllieHack.location = Vector3.new(0,0,-2)
  107. OllieHack.Parent = Board
  108. end
  109.  
  110. local lastaction = nil
  111. local lasttime = nil
  112. local jumpok = true
  113.  
  114. function didAction(action)
  115. lastaction = action
  116. lasttime = time()
  117. end
  118.  
  119.  
  120.  
  121. function onAxisChanged(axis)
  122. Board.Steer = Controller.Steer
  123. Board.Throttle = Controller.Throttle
  124.  
  125. if (Board.Steer == -1) then
  126. print("Left")
  127. --CoastingAnim:Stop(1)
  128. KickAnim:Stop()
  129. OllieAnim:Stop()
  130. RightAnim:Stop(.5)
  131. LeftAnim:Play(.5)
  132. didAction("left")
  133. end
  134.  
  135. if (Board.Steer == 1) then
  136. print("Right")
  137. KickAnim:Stop()
  138. --CoastingAnim:Stop(1)
  139. LeftAnim:Stop(.5)
  140. OllieAnim:Stop()
  141. RightAnim:Play(.5)
  142. didAction("right")
  143. end
  144.  
  145. if (Board.Steer == 0) then
  146. print("Straight")
  147.  
  148. KickAnim:Stop()
  149. LeftAnim:Stop(.5)
  150. OllieAnim:Stop()
  151. RightAnim:Stop(.5)
  152.  
  153. if (lastaction == "go" and time() - lasttime < .1) then
  154.  
  155. end
  156. didAction("go")
  157. --CoastingAnim:Play(1)
  158.  
  159.  
  160. end
  161. end
  162.  
  163. function enterAirState()
  164. -- gyrate towards vertical position for better landing
  165. Gyro.maxTorque = Vector3.new(100, 0, 100)
  166. jumpok = false
  167. end
  168.  
  169. function exitAirState()
  170. -- turn off gyro
  171. Gyro.maxTorque = Vector3.new(0,0,0)
  172. jumpok = true
  173. end
  174.  
  175. function enterPushingState()
  176. KickAnim:Play()
  177. end
  178.  
  179. function onMoveStateChanged(newState, oldState)
  180. print(oldState)
  181. print(newState)
  182. -- do state exits here
  183. if oldState == Enum.MoveState.AirFree then exitAirState() end
  184.  
  185. -- do state transitions here
  186.  
  187. -- do state entries here
  188. if newState == Enum.MoveState.AirFree then enterAirState() end
  189. if newState == Enum.MoveState.Pushing then enterPushingState() end
  190. end
  191.  
  192.  
  193. -- initialization/finalization stuff
  194.  
  195. function makeGyro(humanoid)
  196. Gyro = Instance.new("BodyGyro")
  197. Gyro.Name = "SkateboardGyro"
  198. Gyro.maxTorque = Vector3.new(0,0,0) -- start off
  199. Gyro.P = 50
  200. Gyro.D = 50
  201. Gyro.Parent = humanoid.Parent.Torso
  202. end
  203.  
  204. function onButtonChanged(button)
  205. if button == Enum.Button.Dismount then
  206. Board.ControllingHumanoid.Jump = Controller:getButton(Enum.Button.Dismount)
  207. end
  208. if button == Enum.Button.Jump then
  209. if Controller:getButton(Enum.Button.Jump) and jumpok then
  210. jumpok = false
  211. KickAnim:Stop()
  212. LeftAnim:Stop(.5)
  213.  
  214. RightAnim:Stop(.5)
  215. OllieAnim:Play(0,1,4)
  216. Board.StickyWheels = false
  217. Board:ApplySpecificImpulse(Vector3.new(0,45,0))
  218. OllieHack.force = Vector3.new(0,1200,0)
  219. didAction("jump")
  220. delay(.1, function() if (OllieHack ~= nil) then OllieHack.force = Vector3.new(0,0,0) end end)
  221. else
  222. Board.StickyWheels = true
  223. end
  224. end
  225. end
  226.  
  227. function onEquip(humanoid, controller)
  228. print("Board equipped")
  229. print(controller)
  230. if not Controller then -- debounce
  231. Controller = controller
  232.  
  233. makeGyro(humanoid)
  234. controller.AxisChanged:connect(onAxisChanged)
  235. Board.MoveStateChanged:connect(onMoveStateChanged)
  236. CoastingAnim = humanoid:loadAnimation(Board.coastingpose)
  237. LeftAnim = humanoid:loadAnimation(Board.leftturn)
  238. RightAnim = humanoid:loadAnimation(Board.rightturn)
  239. OllieAnim = humanoid:loadAnimation(Board.ollie)
  240. --OllieAnim:AdjustSpeed(2)
  241. KickAnim = humanoid:loadAnimation(Board.boardkick)
  242. CoastingAnim:Play()
  243.  
  244. Controller:bindButton(Enum.Button.Jump, "Ollie")
  245. Controller:bindButton(Enum.Button.Dismount, "Dismount")
  246. Controller.ButtonChanged:connect(onButtonChanged)
  247. end
  248. end
  249.  
  250. function onUnequip(board)
  251. print("Board unequipped")
  252. Controller = nil
  253. Gyro.Parent = nil
  254. Gyro= nil
  255. CoastingAnim:Stop()
  256. KickAnim:Stop()
  257. CoastingAnim = nil
  258. KickAnim = nil
  259. LeftAnim:Stop()
  260. LeftAnim = nil
  261. RightAnim:Stop()
  262. RightAnim = nil
  263. OllieAnim:Stop()
  264. OllieAnim = nil
  265.  
  266. if (OllieThrust ~= nil) then
  267. OllieThrust:Remove()
  268. OllieThrust = nil
  269. end
  270. end
  271.  
  272. -- connect events
  273.  
  274. Board.equipped:connect(onEquip)
  275. Board.unequipped:connect(onUnequip)
  276.  
  277. -- main program
  278.  
  279. -- we could have missed the onEquip event on script start
  280. if Board.Controller and not Controller then
  281.  
  282. onEquip(Board.ControllingHumanoid, Board.Controller)
  283.  
  284. end
  285.  
  286.  
  287. end,o3)
  288. end))
  289. o4.Name = "Flipper"
  290. o4.Parent = o2
  291. table.insert(cors,coroutine.create(function()
  292. wait()
  293. runDummyScript(function()
  294. local parts = script.Parent.Parent:GetChildren()
  295. print("count" .. #parts)
  296. local uprightCF = script.Parent.CFrame
  297.  
  298. local con = nil
  299.  
  300. function boardIsFlipped()
  301. local v1 = script.Parent.CFrame:vectorToWorldSpace(Vector3.FromNormalId(Enum.NormalId.Top))
  302. local v2 = Vector3.new(0,1,0)
  303.  
  304. local ang = math.acos(v1:Dot(v2))
  305.  
  306. return ang > 2
  307. end
  308.  
  309. function onTouched(hit)
  310.  
  311. if (hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil) then
  312. if (script.Parent.Controller == nil) then
  313. if (boardIsFlipped()) then
  314. con:disconnect()
  315. con = nil
  316.  
  317. print("FLIP IT")
  318. -- no one is riding this thing
  319.  
  320. script.Parent.StickyWheels = false
  321.  
  322. -- pin
  323. local bp = Instance.new("BodyPosition")
  324. bp.maxForce = Vector3.new(5e7,5e7,5e7)
  325. bp.position = script.Parent.Position + Vector3.new(0,2,0)
  326. bp.Parent = script.Parent
  327.  
  328. -- flip
  329. local fg = Instance.new("BodyGyro")
  330. fg.maxTorque = Vector3.new(5e7,5e7,5e7)
  331. fg.cframe = uprightCF
  332. fg.Parent = script.Parent
  333. wait(1)
  334. fg:Remove()
  335. wait(1)
  336. bp:Remove()
  337.  
  338. script.Parent.StickyWheels = true
  339. end
  340. end
  341. end
  342. wait(1)
  343.  
  344. if (con == nil) then con = script.Parent.Touched:connect(onTouched) end
  345. end
  346.  
  347. con = script.Parent.Touched:connect(onTouched)
  348.  
  349. while true do
  350. for i=1,#parts do
  351. if parts[i].className == "Part" and (script.Parent.Position - parts[i].Position).magnitude > 5 then
  352. script.Parent.Parent:Remove()
  353. end
  354. end
  355. wait(1)
  356. end
  357.  
  358. end,o4)
  359. end))
  360. o5.Name = "IdleDelete"
  361. o5.Parent = o2
  362. table.insert(cors,coroutine.create(function()
  363. wait()
  364. runDummyScript(function()
  365. local mountCount = 0 -- used to determine inactivity state of board.
  366. local Board = script.Parent
  367. local Controller
  368.  
  369.  
  370. -- uses the mountCount varialbe to determine activity
  371. function waitAndDeleteIfIdle(timeout)
  372. local oldMountCount = mountCount
  373. wait(timeout)
  374. if mountCount == oldMountCount then
  375. if not Controller then
  376. -- DESTROY!
  377. Board.Parent.Parent = nil
  378. else
  379. print("Unexpected: board is idle but is mounted???")
  380. end
  381. end
  382. end
  383.  
  384.  
  385. function onEquip(humanoid, controller)
  386. if not Controller then -- debounce
  387. Controller = controller
  388. mountCount = mountCount+1
  389. end
  390. end
  391.  
  392. function onUnequip(board)
  393. Controller = nil
  394. -- this line makes this skateboard clean itself up if unused for one minute
  395. waitAndDeleteIfIdle(60)
  396. end
  397.  
  398. -- connect events
  399.  
  400. Board.equipped:connect(onEquip)
  401. Board.unequipped:connect(onUnequip)
  402.  
  403. -- main program
  404.  
  405. -- we could have missed the onEquip event on script start
  406. if Board.Controller and not Controller then
  407. onEquip(Board.ControllingHumanoid, Board.Controller)
  408. end
  409.  
  410. end,o5)
  411. end))
  412. o6.Name = "boardkick"
  413. o6.Parent = o2
  414. o6.AnimationId = "http://www.roblox.com/Asset?ID=21417802"
  415. o7.Name = "coastingpose"
  416. o7.Parent = o2
  417. o7.AnimationId = "http://www.roblox.com/Asset?ID=21698666"
  418. o8.Name = "leftturn"
  419. o8.Parent = o2
  420. o8.AnimationId = "http://www.roblox.com/Asset?ID=21632926"
  421. o9.Name = "ollie"
  422. o9.Parent = o2
  423. o9.AnimationId = "http://www.roblox.com/Asset?ID=21700751"
  424. o10.Name = "rightturn"
  425. o10.Parent = o2
  426. o10.AnimationId = "http://www.roblox.com/Asset?ID=21633130"
  427. o11.Parent = o2
  428. o13.Name = "OllieThrust"
  429. o13.Parent = o2
  430. o13.force = Vector3.new(0, 0, 0)
  431. o13.location = Vector3.new(0, 0, -2)
  432. o14.Name = "Parts"
  433. o14.Parent = o1
  434. o15.Name = "Engine"
  435. o15.Parent = o14
  436. o15.BrickColor = BrickColor.new("Bright violet")
  437. o15.Reflectance = 0.40000000596046
  438. o15.Position = Vector3.new(7.89351177, 2.88946509, -59.7762299)
  439. o15.Rotation = Vector3.new(-89.9851456, -0.0257855002, -78.6911926)
  440. o15.CanCollide = false
  441. o15.Elasticity = 0
  442. o15.FormFactor = Enum.FormFactor.Plate
  443. o15.Friction = 1.2999999523163
  444. o15.Size = Vector3.new(1, 0.400000006, 1)
  445. o15.CFrame = CFrame.new(7.89351177, 2.88946509, -59.7762299, 0.196096867, 0.980584443, -0.000450041844, -0.000165962614, 0.000492141757, 0.999999881, 0.980584502, -0.196096778, 0.000259247812)
  446. o15.BottomSurface = Enum.SurfaceType.Weld
  447. o15.TopSurface = Enum.SurfaceType.Smooth
  448. o15.Color = Color3.new(0.419608, 0.196078, 0.486275)
  449. o15.Position = Vector3.new(7.89351177, 2.88946509, -59.7762299)
  450. o16.Parent = o15
  451. o16.Offset = Vector3.new(0, 0, -0.100000001)
  452. o16.Scale = Vector3.new(0.400000006, 1, 0.400000006)
  453. o17.Name = "Tip"
  454. o17.Parent = o14
  455. o17.BrickColor = BrickColor.new("Black")
  456. o17.Position = Vector3.new(1.22559595, 2.78625178, -58.9526978)
  457. o17.Rotation = Vector3.new(0.143794239, -78.6911697, 0.131493449)
  458. o17.CanCollide = false
  459. o17.Elasticity = 0
  460. o17.FormFactor = Enum.FormFactor.Plate
  461. o17.Friction = 1.2999999523163
  462. o17.Size = Vector3.new(2, 0.400000006, 1)
  463. o17.CFrame = CFrame.new(1.22559595, 2.78625178, -58.9526978, 0.196096867, -0.000450041844, -0.980584443, -0.000165962614, 0.999999881, -0.000492141757, 0.980584502, 0.000259247812, 0.196096778)
  464. o17.BottomSurface = Enum.SurfaceType.Smooth
  465. o17.FrontSurface = Enum.SurfaceType.Weld
  466. o17.TopSurface = Enum.SurfaceType.Smooth
  467. o17.Color = Color3.new(0.105882, 0.164706, 0.207843)
  468. o17.Position = Vector3.new(1.22559595, 2.78625178, -58.9526978)
  469. o18.Parent = o17
  470. o18.Offset = Vector3.new(0, 0, -0.5)
  471. o18.Scale = Vector3.new(1, 1, 2)
  472. o19.Name = "Engine"
  473. o19.Parent = o14
  474. o19.BrickColor = BrickColor.new("Bright violet")
  475. o19.Reflectance = 0.40000000596046
  476. o19.Position = Vector3.new(7.69741535, 2.88963103, -60.756813)
  477. o19.Rotation = Vector3.new(-89.9851456, -0.0257855002, -78.6911926)
  478. o19.CanCollide = false
  479. o19.Elasticity = 0
  480. o19.FormFactor = Enum.FormFactor.Plate
  481. o19.Friction = 1.2999999523163
  482. o19.Size = Vector3.new(1, 0.400000006, 1)
  483. o19.CFrame = CFrame.new(7.69741535, 2.88963103, -60.756813, 0.196096867, 0.980584443, -0.000450041844, -0.000165962614, 0.000492141757, 0.999999881, 0.980584502, -0.196096778, 0.000259247812)
  484. o19.BottomSurface = Enum.SurfaceType.Weld
  485. o19.TopSurface = Enum.SurfaceType.Smooth
  486. o19.Color = Color3.new(0.419608, 0.196078, 0.486275)
  487. o19.Position = Vector3.new(7.69741535, 2.88963103, -60.756813)
  488. o20.Parent = o19
  489. o20.Offset = Vector3.new(0, 0, -0.100000001)
  490. o20.Scale = Vector3.new(0.400000006, 1, 0.400000006)
  491. o21.Name = "Fire"
  492. o21.Parent = o14
  493. o21.BrickColor = BrickColor.new("Bright red")
  494. o21.Reflectance = 0.10000000149012
  495. o21.Transparency = 0.60000002384186
  496. o21.Position = Vector3.new(8.2857399, 2.88966203, -59.8546677)
  497. o21.Rotation = Vector3.new(-89.9851456, -0.0257855002, -78.6911926)
  498. o21.CanCollide = false
  499. o21.Elasticity = 0
  500. o21.FormFactor = Enum.FormFactor.Plate
  501. o21.Friction = 1.2999999523163
  502. o21.Size = Vector3.new(1, 0.400000006, 1)
  503. o21.CFrame = CFrame.new(8.2857399, 2.88966203, -59.8546677, 0.196096867, 0.980584443, -0.000450041844, -0.000165962614, 0.000492141757, 0.999999881, 0.980584502, -0.196096778, 0.000259247812)
  504. o21.BottomSurface = Enum.SurfaceType.Weld
  505. o21.TopSurface = Enum.SurfaceType.Smooth
  506. o21.Color = Color3.new(0.768628, 0.156863, 0.109804)
  507. o21.Position = Vector3.new(8.2857399, 2.88966203, -59.8546677)
  508. o22.Parent = o21
  509. o22.Offset = Vector3.new(0, -0.140000001, -0.100000001)
  510. o22.Scale = Vector3.new(0.400000006, 0.300000012, 0.400000006)
  511. o23.Name = "Fire"
  512. o23.Parent = o14
  513. o23.BrickColor = BrickColor.new("Bright red")
  514. o23.Reflectance = 0.10000000149012
  515. o23.Transparency = 0.60000002384186
  516. o23.Position = Vector3.new(8.08964348, 2.88982797, -60.8352509)
  517. o23.Rotation = Vector3.new(-89.9851456, -0.0257855002, -78.6911926)
  518. o23.CanCollide = false
  519. o23.Elasticity = 0
  520. o23.FormFactor = Enum.FormFactor.Plate
  521. o23.Friction = 1.2999999523163
  522. o23.Size = Vector3.new(1, 0.400000006, 1)
  523. o23.CFrame = CFrame.new(8.08964348, 2.88982797, -60.8352509, 0.196096867, 0.980584443, -0.000450041844, -0.000165962614, 0.000492141757, 0.999999881, 0.980584502, -0.196096778, 0.000259247812)
  524. o23.BottomSurface = Enum.SurfaceType.Weld
  525. o23.TopSurface = Enum.SurfaceType.Smooth
  526. o23.Color = Color3.new(0.768628, 0.156863, 0.109804)
  527. o23.Position = Vector3.new(8.08964348, 2.88982797, -60.8352509)
  528. o24.Parent = o23
  529. o24.Offset = Vector3.new(0, -0.140000001, -0.100000001)
  530. o24.Scale = Vector3.new(0.400000006, 0.300000012, 0.400000006)
  531. o25.Name = "Logo"
  532. o25.Parent = o14
  533. o25.BrickColor = BrickColor.new("Really black")
  534. o25.Transparency = 1
  535. o25.Position = Vector3.new(4.65782166, 2.38797331, -59.6391411)
  536. o25.Rotation = Vector3.new(0.00969723333, 11.3088064, -179.973709)
  537. o25.CanCollide = false
  538. o25.FormFactor = Enum.FormFactor.Plate
  539. o25.Size = Vector3.new(6, 0.400000006, 2)
  540. o25.CFrame = CFrame.new(4.65782166, 2.38797331, -59.6391411, -0.980584443, 0.000450041844, 0.196096867, -0.000492141757, -0.999999881, -0.000165962614, 0.196096778, -0.000259247812, 0.980584502)
  541. o25.BottomSurface = Enum.SurfaceType.Weld
  542. o25.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  543. o25.Position = Vector3.new(4.65782166, 2.38797331, -59.6391411)
  544. o26.Parent = o25
  545. o26.Offset = Vector3.new(0, -0.200000003, 0)
  546. o26.Scale = Vector3.new(0.949999988, 0, 0.800000012)
  547. o27.Parent = o25
  548. o27.Texture = "http://www.roblox.com/asset/?id=23049131"
  549. o27.Face = Enum.NormalId.Top
  550. o28.Name = "Beam"
  551. o28.Parent = o14
  552. o28.BrickColor = BrickColor.new("Bright violet")
  553. o28.Reflectance = 0.40000000596046
  554. o28.Position = Vector3.new(4.65764141, 2.78797436, -59.6390381)
  555. o28.Rotation = Vector3.new(0.00969723333, 11.3088064, -179.973709)
  556. o28.CanCollide = false
  557. o28.FormFactor = Enum.FormFactor.Plate
  558. o28.Size = Vector3.new(6, 0.400000006, 2)
  559. o28.CFrame = CFrame.new(4.65764141, 2.78797436, -59.6390381, -0.980584443, 0.000450041844, 0.196096867, -0.000492141757, -0.999999881, -0.000165962614, 0.196096778, -0.000259247812, 0.980584502)
  560. o28.BackSurface = Enum.SurfaceType.Weld
  561. o28.BottomSurface = Enum.SurfaceType.Weld
  562. o28.FrontSurface = Enum.SurfaceType.Weld
  563. o28.LeftSurface = Enum.SurfaceType.Weld
  564. o28.TopSurface = Enum.SurfaceType.Weld
  565. o28.Color = Color3.new(0.419608, 0.196078, 0.486275)
  566. o28.Position = Vector3.new(4.65764141, 2.78797436, -59.6390381)
  567. o29.Parent = o28
  568. o29.Scale = Vector3.new(1.01999998, 0.400000006, 1.04999995)
  569. o30.Name = "Beam"
  570. o30.Parent = o14
  571. o30.BrickColor = BrickColor.new("Bright violet")
  572. o30.Reflectance = 0.40000000596046
  573. o30.Position = Vector3.new(1.22559595, 2.78625178, -58.9526978)
  574. o30.Rotation = Vector3.new(0.143794239, -78.6911697, 0.131493449)
  575. o30.CanCollide = false
  576. o30.Elasticity = 0
  577. o30.FormFactor = Enum.FormFactor.Plate
  578. o30.Friction = 1.2999999523163
  579. o30.Size = Vector3.new(2, 0.400000006, 1)
  580. o30.CFrame = CFrame.new(1.22559595, 2.78625178, -58.9526978, 0.196096867, -0.000450041844, -0.980584443, -0.000165962614, 0.999999881, -0.000492141757, 0.980584502, 0.000259247812, 0.196096778)
  581. o30.BackSurface = Enum.SurfaceType.Weld
  582. o30.BottomSurface = Enum.SurfaceType.Weld
  583. o30.FrontSurface = Enum.SurfaceType.Weld
  584. o30.LeftSurface = Enum.SurfaceType.Weld
  585. o30.TopSurface = Enum.SurfaceType.Weld
  586. o30.Color = Color3.new(0.419608, 0.196078, 0.486275)
  587. o30.Position = Vector3.new(1.22559595, 2.78625178, -58.9526978)
  588. o31.Parent = o30
  589. o31.Offset = Vector3.new(0, 0, -0.5)
  590. o31.Scale = Vector3.new(1.10000002, 0.400000006, 2.0999999)
  591. o32.Name = "Detail"
  592. o32.Parent = o14
  593. o32.BrickColor = BrickColor.new("Really black")
  594. o32.Position = Vector3.new(7.10905743, 2.88920355, -60.1292534)
  595. o32.Rotation = Vector3.new(0.00969723333, 11.3088064, 0.0262960494)
  596. o32.CanCollide = false
  597. o32.FormFactor = Enum.FormFactor.Plate
  598. o32.Size = Vector3.new(1, 0.400000006, 1)
  599. o32.CFrame = CFrame.new(7.10905743, 2.88920355, -60.1292534, 0.980584443, -0.000450041844, 0.196096867, 0.000492141757, 0.999999881, -0.000165962614, -0.196096778, 0.000259247812, 0.980584502)
  600. o32.BackSurface = Enum.SurfaceType.Weld
  601. o32.BottomSurface = Enum.SurfaceType.Weld
  602. o32.FrontSurface = Enum.SurfaceType.Weld
  603. o32.LeftSurface = Enum.SurfaceType.Weld
  604. o32.RightSurface = Enum.SurfaceType.Weld
  605. o32.TopSurface = Enum.SurfaceType.Weld
  606. o32.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  607. o32.Position = Vector3.new(7.10905743, 2.88920355, -60.1292534)
  608. o33.Parent = o32
  609. o33.Offset = Vector3.new(-0.100000001, 0.109999999, 0)
  610. o33.Scale = Vector3.new(1.20000005, 0, 0.300000012)
  611. o34.Name = "Detail"
  612. o34.Parent = o14
  613. o34.BrickColor = BrickColor.new("Really black")
  614. o34.Position = Vector3.new(1.71584272, 2.88649702, -59.050724)
  615. o34.Rotation = Vector3.new(0.00969723333, 11.3088064, 0.0262960494)
  616. o34.CanCollide = false
  617. o34.FormFactor = Enum.FormFactor.Plate
  618. o34.Size = Vector3.new(2, 0.400000006, 1)
  619. o34.CFrame = CFrame.new(1.71584272, 2.88649702, -59.050724, 0.980584443, -0.000450041844, 0.196096867, 0.000492141757, 0.999999881, -0.000165962614, -0.196096778, 0.000259247812, 0.980584502)
  620. o34.BackSurface = Enum.SurfaceType.Weld
  621. o34.BottomSurface = Enum.SurfaceType.Weld
  622. o34.FrontSurface = Enum.SurfaceType.Weld
  623. o34.LeftSurface = Enum.SurfaceType.Weld
  624. o34.RightSurface = Enum.SurfaceType.Weld
  625. o34.TopSurface = Enum.SurfaceType.Weld
  626. o34.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  627. o34.Position = Vector3.new(1.71584272, 2.88649702, -59.050724)
  628. o35.Parent = o34
  629. o35.Offset = Vector3.new(0.100000001, 0.109999999, 0)
  630. o35.Scale = Vector3.new(1.10000002, 0, 0.300000012)
  631. o36.Name = "Detail"
  632. o36.Parent = o14
  633. o36.BrickColor = BrickColor.new("Really black")
  634. o36.Position = Vector3.new(4.65759611, 2.88797331, -59.6390114)
  635. o36.Rotation = Vector3.new(0.00969723333, 11.3088064, 0.0262960494)
  636. o36.CanCollide = false
  637. o36.FormFactor = Enum.FormFactor.Plate
  638. o36.Size = Vector3.new(2, 0.400000006, 1)
  639. o36.CFrame = CFrame.new(4.65759611, 2.88797331, -59.6390114, 0.980584443, -0.000450041844, 0.196096867, 0.000492141757, 0.999999881, -0.000165962614, -0.196096778, 0.000259247812, 0.980584502)
  640. o36.BackSurface = Enum.SurfaceType.Weld
  641. o36.BottomSurface = Enum.SurfaceType.Weld
  642. o36.FrontSurface = Enum.SurfaceType.Weld
  643. o36.LeftSurface = Enum.SurfaceType.Weld
  644. o36.RightSurface = Enum.SurfaceType.Weld
  645. o36.TopSurface = Enum.SurfaceType.Weld
  646. o36.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  647. o36.Position = Vector3.new(4.65759611, 2.88797331, -59.6390114)
  648. o37.Parent = o36
  649. o37.Offset = Vector3.new(0, 0.109999999, 0)
  650. o37.Scale = Vector3.new(0.800000012, 0, 0.300000012)
  651. o38.Name = "Grip"
  652. o38.Parent = o14
  653. o38.BrickColor = BrickColor.new("Really black")
  654. o38.Position = Vector3.new(6.12847281, 2.88871145, -59.9331551)
  655. o38.Rotation = Vector3.new(0.00969723333, 11.3088064, 0.0262960494)
  656. o38.CanCollide = false
  657. o38.FormFactor = Enum.FormFactor.Plate
  658. o38.Size = Vector3.new(1, 0.400000006, 2)
  659. o38.CFrame = CFrame.new(6.12847281, 2.88871145, -59.9331551, 0.980584443, -0.000450041844, 0.196096867, 0.000492141757, 0.999999881, -0.000165962614, -0.196096778, 0.000259247812, 0.980584502)
  660. o38.BackSurface = Enum.SurfaceType.Weld
  661. o38.BottomSurface = Enum.SurfaceType.Weld
  662. o38.FrontSurface = Enum.SurfaceType.Weld
  663. o38.LeftSurface = Enum.SurfaceType.Weld
  664. o38.RightSurface = Enum.SurfaceType.Weld
  665. o38.TopSurface = Enum.SurfaceType.Weld
  666. o38.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  667. o38.Position = Vector3.new(6.12847281, 2.88871145, -59.9331551)
  668. o39.Parent = o38
  669. o39.Offset = Vector3.new(-0.200000003, 0.109999999, 0)
  670. o39.Scale = Vector3.new(1, 0, 0.800000012)
  671. o40.Name = "Grip"
  672. o40.Parent = o14
  673. o40.BrickColor = BrickColor.new("Really black")
  674. o40.Position = Vector3.new(3.18671942, 2.88723516, -59.3448677)
  675. o40.Rotation = Vector3.new(0.00969723333, 11.3088064, 0.0262960494)
  676. o40.CanCollide = false
  677. o40.FormFactor = Enum.FormFactor.Plate
  678. o40.Size = Vector3.new(1, 0.400000006, 2)
  679. o40.CFrame = CFrame.new(3.18671942, 2.88723516, -59.3448677, 0.980584443, -0.000450041844, 0.196096867, 0.000492141757, 0.999999881, -0.000165962614, -0.196096778, 0.000259247812, 0.980584502)
  680. o40.BackSurface = Enum.SurfaceType.Weld
  681. o40.BottomSurface = Enum.SurfaceType.Weld
  682. o40.FrontSurface = Enum.SurfaceType.Weld
  683. o40.LeftSurface = Enum.SurfaceType.Weld
  684. o40.RightSurface = Enum.SurfaceType.Weld
  685. o40.TopSurface = Enum.SurfaceType.Weld
  686. o40.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  687. o40.Position = Vector3.new(3.18671942, 2.88723516, -59.3448677)
  688. o41.Parent = o40
  689. o41.Offset = Vector3.new(0.200000003, 0.109999999, 0)
  690. o41.Scale = Vector3.new(1, 0, 0.800000012)
  691. o42.Name = "Right Rear"
  692. o42.Parent = o1
  693. o42.BrickColor = BrickColor.new("Bright violet")
  694. o42.Transparency = 1
  695. o42.Position = Vector3.new(7.40338278, 2.48897576, -58.6584816)
  696. o42.Rotation = Vector3.new(97.7738647, 34.0415459, 76.3110123)
  697. o42.Elasticity = 0
  698. o42.FormFactor = Enum.FormFactor.Symmetric
  699. o42.Friction = 1.2999999523163
  700. o42.Shape = Enum.PartType.Ball
  701. o42.Size = Vector3.new(1, 1, 1)
  702. o42.CFrame = CFrame.new(7.40338278, 2.48897576, -58.6584816, 0.196096882, -0.805094361, 0.55979389, -0.000162908749, -0.570904493, -0.82101649, 0.980584562, 0.160907581, -0.112083748)
  703. o42.BottomSurface = Enum.SurfaceType.Smooth
  704. o42.LeftSurface = Enum.SurfaceType.Hinge
  705. o42.TopSurface = Enum.SurfaceType.Smooth
  706. o42.Color = Color3.new(0.419608, 0.196078, 0.486275)
  707. o42.Position = Vector3.new(7.40338278, 2.48897576, -58.6584816)
  708. o43.Name = "Right Front"
  709. o43.Parent = o1
  710. o43.BrickColor = BrickColor.new("Bright violet")
  711. o43.Transparency = 1
  712. o43.Position = Vector3.new(2.50046015, 2.48651528, -57.6779976)
  713. o43.Rotation = Vector3.new(80.9731979, -38.1454697, 75.5611877)
  714. o43.Elasticity = 0
  715. o43.FormFactor = Enum.FormFactor.Symmetric
  716. o43.Friction = 1.2999999523163
  717. o43.Shape = Enum.PartType.Ball
  718. o43.Size = Vector3.new(1, 1, 1)
  719. o43.CFrame = CFrame.new(2.50046015, 2.48651528, -57.6779976, 0.196096897, -0.761604905, -0.617660165, -0.00016272931, 0.629864454, -0.776705146, 0.980584562, 0.152409956, 0.123390526)
  720. o43.BottomSurface = Enum.SurfaceType.Smooth
  721. o43.LeftSurface = Enum.SurfaceType.Hinge
  722. o43.TopSurface = Enum.SurfaceType.Smooth
  723. o43.Color = Color3.new(0.419608, 0.196078, 0.486275)
  724. o43.Position = Vector3.new(2.50046015, 2.48651528, -57.6779976)
  725. o44.Name = "Left Rear"
  726. o44.Parent = o1
  727. o44.BrickColor = BrickColor.new("Bright violet")
  728. o44.Transparency = 1
  729. o44.Position = Vector3.new(1.91217017, 2.48701143, -60.619751)
  730. o44.Rotation = Vector3.new(-90.1105881, 0.601640642, -78.6905594)
  731. o44.Elasticity = 0
  732. o44.FormFactor = Enum.FormFactor.Symmetric
  733. o44.Friction = 1.2999999523163
  734. o44.Shape = Enum.PartType.Ball
  735. o44.Size = Vector3.new(1, 1, 1)
  736. o44.CFrame = CFrame.new(1.91217017, 2.48701143, -60.619751, 0.196096867, 0.980528355, 0.0105004171, -0.000166635858, -0.0106750019, 0.999943018, 0.980584502, -0.19608745, -0.0019299431)
  737. o44.BottomSurface = Enum.SurfaceType.Smooth
  738. o44.RightSurface = Enum.SurfaceType.Hinge
  739. o44.TopSurface = Enum.SurfaceType.Smooth
  740. o44.Color = Color3.new(0.419608, 0.196078, 0.486275)
  741. o44.Position = Vector3.new(1.91217017, 2.48701143, -60.619751)
  742. o45.Name = "Left Front"
  743. o45.Parent = o1
  744. o45.BrickColor = BrickColor.new("Bright violet")
  745. o45.Transparency = 1
  746. o45.Position = Vector3.new(6.81509256, 2.48948359, -61.600235)
  747. o45.Rotation = Vector3.new(145.618896, 76.3776169, 33.632782)
  748. o45.Elasticity = 0
  749. o45.FormFactor = Enum.FormFactor.Symmetric
  750. o45.Friction = 1.2999999523163
  751. o45.Shape = Enum.PartType.Ball
  752. o45.Size = Vector3.new(1, 1, 1)
  753. o45.CFrame = CFrame.new(6.81509256, 2.48948359, -61.600235, 0.196096867, -0.130448222, 0.971869051, -0.000165916674, -0.991116285, -0.132998198, 0.980584562, 0.0259192791, -0.194376454)
  754. o45.BottomSurface = Enum.SurfaceType.Smooth
  755. o45.RightSurface = Enum.SurfaceType.Hinge
  756. o45.TopSurface = Enum.SurfaceType.Smooth
  757. o45.Color = Color3.new(0.419608, 0.196078, 0.486275)
  758. o45.Position = Vector3.new(6.81509256, 2.48948359, -61.600235)
  759. mas.Parent = workspace
  760. mas:MakeJoints()
  761. local mas1 = mas:GetChildren()
  762. for i=1,#mas1 do
  763. mas1[i].Parent = workspace
  764. ypcall(function() mas1[i]:MakeJoints() end)
  765. end
  766. mas:Destroy()
  767. for i=1,#cors do
  768. coroutine.resume(cors[i])
  769. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement