RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"a roblox script that creates a smooth highlight of the the outline of your character"
-- local script local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local parts = character:GetChildren() local function createOutline(part) local selectionBox = Instance.new("SelectionBox") selectionBox.Parent = part selectionBox.Adornee = part selectionBox.Color3 = Color3.new(1, 1, 0) selectionBox.Transparency = 0.8 selectionBox.LineThickness = 0.05 return selectionBox end local function highlightCharacter() for _, part in ipairs(parts) do if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then local outline = createOutline(part) outline.Transparency = 1 local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local tween = game.TweenService:Create(outline, tweenInfo, {Transparency = 0.8}) tween:Play() end end end highlightCharacter()