I'm trying to see if I can make a script that checks what seat the player is on, and if they are on a certain seat it will do something, like change the camera subject or explode something.
This is the code I got:
wait()
local plr = game.Players.LocalPlayer
local chr = plr.Character or plr.CharacterAdded:wait()
local hum = chr:WaitForChild("Humanoid")
hum.Changed:connect(function()
if hum.SeatPart == "Seat" then
print("a")
elseif hum.SeatPart == "CamSeat" then
workspace.CurrentCamera.CameraSubject = chr.Head
end
end)

1 comment
Thank you!