Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Original script defining chams effect
- local scriptString = [[
- -- Function to apply chams effect to a specific part or model
- local function applyChams(part)
- local outline = Instance.new("BoxHandleAdornment")
- outline.Size = part.Size + Vector3.new(0.1, 0.1, 0.1)
- outline.Adornee = part
- outline.AlwaysOnTop = true
- outline.ZIndex = 5
- outline.Color3 = Color3.fromRGB(255, 0, 0) -- Adjust color as needed
- outline.Transparency = 0.5 -- Adjust transparency as needed
- outline.Parent = part
- end
- -- Example: Applying chams to all parts of a player's character
- local function applyChamsToPlayer(player)
- local character = player.Character
- if character then
- for _, part in ipairs(character:GetDescendants()) do
- if part:IsA("BasePart") then
- applyChams(part)
- end
- end
- end
- end
- -- Example: Applying chams to all players in the game
- for _, player in ipairs(game.Players:GetPlayers()) do
- player.CharacterAdded:Connect(function(character)
- applyChamsToPlayer(player)
- end)
- if player.Character then
- applyChamsToPlayer(player)
- end
- end
- ]]
- -- Load and execute the script using loadstring
- local scriptFunction = loadstring(scriptString)
- scriptFunction()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement