Advertisement
marcelslibrary

madcity car gui

Apr 9th, 2019
4,512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.03 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local carstutorial = Instance.new("ScreenGui")
  5. local carstutorial_2 = Instance.new("Frame")
  6. local Frame = Instance.new("Frame")
  7. local Frame_2 = Instance.new("Frame")
  8. local Frame_3 = Instance.new("Frame")
  9. local Frame_4 = Instance.new("Frame")
  10. local Frame_5 = Instance.new("Frame")
  11. local TextLabel = Instance.new("TextLabel")
  12. local TextLabel_2 = Instance.new("TextLabel")
  13. local unlockallthissrvs = Instance.new("TextButton")
  14. local closecarstutorial = Instance.new("TextButton")
  15. --Properties:
  16. carstutorial.Name = "carstutorial"
  17. carstutorial.Parent = game.CoreGui
  18. carstutorial.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  19.  
  20. carstutorial_2.Name = "carstutorial"
  21. carstutorial_2.Parent = carstutorial
  22. carstutorial_2.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  23. carstutorial_2.BorderSizePixel = 0
  24. carstutorial_2.Position = UDim2.new(1, 0, 0.0860000029, 0)
  25. carstutorial_2.Size = UDim2.new(0, 274, 0, 215)
  26.  
  27. Frame.Parent = carstutorial_2
  28. Frame.BackgroundColor3 = Color3.new(0.333333, 0, 1)
  29. Frame.BorderSizePixel = 0
  30. Frame.Position = UDim2.new(0, 0, 0.958175123, 0)
  31. Frame.Size = UDim2.new(0, 274, 0, 16)
  32.  
  33. Frame_2.Parent = carstutorial_2
  34. Frame_2.BackgroundColor3 = Color3.new(0.333333, 0, 1)
  35. Frame_2.BorderSizePixel = 0
  36. Frame_2.Size = UDim2.new(0, 274, 0, 16)
  37.  
  38. Frame_3.Parent = carstutorial_2
  39. Frame_3.BackgroundColor3 = Color3.new(0.333333, 0, 1)
  40. Frame_3.BorderSizePixel = 0
  41. Frame_3.Position = UDim2.new(0, 0, 0.100877196, 0)
  42. Frame_3.Size = UDim2.new(0, 274, 0, 7)
  43.  
  44. Frame_4.Parent = carstutorial_2
  45. Frame_4.BackgroundColor3 = Color3.new(0.333333, 0, 1)
  46. Frame_4.BorderSizePixel = 0
  47. Frame_4.Position = UDim2.new(6.98491931e-10, 0, 0.881307602, 0)
  48. Frame_4.Size = UDim2.new(0, 274, 0, 7)
  49.  
  50. Frame_5.Parent = carstutorial_2
  51. Frame_5.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  52. Frame_5.BorderSizePixel = 0
  53. Frame_5.Position = UDim2.new(0.0620437935, 0, 0.134970158, 0)
  54. Frame_5.Size = UDim2.new(0, 239, 0, 148)
  55.  
  56. TextLabel.Parent = Frame_5
  57. TextLabel.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  58. TextLabel.BackgroundTransparency = 1
  59. TextLabel.BorderSizePixel = 0
  60. TextLabel.Position = UDim2.new(-0.00169493817, 0, 0, 0)
  61. TextLabel.Size = UDim2.new(0, 232, 0, 37)
  62. TextLabel.Font = Enum.Font.GothamBold
  63. TextLabel.Text = "Unlock ALL cars (For this server) you cant spawn"
  64. TextLabel.TextColor3 = Color3.new(0.333333, 0, 1)
  65. TextLabel.TextSize = 9
  66.  
  67. TextLabel_2.Parent = Frame_5
  68. TextLabel_2.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  69. TextLabel_2.BackgroundTransparency = 1
  70. TextLabel_2.BorderSizePixel = 0
  71. TextLabel_2.Position = UDim2.new(0.0169960056, 0, 0.0719535649, 0)
  72. TextLabel_2.Size = UDim2.new(0, 227, 0, 38)
  73. TextLabel_2.Font = Enum.Font.GothamBold
  74. TextLabel_2.Text = "them u have to go to their spawn locations"
  75. TextLabel_2.TextColor3 = Color3.new(0.333333, 0, 1)
  76. TextLabel_2.TextSize = 10
  77.  
  78. unlockallthissrvs.Name = "unlockallthissrvs"
  79. unlockallthissrvs.Parent = Frame_5
  80. unlockallthissrvs.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  81. unlockallthissrvs.BorderColor3 = Color3.new(0.333333, 0, 1)
  82. unlockallthissrvs.Position = UDim2.new(0.0836820081, 0, 0.32432431, 0)
  83. unlockallthissrvs.Size = UDim2.new(0, 200, 0, 50)
  84. unlockallthissrvs.Font = Enum.Font.GothamBold
  85. unlockallthissrvs.Text = "Unlock All For This Server"
  86. unlockallthissrvs.TextColor3 = Color3.new(0.333333, 0, 1)
  87. unlockallthissrvs.TextSize = 14
  88.  
  89. closecarstutorial.Name = "closecarstutorial"
  90. closecarstutorial.Parent = carstutorial_2
  91. closecarstutorial.BackgroundColor3 = Color3.new(1, 1, 1)
  92. closecarstutorial.BackgroundTransparency = 1
  93. closecarstutorial.BorderSizePixel = 0
  94. closecarstutorial.Position = UDim2.new(0.910930574, 0, 0.129609197, 0)
  95. closecarstutorial.Size = UDim2.new(0, 24, 0, 24)
  96. closecarstutorial.Font = Enum.Font.GothamBold
  97. closecarstutorial.Text = "X"
  98. closecarstutorial.TextColor3 = Color3.new(0.333333, 0, 1)
  99. closecarstutorial.TextSize = 20
  100. -- Scripts:
  101. carstutorial_2:TweenPosition(UDim2.new(0.607, 0,0.037, 0),'Out','Sine',1)
  102. wait(1)
  103. carstutorial_2.Active = true
  104. carstutorial_2.Draggable = true
  105. closecarstutorial.MouseButton1Click:connect(function()
  106. carstutorial_2:TweenPosition(UDim2.new(1, 0,0.066, 0),'Out','Sine',1)
  107. wait(1)
  108. carstutorial:Destroy()
  109. end)
  110.  
  111.  
  112. unlockallthissrvs.MouseButton1Click:connect(function()
  113. if game.PlaceId == 1224212277 then
  114. local Check = function(a, b)
  115. for _, v in next, a do
  116. if v == b then return true end
  117. end
  118. return false
  119. end
  120.  
  121. local meta, oldmeta = getrawmetatable(game), {}
  122. if setreadonly then
  123. setreadonly(meta, false)
  124. elseif is_protosmasher_caller then
  125. make_writeable(meta)
  126. end
  127. for i, v in next, meta do oldmeta[i] = v end
  128. local realmethods = {}
  129. realmethods.Fire = Instance.new("BindableEvent").Fire
  130. realmethods.Invoke = Instance.new("BindableFunction").Invoke
  131. realmethods.FireServer = Instance.new("RemoteEvent").FireServer
  132. realmethods.InvokeServer = Instance.new("RemoteFunction").InvokeServer
  133.  
  134. meta.__namecall = function(...)
  135. local args = {...}
  136. local t, k = args[1], args[#args]
  137. local actions = {};
  138. for i, v in pairs(args) do
  139. if i ~= 1 and i ~= #args then table.insert(actions, v) end
  140. end
  141. if k == "Fire" or k == "Invoke" or k == "FireServer" or k == "InvokeServer" then
  142. local returns = {realmethods[k](t, unpack(actions))}
  143. if t.Name == "RemoteFunction" and actions[1] == "DataFetch" then
  144. local data = game.HttpService:JSONDecode(returns[1])
  145. for _, v in next, game.ReplicatedStorage.ItemDatabase.Vehicles:GetDescendants() do
  146. if v.Name ~= "Data" and not Check(data.Data.Items, v.Name) then
  147. table.insert(data.Data.Items, v.Name)
  148. end
  149. end
  150. returns[1] = game.HttpService:JSONEncode(data)
  151. elseif t.Name == "RemoteFunction" and actions[1] == "GetVehicles" then
  152. local vehicles = {}
  153. for _, v in next, game.ReplicatedStorage.ItemDatabase.Vehicles:GetDescendants() do
  154. if v.Name ~= "Data" then
  155. table.insert(vehicles, v.Name)
  156. end
  157. end
  158. returns[1] = vehicles
  159. end
  160. return unpack(returns)
  161. else
  162. return oldmeta.__namecall(unpack(args))
  163. end
  164. end
  165. game.Players.LocalPlayer.Character:BreakJoints()
  166. end
  167. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement