Alright so here's the delima. I have to create a model for each player that joins, and the problem with this is if a player joins and leaves, then it will need to destroy itself. Alright so here's what I'm creating a basic classic version of nascar. I need to know how to teleport eachother to a model, that's created specifically for them. I believe I could use values stored inside of ServerStorage, but I wouldn't know how. This is what I need help with:
each player teleports to their own nascar if a player leaves it destroys their nascar from ServerStorage game starts on 2 players
Using the PlayerAdded event is alittle tricky. I don't know how I'd do this explain please
Player = game.Players.LocalPlayer
Player.PlayerAdded:connect(function()
print("This is the part where it'd copy the model")
game.ServerStorage.Nascar:Clone()
Nascar.Parent = game.Lighting
end)
Alright so in here if it copies it, it'd have to need a value inside of it that says like 1,2,3,4 or anything. So each player that joins has their own number so the script doesn't glitch and delete all players. I believe the cars would be stored inside of "Nascars", as a model. And it'd look inside of the script for each car to clone it into workspace right when the game starts.
** This is an event so the tag is necessary **

2 comments
'string.sub(workspace["Nascar"],7)' - An instance can't be used as an argument for string.sub method.
@Goulstem string.sub(workspace["Nascar"].Name,7) - There