#18:21:17.250 Unable to assign property Text. string expected, got Instance - Server - Script:4

15 messages · Page 1 of 1 (latest)

peak warren
#

local script inside send: script.Parent.MouseButton1Click:Connect(function()

 game.ReplicatedStorage.ANNOUNCEMENTSREMOTE:FireServer(text)
end)```
#

then the SERVER script inside the announcements label which wont change idk why

game.ReplicatedStorage.ANNOUNCEMENTSREMOTE.OnServerEvent:Connect(function(text)
    script.Parent.Parent.Visible = true
    script.Parent.Text = text
    wait(2.5)
    script.Parent.Parent.Visible = false
end)```
zealous python
#

Message box.text

peak warren
#

K 1 sec

#

same error, edited the local script

#

i think i need to do it with the other script aswell

#

woops

zealous python
#

It’s prob bc your forgot to put player, text instead of just (text)

peak warren
#
game.ReplicatedStorage.ANNOUNCEMENTSREMOTE.OnServerEvent:Connect(function(player, text)
    script.Parent.Parent.Visible = true
    script.Parent.Text = text
    wait(2.5)
    script.Parent.Parent.Visible = false
end)```
#

gonna test this out now

#

Yup, it works.

#

thanks @zealous python