#Script in Server or Client

23 messages · Page 1 of 1 (latest)

polar scaffold
#

I want to have a script that checks every runtime frame/heartbeat if the player is in a certain area, then print a message when he enters. I have the script ready, however I don't know if it'd be better running it on the server or on the client (then firing a server event). Btw I need the info on the server.

#

Also if you answer please try to bring proof as I do not accept "Trust me bro"

marsh saffron
#

clinet tellll

runic lynx
#

if its a change that affects gameplay you should do it on the server since exploiters can just fire the remote event whenever they want.

#

If its aesthetic you could do it on the client but it may affect performance a bit

polar scaffold
polar scaffold
#

i think byteblox's

#

I think I'll do it client sided with an event then the server does an extra check only when he gets the event

runic lynx
#

Sounds good but

#

Isnt that double the checks?

polar scaffold
#

No like if there's an exploiter

#

He sends an event to the server when he isn't in the area

runic lynx
#

Ik i mean like

polar scaffold
#

But then the server checks if he is there

runic lynx
#

Wouldnt that be two checks for the same thing? Seems pointless to run it on the client

polar scaffold
#

You know what

nimble wadiBOT
#

studio** You are now Level 3! **studio

runic lynx
#

And if the player is lagging zone updates may be

polar scaffold
#

Ill run it on the server then see the amount of lag it adds

runic lynx