So, to further explain my question, here's a new post.
I whipped up a leaderboard, GUI button, and a script that, when the button is clicked, you will receive that certain vehicle if you have enough money. But, for some reason it wont work. I parented the vehicle model to 'Lighting,' checked for spelling errors, etc. I don't know what's wrong.
Heres the code.
local model = game.Lighting.Omicron
local character = game.Players.LocalPlayer.Character
local Currecy = game.Players.LocalPlayer.leaderstats.Money
local Price = 0
function onClicked()
if Currency.Value >= Price then
Currency.Value = Currency.Value - Price
local a = model:clone()
a.Parent = game.Workspace
wait()
a:MakeJoints()
wait()
a:MoveTo(character.Torso.Position + Vector3.new(0,0,10))
end
end
script.Parent.MouseButton1Click:connect(onClicked)

2 comments
Thank you, but it still wont work.
Any error?