script {function touch(hit) hit.humanoid.Health = godsfinalresonance.Health - 20 end script.Parent.Touched:connect(touch) godsfinalresonance = game.workspace.Players.godsfinalresonance}
I tried putting my tag (godsfinalresonance = game.workspace.Players.godsfinalresonance) at the top but it told me line 1 had an error so I placed it at the bottom but now line 2 has an error. I'm trying to make it so when I step on the brick my health is reduced. I'm still a beginner so I would appreciate some assistance if possible.
I hope I helped if not, please message me or comment on my answer!