"Corrupted" Script Issue

I have been having this weird issue that when I clone a tool, it no longer works. The script is just a normal bat script and whenever I put it in the starter pack, it works fine. But when I clone the bat into the players backpack. The bat doesn’t work. Any ideas why?

I honestly don’t know. The tool doesn’t work at all? I’ve had this problem before, the only solutions
I can suggest are restarting studio and/or duplicating the ROBLOX place and try again.

Literally? We should really somehow contact roblox in some way. So I have to restart? Yeah I mean the tool like equips but the script itself just doesn’t do anything. Its the exact same but it does not work.

Are you sure it isn’t the script itself? Make sure to check output.

No ik its not the script m8. The script changes 0%. Literally just don’t work.

Very strange. At this point all I can say is what I said earlier, try saving the place as a file, reopening it, then re-uploading it to ROBLOX.

Yup that’s what ima do. But fr like take a model, and try it out for yourself. Really weird glitch.

OOOH I SEE THE ISSUE! IT WAS A MOUSEBUTTON1CLICK FROM A LOCAL SCRIPT! NONE OF THE SERVER SCRIPTS WOULD WORK BECAUSE THEIR CREATOR WAS A LOCAL SCRIPT!! But how would I make my script into a normal script…

You gotta use remoteevents for the server listening to the player’s input but i think MOusebutton1click also works on the serverscript

Yeah so how would I find the player though?

MouseButton1Click does not work on server scripts. Mouse events are client-based input, the server has no concept of a mouse - and MouseButton1Click is only for… GuiObjects.

Tools have an Activated event though, which the server can listen on. The input is replicated by the engine internally so when the player activates the tool, the server will know with this signal.

1 Like

How can I make it fire from a server script and find the player on clicked??

Activated is an RBXScriptSignal. You don’t make it fire, it’s something you create a connection to so that your code can listen to when the signal is fired and perform some kind of action. Some signals are fired internally. Activated is fired internally by the engine when the client passes LMB input unless ManualActivationOnly is off, which then you need to call Activate.

But how can I do the same as a mousebutton1click in a server script.

I’ve been explaining that this entire time. Please read through my responses. I also encourage you to do a bit of research on the Developer Hub to see more API members that you can work with and perform a few tests of your own. I can’t spoon feed you the answer here.

I’m reading your stuff and its not helping. Please just say what the equivalent is.

You’ve been given the solution in this reply. PLEASE read it carefully, this quote will especially help:

Ciao!

Simply change MouseButton1Click to Activated, they are both connections so all you need to do is replace it.

1 Like