What do you want to achieve? I am making a notification system that notify you when someone joins the games, I am also trying to animate it using TweenService.
What is the issue? I keep getting “Argument 3 missing or nil” at line 14
What solutions have you tried so far? Roblox Creator Document
game.Players.PlayerAdded:Connect(function(player)
print(player.name)
local Frame = game.StarterGui.PlayerConnectionBox.Frame
local Name = player.name
local TweenService = game:GetService("TweenService")
Frame.Status.Position = UDim2.new(0.098, 0.121)
local info = TweenInfo.new(0.5, Enum.EasingStyle.Bounce, Enum.EasingDirection.In, 4, true, 1)
Frame.Status.Text = player.name .. " has joined!"
local Tween = TweenService:Create(info, { Position = UDim2.new(0.098, 5) })
Tween.Completed:Connect(function(PlayBackState)
print("Tween".. tostring(PlayBackState))
end)
Tween:Play()
end)
looks like you forgot that Create() needs 3 arguments.
do local Tween = TweenService:Create(object, info, {Position = UDim2.new(0.098, 5)})
but define object first. i dont know what object you want to tween.