#ProximityPrompt got bugged when i tried to clone object

13 messages · Page 1 of 1 (latest)

rough raven
#

scripts tend to behave weird when getting copied, it's easier to have 1 script listen for multiple proxies

dawn flame
#

Than i have to make script in server script service?

main etherBOT
#

studio** You are now Level 2! **studio

acoustic owl
dawn flame
rough raven
#

something like this


--make a table of all the proxies it needs to listen to

local proxyTable = --you know what to do, I hope

local function Triggered()
  --the stuff that happens when the proxy gets triggered
end

for _, proxy in proxyTable do
  if not proxy:IsA("ProximityPrompt") then return end
  proxy.Triggered:Connect(Triggered)
end
dawn flame
rough raven
#

that's just a variable

#

if you wish then I can rename it to MagicMushroom, so just ignore the name

acoustic owl
#

and then assign them to a list

dawn flame
#

Anything i want or it have to be something important