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

why does the first function run bot not the second one?

skills.InputBegan:connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		print's'
		if kendo and specials and  kido.Visible == false then
		kido.Visible = true
		kendo.Visible = true
		specials.Visible = true
		else
		kendo.Visible = false
		kido.Visible = false
		specials.Visible = false
		end
	end
end)

specials.InputBegan:connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then

	if specialScreen.Visible == false then
		specialScreen.Visible = true
	else
		specialScreen.Visible = false
	end
	
	end

end)


the function on the top runs perfectly but the second one doesnt even run at all

6 comments

0

but***

0

if all the "~"s are there in the actual script, than thats why.

0

all the ~'s are not in the script, its what the website does for writing code

0

skills and specials were never defined, what are they?

0

text buttons

0

ok i found the answer, it turns out that the line of code didnt run because they were two text buttons, i replaced it with a textLabel and it ran fine.

1 answer

Okay, where the line of ~'s are, remove them and it should work fine

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