Advertisement
Guest User

Untitled

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