I’m trying to create a “notification” that is fired from a local script to a local script. I’m using a BindableEvent to do this, and this is what it looks like: (in StarterGui)
And this is what the script has:
script.Parent.Send.Event:Connect(function (Text, Color)
print("Notification")
local Notification = script.Parent.Label:Clone()
Notification.Text = Text
game.TweenService:Create(Notification, TweenInfo.new(1, Enum.EasingStyle.Quint), {TextColor3 = Color, Position = UDim2.new(0.5, 0, 0.1, 10)}):Play()
task.wait(#Text / 190 * 60)
game.TweenService:Create(Notification, TweenInfo.new(.5, Enum.EasingStyle.Quart), {TextTransparency = 1, TextStrokeTransparency = 1}):Play()
task.wait(.5)
Notification:Destroy()
end)
When I fire the event from the other LocalScript, “Notification” prints, but nothing gets cloned in my PlayerGui and none of the rest outputs or does anything.