Tween is not playing

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)

1 Like

You didn’t add the arguments on the sendtoplayer() and sendtoallclients() function.
Correct the last two lines of your script.

1 Like

That wont work as the arguments automatically get passed to the function when you connect it, I think it’s some client-sided issue despite the transparency being 0 I can’t see it

1 Like