joe201501

Remila Ghost

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