#help for Simple script

79 messages · Page 1 of 1 (latest)

still hull
#

try Button.Parent.Adronee = (whatever youre making the adornee)

#

@stark cipher

stark cipher
#

but it already gets set here

#

and it gets definitly set

#

but its nil for the script

bright aurora
stark cipher
#

the problem is the adornee ive set on a serverscript is nil for the locale script somehow

bright aurora
stark cipher
frail juncoBOT
#

studio** You are now Level 1! **studio

stark cipher
#

@bright aurora

#

@graceful steppe you helped a lot of people. do you know whats the problem here?

bright aurora
stark cipher
bright aurora
stark cipher
graceful steppe
#

events automatically sends player as the first so what you put in the parameters becomes the second

stark cipher
bright aurora
frail juncoBOT
#

studio** You are now Level 3! **studio

graceful steppe
stark cipher
#

why is that so

graceful steppe
#

roblox security

stark cipher
#

and what do i have to do in the serverscript where the player and the other argument is inside

graceful steppe
#

or else clients could spoof other players as their player

stark cipher
bright aurora
#

when sending events from client -> server, it automatically adds the player as the first parameter

graceful steppe
#

nothing

bright aurora
stark cipher
#

but then it says first parameter is missing

stark cipher
#

Argument*

bright aurora
stark cipher
#

ill send you everything thats involved

frail juncoBOT
#

studio** You are now Level 2! **studio

bright aurora
stark cipher
stark cipher
bright aurora
stark cipher
graceful steppe
#

script is kinda messy

#

i see a while true loop inside of a function

stark cipher
#

yh

stark cipher
bright aurora
bright aurora
graceful steppe
#

this just seems like a common indexing error

#

print every step and see where you fall short of and try debugging

stark cipher
graceful steppe
stark cipher
#

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

bright aurora
stark cipher
#

i dont know that

stark cipher
bright aurora
#

what's Button.Parent

stark cipher
#

the screenGui

bright aurora
#

and how r u setting it's adornee?

stark cipher
#

um i meant the surfaceGui sorry

stark cipher
#

but the other script changes it

#

and its working because the surface Gui is visible

bright aurora
stark cipher
bright aurora
stark cipher
#

yes

frail juncoBOT
#

studio** You are now Level 3! **studio

stark cipher
#

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

bright aurora
#

enables and clones the second one?

stark cipher
stark cipher