I want to tween in a blur onto a player’s screen when they spawn, so it blurs the background before they press play.
When they press play, the blur should tween out.
The scripts i currently have are:
local script in starterplayerscripts
game.Players.PlayerAdded:Connect(function(plr)
local Info = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In)
local TweenService = game:GetService("TweenService")
local goal = {Size = 56}
local TweenBlur = TweenService:Create(game:GetService("Lighting").welcomeBlur, Info, goal)
end)
localscript inside the play button
local button = script.Parent
local blur = game.Lighting.welcomeBlur
local ts = game:GetService("TweenService")
local Info = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local TweenBlur = ts:Create(game:GetService("Lighting").welcomeBlur, Info, {Size = 0})
button.MouseButton1Click:Connect(function()
TweenBlur:Play()
end)
i’ve tried the script in startercharacterscripts and without the player added event in both of the startercharacterscripts and starterplayerscripts and it doesn’t work
local Info = TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In)
local TweenService = game:GetService("TweenService")
local goal = {Size = 56}
local TweenBlur = TweenService:Create(game:GetService("Lighting").welcomeBlur, Info, goal)
TweenBlur:Play()