I really dont know what im doing wrong here, I even debugged it and all the values were correct. what do I do here?
local function sendtoplayer(message,object)
local Debounce = true
for _, TextLabel in pairs(Group:GetChildren()) do
if TextLabel.Name == object then
TextLabel.Text = tostring(message)
print(TextLabel.Text,object)
if Debounce then
Debounce = false
TweenService:Create(TextLabel, TweenInfo.new(1), { TextTransparency = 0 }):Play()
TweenService:Create(TextLabel.UIStroke, TweenInfo.new(1), { Transparency = 0 }):Play();task.wait(2)
TweenService:Create(TextLabel, TweenInfo.new(1), { TextTransparency = 1 }):Play()
TweenService:Create(TextLabel.UIStroke, TweenInfo.new(1), { Transparency = 1 }):Play()
Debounce = true
end
end
end
end
local function sendtoallclients(message)
return nil
end
MessagePlayer.OnClientEvent:Connect(sendtoplayer)
MessageAllClients.OnClientEvent:Connect(sendtoallclients)