Trying to make a spawn part button, didnt work! Can someone correct at my script?

Hello! Im a beginner scripter and im trying to make a button that can spawn parts when clicked. But it didn’t do anything at all. Can someone take a look at my script and tell me the issue? Thanks!

1 Like

your script works but the part is at 0, 0, 0 so it’s inside the baseplate, just change the position to something higher

1 Like

omg thank you so much!! i didnt even notice that lol

But what if i want to spawn parts only on a client’s view. Like other clients will not be seeing the parts that I spawned. How should I make it work?

put the server logic in the local script