#What are the proper practices to using bindable functions in a game?

1 messages · Page 1 of 1 (latest)

bright gorge
#

I need to use server-sided bindable's for various functions, but dont wanna get caught lacking my exploiters, what do i do?

timid gulch
#

What do you want to do exactly that u need to use them?

bright gorge
#

im trying to use them for events for picking up items, generating the map, etc

#

And i need to ensure players cannot do that

timid gulch
#

I mean u could use remote events instead to be safe

#

Also why'd you need a bendable event for picking up items and generating a map

bright gorge
#

i need server scripts to communicate with eachother

#

as opposed to client scripts

#

also the pick up mechanic isnt really player based

#

so i cant rely on using client scripts

bronze bloom
#

If you use a bindable function and a server script fires it, clients can't see or manipulate it. Same with the other side, server cannot see what the client does with that bindable function

bright gorge
#

ohh so as long as i dont use it on the client its perfectly safe?

bronze bloom
#

Yes and even if you do use it on the client the server can't even see that request

bright gorge
#

omg tysm this is huge to me!!!

bronze bloom
#

Np

rich moth
#

is there an actual use for bindable events/functions just kinda just seems like a bandaid fix for bad script architecture?

desert tangle
upper fulcrum
#

ofcourse with small delays

#

but its better than just guessin

rich moth
#

would you not just use module scripts tho?

upper fulcrum
rich moth
#

maybe im missing something

upper fulcrum
#

also they are unsafe they can be used to ddos your game

#

so you need to have ddos protections

#

suphi module has like built in ddos protection, so I use that when I need infromation from the client, within like a deadline

rich moth
#

ddos would just apply to remote event/fucntions no?

upper fulcrum
#

yup packet

upper fulcrum
#

I confused the two

#

but ye,

rich moth
#

yea I understand remote functions thats fine but bindabale functions I dunno bro

upper fulcrum
rich moth
#

like with modules you:
1.dont need to set uo listeners
2.dont need to use instances in ur explorer
3. cleaner flow of code

rich moth
upper fulcrum
#

sometimes it'll be much more cleaner to just use a bindable remote/ funciton

#

or less of a hassle

desert tangle
#

something with boolean

#

i forget

upper fulcrum
rich moth
upper fulcrum
#

and you want listeners for it

#

but then signal modules are just much better for that ngl

rich moth
#

yea fair

upper fulcrum
#

tbh after singal modules I literally only used bindable event just once and it was a bandaid fix as you said

#

signal are just more cleaner and are gc'ed automatically

#

and faster too

#

with bindable remotes however you are going to have to manually delete them, destroy their connections etc

#

which is a huge hassle ngl, even if you use a maid

desert tangle
#

i use trove

upper fulcrum
#

I'm not sure, maid does a fine job for me so I didn't look for other alternatives

rich moth
#

speaking of trove when you clean up a table using trove i assume you still have to set it to nil after you have called its destroy function right? only just started using trove

upper fulcrum
#

but all maid modules just do is destroy things

#

whether its connections

#

objects

#

etc

timid gulch