local me = game.Players.LocalPlayer local char = me.Character local tool for _,v in ipairs(me: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 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) elseif remote:IsA("RemoteEvent") then success, result = pcall(function() remote:FireServer(unpack(args)) end) 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 function vect(part, of) local args = { [1] = "SyncMesh", [2] = { [1] = { ["Part"] = part, ["Offset"] = of } } } _(args) end function reflect(part, int) local args = { [1] = "SyncMaterial", [2] = { [1] = { ["Part"] = part, ["Reflectance"] = int } } } _(args) end function MeshColor(part, color) local args = { [1] = "SyncMesh", [2] = { [1] = { ["Part"] = part, ["VertexColor"] = color } } } _(args) end function CreateSpotlight(part) local args = { [1] = "CreateLights", [2] = { [1] = { ["Part"] = part, ["LightType"] = "SpotLight" } } } _(args) end function SyncLighting(part, brightness) local args = { [1] = "SyncLighting", [2] = { [1] = { ["Part"] = part, ["LightType"] = "SpotLight", ["Brightness"] = brightness } } } _(args) end function SetLocked(part, boolean) local args = { [1] = "SetLocked", [2] = { [1] = part }, [3] = boolean } _(args) end function SetMeshtype(part, type) local args = { [1] = "SyncMesh", [2] = { [1] = { ["Part"] = part, ["MeshType"] = type } } } _(args) end function Deleteweld(part) local args = { [1] = "RemoveWelds", [2] = welds } _(args) end function ClonePart(part, parent) local args = { [1] = "Clone", [2] = { [1] = part }, [3] = parent } _(args) end function AddD3cal(part, asset, side) local args = { [1] = "SyncTexture", [2] = { [1] = { ["Part"] = part, ["Face"] = side, ["TextureType"] = "Decal", ["Texture"] = asset } } } _(args) end function light(part) local args = { [1] = "CreateLights", [2] = { [1] = { ["Part"] = part, ["LightType"] = "PointLight" } } } _(args) local args2 = { [1] = "SyncLighting", [2] = { [1] = { ["Part"] = part, ["LightType"] = "PointLight", ["Color"] = clr, ["Range"] = 10, ["Brightness"] = 7 } } } _(args2) end