Advertisement
Ddyueejkddhdjjl

Untitled

Jul 20th, 2024
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. -- Original script defining chams effect
  2. local scriptString = [[
  3. -- Function to apply chams effect to a specific part or model
  4. local function applyChams(part)
  5. local outline = Instance.new("BoxHandleAdornment")
  6. outline.Size = part.Size + Vector3.new(0.1, 0.1, 0.1)
  7. outline.Adornee = part
  8. outline.AlwaysOnTop = true
  9. outline.ZIndex = 5
  10. outline.Color3 = Color3.fromRGB(255, 0, 0) -- Adjust color as needed
  11. outline.Transparency = 0.5 -- Adjust transparency as needed
  12. outline.Parent = part
  13. end
  14.  
  15. -- Example: Applying chams to all parts of a player's character
  16. local function applyChamsToPlayer(player)
  17. local character = player.Character
  18. if character then
  19. for _, part in ipairs(character:GetDescendants()) do
  20. if part:IsA("BasePart") then
  21. applyChams(part)
  22. end
  23. end
  24. end
  25. end
  26.  
  27. -- Example: Applying chams to all players in the game
  28. for _, player in ipairs(game.Players:GetPlayers()) do
  29. player.CharacterAdded:Connect(function(character)
  30. applyChamsToPlayer(player)
  31. end)
  32. if player.Character then
  33. applyChamsToPlayer(player)
  34. end
  35. end
  36. ]]
  37.  
  38. -- Load and execute the script using loadstring
  39. local scriptFunction = loadstring(scriptString)
  40. scriptFunction()
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement