Why I kept receiving this error message? And why the value not changing?
Error Message: 22:25:59.225 - Workspace.Events.Combat System.Movements.Power.current:9: attempt to index nil with 'Value'
local event = game.ReplicatedStorage.GameEvents.Combat.Activate
event.current.OnServerEvent:Connect(function(player)
local c = player:findFirstChild("current")
local main = player.PlayerGui.Stuff.Combat.current
local char = player.Character
c.Value = main.Value
print(c.Value")
end)

4 comments
^^^^^ Always make sure to read over your script before looking to others for help. I'd say 70% of script problems, at least for myself, are purely due to incorrect syntax.
Thank you! However, I just found what I did wrong. I forgot player.Character:findFirstChild("current"), when looking for the StringValue <---- with OnServerEvent:Connect(function(player) you get the local player not the model of the player.
The script is finally working! ^
Ok then mark this as "answered"