- it lets me pass data from a server to a client?
- it lets me pass data from a client to the server?
- it lets me pass server data to all clients? what does this all mean? Whats an example of this?
- Whats the point of using remote events for lets say when I insert a local script and make it so when i press a button it turns a baseplate transparent for not just the client but for the server when I can just insert a server script into it?
#Ok so here are some questions I have with remote event in roblox studio.
1 messages · Page 1 of 1 (latest)
so since serverscripts can't access local player you use that with a remote event? But for the serverscript can't I get get the service of players? passing data from a client to the server what does that mean?
u use remote events to communicate server-client, passing data to all clients means that a data on the server will be sent to every player client, else if it was to one client it will send data to that specific client. the example u gave of remote event makes no sense because u dont need to use that in that case
idk i think a basic example would be: u have a button wich displays somethings on player gui when its clicked. U need to send data from server to client to do that
thank you but why can't I insert a server script? Why remote events when localscripts and server scripts are a thing? I can access the server just fine with a serverscript, are u saying if I wanted to access the server from a localscript because if so then ill just make it a server script lol,m I don't think roblox thought this one out.
completely no point in it when I can do the same thing without using it.
as i said remote events are needed to send data from server to client and client to server, u cant menage the same data on two different scripts, remote events are important to do a lot of things i suggest u to watch a tutorial
currently the game im making has a tons of things that work with remote events, basically everthing
i think u misenunderstood the concept of remote events, search up a tutorial
Want to see me make a button that turns a part diff colors for the entire server without using remote events?
I watched many tutorials, I see no point in it.
Never said remote events don't work, I said they aren't needed because I code everything a remote event can do.
ur mistaking its purpose
u dont need remote event for that
say you wanted to update the players coins when they click F
you would make the keybind system in localscript
it would then fire a remote event which by default carries the player who did it
then in server script you recieve the remote event
and can update their coins
u cant save data about a player client sided, so u must communicate with ur server to let them know what data to save
this is done thru remotes
if u want help just dont assume they dont work try to understand
Thank you, but want to see me code this without using remote events?
u saying that the most basic and important thing on rblx doesnt work
i promise u, you coudln't
Datastoreservice?
Watch me
so tell me how can u make something not exploitable without communicating server side to local
Well idk how keybinds work but maybe I can do it when a button is pressed?
the server cant pickup keypresses
lmao
aka you cant without localscript
u cant use that service on the client side
and if you broke roblox engine how would you get the player who did it
i think he meant client sided
but even then
its not possible
I can't make a UI button pressed that gives the player cash for both server and the player without local script?>
say you wanted to update the players coins when they click F
you would make the keybind system in localscript
it would then fire a remote event which by default carries the player who did it
then in server script you recieve the remote event
and can update their coins```
how would u do this
without remotes
lay out ur plan
and il explain where ur wrong
Idk how keybinds work, idk how to code keybinds but I can code it with button pressed
okay lets assume
it was a button
see the only way i can think to make that awful idea possible is have a local script update your leaderstats
then a serverscript that saves your leaderstats to your players data
but this is awful as trusting the client with data is how you end up with people having 10000000000 coins
aka people can just exploit
dont they just make those int values under the player these days?
yes they make a folder then create int values in the folder
still exploitable
a localscript update my leaderstats? what?
its more logical
than ur plan
😹
so i just change those int values and if you have a script that saves that to the database
you are cooked
I don't need to code it to update my leaderstats it updates when the button is pressed
bro is this rage bait
cant tell
No, why are you mad?
ur adamant ur correct
bro u cant be serious🥀 🥀
and are not laying the specificities of ur idea so we cannot correct u in a clear enough manner
if u need help just try to understand instead of assuming remote events doesnt work
idk what "specificities" means
if your being serious and want to know
local script is client
it handles things specific to the player like keypresses
remote events and functions is how the client and server communicate
server scripts and modules go in ServerScriptService and are much safter as a player cant just change values in the server
ye i know that
write a script and show me
lets see what u come up with
show u what
that I can code stuff without using remote events?
here imma just code sum rq and come back
idk if we are on ethe smae pager
code what @gritty acorn came up with a couple msg prior
remote events let the client tell the server when something happens like a button click, since the server can't see that, and the server handles the real stuff like giving coins or saving data, so the client doesn’t do anything exploitable.
the server cannot use userinputservice and the client cant use datastoreservice
or whatever u think it can
ye
an other thing u can do
make if that a player watches a part for 3 seconds that part get destroyed on the server
just to see what u do
isn't this possible? just not optimal
W
I made it so when u click a button it gives u 1 coin
show
Ok
lets see it
So it updates the number in a gui text label?
i have it in my game so if i watch a monster for seconds my sanity drain (wich happens on the server) and if i watch it for too long it disappears
Therefore doesn't save to the player
its still exploitable i thought u were trying to give an example of what is not possible
no it updates it to the leaderstat
do that in a real game
Watch Proof and millions of other Roblox Studio videos captured using Medal.
and il assign myself inf coins
Oh so you are doing the leaderstats way 😭
?
im not talking abt exploit, server cant see if a part is on player screen, am i wrong?
ts so easy to exploit a wave user could do it
they can
just not optimal
so remote events are to prevent exploiters?
alot mor than that
and how is this easily exploitable
i can assign any value to leaderstats
since ur trusting the client
remotes help u to avoid that
by not explicitly letting them decide what is what
its to the server too
does not matter
that everyone cans ee his value
So using infinite yield
There's something called remote spy
When you click your button it would pick that up as it's client sided
So I could while true loop that
Getting infinite coins
Or
I could just change the value of my coins to 1 billion and it would save
in the end exploiters could target ur idea in two ways
wait
I think I see
if u end up trusting the leaderstats, they can assign any vlaue
when I went to the server the value is still 0, why?
Yea basically client side is all visible
Server is behind a big wall
And remote events are birds flying over it
bc u did it incorrectly
u gave urself the answer
oh
wait can u send us ur code
can't I make a button with a serverscript that gives plays coins when they click it?
dont remove comments or edit anything
no
be honest, are u using gpt?
bro playergui is not server side
no
u cant
oh
if so let it know in what context ur generating teh script in, like tell it if i need a server script or a local one
im not using gpt
if u think im trynna waste ur time ur wrong
I am literally trynna seek answers
Do people actually do that?
do what
imma leave u with rocky, hopefully he can explain
If you want to do it the actual way
Look up profile store by monzerdev
Or data store by gnome code
the only way I can send it to the server is with remote events?
That's how you actually save data to a player
well, I have completely no idea how to do that
Events and functions
Events go once
Functions go and return data back
as i said before just watch a 10 minute tutorial
u can understand that in 3 minutes its basic scripting
I did
still clueless
they are pretty bad at explaining it
what havent u understood
either that or I don't know 90% of what they are saying
Follow one of the tutorials I suggested
Like profile store
Then play around with it, that's the only way to learn
there is two right? profilestore and profileservice, which is the latest?
Profile store
wdym "go once"? I can make a event and I use it multiple times and its more than once
Same creator aswel
idk what u mean
they serve the purpose of sending data to each other
not back
if I make a button with remote events I can click it multiple times and boom the event went more than once
with an answer
lmao
bro
So say I want to do the keybinds to wipe a players data when they click T
The player clicks T
It fires to the server carrying which player did it
That's remote events
Remote function say you wanted to update your gui with how many coins a player has
You can tell it go to a server script
Get the player.coins data
And return it back to me in the client
The difference is it goes there
Then thats it
It doesn't come back
the reason this must be done on the client is because u cannot check if the player clicks t on the server ( for the cow dude )
what the data doesn't come back?
im ngl im still confused
If the data doesn't come back you scripted getting the players data wrong
but idk what questions to ask
ohh for datastore service
You just gotta start basic with little projects
im trying
there are remotes, but different types of remotes, one to send data to each other and one that take info and return an answer back to each other
is remote event advanced?
not in teh slightest
I am sure ik the basics
Yeah I use remote functions when I want to update my GUI
As it can get data AND return it
I would need two remote functions to be able to do that
no its basic
You'd learn it fast with a tutorial and some practice
I do a tutorial, and if I practice I just copy what he showed.
and memorize the script
Im not rlly learning, just memorizing.
its not that u cannot communicate between the client and server without remotes but its messy and u r likely not using something for its intended purpose
wish people can vc nowdays, just gives me more space to explain.
I copied down what he wrote line by line
Then I wrote my own functions interacting with it
Or tried to figure out how to make the client speak to it
@muted silo btw in the future its important to pass arguments too, u can make a remote event do multiple things based on the passed argument, my game is based on that so just start learning the basics now then u will see how and when u need to use them
arguements are also where alot of people screw up
try not to pass amounts through them
like 999 to diamonds or something
i understood them pretty quickly they really useful
** You are now Level 8! **
why btw?
so communicate amounts through the remote itself
but its always from server to client
try not to, or do sanity checks
what should i pass
they can also manipulate what teh server sends to the client but its rarely useful
try to base logic off the name of the remote
like make a specific remote for a specific function in your game
like for example in my game i have just one remotevent that manages a text pop up, if i pick an item, the argoument passed is example: “pickup” and on client the text will be “player picked up itemname” if i drop an item the argoument is “drop” and the text will be “the player dropped itemname”
thats basically how i use them
passing arguements you mean like from where to where?
can someone vc?
Explain through vc while I share
I assume not, and because of this I am still confused
"watch a tutorial"
now ill go to sleep but dont stress about argouments just learn remote event basics
"go to a documentation" how about a face to face understanding of it
alr
I have no clue what anything there is saying
Reading issues ig
What in the anger issues
stop ragebaiting buddy
anger issues? says reading issues and expects nothing back? Yeah ill punch someone in the face and they punch me back itsd anger issues?
I doubt you're trying to help, if you don't have the time to sit down and explain then get offensive then you really need to rethink your lfie
lfie ?
so sthu and imma ignore your ragebait now
Mkay
If you took the time to read the documentation, each single question you asked would be answered
can someone go into a vc w me and explain?
I just inserted a script into a textbutton and used that script to change a part transparency when its pressed and its server sided no remote events
I just inserted a script into a textbutton and used that script to change a part transparency when its pressed and its server sided no remote events
I just inserted a script into a textbutton and used that script to change a part transparency when its pressed and its server sided no remote events
lmao
how old are you
what we said went right over your head
we never said that is not possible, heck that is not even related to what we said
I said that because idk if chatgpt is trippin or not but i told him that and he thinks im not supposed to be able to do that so I went to you guys.
Can you show me your script
You can do that with a localscript
You can't do that with a server script
As playergui doesn't exist in server only client
Make sure when testing you use "play" and "server" in the drop-down not "play solo"
Studio is a testing environment meaning if you use play here it blurs the lines between server and client
Purely for testing so you can mess around without needing the proper architecture
So your script might work using play here
But as soon as you use a realistic environment it will break
And that's simply because GUI is client specific
Must be young
I did it with a server script
I’ll show you after school
Alright just remember use player and select server I can show you how if need be
bro why u losing time with this guy
he should appreciate ur help
In the end maybe be will go off and make the next grow a garden and he can say
All cuz of this dude 🙌🏻
why is that game so popular
Prolly cause it's simple, it's like the tiktok of games bro
No think just grow
I do.
Idk why they hate me.
They hate me cause they ain’t me
Shut up and nut up buddy
I really do appreciate you, I usually say thank you once we finish
** You are now Level 8! **
But thank you for helping me and I hope I am not bothering you.
Your not
I just want to help you see what we're on about
Your at the start once you've put a bit more time you could be just as good if not better then me
I’m actually thinking on working on a big game, I got my own team too and we’re all learning. I have plans for advertising and different ways to make money and I am very confident in this.
i highly suggest you first mess around before trying something big and complex or you might burn out
but that sounds cool i hope it goes well
I know
I’m going to be making small games first
Then after my team and I are confident and experienced we will start maiming a game and I will sponsor it.
So to these mf who wanna hate on me for asking questions watch me.
to learn the basics how about this
put a sphere part in studio
learn profile store from loleris
when you touch the ball it adds a +1 to your "Balls" count in leaderstats and in their actual player data
then make a little gui and learn how to plug it into gui
then you can mess around with adding more balls
spawning in the balls from replicated or server storage
adding properties to the balls like prices
Today we look at a new library for easily saving player data inside of Roblox! The Profile Store library is created by the same developer of the Profile Service library, which we've used for saving our player data for so long.
Subscribe for more Roblox development tutorials!
Profile Store Dev Forum post:
https://devforum.roblox.com/t/profilesto...
genuinly watch this tutorial, spend an hour or two a day
youll have no problem doing this
you can ask me any questions along the way
up to you yho
just enjoy yourself
I'm home from school if you wanna see my script coding in the UI
is this datastore service?
Also ty
profile store
its database but a library making it easier
and give it a try the script
alr, I will later
"I’ll let you know when I’m free 🤥" ahh
also want to see my proof I made a part transparent for the server with a UI button press?
Without remote events
yes
go ahead
alr, vc?
rq
so I can share
you don't have to talk or anything
im with someone can you send the server script
alr
ill take your word for it because i think your using play here
which merges client and server
script.Parent.MouseButton1Click:Connect(function()
game.Workspace.Part.Transparency = 1
end)
so let me show you the reason
i ran it using a server and client this splits server and client how an actual game experience would
now it wont work
but if you just load in using "Play" or "Play here" it will work
i just have it print something
@muted silo
this is all because on client theres something called "PlayerGui"
it cant be accessed on the server
ill show you how to do it properly so you can use the method
local button = script.Parent -- just references the button
local ReplicatedStorage = game:GetService("ReplicatedStorage") -- we get replicated storage to get our remote event
local remote = ReplicatedStorage:WaitForChild("ButtonClicked") -- we get our remote event
button.MouseButton1Click:Connect(function()
print("Button clicked, firing to server")
remote:FireServer() -- this is how you fire to server using the remote event
end)
so this is the localscript i place it inside the button
in ReplicatedStorage we use a "Remote Event"
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remote = ReplicatedStorage:WaitForChild("ButtonClicked")
remote.OnServerEvent:Connect(function(player)
print(player.Name .. " clicked the button!")
end)
then this is the server script inside serverscriptservice
it just gets the fire front the client
now it works on a realistic experience like in an actual roblox game where client and server is seperated
this is the server view
My part was accessed by the server not just the client
kk
wait
so why would the server side say it loads for the server?
is it a bug?
yep
it works
I did it and I look at the server it turns transparent
I did that and it still shows for the server and the player no remote events
Can you show that your server tab is open and it's printing in the output
when the button is pressed it turns the part transparent for everyone, including the server and no remote events.
like printing too?
You don't have to just show it's doing something like your part
script.Parent.MouseButton1Click:Connect(function()
game.Workspace.Part.Transparency = 1
print("Part is transparent")
end)
You can drag the server tab to the left half of your screen and the client to the rightht
Ok
If your loading in correctly It will open a server experience and a client one
yeah
ik
im telling you I coded a UI button when its pressed the part turns transparent for both the server and the client
Thats normal.
Right?
no remote events
If you've made a server script
And loaded in correctly how I've said
If you can still get the gui button to work then you win
But you have to show you've loaded in correctly
I have a server script yes
Ok how? want me to just clip it
Just take a screen shot
Server instance on the left half
Client instance on the right
Watch Roblox Studio and millions of other Roblox Studio videos captured using Medal.
Code in the server script
Can you show me your test tab
This one
alr
You can play in a few different ways
Just need to make sure your doing it in the correct way
transparent after I clicked the button
I cans end a clip too
Watch Roblox Studio and millions of other Roblox Studio videos captured using Medal.
thats for the test one
bruh it didn't show both tabs there for some reason
are we on the same page here?
yes
dawg, can we just head to a vc and ill share
if you're shy you don't needa talk
mute
just look at my share and ill explain
its a lot easier
I'm watching a movie with my friend
How about this, add me and we can vc and talk at some point and I can run you through some basics
For free, right?
Fr?
Yeah I can show you how to start and you can go from there
It wouldn't take all that long and you can ask any questions
Tysm
i really appreciate that, I hope I am not a burden.
Nono it's good to help cause I learn too
I have some bad ADHD so Its hard for me to focus.
like its not terrible but sometimes I might have u repeat or I am just confused because I have no clue of the words you are saying Lol./
Ill do my best to explain well then lol dw
were u just on saber showdown
You done?