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
9 years ago
01skills.InputBegan:connect(function(input)
02    if input.UserInputType == Enum.UserInputType.MouseButton1 then
03        print's'
04        if kendo and specials and  kido.Visible == false then
05        kido.Visible = true
06        kendo.Visible = true
07        specials.Visible = true
08        else
09        kendo.Visible = false
10        kido.Visible = false
11        specials.Visible = false
12        end
13    end
14end)
15~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
View all 26 lines...

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

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

1 answer

Log in to vote
0
Answered by 9 years ago

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

Ad

Answer this question