I’ve been working on a car game for a little bit now, and I’ve always wanted to upgrade the vehicle spawning UI to include a viewport frame of the car. Unfortunately, though, I’ve never really found a method to get a working viewport frame.
So, I’m wondering how you can use a viewport frame to view a vehicle in a UI?
The DevHub has a very helpful article on ViewportFrames that will guide you through how to set one up. You should be able to use this information to create the effect you want.
I understand your concern, but I’m still a bit of a beginner on ViewportFrames and don’t really know the ins and outs of them. Of course, anything that is viewable by the client can be stolen by said client, and there is little that can be done about that.
I’m not sure how you would be able to protect your models. You could try and display either a more simplified version of the car or a mesh of it so that the content that could be stolen is much less valuable.
I’ve been concerned about this too but it’s impossible to prevent almost, anything the client can see, even if loaded/spawned in by the server can technically be stolen, all it needs is the client being able to see it, if it’s not in ServerStorage or ServerScriptStorage the player can already see it.
But I personally think the scripts are most important, I rather protect my code than the models, if you hide a model, sure the client can’t steal it, but you won’t be able to use it either, models are made to be seen by the client.
But I woudn’t worry too much about it even if it would get stolen, you’re the original creator of it anyway, it’s not like someone is gonna make lots of profit out of a stolen asset or anything plus you can report this to Roblox if you caught someone.