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)
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)
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.