Time4Scripts

Untitled

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