I am using the FocusLost() function for a textbox, but theres a problem when firing a remoteevent, it simply does not fire. I checked on the server if the remote fires and prints something, but it doesnt.
local script:
local RemoteFolder = game.ReplicatedStorage:WaitForChild("ComputerEvents")
script.Parent.FocusLost:Connect(function(enterPressed)
if enterPressed then
if script.Parent.Text == "Island_Tower_Activate" then
game.ReplicatedStorage.ComputerEvents.UserActivateTower:FireServer()
end
end
end)
script:
game.ReplicatedStorage.ComputerEvents.UserActivateTower.OnServerEvent:Connect(function()
workspace.Tower2.UserActivated.Value = true
print("taken")
end)
Any help?