SHARE
TWEET

Untitled

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