RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a frame have blur background when its open after player clicks on part"
-- local script in the part local part = script.Parent local player = game:GetService("Players").LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local frame = playerGui:WaitForChild("BlurFrame") local blur = playerGui:WaitForChild("BlurEffect") local function toggleBlur() if frame.Visible then frame.Visible = false blur.Enabled = false else frame.Visible = true blur.Enabled = true end end local function onClicked() toggleBlur() end part.MouseClick:Connect(onClicked) -- Add a Frame named "BlurFrame" and a BlurEffect named "BlurEffect" to the StarterGui under ScreenGui. Set the Frame's Visible property to false and the BlurEffect's Enabled property to false.