Sparkles f3x
Key RequiredUniversal

Sparkles f3x

Universal Scriptloepkiddloepkidd 1.2K views 2K executesUpdated Sep 14, 2026
Unrated
00
Lua Script•59 lines (2223 chars)
local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
local Player = Players.LocalPlayer

local function getBuildingTools()
    local tool = (Player:FindFirstChild("Backpack") and Player.Backpack:FindFirstChild("Building Tools+")) 
        or (Player.Character and Player.Character:FindFirstChild("Building Tools+"))
        or (Player:FindFirstChild("Backpack") and Player.Backpack:FindFirstChild("F3X"))
        or (Player.Character and Player.Character:FindFirstChild("F3X"))

    if not tool and Player.Backpack then
        for _, v in ipairs(Player.Backpack:GetChildren()) do
            if v:IsA("Tool") and (v.Name:lower():find("f3x") or v.Name:lower():find("fork") or v:FindFirstChild("SyncAPI")) then
                tool = v
                break
            end
        end
    end

    if not tool and Player.Character then
        for _, v in ipairs(Player.Character:GetChildren()) do
            if v:IsA("Tool") and (v.Name:lower():find("f3x") or v.Name:lower():find("fork") or v:FindFirstChild("SyncAPI")) then
                tool = v
                break
            end
        end
    end

    return tool
end

local function applySparklesToAll()
    local BuildingTools = getBuildingTools()
    if not BuildingTools then return end

    local ServerEndpoint = BuildingTools:FindFirstChild("SyncAPI") and BuildingTools.SyncAPI:FindFirstChild("ServerEndpoint")
    if not ServerEndpoint then return end

    for _, part in ipairs(Workspace:GetDescendants()) do
        if part:IsA("BasePart") then
            task.spawn(function()
                pcall(function()
                    local existingSparkles = part:FindFirstChildOfClass("Sparkles")
                    if not existingSparkles then
                        ServerEndpoint:InvokeServer("CreateDecorations", {{Part = part, DecorationType = "Sparkles"}})
                    end
                    
                    local sData = {
                        Part = part, 
                        DecorationType = "Sparkles"
                    }
                    ServerEndpoint:InvokeServer("SyncDecorate", {sData})
                end)
            end)
        end
    end
end

applySparklesToAll()

Features & Information

free

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts