Ad
Log in to vote
0

How to Enable ProximityPrompt With Script?

Asked by 1 month ago
Edited 1 month 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 1 month 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 1 month ago

Yeah do what the answer above this said,

local Trigger = game.Workspace.Exitdoor.ProximityPrompt

Trigger.Enabled = true

Answer this question