#Hold E to make parts appear

1 messages · Page 1 of 1 (latest)

eternal kayak
grim wolf
#

What have you tried so far

eternal kayak
#

Wdym?

#

I don't know how to script so I hope to get someone to help me with coding it

grim wolf
#

I assume you can read also?

eternal kayak
#

Okay

tiny wagon
peak cypress
#

i was thinking of replicatedstorage and clone()

tiny wagon
eternal kayak
#

local obby = workspace:WaitForChild("Disappearingobby")
local prompt = script.Parent:WaitForChild("ProximityPrompt")

prompt.Triggered:Connect(function()
for _, part in pairs(obby:GetDescendants()) do
if part:IsA("BasePart") then
part.Transparency = 0
part.CanCollide = true
end
end
end)

tiny wagon
#

send a screenshot of the workspace

eternal kayak
#

too big to sent a screenshot of but I can make it biger

#

a second

#

nvm

#

Idk how to

tiny wagon
#

just send it

eternal kayak
#

u mean that

tiny wagon
#

yes like that but

#

with other things

#

like the Disappearingobby parts and folder

eternal kayak
tiny wagon
#

local obby = workspace:WaitForChild("Disappearingobby")

eternal kayak
#

what needs to get changed

tiny wagon
#

should be

local obby = workspace:WaitForChild("Invisable obby")
eternal kayak
tiny wagon
#

oh mb

eternal kayak
#

the proximityprompt is inside of smth else

#

Invisible obby - Model - ProximityButton - ProximityPrompt - script

eternal kayak
#

@tiny wagon

eternal kayak
tiny wagon
eternal kayak
#

ye

tiny wagon
#

just teesting how to index it?

eternal kayak
#

I'm trying to do something in it

#

yes

tiny wagon
eternal kayak
#

mhm

#

I got a different idea tho

#
local prompt = targetPart:WaitForChild("ProximityButton"):FindFirstChildOfClass("ProximityPrompt")

prompt.Triggered:Connect(function()
    targetPart.CanCollide = true
    targetPart.Transparency = 0

    wait(10)

    targetPart.CanCollide = false
    targetPart.Transparency = 1
end)```
tiny wagon
#

and that doesnt work either

eternal kayak
#

mhm

tiny wagon
#

local obby = workspace:WaitForChild("Disappearingobby")
local prompt = script.Parent:WaitForChild("ProximityPrompt")

prompt.Triggered:Connect(function()
    for _, part in pairs(obby:GetDescendants()) do
        if part:IsA("BasePart") then
            print(part.Name)
            part.Transparency = 0
            part.CanCollide = true
        end
    end
end)
#

can you run that and show what it prints

eternal kayak
#

thats what it prints

tiny wagon
#

local prompt = script.Parent.ProximityPrompt

#

you were trying to get the child of proximityPrompt

#

also

#

can you sent a ss of where disppearing obby is
with this at the top

#

@eternal kayak

eternal kayak
#

ok

#

so I made a bridge instead

tiny wagon
eternal kayak
#

I don't know how to get the Workspace withi t

tiny wagon
eternal kayak
tiny wagon
# eternal kayak

disspearing obby isnt in the workspace its in a child of the workspace i just need to know what it is in

eternal kayak
#

what is in disspearing obby

#

is that ur question

tiny wagon
#

where is it in the workspace

eternal kayak
tiny wagon
eternal kayak
tiny wagon
eternal kayak
#

whoops

#

i coudln't get workspace onto ti

#

Ogm I keep sending the same pic

tiny wagon
#
local obby = workspace:WaitForChild("Invisible obby"):WaitForChild("Disappearingobby")
local prompt = script.Parent.ProximityPrompt

prompt.Triggered:Connect(function()
    for _, part in pairs(obby:GetDescendants()) do
        if part:IsA("BasePart") then

            part.Transparency = 0
            part.CanCollide = true
        end
    end
end)
#

@eternal kayak try that

eternal kayak
#

I want instead of disappearingobby I want InvisiblePart

#

Because I don't want the disappearingobby to do that

tiny wagon
eternal kayak
#

can u see if the script is in the right place

tiny wagon
#

is

eternal kayak
#

The bridge didn't appear

tiny wagon
#

sorry i forgot insiablepart isnt a model

eternal kayak
#

whats this also?

tiny wagon
#
local obby = workspace:WaitForChild("InvisiblePart")
local prompt = script.Parent.ProximityPrompt

obby.Transparency = 0
obby.CanCollide = true
tiny wagon
eternal kayak
#

the _

tiny wagon
#

the _ mean you dont need it

#

but if you did need it

#
for _, part in pairs(part:GetDescendants()) do
eternal kayak
tiny wagon
eternal kayak
#

ok

tiny wagon
#

but if its not there it would work

#

for index, part in pairs(part:GetDescendants()) do
its a place holder for index
it can be named anything but im calling it index
basiclly show what iteration of the loop ur on
so it would go
0,1,2,3,4,5,6...

eternal kayak
tiny wagon
eternal kayak
tiny wagon
#

mbmbmb

#

idk why i cant think

eternal kayak
#

better pic

tiny wagon
#

local obby = workspace:WaitForChild("InvisiblePart")
local prompt = script.Parent

obby.Transparency = 0
obby.CanCollide = true
#

mbmbmbmbmbmbmbmb

tiny wagon
eternal kayak
#

O

#

oh

tiny wagon
eternal kayak
#

In properties yes

tiny wagon
#

wait bro

#

im so dumb

#

i need to go to bed after this

#

i forgot to set it to prompt triggered

eternal kayak
#

my plan is to have it first invisible then it will appear when the proximityprompt is done and after 10 seconds it will disapear

tiny wagon
#

local obby = workspace:WaitForChild("InvisiblePart")
local prompt = script.Parent.ProximityPrompt

prompt.Triggered:Connect(function()

  prompt.Transparency = 0  
  prompt.CanCollide = true

end
eternal kayak
tiny wagon
#
local obby = workspace:WaitForChild("InvisiblePart")
local prompt = script.Parent.ProximityPrompt

prompt.Triggered:Connect(function()

  prompt.Transparency = 0  
  prompt.CanCollide = true

  task.delay(10, function()
          prompt.Transparency = 1 
        prompt.CanCollide = false
  end)

end
tiny wagon
eternal kayak
#

ok

#

it didn't appear

tiny wagon
#
local obby = workspace:WaitForChild("InvisiblePart")
local prompt = script.Parent.ProximityPrompt

prompt.Triggered:Connect(function()

  obby.Transparency = 0  
  obby.CanCollide = true

  task.delay(10, function()
        obby.Transparency = 1 
        obby.CanCollide = false
  end)

end
#

mb i misclick and copied the wrong thing

eternal kayak
tiny wagon
#
local obby = workspace:WaitForChild("InvisiblePart")
local prompt = script.Parent.ProximityPrompt

prompt.Triggered:Connect(function()

  obby.Transparency = 0  
  obby.CanCollide = true

  task.delay(10, function()
        obby.Transparency = 1 
        obby.CanCollide = false
  end)

end)
tiny wagon
eternal kayak
tiny wagon
#
local obby = workspace:WaitForChild("InvisiblePart")
local prompt = script.Parent

prompt.Triggered:Connect(function()

  obby.Transparency = 0  
  obby.CanCollide = true

  task.delay(10, function()
        obby.Transparency = 1 
        obby.CanCollide = false
  end)

end)
#

mb i copied the wrong old code

eternal kayak
#

Tysm!!! It finally works. Thank you so muchh

#

😄

tiny wagon
#

nice

#

i finally go to bed