I'm new to tables but what I want to do is send a stringvalue to from a player to the server. local script:
local player = game.Players.LocalPlayer
script.Parent.MouseButton2Click:connect(function()
local ItemDropping = script.Parent.Parent.Item.Value
local remoteEvent = game.ReplicatedStorage.NameOfDroppingItem
local data = {}
data[1] = ""..ItemDropping..""
remoteEvent:FireServer(player, data)
end)
server script:
local event = game.ReplicatedStorage:WaitForChild("NameOfDroppingItem")
local function onCreatePartFired(player, data)
do
print ("THIS IS YOUR NAME" .. player.Name)
player.Character.ItemDropping.Value = data[1]
end
end
event.OnServerEvent:Connect(onCreatePartFired)
Can anybody help/ or fix this?

7 comments
Do not send the player instance on the local script on line seven. It is sent automatically.
Yeah just say "remoteEvent:FireServer()" if that doesnt fix it then I may have another idea. :)
My bad say "remoteEvent:FireServer(data)
But then when you have to define who the player is how do you go about it?
As said previously, the player is sent automatically through the remote event. The player would be the first argument received from OnServerEvent so you do not have to change anything in the server script.
If it is sent automatically how am I supposed to define it when I talk about it? It says attempt to index global 'player' (a nil value) if I remove it
line 7 needs to be: remoteEvent:FireServer(data)