Pastefi mark
Globos
/cc93a1f3
Paste view
NONE PUBLIC 41 views
cc93a1f3
2025-11-21 01:41:18
-- ???? Globos decorativos medianos al frente del pecho (CLIENT ONLY)

local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")

-- Sistema para quitar colisiones reales
local PhysicsService = game:GetService("PhysicsService")
local group = "GlobosDecorativos"

pcall(function()
    PhysicsService:CreateCollisionGroup(group)
end)

for _, cg in ipairs(PhysicsService:GetCollisionGroups()) do
    PhysicsService:CollisionGroupSetCollidable(group, cg.name, false)
end

local function crearGlobo(nombre, offset, color)
    local g = Instance.new("Part")
    g.Name = nombre
    g.Shape = Enum.PartType.Ball
    g.Size = Vector3.new(2.2, 2.2, 2.2)  -- tamaño mediano
    g.Color = color
    g.Material = Enum.Material.SmoothPlastic
    g.CanCollide = false
    g.CanTouch = false
    g.CanQuery = false
    g.Massless = true
    g.Parent = char

    PhysicsService:SetPartCollisionGroup(g, group)

    local weld = Instance.new("WeldConstraint")
    weld.Part0 = g
    weld.Part1 = hrp
    weld.Parent = g

    g.CFrame = hrp.CFrame * offset
    return g
end

-- Dos globos decorativos en el pecho (simétricos)
crearGlobo("GloboFrente1", CFrame.new(-0.8, 0.3, -1), Color3.fromRGB(255, 170, 170))
crearGlobo("GloboFrente2", CFrame.new(0.8, 0.3, -1), Color3.fromRGB(255, 170, 170))

Comments (0)

Log in to leave a comment.

No comments yet.