I have a LocalScript, that, when it is run, will fire a RemoteEvent to a value. But the ServerScript I have written won't detect the RemoteEvent firing and change the value!
Here are the two scripts:
LocalScript
----------Change Value Non-Locally-----------
local remote = game.ReplicatedStorage.sendData
local valueToChange = workspace.InvetoryBoxes.Invetory1.InvetoryBox1.Occupied.Value
valueToChange = true
remote:FireServer(valueToChange)
print("Fired!")
ServerScript
local remote = game.ReplicatedStorage.sendData
local valueToChange = workspace.InvetoryBoxes.Invetory1.InvetoryBox1.Occupied.Value
remote.OnServerEvent:Connect(function(valueToChange)
local value = workspace.CustomizeBoxes.CustBox1.InvetoryBox1.Occupied
value.Value = true
end)
Any advice?

1 comment
Btw, I didn't include all of the LocalScript because it was just defining and moving the camera.