How to skip to a specific line of a function when a button is clicked?

I want to find a way to skip to a specific line of a function but couldn’t find any answers, does anyone know how?

1 Like
local button = Instance.new("TextButton") -- creating a button just for testing

if not button:IsA("TextButton") then
	warn("not button")
	-- do your line
else
	warn("its a button")
	-- do nothing
end
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.