#proximity prompt
43 messages · Page 1 of 1 (latest)
I'm not into scripting, can you explain with more details?
never do that
do not learn scriptting from youtube 💀
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
how the hell else are you supposed to learn 💀
doesnt seem to work
promptjo is supposed to trigger robprompt
both enabled
make promptJo enabled to false
and then test it by holding e down and seeing if it enables the other prompt
the 2nd prompt
I did that
I started off from yt then went to those devforums
Same here idk what that guy is talking about
fr
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
and never learn from Youtube
simple
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)```
I learn youtube
Whats wrong with youtube
Me I didn’t learn from yt I learned myself
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
Me it’s bad to learn from yt because of outdated scripts so I don’t learn from them
youtube is for beginners
its a good resource for starting scripting, but its not helpful later on
and theres nothing wrong with it either
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
Because it’s a example
i changed it