#FireClient Not Working
159 messages · Page 1 of 1 (latest)
Wheres the part where you connect the function to the event
because it isnt doing anything in the function
How do I add that? for now I just want it to print "Prestige has been triggered"
prestigeEvent.OnServerEvent:Connect()
i dont know @plush garden will
this works 100% I tried to put "PrestigeEvent" in "Prestiged" to listen for a different RemoteEvent and it printed "Prestige has been triggered"
Wait what are all those rngrewards
Which instance
Show your whole script buddy
Also WaitForChild() on the server is horrible man
That's for after I get the print to work
Especially when you put THAT many
I just need this to actually fire off "Prestiged" RemoteEvent which it doesn't idk why
huh?
I asked which instance they are
You have so much waitforchild
They have no purpose yet I'll show
Show your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddyShow your whole script buddy
thnanks
To big for discord
THEY ARE REMOTE EVENTS???
This script works completely fine, It just never receives the signal for Prestiged
its gonna be 6 completely seperate scripts with dif functions entirely, if I put it all in 1 it would be like 1000 lines long
wheres the script
Make it shorter
And better
Don’t go off of one idea
Try to find better solutions
@wraith warren where is the script located
^ use print debugging
RNG1 = Spawn random items on the map to collect
RNG2 = Unluck autobuyer
RNG3 = Unluck Autobuyer 2
RNG4 = Unluck 2nd RNG Button u can press
etc
its dif scripts for each reward it would be to long if i put it all in one
shut the fuck up
You can literally make this in a script
can we fix ur script
Instead of making a remote event
ServerScriptService both of them
^^^^^^^^^
Bro your fucking stupid
Youre using fireclient
the other script isnt a local script
this is the only thing that needs fixing though, "FireClient" isn't making Prestiged RemoteEvent happen
You’re*
!!
If you fireclient you need to connect to onclientevent
thats correct
in a localscript
wait no
its a remote event
HOW THE F- DID YOU GET ONSERVEREVENT ON A SERVER SCRIPT
it goes fro,m server to client or client to server
I swear 😭😭
We need a scripting reset
These roles are NOT assigned correctly
How long have u been scripting?
** You are now Level 4! **
1 to 2 years
That cannot be true
Its breaking when I change it to that
because they are both server scripts
Then how u dont know how remote events work.
you cant use on client event in a server script
What am I meant to change?
dawg look i am an idiot today. yk what i said at school?
Why is it so hard to make this work, I just need the Prestige Script to activate Prestiged event once
then I can finish making the rest, the rest is basically done
Its not that hard
Why does this part not send a signal to Prestiged
guys also look this is out of topic but
yk what i won't say it
it is not my problem in this post
it is her-his
bc ur making the script end before the ur firing it
this works, it will print that when I prestige now
is the other script that's catching the ping a local script
its just a normal script under ServerScriptService
Its meant to trigger this, so my 2nd script can run
their both serverscripts?
Yeah
then use bindable events
remote events contact client- server or server- client
bindable envents contact server - server or client - client
idk how bindable events work though, It would be 1000x easier for me if Remote event just worked how its meant too
Since I've already used RemoteEvents before and there easy to understand, just for some reason this one does not want to work
bro remote events doesnt have that purpose
local = client
script = server
you're pinging the client then catching it on the server???
Why though, if I could make this trigger Prestiged I could easily build on the code endlessly without any issue
ye but its not the purpose
and I don't have to worry about messing up old code since I'm in new code
anyway i still prefer modules instead of bindableevents
That's what doesn't make any sense at all, this is what happens if I change it to FireServer
...
change the other script
to localllllll
you're pinging the client
not the server 😭
Why in god’s name do you need 6 REs for this? This is why REs have params
Why are you listening for OnServerEvent in a local script?
Use bindable events bruh
Cause every single RNGReward is basically a brand new game you unlock
Its not meant to work like that
REMOTE event
But it can work like that? all I need is for my other script to pick up the Prestiged Signal
I’m just confused at what he’s even trying to do
Why are you so hard to help
Bro last brain cells are gone
Use bindable events
this worked though, for every R1-5 button clicked
end of story
Yah man im sure thats a remote event thats sending data from server-server
Then where do I place this script? or can I make it differently? this is just a bridge to send more RemoteEvents
OnLocalEvent ??
You’re just making stuff up now
It works now ty, I made the 2nd script a Local Script and put it under StarterPlayerScripts
🤦♂️
Im not tryna be mean but I dont think u should be doing this stuff only 7 days in
Now to wait for 1 injector to easily hijack your RE and cheat the entire thing
Eh, not my problem
This was my only roadblock so far though
Genuinely hope you quit scripting
Now I can easily make simple code again
Amen
Ye well u dont understand what ur doing
