#Hold E to make parts appear
1 messages · Page 1 of 1 (latest)
What have you tried so far
Wdym?
I don't know how to script so I hope to get someone to help me with coding it
Okay
you can change the parts transparecny and cancollide to make it look like it appears
thats smart
i was thinking of replicatedstorage and clone()
both would work but if its lot of parts he needs to appear clone could cause lag
I got a script but it doesnt work
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)
looks fine
its probably how you have the workspace set up
send a screenshot of the workspace
too big to sent a screenshot of but I can make it biger
a second
nvm
Idk how to
just send it
ur name is wrong
local obby = workspace:WaitForChild("Disappearingobby")
what needs to get changed
should be
local obby = workspace:WaitForChild("Invisable obby")
oh mb
the proximityprompt is inside of smth else
Invisible obby - Model - ProximityButton - ProximityPrompt - script
@tiny wagon
is that empty on purpose?
ye
just teesting how to index it?
so you still havent gotten it working?
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)```
and that doesnt work either
mhm
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
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
?
just send a screenshot of ur entire monitor
disspearing obby isnt in the workspace its in a child of the workspace i just need to know what it is in
i dont see it where it is
thats the same ss
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
I want instead of disappearingobby I want InvisiblePart
Because I don't want the disappearingobby to do that
local obby = workspace:WaitForChild("InvisiblePart")
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)
sorry i forgot insiablepart isnt a model
whats this also?
local obby = workspace:WaitForChild("InvisiblePart")
local prompt = script.Parent.ProximityPrompt
obby.Transparency = 0
obby.CanCollide = true
like what does that do?
the _
the _ mean you dont need it
but if you did need it
for _, part in pairs(part:GetDescendants()) do
just copy my code no need to show it to me
ok
the _ is a place holder value
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...
show me the output
local obby = workspace:WaitForChild("InvisiblePart")
local prompt = script.Parent
obby.Transparency = 0
obby.CanCollide = true
mbmbmbmbmbmbmbmb
thats some other code you have
did you set it to be invisible?
In properties yes
wait bro
im so dumb
i need to go to bed after this
i forgot to set it to prompt triggered
my plan is to have it first invisible then it will appear when the proximityprompt is done and after 10 seconds it will disapear
local obby = workspace:WaitForChild("InvisiblePart")
local prompt = script.Parent.ProximityPrompt
prompt.Triggered:Connect(function()
prompt.Transparency = 0
prompt.CanCollide = true
end
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
thats from something else in ur game not me
there that shouldd be it
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
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)
i didnt copy the full text and missed the )