Be_nUK
(be_n)
1
Hello, I’ve tried changing my script a lot of times and I keep getting the same error: Invalid Argument #3 (string expected, got instance)
Local Script:
local qTech_Folder = game.Workspace:FindFirstChild("qTech || Check-In")
local Events = qTech_Folder.Files.Events
script.Parent.MouseButton1Click:Connect(function()
local msg = script.Parent.Parent.BoardingTime.Text
Events.Update:InvokeServer(msg)
end)
Server Script:
local update = script.Parent.Events.Update
function update.OnServerInvoke(msg)
script.Parent.FlightInfo.Boarding.Value = msg
end
Any help would be wonderful!
Use:
local msg = tostring(script.Parent.Parent.BoardingTime.Text)
as it converts it to a string.
2 Likes
Be_nUK
(be_n)
3
Tried that and am still having the same issue:

You sure you remembered to pass the player value through the remote?
Be_nUK
(be_n)
5
Yeah I have and It’s still doing it.
WooleyWool
(AWildWooleyWool)
6
Which line are you specifically having issues? We can’t tell.
Be_nUK
(be_n)
7
Events.Update:InvokeServer(msg) and script.Parent.FlightInfo.Boarding.Value = msg
WooleyWool
(AWildWooleyWool)
8
What type of event is it? BindableEvent?
Be_nUK
(be_n)
9
I’m using a Remote Function. (30 Words)
UIScript
(UIScript)
10
The player automatically passes as the first parameter.
Change to function update.OnServerInvoke(player, msg) instead
4 Likes