- Made a shout that works in a single server, how do I make it work in every server?
Here are the 2 scripts I am using, what should I configure to make them global?
Script in ScreenGUI
game.ReplicatedStorage.ShoutEvent.OnServerEvent:Connect(function(player, text)
print(text)
script.Parent.Text = text
if script.Parent.Text == text then
script.Parent.Visible = true
wait(10)
script.Parent.Visible = false
end
end)
Script in Shout Button
script.Parent.MouseButton1Click:Connect(function()
local textbox = script.Parent.Parent.Text
game.ReplicatedStorage.ShoutEvent:FireServer(textbox)
end)
What should I add to make it global?