Advertisement
zed_isJayTheLionJR

Mafia boss

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