Advertisement
Guest User

Untitled

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