How should i go about making a throwable item

I’m trying to figure out the cleanest way to make a throwable item, i would just use a remoteEvent but it gets kinda delayed after being parented to the server before it lets physics starting acting on it.

So how should i go about making a throwable item?

Should I create Seperate throwables for both local script and server script or what?

I’m kind of stumped.

i think you need to set network ownership to a player.

i don’t want to go into details, but this should work for you i believe

1 Like

i think u should have the client simulate the throwable while the server handles the hitbox.

the client could simulate the trajectory and motion of the item as soon as the player throws it. that would help the throw feel responsive and smooth. however, the server should still handle collisions, damage, etc.

2 Likes

you don’t have to go into detail but i just want to know how that would work? and would i use it within a server script?

i found a devforum post and this could definitely work! but i do want to know, if you set the network owership in a local script, would it still work?

No you can only do it in a server script

1 Like

yeah, network ownership is supposed to be assigned on server side. the function simply forces a specific player to calculate physics (it’s server’s work by default, replication causes latency. and when player’s character nearby in some cases). it’s really written in their documentation

1 Like

got it, thanks! this is exactly what I’ve been looking for!

just set it up in the server script.