Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to Enable ProximityPrompt With Script?

Asked by 2 years ago
Edited 2 years ago
local Trigger = game.Workspace.Exitdoor.ProximityPrompt
        Trigger:Enabled(true)

I Tried That But It Didnt Worked

2 answers

Log in to vote
1
Answered by 2 years ago

https://developer.roblox.com/en-us/api-reference/class/ProximityPrompt

Hello, I've read a bit here and the problem seems that on line 2 you put : instead of .

local Trigger = game.Workspace.Exitdoor.ProximityPrompt
        Trigger.Enabled = true -- Making it true you can also disable it by putting false here.
Ad
Log in to vote
0
Answered by 2 years ago

Yeah do what the answer above this said,

local Trigger = game.Workspace.Exitdoor.ProximityPrompt

Trigger.Enabled = true

Answer this question