Skip down if you don’t care about how I half-figured it out. I’m probably too talkative but ahhh.
(ALSO IF I SOUND CONFUSING, JUST TELL ME AND ILL TRY AND EXPLAIN THE PART BETTER)
Someone else probably has a better way of doing this but if it was me, I’d make a RemoteEvent
in ReplicatedStorage.
Name it “ToolSignal” (Remote Functions and Events)
Alongside in the HandTo System
, just make sure locations are correct and you have this line now.
Now that you can actually edit in the MainModule, go to MainModule
→ Items
→ Main_Script
.
You can skip this part but if you just wanna know what I did, feel free to read it.
v.Name
is referring to the actual tool that was processed and given name. It won’t process if it was unsucessful or not valid. So therefore, we got the tool name sorted out. Next we need Player Giving and Player Receiving Names.
In that function, you can find where before v.Name
, FullName(Box.Text)
. Figured out what FullName was a function, if you scroll up a bit in that same script so that is who we are giving the tool too and there complete name. Box.Text
is what was inserted from the client to the box when they pressed > Enter. So like, FullName is taking whatever was inserted to Box.Text and correctly it to become the entire and full PlayerName.
Lastly, for the player that was giving the item, it’s a client script so we can just use game.Players.LocalPlayer
to figure out who is giving the item.
Summing that up, in the same script, insert:
|
|
|
|
|
local ReplicatedStorage = game:GetService(“ReplicatedStorage”) |
|
|
|
|
|
ReplicatedStorage:WaitForChild(“ToolSignal”):FireServer(game.Players.LocalPlayer, FullName(Box.Text), v.Name) |
1/3 done.
Create a Script
(not Local or Module) inside ServerScriptService
, doesn’t matter what you call it but call it something like ToolHandler and in the following:
--Definitions--
local ReplicatedStorage = game:GetService("ReplicatedStorage")
--Functions--
ReplicatedStorage:WaitForChild("ToolSignal").OnServerEvent:Connect(function(playerWhoFired, playerWhoReceived, toolReceived)
print(playerWhoFired.Name .. " gave " .. playerWhoReceived .. " a " .. toolReceived .. ".")
end)
Hopefully someone will be generous enough to help both of us out on how to incorporate a table and plugin feature, I’m not that experience in it but I know what they are. It should give you a solid headstart or maybe you can hire someone for that part.
thefurryfishtesting.rbxl (288.8 KB)
For the actual plugin, I never really got to work or find someone that had experience in Basic Admin Essentials area so someone else would have to help with that part or DM TheFurryFish on Twitter.