#proximity prompt

43 messages · Page 1 of 1 (latest)

mystic spear
#

yo i need to know how to make a prompt activate another prompt, like when first prompt is activated, another one appears. And if the second one is activated, the whole thing restarts.

viral gale
#

.enabled

#

.triggered

mystic spear
#

I'm not into scripting, can you explain with more details?

merry dawn
acoustic pollen
#

do not learn scriptting from youtube 💀

blissful marsh
# mystic spear yo i need to know how to make a prompt activate another prompt, like when first ...

First script:

local ProxPrompt2 = game.Workspace.Change this to where the proximity prompt is located

script.parent.Triggered:Connect(function(plr)
ProxPrompt2.Enabled = true
end)

Second Script (2ndProximityPrompt)

local ProxPrompt1 = game.Workspace.Change this to where the proximity prompt is located

script.parent.Triggered:Connect(function(plr)
ProxPrompt1.Enabled = false
script.parent.Enabled = false
end)

make sure that both scripts are normal scripts and under the proximity

#

@mystic spear

sweet bison
blissful marsh
#

make sure the prompt is set to false

#

enabled*

mystic spear
#

both enabled

blissful marsh
#

make promptJo enabled to false

#

and then test it by holding e down and seeing if it enables the other prompt

#

the 2nd prompt

merry dawn
#

I started off from yt then went to those devforums

sweet bison
blissful marsh
#

tbh watching yt tutorials can help if its a good one thats teaching you a specific thing and u actually sit there and pay attentiom

acoustic pollen
#
local Part = workspace.Part
local Part1 = workspace.Part1
local Prox = Part.Prox
local Prox1 = Part1.Prox
local IsActivated = false
local IsNotActivated = false
local function Update()
    -- Update code for Part.Prox
end
local function Update1()
    -- Update code for Part1.Prox
    if IsActivated then
        -- Reset any relevant variables or game state to their initial values
        IsActivated = false
        -- ...
    else
        IsActivated = true
    end
end
Prox.Triggered:Connect(Update)
Prox1.Triggered:Connect(Update1)```
merry dawn
#

Whats wrong with youtube

acoustic pollen
#

Me I didn’t learn from yt I learned myself

merry dawn
#

U what

#

Many people learn from yt doesnt mean they ONLY learn from yt

#

Sometimes they understand better by watching someone explain it to them

acoustic pollen
#

Me it’s bad to learn from yt because of outdated scripts so I don’t learn from them

sweet bison
#

youtube is for beginners

#

its a good resource for starting scripting, but its not helpful later on

#

and theres nothing wrong with it either

mystic spear
# acoustic pollen ```lua local Part = workspace.Part local Part1 = workspace.Part1 local Prox = Pa...

local Part = workspace.PPart
local Part1 = workspace.RobPart
local Prox = Part.PromptJo
local Prox1 = Part1.RobPrompt
local IsActivated = false
local IsNotActivated = false
local function Update()
-- Update code for Part.Prox
end
local function Update1()
-- Update code for Part1.Prox
if IsActivated then
-- Reset any relevant variables or game state to their initial values
IsActivated = false
-- ...
else
IsActivated = true
end
end
Prox.Triggered:Connect(Update)
Prox1.Triggered:Connect(Update1)

#

doesnt work

#

idk what am i doing wrong

acoustic pollen
#

Because it’s a example

mystic spear