Advertisement
ericdesouza

The ghost

Mar 2nd, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.78 KB | None | 0 0
  1. function particles(art,enabled)
  2. local EyeSizes={
  3. NumberSequenceKeypoint.new(0,.8,0),
  4. NumberSequenceKeypoint.new(1,0,0)
  5. }
  6. local EyeTrans={
  7. NumberSequenceKeypoint.new(0,0,0),
  8. NumberSequenceKeypoint.new(1,1,0)
  9. }
  10. local PE=Instance.new("ParticleEmitter",art)
  11. PE.LightEmission=.4
  12. PE.Size=NumberSequence.new(EyeSizes)
  13. PE.Transparency=NumberSequence.new(EyeTrans)
  14. PE.Lifetime=NumberRange.new(4)
  15. PE.Rate=360
  16. PE.Speed = NumberRange.new(0,0,0)
  17. PE.Texture="rbxassetid://153485522"
  18. PE.ZOffset = 0
  19. PE.Name = "PE"
  20. PE.Enabled = enabled
  21. end
  22.  
  23. particles(RightArm,true)
  24. particles(LeftArm,true)
  25. particles(RightLeg,true)
  26. particles(LeftLeg,true)
  27. particles(Torso,true)
  28. particles(Head,true)
  29.  
  30.  
  31. plr = game.Players.LocalPlayer
  32. char = plr.Character
  33.  
  34.  
  35. -- Defining RenderStepped?
  36. renders = game:GetService("RunService").RenderStepped
  37. -- Intro
  38. char.Torso.roblox.Texture = "rbxassetid://0"
  39. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  40. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  41. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  42. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  43. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  44. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  45. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  46. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  47. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  48. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  49. local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  50. game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove()
  51. local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  52. llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  53. llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
  54. llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
  55. local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  56. game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
  57. local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  58. rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  59. rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
  60. rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
  61. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  62. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  63. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  64. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  65. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  66. local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  67. local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  68. headweld.Part0 = game.Players.LocalPlayer.Character.Torso
  69. headweld.Part1 = game.Players.LocalPlayer.Character.Head
  70. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  71. local gunshot = Instance.new("Sound",char.Torso)
  72. gunshot.Name = "BANG"
  73. gunshot.SoundId = "rbxassetid://550209561"
  74. gunshot.Volume = 2
  75. gunshot:Play()
  76. char.Humanoid.WalkSpeed = 0
  77. char.Humanoid.JumpPower = 0
  78. for i = 0,1 , 0.03 do
  79. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.975958347, -2.06729031, 0, 0.905177712, -0.425033659, 8.83524214e-27, 0.425034732, 0.905179977, 4.223007e-27, -1.05518035e-26, 3.02922588e-28, 1.0000025),i)
  80. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.901434898, -1.97289896, 0, 0.896831989, 0.442371875, -3.88750654e-27, -0.442372978, 0.896834254, 5.09510506e-27, 4.69530011e-27, -3.35739201e-27, 1.0000025),i)
  81. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.98829222, 0.555973053, 0, -0.0983736441, -0.995149612, 6.86624532e-27, 0.995152056, -0.0983738229, 1.33999472e-26, -1.25618211e-26, 9.13816473e-27, 1.0000025),i)
  82. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.80910063, 0.148392916, 0, 0.586558223, 0.80990839, -5.84135723e-26, -0.809910417, 0.586559713, -6.21380681e-26, -1.6509281e-26, 8.28998148e-26, 1.0000025),i)
  83. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -2.50004101, 2.00000429, 1, -4.90253133e-27, 8.98669496e-27, 8.98670343e-27, 1.77323375e-06, -1, 4.90251553e-27, 1, 1.77323375e-06),i)
  84. renders:wait()
  85. end
  86. wait(3)
  87. local scream = Instance.new("Sound",char.Torso)
  88. scream.SoundId = "rbxassetid://138167455"
  89. scream.Volume = 4
  90. scream:Play()
  91. char.Head.face.Texture = "http://www.roblox.com/asset/?id=1364114735"
  92. for i = 0,1 , 0.03 do
  93. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.52452374, 0.510128379, -0.901310444, -0.0983733907, 0.0243432298, 0.994851828, 0.995149672, 0.00240636896, 0.0983439684, 2.91038305e-08, 0.999700963, -0.0244618785),i)
  94. renders:wait()
  95. end
  96. wait(5)
  97. char.Head.face.Texture = "http://www.roblox.com/asset/?id=295197013"
  98. for i = 0,1 , 0.03 do
  99. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.98829222, 0.555973053, 0, -0.0983736441, -0.995149612, 6.86624532e-27, 0.995152056, -0.0983738229, 1.33999472e-26, -1.25618211e-26, 9.13816473e-27, 1.0000025),i)
  100. renders:wait()
  101. end
  102. local Part0 = Instance.new("Part")
  103. Part0.Name = "bl00d"
  104. Part0.CanCollide = false
  105. Part0.Anchored = true
  106. Part0.Parent = char
  107. Part0.BrickColor = BrickColor.new("Black")
  108. Part0.Rotation = Vector3.new(0, 0, 90)
  109. Part0.Shape = Enum.PartType.Cylinder
  110. Part0.Size = Vector3.new(0.310000002, 1.77000022, 2)
  111. Part0.CFrame = CFrame.new(10.5427914, 1.28072846, 11.4908791, 4.47034836e-07, -1.00000215, 0, 1.00000215, 4.47034836e-07, 0, 0, 0, 1)
  112. Part0.Color = Color3.new(0.458824, 0, 0)
  113. Part0.Position = Vector3.new(10.5427914, 1.28072846, 11.4908791)
  114. Part0.Orientation = Vector3.new(0, 0, 90)
  115. Part0.Color = Color3.new(0, 0, 0)
  116. for i = 1,400 do
  117. game.Players.LocalPlayer.Character.Head.CanCollide = false
  118. Part0.Size = Part0.Size + Vector3.new(0,0.01,0.01)
  119. Part0.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(0,0,0.4)
  120. Part0.CFrame = Part0.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  121. game:GetService("RunService").Stepped:wait()
  122. end
  123. wait(4)
  124. for i = 0,1 , 0.03 do
  125. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  126. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i)
  127. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1),i)
  128. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i)
  129. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.4999938, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i)
  130. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i)
  131. renders:wait()
  132. end
  133. lhandweld:Destroy()
  134. llegweld:Destroy()
  135. rhandweld:Destroy()
  136. rlegweld:Destroy()
  137. headweld:Destroy()
  138. humanoidrootpart:Destroy()
  139. lhandclone.Parent = char.Torso
  140. llegclone.Parent = char.Torso
  141. rhandclone.Parent = char.Torso
  142. rlegclone.Parent = char.Torso
  143. heed.Parent = char.Torso
  144. rootjointclone.Parent = char.HumanoidRootPart
  145. char.Humanoid.WalkSpeed = 16
  146. char.Humanoid.JumpPower = 50
  147. -- the thing that follows you
  148. local part = Instance.new("Part",char)
  149. part.Transparency = 1
  150. part.Size = Vector3.new(5.92, 0.05, 5.95)
  151. part.CanCollide = false
  152. local surfacegui = Instance.new("SurfaceGui",part)
  153. surfacegui.Adornee = part
  154. surfacegui.Face = "Top"
  155. surfacegui.AlwaysOnTop = false
  156. local image = Instance.new("ImageLabel",surfacegui)
  157. image.Size = UDim2.new(1, 1, 1, 1)
  158. image.Image = "rbxassetid://418573253"
  159. image.BackgroundTransparency = 1
  160. local weld = Instance.new("Weld",part)
  161. weld.Part0 = part
  162. weld.Part1 = char.HumanoidRootPart
  163. for i = 0,1 , 0.05 do
  164. weld.C0 = weld.C0:lerp(CFrame.new(-0.232723236, 2.4942894, 0.332229614, 1, 0, 0, 0, 0.999996066, 0, 0, 0, 1),i)
  165. game:GetService("RunService").RenderStepped:wait()
  166. end
  167. -- funcs
  168. function onTouched(brick)
  169. local humn = brick.Parent:FindFirstChildOfClass("Humanoid")
  170. if humn then
  171. for i,v in pairs(humn.Parent:GetChildren()) do
  172. if v.ClassName == "Part" then
  173. v.Transparency = 0.5
  174. v.Color = Color3.new(0,0,0)
  175. v.Head.face.Texture = "http://www.roblox.com/asset/?id=295197013"
  176. v.Parent.Humanoid.Health = 1
  177.  
  178. end
  179. end
  180. end
  181. end
  182. char.Torso.Touched:connect(onTouched)
  183. -- Transparency
  184. char["Left Arm"].Transparency = 0.5
  185. char["Left Leg"].Transparency = 0.5
  186. char["Right Arm"].Transparency = 0.5
  187. char["Right Leg"].Transparency = 0.5
  188. char["Head"].Transparency = 0.5
  189. char.Torso.Transparency = 0.5
  190. -- Color
  191. local bdycolors = char["Body Colors"]
  192. bdycolors.HeadColor = BrickColor.new("Really black")
  193. bdycolors.LeftArmColor = BrickColor.new("Really black")
  194. bdycolors.RightArmColor = BrickColor.new("Really black")
  195. bdycolors.LeftLegColor = BrickColor.new("Really black")
  196. bdycolors.RightLegColor = BrickColor.new("Really black")
  197. bdycolors.TorsoColor = BrickColor.new("Really black")
  198. -- Music
  199. local music = Instance.new("Sound",char)
  200. music.SoundId = "rbxassetid://592088356"
  201. music.Volume = 1
  202. music:Play()
  203. music.Looped = true
  204. -- Name
  205. local nametag = Instance.new("BillboardGui",char.Head)
  206. nametag.StudsOffset = Vector3.new(0,2,0)
  207. nametag.Adornee = char.Head
  208. nametag.Size = UDim2.new(0,200,0,50)
  209.  
  210. local text = Instance.new("TextLabel",nametag)
  211. text.Size = UDim2.new(0,200,0,50)
  212. text.BackgroundTransparency = 1
  213. text.Text = "The Ghost"
  214. text.TextColor3 = Color3.new(180/255,0,0)
  215. text.TextStrokeColor3 = Color3.new(0,0,0)
  216. text.Font = Enum.Font.Fantasy
  217. text.TextScaled = true
  218. text.TextStrokeTransparency = 0
  219. coroutine.wrap(function()
  220. while wait() do
  221. wait(3)
  222. text.Text = "GIVE UP"
  223. wait()
  224. text.Text = "The Ghost";
  225. wait(2)
  226. local str = ""
  227. for i = 1, math.random(3,25) do
  228. str = str..string.char(math.random(65,122))
  229. end
  230. text.Text = str
  231. wait()
  232. str = ""
  233. for i = 1, math.random(12,25) do
  234. str = str..string.char(math.random(48,122))
  235. end
  236. wait()
  237. text.Text = str
  238. wait()
  239. text.Text = "The Ghost";
  240. wait(1)
  241. text.Text = "BE GONE THOT"
  242. wait()
  243. text.Text = "Burn in hell."
  244. wait()
  245. text.Text = "The Ghost";
  246. wait(2)
  247. text.Text = "You made me do this.";
  248. wait()
  249. text.Text = "edgy";
  250. wait()
  251. for i = 1, math.random(12,25) do
  252. str = str..string.char(math.random(48,57))
  253. end
  254. text.Text = str
  255. wait()
  256. text.Text = "The Ghost";
  257. wait(2)
  258. end
  259. end)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement