Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make this work after death??

Asked by 8 years ago

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)

1 answer

Log in to vote
0
Answered by
Ryzox 220 Moderation Voter
8 years ago

http://www.roblox.com/games/276151982/Knight-Changer

Here take that and look over it.

Ad

Answer this question