#Button Clicking and respawning script

1 messages · Page 1 of 1 (latest)

granite berry
#

I have this script, where it spawns in buttons from a folder in replicated storage, and places them at spawn parts (parts in a folder in workspace). It also manages the clicking and the disapearing of the buttons and stuff.

BUT, the main problem is that the buttons originally spawn on the map, but after i click on them, they get destroyed and are respawned. instead of being respawned on the map tho, they get respawned like 500 studs under.

I cant find the cause for this, and would appreciate advice. Heres the script:

(trying to fix it for hours, help needed 🙏 )

granite berry
#

Anyone know how to fix this?

karmic vault
#

@granite berry make sure the button is anchored after spawning

granite berry
#

Ok, it spans 500 studs under the map, but is just floating in the air, doesn’t that mean it’s anchored

tired viperBOT
#

studio** You are now Level 5! **studio

karmic vault
granite berry
#

Ohh

#

Does the one I clicked go there, and the respawned one elsewhere

karmic vault
#

Idk why you have that much code

#

Just clone a button and place it somewhere and anchor

#

Thats it

tardy socket
karmic vault
granite berry
granite berry
#

@karmic vault ?

granite berry
#

Couple you explain it to me, and how to fix it?

karmic vault
#

I would scrap the code

granite berry
#

Is it that bad

karmic vault
#

Ya

granite berry
# karmic vault Ya

Bru, can I pay you a small amount to fix it then, because if this didn’t work,I dunno if I can make a working one

vernal nacelle
#

You got like 200 lines just for this??

granite berry