I want to make a script that detects if a seat is being used and if it is it will take 99 health of the player that is using the seat here is my code:
local seat = script.Parent.Seat
local player = script.Parent.Parent.Parent.Parent.Parent.Players.LocalPlayer
seat.Touched:connect(function()
game.Players.LocalPlayer.Character.Humanoid:TakeDamage(100)
end)
