You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I want this script to check if the the string value has nothing or something in it
-
What is the issue?
local CollectionService = game:GetService("CollectionService")
local SellaPart = CollectionService:GetTagged("Sell")
local Debounce = {}
for _, SellPart in SellaPart do
SellPart.Touched:Connect(function(Hit)
local Character = Hit.Parent
local Humanoid = Character:FindFirstChild("Humanoid")
local Stroller = Character:FindFirstChild("Stroller")
if Humanoid and not Debounce[Character] then
Debounce[Character] = true
if Stroller.StrollerPerson.Value == nil then
print("No one is in the Stroller")
else
for _, Player in workspace:GetChildren() do
if Player.Name == Stroller.StrollerPerson.Value then
print(Stroller.StrollerPerson.Value)
end
end
end
wait(.5)
Debounce[Character] = false
end
end)
end