Advertisement
MyNewName

Untitled

Mar 13th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Script0 = Instance.new("Script")
  20. Script0.Name = "ResizeScript"
  21. Script0.Parent = mas
  22. table.insert(cors,sandbox(Script0,function()
  23. -- Place this script in the StarterCharacterScripts in StarterPlayer
  24.  
  25.  
  26. local scale = 0.6 -- Change the character scale here
  27.  
  28.  
  29.  
  30. Character = game.Workspace.YelIow_Diamond
  31. Humanoid = Character:FindFirstChild("Humanoid")
  32.  
  33. Debris = game:GetService("Debris")
  34.  
  35. ResizeModule = require(201433042)
  36.  
  37.  
  38. ResizeModule.ScaleCharacter(Character, scale, {ScaleTools = true, ScaleHats = true})
  39. end))
  40. for i,v in pairs(mas:GetChildren()) do
  41. v.Parent = workspace
  42. pcall(function() v:MakeJoints() end)
  43. end
  44. mas:Destroy()
  45. for i,v in pairs(cors) do
  46. spawn(function()
  47. pcall(v)
  48. end)
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement