Guest User

Untitled

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