#try to index enabled with nil

1 messages · Page 1 of 1 (latest)

opal folio
#

So basically whenever i try to change the enabled value of a prox, on the cilent it becomes nil
Needed script: local prox = copy:WaitForChild("Buy")
local prox2 = copy:WaitForChild("Sell")
local prox3 = copy:WaitForChild("Steal")
prox.Enabled = false
prox2.Enabled = false
prox3.Enabled = true
BuyEvent:FireClient(plr,prox2)
stealEvent:FireClient(plr,prox3)

Then i use a OnCilentEvent and it returns nil but on the server it is a prox

ornate ledge
#

Can we see what your client event script looks like

regal burrow
#

U cant set prox enabled on client

#

Just do it on the server

opal folio
opal folio
#

Nvm it got fixed by itself

#

bro it is only happening in the player now

ornate ledge
#

is it possible that these proximity prompts are being destroyed by another script? what is the purpose of these proximity prompts?

ornate ledge
opal folio
#

in studio it's going well as intended

#

i checked like 20

#

times

#

in studio

#

and 5 times in player

ornate ledge
#

hmmm, do you want to inv me to team create ?

chrome minnow
#

i.e you need some form of waitforchild for the cloned instance and there are bunch of different ways to do it, e.g childadded or collectionservice etc

opal folio