I want to add a proxity prompt to set:
Transpercy to 0 then wait 0.5 and set transpercy 1
2.when transpercy =0 then collisions =on
And when transpercy =1 then collisions =off
Actually i want to make a portal which appers when the user interact with the proximity prompt
Any correction plz tell
1 Like
lht2007
(OnlyCat)
March 22, 2022, 10:26am
#2
Just do a while loop to loop through the things u mentioned
UItraEX
(UltraEX)
March 22, 2022, 10:42am
#3
local prompt = script.Parent
local portal = game.Workspace.PORTALNAMEHERE
script.Parent.Triggered:Connect(function()
portal.Transparency = 0
wait(0.5)
portal.Transparency = 1
portal.CanCollide = false
end)
script.Parent.Triggered:Connect(function()
wait(30)
portal.Transparency = 0
portal.CanCollide = true
-- delete this part if you dont want it to come back on.
replace PORTALNAMEHERE with the portal part name.
1 Like
Tiny correction
local prompt = script.Parent
local portal = game.Workspace.PORTALNAMEHERE
script.Parent.Triggered:Connect(function()
portal.Transparency = 0
portal.CanCollide = true
wait(0.5)
portal.Transparency = 1
portal.CanCollide = false
end)
How do you make part of your reply script like, im new to forum
UItraEX
(UltraEX)
March 22, 2022, 10:46am
#6
The cancollide would already be on i think? but i guess its an idea.
Also, press the
button to make it in script form.
Thank you!
It will be on at first, but after triggering it will set to false and never be on again, so it will be a one time portal
UItraEX
(UltraEX)
March 22, 2022, 12:53pm
#10
Thanks! Mark me as solution if it worked also.
Surely but let me try first then i would if it worked out
1 Like
Hey @Denz_Noviembre i marked @UItraEX as solution but even your corrections helped me.So Thank you Too For Helping Me.
2 Likes