Advertisement
okban

Untitled

Mar 17th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. ---<>- Made by Megablok13 -<>---
  2. ---<>- Green Hoodie -<>---
  3. --Converted with ttyyuu12345's model to script plugin v4
  4. local Player = game.Players.localPlayer
  5. local Character = Player.Character
  6. local Humanoid = Character.Humanoid
  7. local mouse = Player:GetMouse()
  8. local p = game.Players.LocalPlayer
  9. local char = p.Character
  10. local Head = p.Character.Head
  11. function swait(num)
  12. if num == 0 or num == nil then
  13. game:service("RunService").RenderStepped:wait(0)
  14. else
  15. for i = 0, num do
  16. game:service("RunService").RenderStepped:wait(0)
  17. end
  18. end
  19. end
  20. mouse.KeyDown:connect(function(key)
  21. if key == "r" and Player.Character.Parent == workspace then
  22. Player.Character.Parent = workspace.Camera
  23. char = Player.Character
  24. char.Archivable = true
  25.  
  26.  
  27. cloneChar = char:Clone()
  28. cloneChar.Parent = workspace
  29. cloneChar.Name = "KYLETHORNTON" -- put it to any name
  30. cloneChar.Head.Anchored = true
  31. Humanoid.WalkSpeed = 16
  32.  
  33.  
  34.  
  35. end
  36. end)
  37.  
  38.  
  39.  
  40.  
  41. mouse.KeyUp:connect(function(key)
  42. if key == "r" and Player.Character.Parent == workspace.Camera then
  43. Player.Character.Parent = workspace
  44. Humanoid.WalkSpeed = 16
  45. cloneChar:destroy()
  46.  
  47. end
  48. end)
  49.  
  50. function smooth(obj)
  51. local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"}
  52. for i,v in pairs(sides) do
  53. obj[v.."Surface"] = "SmoothNoOutlines"
  54. end
  55. end
  56. function fade(obj, dest, grow)
  57. spawn(function()
  58. local oldcf = obj.CFrame
  59. for i = 0, 10 do
  60. if grow then
  61. obj.Size = obj.Size +Vector3.new(1,1,1)
  62. obj.CFrame = oldcf
  63. end
  64. obj.Transparency = obj.Transparency +0.2
  65. swait()
  66. end
  67. if dest then
  68. obj:Destroy()
  69. end
  70. end)
  71. end
  72.  
  73.  
  74. sprint = false
  75. mouse.KeyDown:connect(function(key)
  76. if key=="r" then
  77. sprint = true
  78. char:FindFirstChildOfClass("Humanoid")
  79. local mod = Instance.new("Model", workspace.Camera)
  80. mod.Name = "MobModel"
  81. for i,v in pairs(char:children()) do
  82. if v:IsA("Accessory") and not rage then
  83. if v:FindFirstChild("Handle") then
  84. v.Handle.Transparency = 0
  85. end
  86. end
  87. if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" and v.Name ~= "Percent" then
  88. v.Transparency = 0
  89. end
  90. end
  91. if char.Head:FindFirstChild("face") then
  92. char.Head.face.Transparency = 0
  93. end
  94. repeat wait()
  95. if not workspace:FindFirstChild("MobModel") then
  96. mod = Instance.new("Model", workspace.Camera)
  97. mod.Name = "MobModel"
  98. end
  99. for i,v in pairs(Character:children()) do
  100. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" and v.Name ~= "Percent" then
  101. local new = v:Clone()
  102. smooth(new)
  103. new.Transparency = 0.3
  104. new.Anchored = true
  105. new.CanCollide = false
  106. new.Material = "Neon"
  107. new.BrickColor = BrickColor.new("Lime green")
  108. for i,v in pairs(new:children()) do if not v:IsA("SpecialMesh") then v:Destroy() end end
  109. new.Parent = mod
  110. fade(new, true)
  111. end
  112. end
  113. until not sprint
  114. if mod then
  115. spawn(function()
  116. repeat wait() until not mod or #mod:children() == 0
  117. mod:Destroy()
  118. end)
  119. end
  120. char:FindFirstChildOfClass("Humanoid")
  121. end
  122. end)
  123. mouse.KeyUp:connect(function(key)
  124. if key=="r" then
  125. sprint = false
  126. for i,v in pairs(char:children()) do
  127. if v:IsA("Accessory") and not rage then
  128. if v:FindFirstChild("Handle") then
  129. v.Handle.Transparency = 0
  130. end
  131. end
  132. if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" and v.Name ~= "Percent" and not v:FindFirstChildOfClass("ParticleEmitter") then
  133. v.Transparency = 0
  134. end
  135. end
  136. if char.Head:FindFirstChild("face") then
  137. char.Head.face.Transparency = 0
  138. end
  139. end
  140. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement