I made a script for my airline for the seat do only if you are book in as first call you can sit tit the first class seats etc but i wot work i wonder why does anyone know? Here is my script i know its badly edited dont judge
local plr = ""
script.Parent.Touched:connect(function(hit)
local plr = hit.Parent.Parent.Name
local char = hit.Parent
if game.ReplicatedStorage.PodTech.Tickets:FindFirstChild(plr).Value == "First" then
print("yes")
else
char.Humanoid.Jump = true
end
end)
it also says this in the output
20:29:54.007 Workspace.Seat.MainScript (SETTINGS):12: attempt to index nil with ‘Value’ - Server - MainScript (SETTINGS):12
Now it says
20:47:55.633 Workspace.Seat.MainScript (SETTINGS):12: attempt to index nil with ‘Value’
and
20:47:56.332 Argument 1 missing or nil
Is it a problem that the thing only appears basically when the class is booked