Universal Script 📌
16 Views
2 Executions

Lucas_bacon039 obby map f3x

Universal Script 📌
Saamuell2020
Saamuell2020First script
6 hours ago

Reviewed by QueueSpeedDemonPaid revieweron How review works

Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Saamuell2020 made the map too

View Raw
local me = game.Players.LocalPlayer
local root = me.Character and me.Character:FindFirstChild('HumanoidRootPart')
if root then root.Anchored = true end
local offset = Vector3.new(0, 0, 0)
local origin = CFrame.new()
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
local syncApi = tool:FindFirstChild('SyncAPI')
local remote = syncApi and syncApi:FindFirstChild('ServerEndpoint')
if not remote then warn('no server endpoint found') return end
local function _(args)
    if not remote then return end
    if remote:IsA('RemoteEvent') then
        pcall(remote.FireServer, remote, unpack(args))
    else
        task.spawn(pcall, remote.InvokeServer, remote, unpack(args))
end
end
function CreatePart(partType, cf, parent)
    if not remote then return nil end
    local worldCF = (origin + offset) * cf
    local success, part = pcall(function() return remote:InvokeServer('CreatePart', partType, worldCF, parent) end)
    return success and part or nil
end
function MovePart(part, cf) if not part then return end local worldCF = (origin + offset) * cf _({'SyncMove', {{['Part'] = part, ['CFrame'] = worldCF}}}) end
function Resize(part, size, cf) if not part then return end local worldCF = (origin + offset) * cf _({'SyncResize', {{['Part'] = part, ['CFrame'] = worldCF, ['Size'] = size}}}) end
function SetTrans(part, int) if not part then return end _({'SyncMaterial', {{['Part'] = part, ['Transparency'] = int}}}) end
function Setmate(part, int) if not part then return end _({'SyncMaterial', {{['Part'] = part, ['Material'] = int}}}) end
function Color(part, color) if not part then return end _({'SyncColor', {{['Part'] = part, ['Color'] = color, ['UnionColoring'] = false}}}) end
function SetAnchor(boolean, part) if not part then return end _({'SyncAnchor', {{['Part'] = part, ['Anchored'] = boolean}}}) end
function SetCollision(part, boolean) if not part then return end _({'SyncCollision', {{['Part'] = part, ['CanCollide'] = boolean}}}) end
function AddMesh(part) if not part then return end _({'CreateMeshes', {{['Part'] = part}}}) end
function SetMesh(part, meshid) if not part then return end _({'SyncMesh', {{['Part'] = part, ['MeshId'] = 'rbxassetid://' .. meshid}}}) end
function SpawnDecal(part, side) if not part then return end _({'CreateTextures', {{['Part'] = part, ['Face'] = side, ['TextureType'] = 'Decal'}}}) end
function AddDecal(part, asset, side) if not part then return end _({'SyncTexture', {{['Part'] = part, ['Face'] = side, ['TextureType'] = 'Decal', ['Texture'] = 'rbxassetid://' .. asset}}}) end
function MeshResize(part, size) if not part then return end _({'SyncMesh', {{['Part'] = part, ['Scale'] = size}}}) end
function SetName(part, stringg) if not part then return end _({'SetName', {part}, stringg}) end
function vect(part, of) if not part then return end _({'SyncMesh', {{['Part'] = part, ['Offset'] = of}}}) end


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all