zed_isJayTheLionJR

Mafia Boss

Jun 21st, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local part = game.Players.LocalPlayer.Character
  2. local basetemplate = "http://www.roblox.com/asset/?id="
  3. local shirt = 63208006
  4. local pants = 140929022
  5. local h = part:findFirstChild("Shirt")
  6. if h ~= nil then
  7. h.ShirtTemplate = basetemplate..shirt
  8. else
  9. local i = Instance.new("Shirt")
  10. i.Name = "Shirt"
  11. i.ShirtTemplate = basetemplate..shirt
  12. i.Parent = part
  13. end
  14. local p = part:findFirstChild("Pants")
  15. if p ~= nil then
  16. p.PantsTemplate = basetemplate..pants
  17. else
  18. local np = Instance.new("Pants")
  19. np.PantsTemplate = basetemplate..pants
  20. np.Name = "Pants"
  21. np.Parent = part
  22. end
  23.  
  24. plr = game.Players.LocalPlayer
  25. mouse = plr:GetMouse()
  26. part = nil
  27. bp = nil
  28. particles = nil
  29. function clerp(a,b,c,d)
  30. for i = 0,d,.01 do
  31. a.CFrame = CFrame.new(b:lerp(c,i))
  32. wait()
  33. end
  34. end
  35. function slerp(a2,b2,c2,d2)
  36. for i2 = 0,d2,.01 do
  37. a2.CFrame = CFrame.new(b2:lerp(c2,i2))
  38. wait()
  39. end
  40. end
  41. mouse.KeyDown:connect(function(key)
  42. if key == "e" and plr.Character.Parent == workspace then
  43. plr.Character.Parent = workspace.Camera
  44. plr.Character.Archivable = true
  45. Instance.new("ForceField",plr.Character).Visible = false
  46. for y,t in pairs(plr.Character:GetChildren()) do
  47. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  48. t.Transparency = 0
  49. if t.Name == "Head" and t:FindFirstChild("face") then
  50. t.face.Transparency = 0
  51. end
  52. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  53. t.Handle.Transparency = 0
  54. end
  55. end
  56. elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
  57. plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p)
  58. elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
  59. if plr.Character.Torso.Anchored == true then
  60. for y,t in pairs(plr.Character:GetChildren()) do
  61. if t:IsA("Part") then
  62. t.Anchored = false
  63. end
  64. end
  65. else
  66. for y,t in pairs(plr.Character:GetChildren()) do
  67. if t:IsA("Part") then
  68. t.Anchored = true
  69. end
  70. end
  71. end
  72. elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
  73. local clone = part:Clone()
  74. clone.Parent = workspace
  75. clone.Anchored = false
  76. clone:ClearAllChildren()
  77. clone.CanCollide = true
  78. bp.Parent = clone
  79. particles.Parent = clone
  80. if part.Parent:FindFirstChildOfClass("Humanoid") then
  81. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  82. end
  83. part:Destroy()
  84. part = clone
  85. elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then
  86. plr.Character.Parent = workspace
  87. plr.Character.Archivable = false
  88. plr.Character:FindFirstChildOfClass("ForceField"):Remove()
  89. for y,t in pairs(plr.Character:GetChildren()) do
  90. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  91. t.Transparency = 0
  92. if t.Name == "Head" and t:FindFirstChild("face") then
  93. t.face.Transparency = 0
  94. end
  95. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  96. t.Handle.Transparency = 0
  97. end
  98. end
  99. end
  100. end)
  101. mouse.Button1Down:connect(function()
  102. if plr.Character.Parent == workspace.Camera then
  103. if mouse ~= nil then
  104. if mouse.Target ~= nil then
  105. part = mouse.Target
  106. bp = Instance.new("BodyPosition",part)
  107. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  108. bp.Position = part.Position
  109. particles = Instance.new("ParticleEmitter",part)
  110. particles.Color = ColorSequence.new(Color3.new(0,0,0))
  111. particles.Size = NumberSequence.new(-9)
  112. particles.Texture = "rbxassetid://292289455"
  113. particles.VelocitySpread = 360
  114. particles.Speed = NumberRange.new(0)
  115. particles.RotSpeed = NumberRange.new(0)
  116. particles.Rotation = NumberRange.new(0)
  117. particles.Rate = 250
  118. particles.Lifetime = NumberRange.new(.2,.4)
  119. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  120. dwn = true
  121. end
  122. end
  123. while dwn == true do
  124. wait()
  125. bp.Position = mouse.hit.p
  126. if part then
  127. if part.Parent:FindFirstChildOfClass("Humanoid") then
  128. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  129. end
  130. end
  131. end
  132. end
  133. end)
  134. mouse.Button1Up:connect(function()
  135. dwn = false
  136. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  137. if bp then bp:Destroy() end
  138. if particles then particles:Destroy() end
  139. end)
  140. base = Instance.new("ScreenGui",plr.PlayerGui)
  141. bbg = Instance.new("BillboardGui",plr.Character.Head)
  142. bbg.Size = UDim2.new(0,200,0,50)
  143. bbg.StudsOffset = Vector3.new(0,3,0)
  144. bbgTl = Instance.new("TextLabel",bbg)
  145. bbgTl.BackgroundTransparency = 1
  146. bbgTl.Size = UDim2.new(10,0,1,0)
  147. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  148. bbgTl.Font = "Code"
  149. bbgTl.Text = " "
  150. bbgTl.TextSize = 50
  151. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  152. bbgTl.TextColor3 = Color3.new(0,0,0)
  153. bbgTl.TextStrokeTransparency = 0
  154. bbgTl.TextWrapped = true
  155. plr.Chatted:connect(function(msg)
  156. bbgTl.Text = msg
  157. wait(5)
  158. if bbgTl.Text == msg then
  159. bbgTl.Text = " "
  160. end
  161. end)
  162. touchCounter = 0
  163. while wait() do
  164. if plr.Character.Parent == workspace.Camera then
  165. local c = plr.Character:Clone()
  166. c:MakeJoints()
  167. for y,t in pairs(c:GetChildren()) do
  168. if t:IsA("Part") then
  169. t.CanCollide = false
  170. t.Anchored = true
  171. t.Transparency = .9
  172. t.TopSurface = "Smooth"
  173. t.BottomSurface = "Smooth"
  174. t.RightSurface = "Smooth"
  175. t.LeftSurface = "Smooth"
  176. t.FrontSurface = "Smooth"
  177. t.BackSurface = "Smooth"
  178. t.BrickColor = BrickColor.new("Crimson")
  179. if t.Name == "Head" and t:FindFirstChild("face") then
  180. t.face:Remove()
  181. elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
  182. t.roblox:Remove()
  183. elseif t.Name == "HumanoidRootPart" then
  184. t:Remove()
  185. end
  186. else
  187. t:Remove()
  188. end
  189. end
  190. c.Parent = workspace
  191. game.Debris:AddItem(c,.05)
  192. end
  193. end
Add Comment
Please, Sign In to add comment