hello, so... i need help with this thing: i have an Remote Event for equip the axe, but for some reason the argument is allways nil.
Script in ServerScriptService
game.ReplicatedStorage.equipChecker.OnServerEvent:Connect(function(player, axe) local Char = player.Character local Data = player:WaitForChild("Data") axe.Parent = Char.AxeFolder end)
LocalScript in StarterGui
local rs = game:GetService("ReplicatedStorage") local player = game.Players.LocalPlayer local Info = script.Parent.Parent local Data = player:WaitForChild("Data") script.Parent.MouseButton1Click:connect(function() player.Data.AxeEquiped.Value = rs.Equips_FindFirstChild(Info.InfoText._Name.Text) local axe = Data_FindFirstChild("AxeEquiped").Value_Clone() rs.equipChecker_FireServer(axe)end)
but in the output allways send: 22:47:23.116 - ServerScriptService.Event:58: attempt to index local 'axe' (a nil value) any ideia?
"AxeEquiped" is a ObjectValue; FE is enabled; All the remote events is in ReplicatedStorage.