So i'm trying to send some text from the server side to the client side using remoteevents but i can't to get it working it gives me these errors.
Errors
11:49:59.278 - Unable to cast value to Object
11:49:59.278 - Stack Begin
11:49:59.279 - Script 'ServerScriptService.ChooseMap', Line 32
11:49:59.279 - Stack End
11:49:59.298 - Unable to cast value to Object
11:49:59.298 - Stack Begin
11:49:59.299 - Script 'ServerScriptService.GameScript', Line 46 - global Intermission
11:49:59.299 - Script 'ServerScriptService.GameScript', Line 223
Server Script
game.ReplicatedStorage.ServerRequest.Notification:FireClient("Testing Testing", "Testing2 Testin2")
Client Script
reg.Notification.OnClientEvent:connect(function(val, txt)
local Noti = script.Parent.Notifications
Noti.Visible = true
Noti:TweenPosition(UDim2.new(0.5, -200, 0.9, 20))
Noti.Text = val
Noti.Shadow.Text = val
Noti.DownText.Text = txt
Noti.ShadowDown.Text = txt
wait(3)
Noti:TweenPosition(UDim2.new(0.5, -200, 1, 20))
Noti.Visible = false
end)

4 comments
try printing val and txt to see what they actually are (to make sure they are the right thing)
I can't cause when i try it gives me that error again
use tostring
I have never used that so don't know how to