game.ReplicatedStorage.BrickClicked.OnServerEvent:Connect(function(player)
print("Event picked up")
local gui = player:WaitForChild("PlayerGui").NAMEOFTHEGUI
for _, player in pairs(game:GetService("Players"):GetPlayers()) do
gui.TextLabel.Text = tostring(" Host:"..player.Name.."!!")
gui.TextLabel.Visible = true
wait(.5)
gui.TextLabel.Visible = false
wait(.5)
gui.TextLabel.Visible = true
wait(.5)
gui.TextLabel.Visible = false
gui.TextLabel.Visible = true
wait(.5)
gui.TextLabel.Visible = false
wait(.5)
gui.TextLabel.Visible = true
wait(.5)
gui.TextLabel.Visible = false
end
serverscriptservice script^^^^
I'm trying to make a textlabel visible to all players in the game, after a player has clicked a certain part. The event is being picked up but seems like i messed up the code for what needs to happen.
local HintTest = game.Workspace:WaitForChild("HintTest")
debounce = false
HintTest.ClickDetector.MouseClick:Connect(function()
if debounce == false then
debounce = true
print("I was clicked")
game.ReplicatedStorage.BrickClicked:FireServer()
wait(3)
debounce = false
end
end)
local script^^^^

3 comments
thx, but that results in the exact same thing.
ok I will edit
there is no animation and your add only keeps the gui on the player's screen. completely unrelated