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

8 comments

0

Send the script as a code block please, i cant see the script correnctly.

0

k

0

Try printing a string, and see if that works.

0

ok

0

I did And it worked Did the values messed up the script

0

nevermind it was a bug in the server thanks by the way

0

no problem lmao

0

Wait a second in the local server the script doesn't work but ingame it works