So I am trying to make a magic laser blast that updates the end position of the end of a beam constantly (from the player) using the mouse. Using RemoteEvents is NOT good for this and I’m told to use NetworkOwnership, how would this be done?
What I want to know is, how would this be done? Isn’t network ownership only good for physics rendering and how would it be used to update the laser?
I know we aren’t supposed to ask for code, but I learn with excellency by example. At least a starting point would be nice.
I’m not really sure what the Laser does that needs a lot of phsysics but NetworkOwnership of a part makes all things be calculated whitin the player’s client then the client gives the data to the server for it to replicate, this is why stuff like NoClipping is possible for cheaters, because they have NetworkOwnership of the character
“So I am trying to make a magic laser blast that updates the end position of the end of a beam constantly (from the player) using the mouse.” I apologize for lack of clarity.
Okay i see now, i’ve never used Network Ownership for that but i suppose you could change it whitin a Local Script and it will replicate to the server, but i may be wrong
Do you mean like a Kamehameha? Imagine that the end point is a sphere, and you’re adding a linear force to it, while mouse controls it’s direction. Set the sphere NetworkOwner to player. You can also add a trail to visualize it.
I meant giving the player ownership in the server then trying to modify it locally, by the means of a remote function maybe so you can return the instance with ownership
Figured it out. It’s a matter of making sure the part is unanchored, raycasting mouse position and updating the part cframe as long as the player has its network ownership.