Im Trying to invoke Remote Function to send tool information when i equip the tool. On breakpoints, tool enters to variable but on server side, player's information sended always
local script on weapon
local tool = script.Parent
tool.Equipped:Connect(function()
local weaponType = tool
GetWeaponInformation:InvokeServer(weaponType)
BindFireInput:Invoke()
end)
Server side script:
function getWeaponInformation(weaponInformation)
print(weaponInformation)
return weaponInformation
end
GetWeaponInformation.OnServerInvoke = getWeaponInformation

1 comment
Thanks a lot!