local me = game.Players.LocalPlayer local char = player.Character local tool for _, v in ipairs(player:GetDescendants()) do if v.Name == "SyncAPI" then tool = v.Parent break end end if not tool then for _, v in ipairs(game.ReplicatedStorage:GetDescendants()) do if v.Name == "SyncAPI" then tool = v.Parent break end end end if not tool then warn("yo ur not have f3x") return end --craaa remote = tool.SyncAPI.ServerEndpoint function _(args) spawn(function() local success, result if remote:IsA("RemoteFunction") then success, result = pcall(function() return remote:InvokeServer(unpack(args)) end) else remote:FireServer(unpack(args)) success = true end if success then end end) end function CreatePart(cf, parent) local args = { [1] = "CreatePart", [2] = "Normal", [3] = cf, [4] = parent } remote:InvokeServer(unpack(args)) end function MovePart(part, cf) local args = { [1] = "SyncMove", [2] = { [1] = { ["Part"] = part, ["CFrame"] = cf } } } _(args) end function Resize(part, size, cf) local args = { [1] = "SyncResize", [2] = { [1] = { ["Part"] = part, ["CFrame"] = cf, ["Size"] = size } } } _(args) end function SetTrans(part, int) local args = { [1] = "SyncMaterial", [2] = { [1] = { ["Part"] = part, ["Transparency"] = int } } } _(args) end function Setmate(part, int) local args = { [1] = "SyncMaterial", [2] = { [1] = { ["Part"] = part, ["Material"] = int } } } _(args) end function Color(part, color) local args = { [1] = "SyncColor", [2] = { [1] = { ["Part"] = part, ["Color"] = color, ["UnionColoring"] = false } } } _(args) end function SetAnchor(boolean, part) local args = { [1] = "SyncAnchor", [2] = { [1] = { ["Part"] = part, ["Anchored"] = boolean } } } _(args) end function DestroyPart(part) local args = { [1] = "Remove", [2] = { [1] = part } } _(args) end function SetCollision(part, boolean) local args = { [1] = "SyncCollision", [2] = { [1] = { ["Part"] = part, ["CanCollide"] = boolean } } } _(args) end function AddMesh(part) local args = { [1] = "CreateMeshes", [2] = { [1] = { ["Part"] = part } } } _(args) end function SetMesh(part, meshid) local args = { [1] = "SyncMesh", [2] = { [1] = { ["Part"] = part, ["MeshId"] = "rbxassetid://" .. meshid } } } _(args) end function SetMeshVertexColor(part, vector) local args = { [1] = "SyncMesh", [2] = { [1] = { ["Part"] = part, ["VertexColor"] = vector } } } _(args) end function SpawnDecal(part, side) local args = { [1] = "CreateTextures", [2] = { [1] = { ["Part"] = part, ["Face"] = side, ["TextureType"] = "Decal" } } } _(args) end function AddDecal(part, asset, side) local args = { [1] = "SyncTexture", [2] = { [1] = { ["Part"] = part, ["Face"] = side, ["TextureType"] = "Decal", ["Texture"] = "rbxassetid://" .. asset } } } _(args) end function MeshResize(part, size) local args = { [1] = "SyncMesh", [2] = { [1] = { ["Part"] = part, ["Scale"] = size } } } _(args) end function Weld(part1, part2, lead) local args = { [1] = "CreateWelds", [2] = { [1] = part1, [2] = part2 }, [3] = lead } _(args) end function SetName(part, stringg) local args = { [1] = "SetName", [2] = { [1] = part }, [3] = stringg } _(args) end