Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make it so that the blur goes away after they press play?

Asked by 3 years ago

What should I put so that the blur would go away after the play pressed play?

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = workspace.CurrentCamera
local Title = script.Parent.GameTitle
local PlayButton = script.Parent.PlayButton

repeat wait()
    Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = workspace.CameraPart.CFrame

PlayButton.MouseButton1Click:Connect(function()
    Camera.CameraType = Enum.CameraType.Custom
    PlayButton:Destroy()
    Title:Destroy()
    --What should I put in here so that i can get rid of the blur after they press play I was following a tutorial lol--
end)

1 answer

Log in to vote
0
Answered by 3 years ago

I suggest change it to this

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = workspace.CurrentCamera
local Title = script.Parent.GameTitle
local PlayButton = script.Parent.PlayButton
local Blur = Instance.new("BlurEffect", game.Lightning)
Blur.Name = "Blur"

PlayButton.MouseButton1Click:Connect(function()
    Blur:Destroy()
    PlayButton:Destroy()
    Title:Destroy()
end)

if it doesn't work dm me at Blue Duck#8902

0
ok we were already having a convo in dis lol TypicalVictorlks 17 — 3y
Ad

Answer this question