#Ok so here are some questions I have with remote event in roblox studio.

1 messages · Page 1 of 1 (latest)

muted silo
#
  • 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?
#

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?

nimble rune
#

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

muted silo
#

completely no point in it when I can do the same thing without using it.

nimble rune
#

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

muted silo
muted silo
muted silo
nimble rune
gritty acorn
simple bloom
#

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

nimble rune
#

if u want help just dont assume they dont work try to understand

muted silo
nimble rune
#

u saying that the most basic and important thing on rblx doesnt work

simple bloom
muted silo
nimble rune
muted silo
gritty acorn
simple bloom
gritty acorn
#

aka you cant without localscript

simple bloom
#

u cant use that service on the client side

gritty acorn
#

and if you broke roblox engine how would you get the player who did it

simple bloom
#

but even then

#

its not possible

muted silo
simple bloom
#

how would u do this

#

without remotes

#

lay out ur plan

#

and il explain where ur wrong

muted silo
#

Idk how keybinds work, idk how to code keybinds but I can code it with button pressed

simple bloom
#

it was a button

gritty acorn
#

aka people can just exploit

simple bloom
gritty acorn
simple bloom
#

still exploitable

muted silo
simple bloom
#

than ur plan

#

😹

gritty acorn
#

so i just change those int values and if you have a script that saves that to the database
you are cooked

muted silo
#

I don't need to code it to update my leaderstats it updates when the button is pressed

nimble rune
#

bro is this rage bait

simple bloom
muted silo
simple bloom
nimble rune
simple bloom
#

and are not laying the specificities of ur idea so we cannot correct u in a clear enough manner

nimble rune
#

if u need help just try to understand instead of assuming remote events doesnt work

muted silo
gritty acorn
#

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

simple bloom
#

lets see what u come up with

muted silo
#

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

simple bloom
#

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

nimble rune
#

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

simple bloom
#

isn't this possible? just not optimal

muted silo
#

done

#

I made it

gritty acorn
#

W

muted silo
#

I made it so when u click a button it gives u 1 coin

simple bloom
#

show

muted silo
#

Ok

simple bloom
#

lets see it

gritty acorn
#

So it updates the number in a gui text label?

nimble rune
gritty acorn
#

Therefore doesn't save to the player

simple bloom
muted silo
simple bloom
#

do that in a real game

simple bloom
#

and il assign myself inf coins

gritty acorn
#

Oh so you are doing the leaderstats way 😭

simple bloom
nimble rune
simple bloom
#

ts so easy to exploit a wave user could do it

muted silo
simple bloom
#

alot mor than that

nimble rune
#

idk did that a lot of time ago didnt know u can

muted silo
#

and how is this easily exploitable

simple bloom
#

since ur trusting the client

#

remotes help u to avoid that

#

by not explicitly letting them decide what is what

muted silo
simple bloom
#

does not matter

muted silo
#

that everyone cans ee his value

gritty acorn
# muted silo so remote events are to prevent exploiters?

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

simple bloom
#

in the end exploiters could target ur idea in two ways

simple bloom
#

if u end up trusting the leaderstats, they can assign any vlaue

muted silo
#

when I went to the server the value is still 0, why?

gritty acorn
#

Yea basically client side is all visible
Server is behind a big wall

And remote events are birds flying over it

simple bloom
nimble rune
muted silo
simple bloom
#

wait can u send us ur code

muted silo
simple bloom
#

dont remove comments or edit anything

simple bloom
#

be honest, are u using gpt?

nimble rune
muted silo
nimble rune
#

u cant

muted silo
#

oh

simple bloom
#

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

muted silo
#

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?

nimble rune
simple bloom
#

imma leave u with rocky, hopefully he can explain

gritty acorn
#

If you want to do it the actual way
Look up profile store by monzerdev
Or data store by gnome code

muted silo
gritty acorn
#

That's how you actually save data to a player

muted silo
gritty acorn
nimble rune
#

u can understand that in 3 minutes its basic scripting

muted silo
#

still clueless

#

they are pretty bad at explaining it

nimble rune
#

what havent u understood

muted silo
#

either that or I don't know 90% of what they are saying

gritty acorn
#

Follow one of the tutorials I suggested
Like profile store

Then play around with it, that's the only way to learn

simple bloom
gritty acorn
#

Profile store

muted silo
gritty acorn
#

Same creator aswel

muted silo
#

idk what u mean

simple bloom
#

not back

muted silo
#

if I make a button with remote events I can click it multiple times and boom the event went more than once

simple bloom
#

with an answer

simple bloom
#

its not two way

#

not back and forth

gritty acorn
#

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

nimble rune
#

bro i tried to help idk whats the issue there

#

idk if u still need help tell me

gritty acorn
simple bloom
muted silo
#

im ngl im still confused

gritty acorn
#

If the data doesn't come back you scripted getting the players data wrong

muted silo
#

but idk what questions to ask

muted silo
gritty acorn
#

You just gotta start basic with little projects

muted silo
#

im trying

simple bloom
muted silo
#

is remote event advanced?

simple bloom
#

not in teh slightest

muted silo
#

I am sure ik the basics

gritty acorn
#

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

nimble rune
gritty acorn
#

You'd learn it fast with a tutorial and some practice

muted silo
#

and memorize the script

#

Im not rlly learning, just memorizing.

simple bloom
#

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

muted silo
#

wish people can vc nowdays, just gives me more space to explain.

gritty acorn
nimble rune
#

@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

simple bloom
#

arguements are also where alot of people screw up

#

try not to pass amounts through them

#

like 999 to diamonds or something

nimble rune
#

i understood them pretty quickly they really useful

junior berryBOT
#

studio** You are now Level 8! **studio

nimble rune
simple bloom
#

because cheaters can just change it

#

before it reaches the server

nimble rune
#

oh

#

i often send strings or values

simple bloom
#

so communicate amounts through the remote itself

nimble rune
#

but its always from server to client

simple bloom
nimble rune
simple bloom
simple bloom
#

like make a specific remote for a specific function in your game

nimble rune
#

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

muted silo
#

can someone vc?

#

Explain through vc while I share

#

I assume not, and because of this I am still confused

#

"watch a tutorial"

nimble rune
#

now ill go to sleep but dont stress about argouments just learn remote event basics

muted silo
#

"go to a documentation" how about a face to face understanding of it

gaunt turtle
muted silo
gaunt turtle
#

Reading issues ig

muted silo
#

prick

#

if ur not here to help leave

gaunt turtle
#

What in the anger issues

muted silo
#

stop ragebaiting buddy

gaunt turtle
#

I ain’t

#

If you can’t read the doc I’m sorry for you, good luck.

#

Sincerely.

muted silo
#

anger issues? says reading issues and expects nothing back? Yeah ill punch someone in the face and they punch me back itsd anger issues?

muted silo
# gaunt turtle Sincerely.

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

gaunt turtle
#

lfie ?

muted silo
#

so sthu and imma ignore your ragebait now

gaunt turtle
#

Mkay

#

If you took the time to read the documentation, each single question you asked would be answered

muted silo
#

can someone go into a vc w me and explain?

muted silo
muted silo
muted silo
simple bloom
#

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

muted silo
#

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.

gritty acorn
#

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

gaunt turtle
muted silo
#

I’ll show you after school

gritty acorn
#

Alright just remember use player and select server I can show you how if need be

nimble rune
#

he should appreciate ur help

gritty acorn
gritty acorn
#

No think just grow

muted silo
#

Idk why they hate me.

#

They hate me cause they ain’t me

#

Shut up and nut up buddy

muted silo
junior berryBOT
#

studio** You are now Level 8! **studio

muted silo
#

But thank you for helping me and I hope I am not bothering you.

gritty acorn
#

Your at the start once you've put a bit more time you could be just as good if not better then me

muted silo
gritty acorn
#

but that sounds cool i hope it goes well

muted silo
#

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.

gritty acorn
#

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

#

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

muted silo
muted silo
muted silo
gritty acorn
#

its database but a library making it easier

#

and give it a try the script

muted silo
gaunt turtle
muted silo
#

Without remote events

gritty acorn
#

yes

muted silo
#

rq

#

so I can share

#

you don't have to talk or anything

gritty acorn
#

im with someone can you send the server script

muted silo
#

alr

gritty acorn
#

ill take your word for it because i think your using play here

#

which merges client and server

muted silo
#

script.Parent.MouseButton1Click:Connect(function()
game.Workspace.Part.Transparency = 1
end)

gritty acorn
#

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

muted silo
gritty acorn
#

Yes when you used "Play"

#

Do this and try

#

This emulates an actual Roblox game

muted silo
#

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

muted silo
# gritty acorn

I did that and it still shows for the server and the player no remote events

gritty acorn
#

Can you show that your server tab is open and it's printing in the output

muted silo
#

when the button is pressed it turns the part transparent for everyone, including the server and no remote events.

gritty acorn
#

You don't have to just show it's doing something like your part

muted silo
#

script.Parent.MouseButton1Click:Connect(function()
game.Workspace.Part.Transparency = 1
print("Part is transparent")
end)

gritty acorn
#

You can drag the server tab to the left half of your screen and the client to the rightht

gritty acorn
#

If your loading in correctly It will open a server experience and a client one

muted silo
#

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

gritty acorn
#

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

muted silo
gritty acorn
#

Just take a screen shot
Server instance on the left half
Client instance on the right

gritty acorn
#

Can you show me your test tab

muted silo
#

the test tab?

gritty acorn
muted silo
#

alr

gritty acorn
#

You can play in a few different ways

#

Just need to make sure your doing it in the correct way

muted silo
#

transparent after I clicked the button

#

I cans end a clip too

#

thats for the test one

#

bruh it didn't show both tabs there for some reason

#

are we on the same page here?

gritty acorn
#

And your using this

muted silo
gritty acorn
#

If so I'll have to test it

#

Shouldn't work but I'll double check

muted silo
#

if you're shy you don't needa talk

#

mute

#

just look at my share and ill explain

#

its a lot easier

gritty acorn
#

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

gritty acorn
#

Ofc

#

Free

muted silo
#

Fr?

gritty acorn
#

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

muted silo
#

i really appreciate that, I hope I am not a burden.

gritty acorn
#

Nono it's good to help cause I learn too

muted silo
#

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./

gritty acorn
#

Ill do my best to explain well then lol dw

muted silo
#

Lmk

#

Ty

muted silo
muted silo