#proximityPrompt to function
1 messages · Page 1 of 1 (latest)
function (clickDetection)
clickDetection.MouseClick:Connect(function()
print("The function works")
end)
end
i made this so far
That's a click detector, a proximity uses "triggered"? I think
So like proximity.triggered:Connect(function()
function (ProximityPromptTrigger)
proximity.triggered:Connect(function()
print("Hello world!")
end)
end
like this?
What I don't get it
why not just reference the proximity prompt like local proximity= -- the proximity prompt
Then proximity.triggered: Connect(function()
So like
local proximity = -- where your proximity prompt is located
proximity.triggered:Connect(function()
print("Hello world!")
end)
end
local prompt = -- path to prompt
prompt.Triggered:Connect(function()
-- stuff here
end)

do i put the script under the proximity promt or the object/Rig
You can put script under object
ofc you can put script in other places except workspace
Think
look in my bio
thats my hardest achievment in scripting
idk what im doing
i gotta figure ts out
you put this script under prompt?
Read roblox docs or watch dev king tutorials
Looks like you know how to close functions from looking at your bio.
ik how to close em
ohh wait that was what was wrong?
function(Triggered)
proximity.Triggered:Connect(function()
print("Hello world!")
end)
end```
now i think
nope
bruh
is that a yes bruh or a no bruh
Probably by Googling hmm idk
ok thats sarcasm for sure
BRO TS A SCRIPTING HAVEN
OMG
lol
lol

** You are now Level 6! **
while wait() do print("skill issue") end
Im not that dumb