There's an error in my script " Workspace.Script:5: ')' expected (to close '(' at line 1) near 'end' " And this is the script I used:
script.Parent.Baseplate.Touched:connect(function(hit)
hit.Parent:FindFirstChild("Humanoid")
hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 10
end
end)
Can anyone fix this?
I've also tried
hit.Parent.Humanoid:TakeDamge(10)
instead of
hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 10
But it still wouldn't work.

4 comments
i think one of your ends might be wrong. maybe try adding a ) to the first end
I also tried that, also the first end isn't for a function, it's to find the child.
FindFirstChild doesn't need an end. You use it to get a child of some instance so set that line to a variable.
mmm