local part = script.Parent.Touch
local part2 = script.Parent.TouchAgain
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local AddValue = ReplicatedStorage.Events:WaitForChild("AddValue")
part.Touched:Connect(function(Find)
local Parent = Find.Parent
local humanoid = Parent:FindFirstChildWhichIsA("Humanoid")
if humanoid then
end
end)
everything works apart from the actual things I want it to do.
I am trying to make it so it adds
player.HP.Value = player.HP.Value + 1
however I am doing it in a script and not in a local script and that won't be possible, how can I make it work?

2 comments
the check if humanoid code already works, I need help setting up the system that adds value to the value inside of the player, but I can't as its a script and not a local script. I can't access game.Players.LocalPlayer.HP.Value
AddValue:FireServer(number) works but only from LocalScript, how to do it from just a script?