script.Parent.ChildAdded:connect(function(player) if child.Name == "SeatWeld" then do a = game.Lighting.HealthStatus:clone().Parent.LocalPlayer.PlayerGui if game.Player.LocalPlayer.PlayerGui:findFirstChild("HealthStatus") ~= nil then a.Parent = game.Players.LocalPlayer.PlayerGui end end end end)
I am trying to get it to connect to the player when he seats aka SeatWeld
Its
:FindFirstChild("SeatWeld")
OR
.ClassName="SeatWeld"
I was going to say
script.Parent.ChildAdded:connect(function(player) if player.Name == "SeatWeld" then do a = game.Lighting.HealthStatus:clone() a.Parent = player.Startergui if player.PlayerGui:findFirstChild("HealthStatus") ~= nil then a = game.Lighting.HealthStatus:clone() a.Parent = player.PlayerGui end end end end)
What do you mean looking for the seatweld? seatweld in what?