Now that I have a script that only changes me to the character (Thanks to Dittoo) how do I loop it to continuously check if I am not the character, and If I'm not, it will change me to it, but If I am, it won't do anything (Like if I unchar'd myself how would I keep making it check if I'm the character and I'f I'm not it will change me to it) I was gonna do while true do but that would just keep changing me to the character when I am already the character. I also was thinking of doing an if then thing but I forgot how.
game:service'Players'.playerAdded:connect(function(Player) Player:waitForChild'Backpack';--// Waits until they have a backpack, moreof character recognition. if(Player.userId==39704067)then--// 39704067 is Vividex's userId. wait(.5);--// A bit more delay. Player.CharacterAppearance='http://www.roblox.com/Asset/CharacterFetch.ashx?userId=31790662';--// Changed their appearance to the specified characterappearance. delay(15,function()--// Same as wait(15), but more efficient. if(Player and ypcall(function()assert(Player.Parent==game:service'Players','');end))then Player:loadCharacter(); end; end); end; end);
Easy, just make a while wait() do
in the script. So every 0.003 seconds it will check for a player with a player ID of 39704067.
game:service'Players'.PlayerAdded:connect(function(Player) Player:WaitForChild'Backpack';--// Waits until they have a backpack, moreof character recognition. if(Player.userId==39704067)then--// 39704067 is Vividex's userId. while wait() do Player.CharacterAppearance='http://www.roblox.com/Asset/CharacterFetch.ashx?userId=31790662';--// Changed their appearance to the specified characterappearance. end end; end); game:service'Players'.PlayerAdded:connect(function(Player) Player:WaitForChild'Backpack' if(Player.userId==39704067)then wait(15) Player:LoadCharacter() end end)
I can't really test this in studio so...