Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is there ANY way to pass objects from the client to the server with Filtering Enabled?

I just noticed that a lot of the Roblox stock weapons, such as the Rocket Launcher, don't work with Filtering Enabled. I think it may have something to do with Humanoid.TargetPoint not updating properly when Filtering is on, so I'm trying to find a way around this, but the only thing I can think of is using Mouse.Hit. The problem with that is that it's only available on the client, and if you try to pass it though a remote event with something like this

game.Workspace.Event:FireServer(Mouse.Hit)

It comes out nil on the server side. Is there ANY way I can access this information on the server?

1 answer

✓ Accepted answer

Pass in the arguments you need.

game.Workspace.Event:FireServer(Mouse.Hit.p)

That will for sure go through. Oh and as far as I know, you cannot pass objects.

2 comments

0

I've tried that. It hasn't worked before. I'll try again and get back to you.

0

I stand corrected, I must have been doing it wrong before. Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.