Advertisement
bobopopcornboy

Skin stealer

Sep 3rd, 2024 (edited)
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. args = {...}
  2. if args[2] == "name" then
  3. id = game:GetService("Players"):GetUserIdFromNameAsync(args[1])
  4. else
  5. id = args[1]
  6. end
  7.  
  8. local oldModel = owner.Character
  9. local newModel = game.Players:CreateHumanoidModelFromUserId(id)
  10.  
  11. local oldCFrame = oldModel:GetPrimaryPartCFrame()
  12.  
  13. owner.Character = newModel
  14. newModel.Parent = workspace -- [1] this follows current character loading behavior
  15. newModel:SetPrimaryPartCFrame(oldCFrame)
  16. oldModel:Destroy()
  17.  
  18. --char = game.Players:CreateHumanoidModelFromUserId(id)
  19. --char.Parent = workspace
  20. --owner.Character = char
Tags: Roblox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement