LelXD

Bangarang bike

Feb 11th, 2016
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. --Created with ttyyuu12345's compiler
  2. --Errors: TouchTransmitter,LocalScript,Camera
  3. Create = function(itemClass,tabl)
  4. local item = Instance.new(itemClass)
  5. for i,v in pairs(tabl) do
  6. local a,b = ypcall(function() return item[i] end)
  7. if a then
  8. item[i] = tabl[i]
  9. end
  10. end
  11. return item
  12. end
  13. function runDummyScript(f,scri)
  14. local oldenv = getfenv(f)
  15. local newenv = setmetatable({}, {
  16. __index = function(_, k)
  17. if k:lower() == 'script' then
  18. return scri
  19. else
  20. return oldenv[k]
  21. end
  22. end
  23. })
  24. setfenv(f, newenv)
  25. ypcall(function() f() end)
  26. end
  27. cors = {}
  28. mas = Instance.new("Model",game:GetService("Lighting"))
  29. mas.Name = "CompiledModel"
  30. o1 = Create("Model",{
  31. ["Name"] = "Skrillex - Bangarang Hyperbike",
  32. ["Parent"] = mas,
  33. })
  34. o2 = Create("Tool",{
  35. ["Name"] = "Laser Cycle",
  36. ["Parent"] = o1,
  37. ["TextureId"] = "http://www.roblox.com/asset/?id=130087424",
  38. ["GripPos"] = Vector3.new(1.5, 2.20000005, 0),
  39. ["ToolTip"] = "LOOK'N FOR TECH-VENTURE",
  40. ["CanBeDropped"] = false,
  41. })
  42. o3 = Create("Part",{
  43. ["Name"] = "Handle",
  44. ["Parent"] = o2,
  45. ["Position"] = Vector3.new(-5.80000019, 4.30000877, -10.2999983),
  46. ["Rotation"] = Vector3.new(-0, 90, 0),
  47. ["CFrame"] = CFrame.new(-5.80000019, 4.30000877, -10.2999983, -0, 0, 1, -0, 1, 0, -1, 0, 0),
  48. ["Elasticity"] = 0,
  49. ["FormFactor"] = Enum.FormFactor.Custom,
  50. ["Friction"] = 0,
  51. ["Size"] = Vector3.new(0.200000003, 0.200000003, 7.91000128),
  52. ["BottomSurface"] = Enum.SurfaceType.Smooth,
  53. ["TopSurface"] = Enum.SurfaceType.Smooth,
  54. })
  55. o4 = Create("SpecialMesh",{
  56. ["Parent"] = o3,
  57. ["MeshId"] = "http://www.roblox.com/asset/?id=130087381",
  58. ["Scale"] = Vector3.new(2.5, 2.5, 2.5),
  59. ["TextureId"] = "http://www.roblox.com/asset/?id=130087211",
  60. ["MeshType"] = Enum.MeshType.FileMesh,
  61. })
  62. o5 = Create("Sound",{
  63. ["Name"] = "Running",
  64. ["Parent"] = o3,
  65. ["SoundId"] = "http://www.roblox.com/asset/?id=142319852",
  66. ["Looped"] = true,
  67. })
  68. o7 = Create("Animation",{
  69. ["Name"] = "holdAni",
  70. ["Parent"] = o2,
  71. ["AnimationId"] = "http://www.roblox.com/Asset?ID=104506550",
  72. })
  73. o8 = Create("Script",{
  74. ["Name"] = "ThumbnailFixer",
  75. ["Parent"] = o2,
  76. ["Disabled"] = true,
  77. })
  78. table.insert(cors,coroutine.create(function()
  79. wait()
  80. runDummyScript(function()
  81. function WaitForChild(parent,child)
  82. while not parent:FindFirstChild(child) do print("roped waiting for " .. child) wait() end
  83. return parent[child]
  84. end
  85.  
  86. local handle = WaitForChild(script.Parent,'Handle')
  87.  
  88. script.Parent.Grip = CFrame.new(1.40000021, 1.96000028, -1.4000001, 1, 0, 0, 0, 1, -3.9340253e-007, 0, 3.9340253e-007, 1)
  89.  
  90. handle.Size = Vector3.new(0.2, 4.89, 6.08)
  91. end,o8)
  92. end))
  93. o12 = Create("Part",{
  94. ["Name"] = "thumbnail helper",
  95. ["Parent"] = o1,
  96. ["BrickColor"] = BrickColor.new("Neon orange"),
  97. ["Transparency"] = 1,
  98. ["Position"] = Vector3.new(-9.95499992, 1.20001197, -11.1999998),
  99. ["CFrame"] = CFrame.new(-9.95499992, 1.20001197, -11.1999998, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  100. ["Size"] = Vector3.new(2, 2.4000001, 2),
  101. ["BackSurface"] = Enum.SurfaceType.Weld,
  102. ["BottomSurface"] = Enum.SurfaceType.Weld,
  103. ["FrontSurface"] = Enum.SurfaceType.Weld,
  104. ["LeftSurface"] = Enum.SurfaceType.Weld,
  105. ["RightSurface"] = Enum.SurfaceType.Weld,
  106. ["TopSurface"] = Enum.SurfaceType.Weld,
  107. ["Color"] = Color3.new(0.835294, 0.45098, 0.239216),
  108. })
  109. mas.Parent = workspace
  110. mas:MakeJoints()
  111. local mas1 = mas:GetChildren()
  112. for i=1,#mas1 do
  113. mas1[i].Parent = workspace
  114. ypcall(function() mas1[i]:MakeJoints() end)
  115. end
  116. mas:Destroy()
  117. for i=1,#cors do
  118. coroutine.resume(cors[i])
  119. end
Advertisement
Add Comment
Please, Sign In to add comment