Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how do i make car ownership suach as a lock GUI?

hi im trying to make a car ownership for 1 of my games im working on ive tried and tried but it just dosent seem to work can someone help me plz

2 answers

✓ Accepted answer

You could use a string value and connect it to the player once they sit. Put this script in the seat. And make a stringvalue called "OwnerValue" In the seat too.

local seat = script.Parent
local ownervalue = seat.OwnerValue

seat.ChildAdded:connect(function(child)
if child:IsA("Weld") and child.Name == "SeatWeld" then
local character = child.Part1.Parent
local player = game.Players:GetPlayerFromCharacter(character)
ownervalue.Value = player.Name

end
end)

Hope this helped! PM me @Mowblow on roblox for more help!

This discussion is preserved as it was. New answers, comments, and votes are closed.