Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Is it safe to (un)equip tools locally?

Asked by 3 years ago

I know tool equipping replicates, so if I were to equip a tool on a localscript then the server would also see this occurring. My question is more related to whether this is okay to do? Or should I make sure to do this on the server only?

2 answers

Log in to vote
0
Answered by 3 years ago

I think it's better to do it via a server script, as scripts in tools usually stop working when they are copied using a local script. Putting a server script in StarterCharacter should be just fine.

0
I'm not sure I understand the answer. I'm not copying tools, this is just a way to handle (un)equipping tools since I've disabled the backpack. radiant_Light203 1166 — 3y
Ad
Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
3 years ago

equipping tools on client is possible, if you equip tools on client it will not replicate to server except you use inventory (click on tools gui) or press keys (1,2,3)

but if you want to do that, then what happens will only happen on yourself, remote event will help to transfer data between server and client

0
Are you certain it doesn't replicate? Connecting ChildAdded in a serverscript to the player's character seems to run whenever I equip locally; ergo I am equipping it serverside. radiant_Light203 1166 — 3y
0
if im not wrong it won't Xapelize 2658 — 3y

Answer this question