You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I want to be able to press a button on a GUI and then it inserts that vehicle into the game.
-
What is the issue? The issues is that it doesn’t insert when you press the button.
Screen capture - 3710a8ddf12f001a9236458e2cdf81c3 - Gyazo -
What solutions have you tried so far? I have tried both these 2 pieces of code;
ID = script.Parent.B737ID.Value
Object = game:GetService("InsertService"):LoadAsset(ID)
Object.Parent = game.Workspace
You put a ID in a NumberValue
and
script.Parent.MouseButton1Click:connect(function()
InsertService:LoadAsset("--Put ID here--")
end)
If anyone has any suggestions on how to do this please let me know!