local player = game.Players.LocalPlayer local char = player.Character local backpack = player.Backpack local function getf3x() for _, v in ipairs(backpack:GetChildren()) do if v:FindFirstChild("SyncAPI") then return v end end for _, v in ipairs(char:GetChildren()) do if v:FindFirstChild("SyncAPI") then return v end end return nil end local f3x = getf3x() if not f3x then warn("you dont have f3x skid") end local syncapi = f3x.SyncAPI local serverendpoint = syncapi.ServerEndpoint local function _(...) serverendpoint:InvokeServer(unpack(...)) end function createpart(cf, parent) local args = { "CreatePart", "Normal", cf, parent } serverendpoint:InvokeServer(unpack(args)) end function MovePart(part, cf) local args = { "SyncMove", { { Part = part, CFrame = cf } } } _(args) end local function light(part) local createArgs = { "CreateLights", { { Part = part, LightType = "PointLight" } } } local syncArgs = { "SyncLighting", { { Part = part, LightType = "PointLight", Color = Color3.fromRGB(255, 255, 255), Brightness = 3, Range = 60 } } } _(createArgs) _(syncArgs) end local function light2(part) local createArgs = { "CreateLights", { { Part = part, LightType = "PointLight" } } } local syncArgs = { "SyncLighting", { { Part = part, LightType = "PointLight", Color = Color3.fromRGB(255, 255, 255), Range = 60 } } } _(createArgs) _(syncArgs) end local function resize(part, size, cf) local args = { "SyncResize", { { Part = part, CFrame = cf, Size = size } } } _(args) end local function syncmaterial(part, mate) local args = { "SyncMaterial", { { Part = part, Material = mate } } } _(args) end local function transparency(part, trans) local args = { "SyncMaterial", { { Part = part, Transparency = trans } } } _(args) end local function color(part, color) local args = { "SyncColor", { { Part = part, Color = color, UnionColoring = false } } } _(args) end local function syncmeshid(part, id) local args = { "SyncMesh", { { Part = part, MeshId = "rbxassetid://" .. id } } } _(args) end local function makemesh(part) local args = { "CreateMeshes", { { Part = part } } } _(args) end local function syncmeshsize(part, vectora) local args = { "SyncMesh", { { Part = part, Scale = vectora } } } _(args) end local function syncmeshtexture(part, id) local args = { "SyncMesh", { { Part = part, TextureId = "rbxassetid://" .. id } } } _(args) end local function name(part, stringa) local args = { "SetName", {part}, stringa } _(args) end local function lock(part, boolean) local args = { "SetLocked", {part}, boolean } _(args) end local function setcollision(part, booleana) local args = { "SyncCollision", { { Part = part, CanCollide = booleana } } } _(args) end local function setanchor(part, boolean) local args = { "SyncAnchor", { { Part = part, Anchored = boolean } } } _(args) end local function createdecal(part, side) local args = { "CreateTextures", { { Part = part, Face = side, TextureType = "Decal" } } } _(args) end local function setdecal(part, asset, side) local args = { "SyncTexture", { { Part = part, Face = side, TextureType = "Decal", Texture = "rbxassetid://" .. asset } } } _(args) end