#Fix the script

58 messages · Page 1 of 1 (latest)

raven nebula
#

How can I fix this script to work? (I want the system to detect when Blue1 disappears, Blue2 disappears too.)

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

random rain
#
  1. Script doesn't know what Blue1 is
  2. If you are using if you also need to use then ( For example if true then )
  3. At line 7, the one with local door = game.Workspace.BlueSide.Blue2 then you DONT have to use then there.
hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

raven nebula
#

kk Tysm (i am very noob at scripting, startint to learn and i was making it by myself )

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

random rain
#

You can fix it by creating a local for Blue1 and Blue2
local Blue1 = game.Workspace.BlueSide.Blue1
and
local Blue2 = game.Workspace.BlueSide.Blue2

If you have other script that when something happens one of the door's transparency change to 1 or 0, you can use the these lines there

Lets say when you touch a part, both doors transparency go on or off

local part = yourPartPathHere

local Blue1 = game.Workspace.BlueSide.Blue1

local Blue2 = game.Workspace.BlueSide.Blue2

part.Touched:Connect(function(hit)`
  if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then --#Checking if the object that hit the "part" is a player by checking if part's parent is "Humanoid"#
    if Blue1.Transparency == 0 then --#Checking if the part is visible or not, if its VISIBLE then the script will run the next line:#
      Blue1.Transparency = 1 --#Changing the part transparent (invisible, NOT visible)
      Blue1.CanCollide = false --#part CAN NOT collide with player's character
    else --#if the part is NOT visible, then the script will run the next line:#
      Blue1.Transparency = 0 --#Changing the part visible, no longer transparent
      Blue1.CanCollide = true --#part CAN collide with player's character
    end
  end
end)

Now for the scnd part you can just copy and paste a the 2nd if statement and change the Blue1 with Blue2

That should work. I don't have much context of what you are trying to do so this may not help that much

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

raven nebula
hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

random rain
hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

raven nebula
hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

raven nebula
#

@random rain btw how you put this script in that board?

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

random rain
hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

viscid oreBOT
#

studio** You are now Level 1! **studio

raven nebula
#

yea

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

random rain
#
-text
hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

raven nebula
#

and why this bot spam messages

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

raven nebula
#

-text

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

random rain
#

omfg the bot is so annoying

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

raven nebula
#

yea ik why he spam like that

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

raven nebula
#

lua ee

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

raven nebula
#

am so dump

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

random rain
#

` with this one

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

random rain
#

the one right next to 1

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

raven nebula
#

worked! but i had to copy `, cant find on keyboard lol

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

random rain
#

Its in the right of number 1, under esc

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

raven nebula
#

here put part i want to disappear when it detect that Blue1 disappear?

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

raven nebula
#

like i dont understand PartPath

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

random rain
#

Well, I gave you there an example if a player touch a part someting is happening

hard jettyBOT
#

I can't compile LaTeX in this thread as I lack the SEND_MESSAGES permission in the origin channel (#1020374354867007528)! Please check my permissions and try again.

random rain
#

DM me