> local xx = model:Clone() -- model with parts no added to workspace
> event:FireClient(player, xx)
>
> event.OnClientEvent:Connect(function(xx)
> print(xx) -- = nil ??
> end)
I believe the reason for this is because the model doesn’t have a parent, if you parent it to somewhere accessible to the client it will work
For example?..
When you clone something it doesn’t have a parent right away, so if you give the clone a parent and then pass the reference to the clone over it would work
No I mean this. Whats typical place to parent it for sending remote?
I don’t know, it could be workspace or in fact you can just do the cloning on the client, but it all depends on what you want to do
My use case is that I want to server Parts from server to particular client based on it’s location. I could place them on replicatedStorage, but then 1 players can exploit (see) other player parts :(, because its open for all clients.
What do you mean it doesn’t have a parent? All the objects inside studio has a parent, even services.
To make model accessible for client and server, I’d place it inside of ReplicatedStorage or workspace if you want a to send a player visible model.
game
doesn’t have a parent, and please read before posting:
How is this a problem?
it would not replicate to all the clients you could just do a check if they do exploit do a check then kick or ban them
For my game concept it is a problem. I wont explain everything in detail now. How about I store in ;
local Players = game:GetService("Players")
local pp = Instance.new("Part")
pp.Parent = Players[playerName]
Then one player can’t see other player Parts?
I mean an exploiter can just do Players[playerName].Part
and they have it. Why is it a problem though? You didn’t answer the question
this is why you have to do checks on the server if they see it or on their client if it’s not there then ban or kick them
I think I did answer the question:
For my game concept it is a problem. I wont explain everything in detail now
Imagine that those parts are like secret stuff and game concept requires not to see each others. I really don’t want to put my whole game idea in the forum.
Well since you are intentionally not showing details i wont be able to help you further. And I am not sure why you think you need to show your entire game idea as if it were so original, literally every concept has been done. Just the part where there is an issue
Could you please provide that missing info so I can see why this is an issue.
Thats kind of weird, that LocalScript has access to other players
You CAN send any replicated instance over remote events, however they must not be a parent of ‘ServerStorage’ or ‘ServerScriptService’, as these cannot be seen on the client. Potentially consider changing the location of the object you are sending to ‘ReplicatedStorage’.
The reason Roblox does this is so that there isn’t a way for hackers to recieve and interpret information directly from the server running the game.
It is not weird, otherwise stuff like custom player lists wouldn’t work.
You’re obviously trying to print the model instance, and the model doesn’t have a parent