(TO ADMINS: THIS IS A DIFF PROBLEM) i made a button which makes a message to all players, The message dosent actually show up and gives no error so i have no idea how to solve it. Enough of this, here is the script
local button = script.Parent
function clicked()
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = script.Parent
local textLabel = Instance.new("TextLabel")
textLabel.Parent = screenGui
textLabel.Position = UDim2.new(0, 0, 0, 0)
textLabel.Size = UDim2.new(1, 0, 1, 0)
textLabel.TextScaled = true
textLabel.BackgroundColor3 = BrickColor.Black().Color
textLabel.Text = script.Parent.Parent.button7.Text
textLabel.BackgroundTransparency = 0,5
textLabel.TextColor3 = BrickColor.White().Color
textLabel.TextStrokeTransparency = 0
wait(5)
screenGui:remove()
end

6 comments
you didnt have to delete the old question. is this way working for you? it doesnt for me unlike the script from the other question
You never call the function, so it will never run.
@Perci1 , i am actually stupid for forgetting that, lol. and Robloxian, in the previous script it was like impossible to solve but somehow i solved it
it wasnt impossible. by the time i got the script done and was going to post, you deleted it
Oh, but anyways thank you for taking your time and i apogolise.
its fine. i wish someone would answer mine about swords though . it's like they're avoiding it