ServerScriptService.Script:14: attempt to index nil with 'Price'?

How would I go a bout doing that?

local boat = game.ServerStorage.Boats:FindFirstChild(NameOfBoat)

if boat == nil then
  print('oops boat is nil')
  return Instance.new('Glue')
end
-- boat is not nil now

Ty I will use this…

1 Like