I am testing that my FE scripts are working . Im new to FE and write A "simple" code for testing
in local script =
local configs = script.Parent.Configs local remotes = script.Parent.Remotes local Shoot = remotes:WaitForChild("Shoot") local Reload = remotes:WaitForChild("Reload") local CanFire = configs:WaitForChild("CanFire").Value local CanReload = configs:WaitForChild("CanReload").Value local TotalAmmo = configs:WaitForChild("TotalAmmo").Value local Ammo = configs:WaitForChild("Ammo").Value local Damage = configs:WaitForChild("Damage").Value local HeadShotDamage = configs:WaitForChild("HeadShotDamage").Value local tool = script.Parent local player = game:GetService("Players").LocalPlayer tool.Equipped:Connect(function(mouse) remotes.Print:FireServer(Ammo) end)
in server side script (normal script)
script.Parent.Remotes.Print.OnServerEvent:Connect(function(player , Ammo) print(Ammo) print(player) end)
can you help me find whats wrong thanks