Destroying a part in a model from a Local Script Click Detector(PAYING 200 ROBUX)

It would be simpler if you just provided your model structure :smile:

1 Like

Screenshot 2023-11-08 at 6.21.01 PM
this is what the rep storage and server script service look like, the script in there handles spawning only 1 random of the 4 models.
in the each model it has the same parts with different names when you click it it should just simply destroy for the local player who clicked it. im having trouble with the client side.

1 Like

all i want is 1 local script handling loottools1 - 4 and finding the right model in workspace. I also want each part to be destroyed after its clicked.

1 Like

I’m gonna skim over this, a little bit. Are the parts actually inside of workspace so that the clients can click on it?

1 Like

no they are all in 1 of the 4 ranodm models.

1 Like

I’m saying if the models are parented to the workspace.

1 Like

no they are in rep storage one randomly spawns into workspace.

1 Like

Okay so you can confirm that they go to the workspace. Great. Is the issue that when players click on it, nothing happens for them? (the local script isn’t working?)

2 Likes

This may actually be because when the script starts up, it’s setting up connections while the parts are still inside replicatedStorage.

i honestly dont know what the error is but if you can fix it ill pay u the 200 robux.

Honestly brother, your best bet is for you to let me into the game on studio by allowing me access to the place and try to perform a fix. Or someone else.

the link to the game it up at the top of the post.

I don’t like downloading files. Rather, can you give me access to the game using Team Create on your current place or create a separate one ?

its an rbx file dude ur call to download it or not.

Your best bet here, is to when one of the random parts spawn you fire all clients, and pass through that part as a paramenter, then connect the mouse click connections to that part you receive from the server.

Possibly put the script inside of “StarterGui” and edit the script so it can find the part.

This is probably the worst thing somebody said in this post, I am currently working on it and will post the script in a second

1 Like

It works for me, I really don’t know what do you mean

if it works then send me the code, ill pay u.

no nvm, doesn’t work with clickdetector lol, I guess try firing remoteevents