Universal Script 📌
19.7k Views
471 Executions

Change skin every die

Universal Script 📌
2 years ago
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

This script changes skin color when you die. It also deletes your accessories and converts you to R6.

View Raw
local AvatarEditorService = game:GetService("AvatarEditorService")
local VirtualInputManager = game:GetService("VirtualInputManager")
local pf = game:GetService("CoreGui").ThemeProvider.PromptFrame
local ButtonOkPos
local hd = Instance.new('HumanoidDescription')
local x,y = 0,0
local lp = game:GetService("Players").LocalPlayer

local function changeColors()
    hd.HeadColor = BrickColor.Random().Color
    hd.TorsoColor = BrickColor.Random().Color
    hd.LeftArmColor = BrickColor.Random().Color
    hd.RightArmColor = BrickColor.Random().Color
    hd.LeftLegColor = BrickColor.Random().Color
    hd.RightLegColor = BrickColor.Random().Color

    AvatarEditorService:PromptSaveAvatar(hd, Enum.HumanoidRigType.R6)

    ButtonOkPos = pf:WaitForChild('Prompt').AlertContents.Footer.Buttons:FindFirstChild('2').AbsolutePosition

    x = ButtonOkPos.x + 15
    y = ButtonOkPos.y + 45

    VirtualInputManager:SendMouseButtonEvent(x, y, 0, true, nil, 0)
    VirtualInputManager:SendMouseButtonEvent(x, y, 0, false, nil, 0)
end

lp.CharacterAdded:Connect(changeColors)
changeColors()


Comments

5
Log in to join the conversation. Login
Moor's profile picture
Moor2 years ago(edited)

ok

1
OuterTrees's profile picture
OuterTreesUploader2 years ago(edited)

Yes @Nooby

1
t00pj00lan's profile picture
t00pj00lan2 years ago(edited)

aaa

1
crucifixnew's profile picture
crucifixnew2 years ago(edited)

dont know @Nooby

1
Moor's profile picture
Moor2 years ago(edited)

fe?

1

Tags

More universal scripts

See all
Universal Script 📌
3.7k
184.5k
Bumped 2 hours ago
Script hub
253
19
3 hours ago
Universal Script 📌
28.5k
663.4k
Bumped 4 hours ago
Script hub
13.7k
2.7k
Bumped 7 hours ago
Key System
Paid
Script hub
263.5k
88.1k
Bumped 7 hours ago
Key System
Universal Script 📌
2.8k
9.4k
Bumped 8 hours ago
Universal Script 📌
538
37
Approved 8 hours ago
Universal Script 📌
563
33
Approved 8 hours ago