Here's the module script;

local PlayerGui = game.Players.LocalPlayer.PlayerGui
local NotificationModule = {}
local NotificationLabel = game.ServerStorage.NotificationGui.NotificationLabel

function NotificationModule.NewNotification(text, duration)
	local Notification = NotificationLabel:Clone()
	Notification.Text = text
	Notification.Parent = PlayerGui
	
	Notification:TweenPosition(UDim2.new(0.829, 0,0.876, 0), 'In', 'Sine', .35)
	wait(duration)
	Notification:TweenPosition(UDim2.new(1, 0,0.876, 0), 'Out', 'Sine', .35)
	Notification:Destroy()
end

return NotificationModule


Here's the script that calls the function; (It's in workspace.)

local NotificationModule = require(game.ServerScriptService.NotificationModule)

wait(7)

NotificationModule.NewNotification("Hello!", 6.5)


If someone could help, that would be greatly appreciated.