Yesterday night I sent a request for a heal brick. Someone answered with it might not be going through to the server. In studio AND in a game my character takes damage on screen it looks like it. But it didn't go through to the server thous when I touch the heal brick it doesn't heal unless manually done through the developer console. The damage scripts are done through Local Scripts & the Heal done through a script. Any help is appreciated.
Heal Script:
script.Parent.Touched:Connect(function(hit)
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum then
game.ReplicatedStorage.HealEvent:FireServer()
hum.Health = hum.Health + 100
end
end)
It works if manually done through the dev console & or through current client in studio to change health.

7 comments
Use remoteevents?
What do you mean?
Like how would I use remote events?
When changing a value, you must put it through a remote event and access it. Put a remote event into storage, "healthchanged" or something like that. Make a folder called events, put it into the folder. Then type "game.Replicatedstorage.Events.healthchanged:FireServer()" Then it should work. PS: put the code before "hum.Heath = hum.Health = hum.Health + 100
I don't think it worked I'll put in edit
You do NOT need a remote event for this.
It will give you another error. Assuming this is not a local script because it shouldn't be.