How would I get the user id of the player that fired a remote event? I tried this code but it didn't work:
local item = script.Parent
local tool = game.ReplicatedStorage.WoodenSword
local clonedTool = tool:Clone()
local id = LocalPlayer.UserId -- Local player didn't work
item.MouseButton1Click:connect(function()
game.ReplicatedStorage.RemoteEvent1:FireSrver()
end)

2 comments
And assuming you want the UserId to server, when firing a RemoteEvent, player is automatically fired over as a parameter. So you could automatically get UserId from the server.
Thank you so much! I have been looking everywhere for this! Thanks!