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

Click Detector clicking won't work... How do I fix this?

Asked by 8 years ago

So I have 4 parts that are inside of each other with click detectors with the activation distance of 0. Then a user does something and activates this script.

01local Jobs = script.Parent.Parent.Jobs
02 
03function Unlock(Card)
04if Card.Name == "Card1" then
05    Jobs.Job4.Transparency = 0
06    Jobs.Job4.SurfaceGui.Enabled = true
07    Jobs.Job4.ClickDetector.MaxActivationDistance = 32
08    script.Parent.Job.Value = 1
09    Card.Parent = game.Lighting
10    Card.Anchored = true
11    script.Parent.Parent.Screen.SurfaceGui.CurrentJob.Text = "Mechanic (COMING SOON)"
12end
13 
14if Card.Name == "Card2" then
15    Jobs.Job3.Transparency = 0
View all 44 lines...

Accept when on of the Jobs activation distances go to 32 it won't let me click on it. Only Job1 works the rest do now. And also only one has the activation of 32 once the script is ran. Anyways to solve this?

0
Any errors in the output? M39a9am3R 3210 — 8y
0
Nope... thebootsie123 160 — 8y
0
Wait.. It will let you click it although depending on the part you have to click it in a different spot.. Like the top of the part. Or the bottom of the part but facing a certain way.. thebootsie123 160 — 8y
0
How do I fix that then... thebootsie123 160 — 8y
0
Do you have FilteringEnabled on? AwsomeSpongebob 350 — 8y

1 answer

Log in to vote
-1
Answered by 8 years ago

Try adding a wait.

Ad

Answer this question