我的脚本是:
script.Parent.ClickDetector.MouseClick:Connect(function(plr)
script.Parent.ClickDetector.MaxActivationDistance = 0
script.Parent.BrickColor = BrickColor.new("Really red")
local mapfolder = game.Lighting.Folder
local maps = mapfolder:GetChildren()
chosenmap = maps[math.random(1, #maps)]
mapclone = chosenmap:Clone()
local label = plr.PlayerGui.ScreenGui.Frame.TextLabel
if chosenmap.Name == "Blue" then
label.Text = "A wild Blue Exists!"
elseif chosenmap.Name == "Yellow" then
label.Text = "A wild Yellow Exists!"
elseif chosenmap.Name == "Red" then
label.Text = "A wild Red Exists!"
else label.Text = "not ready yet"
end
mapclone.Parent = workspace
wait(10)
mapclone:Destroy()
script.Parent.BrickColor = BrickColor.new("Lime green")
script.Parent.ClickDetector.MaxActivationDistance = 32
end)
这很好用,但是当我在与人一起在服务器上测试它时,它不会向他们显示,那么我怎样才能让 TextLabel 向所有人显示呢?