I'm trying to make this work, even after death, but yet, it disappears.
local player = game.Players.LocalPlayer
function onClicked()
player:FindFirstChild("Class").Value = "Knight"
local player = game:GetService("Players").LocalPlayer
local character = player.Character
player:FindFirstChild("knightClassVerifier").Value = true
if not (character or character.Parent) then
character = player.CharacterAdded:wait()
end
delay(1, function()
player:ClearCharacterAppearance();
local shirt = Instance.new("Shirt")
local pants = Instance.new("Pants")
shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=56815265"
pants.PantsTemplate = "http://www.roblox.com/asset/?id=164665516"
shirt.Parent = character
pants.Parent = character
if player:FindFirstChild("knightClassVerifier") == true then
end
end)
end
script.Parent.MouseButton1Click:connect(onClicked)
(knightClassVerifier is a boolValue inside a player, and Class is another value inside the player)
