I am having an error on somthing i think is basic.
The error is in the title.
My script is:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RemoteEvents = ReplicatedStorage:WaitForChild("RemoteEvents")
local RemoteEvent = RemoteEvents:WaitForChild("Stamina")
local function StaminaMod(Player,NewStamina)
local Stamina = Player.PlayerGui.StaminaGui.Stamina
local Stamina.Value = Stamina.Value + NewStamina --The error is here
print("Stamina changed to "..Stamina.Value)
end
RemoteEvent.OnServerEvent:Connect(StaminaMod)
I really need help so thank you