Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

function that finds if a "thing" is added somewhere?

so i need a function that detects if a "thing", in my case an IntValue, is somewhere.

I tried this but it didn't work.

local player = game.Players.LocalPlayer

function waitn()
	print("yay")
end
player.places:FindFirstChild("p15"):Connect(waitn)

1 answer

✓ Accepted answer

Its simple, use if ... then waitn() end

here is fixed script:

local player = game.Players.LocalPlayer

function waitn()
    print("yay")
end

if player.places:FindFirstChild("p15") then
	waitn()
end

Hope it helped :D

This discussion is preserved as it was. New answers, comments, and votes are closed.