Not played the game but by your description it seems pretty straight-forward.
For the image of a skyline create an ImageLabel
and put it in a ScreenGui
, then to make the image cover the entire screen, use the following;
1 | BackgroundImage.Size(UDim 2. new( 1 , 0 , 1 , 40 )) |
2 | BackgroundImage.Position(UDim 2. new( 0 , 0 , 1 , - 40 )) |
For the buttons create a TextButton
and put in in a ScreenGui
somewhere then insert a StringValue
with the value as the corresponding name of the vehicle in ReplicatedStorage
, then use the following code; (make sure to adapt it to your needs)
1 | for i, v in pairs (ScreenGui:GetChildren()) do |
2 | if v:IsA( "TextButton" ) then |
3 | v.MouseButton 1 Click:Connect( function () |
4 | ScreenGui.Enabled = = false |
5 | Vehicle = game.ReplicatedStorage:FindFirstChild(v.StringValue.Value):Clone() |
6 | Vehicle.Parent = game.Workspace |
I made this off the top of my head so it may have some errors but if you know basic scripting then you should be able to sort them out.
I hope this helps.
Closed as Not Constructive by H4X0MSYT, Vulkarin, DevNetx, and BlueTaslem
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?