working state

This commit is contained in:
2024-04-16 19:48:08 -04:00
parent 9a011c689c
commit 936837eb67
6 changed files with 45 additions and 35 deletions

View File

@@ -5,7 +5,7 @@
local MapDir = script.Parent
local MainDir = MapDir.Parent
local TagService = require(MainDir:WaitForChild("TagService"))
local TagService = require(MainDir:WaitForChild("Tags"))
type LightCallback = (Player: Player) -> ()

View File

@@ -70,7 +70,7 @@ local function NewPromptConnection(self: ClassConstructor, PromptSignal: PromptS
if self.Prompt then
if self.Instance then
if self.__PromptConnections[PromptSignalName] and self.__PromptConnections[PromptSignalName].Connected then
warn()
warn("asd")
end
self.__PromptConnections[PromptSignalName] = PromptSignal:Connect(function(Player: Player)
@@ -87,6 +87,7 @@ end
function Prompts:AddHookTriggered(Callback)
self.__TriggeredCallback = Callback
--These dont make sense...
NewPromptConnection(self, self.Prompt.Triggered, "Triggered")
end