Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
Jumbuu 110
8 years ago
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

0
but*** Jumbuu 110 — 8y
0
if all the "~"s are there in the actual script, than thats why. iFireLazer 35 — 8y
0
all the ~'s are not in the script, its what the website does for writing code Jumbuu 110 — 8y
0
skills and specials were never defined, what are they? theCJarmy7 1293 — 8y
View all comments (2 more)
0
text buttons Jumbuu 110 — 8y
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. Jumbuu 110 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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

Ad

Answer this question