Client和server script问题roblox studio

我在尝试在我的游戏中插入一个事件时遇到了这个问题,我不知道如何精确解决它,有人能帮我知道如何解决它吗?

客户端脚本:

-- 事件
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Evento = ReplicatedStorage.RemoteEvent
-- 结束事件
local button = script.Parent
local frame = script.Parent.Parent.Frame

Evento.OnClientEvent:Connect(function(argumento1)
button.MouseButton1Click:Connect(function()
    if frame.Visible == false then
    frame.Visible = true
    button.Text = "关闭"
    button.Visible = false
    else
    frame.Visible = false
    print("该帧正在不可见中。")
    end
    end)
end)

服务器脚本

-- 事件
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Evento = ReplicatedStorage.RemoteEvent
-- 结束事件

game.Players.PlayerAdded:Connect(function(player)
    Evento:FireClient(player,"argumento1")
end)

输出错误: 11:36:52.328 ReadyButton不是ScreenGui "Players.MatiasHarders.PlayerGui.TeamChangerGui"的有效成员。   -   服务器   -   脚本:19

浏览器图像输入图像描述

点赞