#help for Simple script
79 messages · Page 1 of 1 (latest)
but it already gets set here
and it gets definitly set
but its nil for the script
whats the problem?
the problem is the adornee ive set on a serverscript is nil for the locale script somehow
so the adornee isnt there for the client?
it definitly is but if i print it out in the script it says nil
** You are now Level 1! **
@bright aurora
@graceful steppe you helped a lot of people. do you know whats the problem here?
idk try debugging, check what button.Parent is here
its the surfaceGui
can u show where ur printing
remove the first parameter in FireServer
events automatically sends player as the first so what you put in the parameters becomes the second
it still doesnt change anything
u tested?
** You are now Level 3! **
it will, you're sending player and nil cause player isn't defined
why is that so
roblox security
and what do i have to do in the serverscript where the player and the other argument is inside
or else clients could spoof other players as their player
and what do i have to do
when sending events from client -> server, it automatically adds the player as the first parameter
nothing
just remove the player parameter in the local script
but then it says first parameter is missing
?
show the mainscript
** You are now Level 2! **
^
here
where are u connecting to this event?
yh
the function can only get activated once
print player and buttonname
strange error
this just seems like a common indexing error
print every step and see where you fall short of and try debugging
player works the other thing is still nil
how to debugg
using logical sense
i found the problem right there where its nil because when i look in the explorer the adornee gets definitly changed
but i dont know what to do
how are you setting Button.Parent.Adornee bec thats obv nil
i dont know that
but how do I make it take the input of the Adornee then
the screenGui
and how r u setting it's adornee?
um i meant the surfaceGui sorry
its nothing
but the other script changes it
and its working because the surface Gui is visible
so that might be ur problem then?
I dont think so because it gets set by a other script which is executed earlier
u sure its executing earlier?
yes
** You are now Level 3! **
its that: one button when you click it the first part gets executed which enables and clones the second one which gets the adornee
when you click the second one it says nil
can u send both scripts here
enables and clones the second one?
it is already in here
.