Hi! I was wondering why does the thing in the title happens and how can I make it only trigger a singular time while still keeping both functions in the LocalScript?
I’ll send both of my test scripts I made:
game.ReplicatedStorage.Events.ChatEvent.OnClientEvent:Connect(function()
game:GetService("UserInputService").InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.E then
print("mmonday left me broken")
end
end)
end)
(LocalScript in StarterPlayerScripts)
script.Parent.Triggered:Connect(function(player)
game.ReplicatedStorage.Events.ChatEvent:FireClient(player)
end)
(Script in a ProximityPrompt)
Output (I triggered the proximity prompt 10 times only)
I tried to disconnect the function already, didn’t work.
I’m sorry for any mistakes in my script, I’m a bit stressed out from trying to still solve the problem from my last topic.