Hi peeps. I am trying to make one of those camping games. (im a beginner lol) and this script is not working.... Its a script where the player touches a part (the part's name is TeleportPad) and they get teleported to the Van (there is a part named Van, and a model named theREALVan is inside of it) and then they are supposed to go to an open seat, that is not occupied by another player. So um yeah here is the script
local seat1 = workspace.Map.Van.theREALVan.BackSeats.seat1
local seat2 = workspace.Map.Van.theREALVan.BackSeats.seat2
local seat3 = workspace.Map.Van.theREALVan.BackSeats.seat3
local seat4 = workspace.Map.Van.theREALVan.BackSeats.seat4
local seat5 = workspace.Map.Van.theREALVan.BackSeats.seat5
local seat6 = workspace.Map.Van.theREALVan.BackSeats.seat6
if seat1.Occupant = "" then
seat1 = openseat
elseif seat2.Occupant = "" then
seat2 = openseat
elseif seat3.Occupant = "" then
seat3 = openseat
elseif seat4.Occupant = "" then
seat2 = openseat
elseif seat5.Occupant = "" then
seat3 = openseat
elseif seat5.Occupant = "" then
seat3 = openseat
local part = script.Parent
function onTouched(part)
local character = game.Workspace.Player
local player = game.Players:GetPlayerFromCharacter(character)
character.Position = workspace:FindFirstChild("openseat").Position
end
part.Touched:Connect(function()
end
I have no idea what is wrong with this. Help would be greatly appreciated :3

5 comments
(CREDIT TO raid6n for the script)
Could you post the full script?
This is the full script I just made changes
output*
Answered nevermind