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

How do i make FireServer() but only for one player?

Hello, I am using a module to detect the players ViewportSize. As you can only detect it on a local script.

So I need the local script to fire a remote event to the server script but it fires to all the players.

Help would be appreciated.

4 comments

0

Are you indexing player variable like 'OnServerEvent:Connect(function(player)'.

0

I just need the server to get the player that fired it and not to replicate to the whole server

0

The server cannot index 1 player, you should consider using :FireClient(--your name) This only does it for a client!

0

Alright i understand but the module i am using is on a server

2 answers

You use FireClient() use it on a normal script then boom your done!

2 comments

0

I can't as i am firing it on a local script

0

ohh

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