local Tool = script.Parent
local GLib = require(206209239)
local GLibScript = GLib.Script
GLibScript.Name = 'GLib'
GLibScript.Parent = Tool
local Sword = require(Tool:WaitForChild'Sword')
if workspace.FilteringEnabled then
Sword:Initialize()
Tool:WaitForChild'RemoteClick'.OnServerEvent:connect(function(client, action)
if client.Character == Tool.Parent then
Sword:Attack()
end
end)
end
Tool.Unequipped:connect(function()
Sword:Unequip()
end)
Okay so I see "local" being used so much. What does "local" do? Does "local" mean it happens to all players? Next word is "Tool"....shouldn't this say the tool's specific name? What if there are more than one tools in the place? Won't the script break since it just says "tool"??? I have no idea what "require()" means.... God knows what tf GLib is xD. There is nothing on GLib anywhere. This whole thing is really freaking confusing to a beginner. Cna someone break it down near word per word please?

1 comment
https://scriptinghelpers.org/guides/lua-quick-start-guide