Advertisement
JacksoMykalJunior

THE GHOST

Mar 4th, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.50 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Covered By Red_Jack142 | FE Made By Red_Jack142")
  5. print("Have Fun!")
  6. script.Parent = Player.Character
  7.  
  8. --RemoteEvent for communicating
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local function fakeEvent()
  14. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  15. t.connect = t.Connect
  16. return t
  17. end
  18.  
  19. --Creating fake input objects with fake variables
  20. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24. end}
  25. --Merged 2 functions into one by checking amount of arguments
  26. CAS.UnbindAction = CAS.BindAction
  27.  
  28. --This function will trigger the events that have been :Connect()'ed
  29. local function te(self,ev,...)
  30. local t = m[ev]
  31. if t and t._fakeEvent and t.Function then
  32. t.Function(...)
  33. end
  34. end
  35. m.TrigEvent = te
  36. UIS.TrigEvent = te
  37.  
  38. Event.OnServerEvent:Connect(function(plr,io)
  39. if plr~=Player then return end
  40. if io.isMouse then
  41. m.Target = io.Target
  42. m.Hit = io.Hit
  43. else
  44. local b = io.UserInputState == Enum.UserInputState.Begin
  45. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  46. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  47. end
  48. for _,t in pairs(CAS.Actions) do
  49. for _,k in pairs(t.Keys) do
  50. if k==io.KeyCode then
  51. t.Function(t.Name,io.UserInputState,io)
  52. end
  53. end
  54. end
  55. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  57. end
  58. end)
  59. Event.Parent = NLS([==[
  60. local Player = owner
  61. local Event = script:WaitForChild("UserInput_Event")
  62.  
  63. local UIS = game:GetService("UserInputService")
  64. local input = function(io,a)
  65. if a then return end
  66. --Since InputObject is a client-side instance, we create and pass table instead
  67. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  68. end
  69. UIS.InputBegan:Connect(input)
  70. UIS.InputEnded:Connect(input)
  71.  
  72. local Mouse = Player:GetMouse()
  73. local h,t
  74. --Give the server mouse data 30 times every second, but only if the values changed
  75. --If player is not moving their mouse, client won't fire events
  76. while wait(1/30) do
  77. if h~=Mouse.Hit or t~=Mouse.Target then
  78. h,t=Mouse.Hit,Mouse.Target
  79. Event:FireServer({isMouse=true,Target=t,Hit=h})
  80. end
  81. end]==],Player.Character)
  82. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  83. end
  84.  
  85.  
  86. function particles(art,enabled)
  87. local EyeSizes={
  88. NumberSequenceKeypoint.new(0,.8,0),
  89. NumberSequenceKeypoint.new(1,0,0)
  90. }
  91. local EyeTrans={
  92. NumberSequenceKeypoint.new(0,0,0),
  93. NumberSequenceKeypoint.new(1,1,0)
  94. }
  95. local PE=Instance.new("ParticleEmitter",art)
  96. PE.LightEmission=.4
  97. PE.Size=NumberSequence.new(EyeSizes)
  98. PE.Transparency=NumberSequence.new(EyeTrans)
  99. PE.Lifetime=NumberRange.new(4)
  100. PE.Rate=360
  101. PE.Speed = NumberRange.new(0,0,0)
  102. PE.Texture="rbxassetid://153485522"
  103. PE.ZOffset = 0
  104. PE.Name = "PE"
  105. PE.Enabled = enabled
  106. end
  107.  
  108. particles(RightArm,true)
  109. particles(LeftArm,true)
  110. particles(RightLeg,true)
  111. particles(LeftLeg,true)
  112. particles(Torso,true)
  113. particles(Head,true)
  114.  
  115.  
  116. plr = owner
  117. char = plr.Character
  118.  
  119.  
  120. -- Defining RenderStepped?
  121. renders = game:GetService("RunService").RenderStepped
  122. -- Intro
  123. char.Torso.roblox.Texture = "rbxassetid://0"
  124. local rhandclone = game.Players.owner.Character.Torso["Right Shoulder"]:Clone()
  125. local rhandweld = Instance.new("Weld", game.Players.owner.Character.Torso)
  126. rhandweld.Part0 = game.Players.owner.Character.Torso
  127. rhandweld.Part1 = game.Players.owner.Character["Right Arm"]
  128. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  129. local lhandclone = game.Players.owner.Character.Torso["Left Shoulder"]:Clone()
  130. local lhandweld = Instance.new("Weld", game.Players.owner.Character.Torso)
  131. lhandweld.Part0 = game.Players.owner.Character.Torso
  132. lhandweld.Part1 = game.Players.owner.Character["Left Arm"]
  133. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  134. local llegclone = game.Players.owner.Character.Torso["Left Hip"]:Clone()
  135. game.Players.owner.Character.Torso["Left Hip"]:Remove()
  136. local llegweld = Instance.new("Weld", game.Players.owner.Character.Torso)
  137. llegweld.Part0 = game.Players.owner.Character.Torso
  138. llegweld.Part1 = game.Players.owner.Character["Left Leg"]
  139. llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
  140. local rlegclone = game.Players.owner.Character.Torso["Right Hip"]:Clone()
  141. game.Players.owner.Character.Torso["Right Hip"]:Remove()
  142. local rlegweld = Instance.new("Weld", game.Players.owner.Character.Torso)
  143. rlegweld.Part0 = game.Players.owner.Character.Torso
  144. rlegweld.Part1 = game.Players.owner.Character["Right Leg"]
  145. rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
  146. local rootjointclone = game.Players.owner.Character.HumanoidRootPart.RootJoint:Clone()
  147. game.Players.owner.Character.HumanoidRootPart.RootJoint:Remove()
  148. local humanoidrootpart = Instance.new("Weld", game.Players.owner.Character.Torso)
  149. humanoidrootpart.Part0 = game.Players.owner.Character.HumanoidRootPart
  150. humanoidrootpart.Part1 = game.Players.owner.Character.Torso
  151. local heed = game.Players.owner.Character.Torso["Neck"]:Clone()
  152. local headweld = Instance.new("Weld", game.Players.owner.Character.Torso)
  153. headweld.Part0 = game.Players.owner.Character.Torso
  154. headweld.Part1 = game.Players.owner.Character.Head
  155. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  156. local gunshot = Instance.new("Sound",char.Torso)
  157. gunshot.Name = "BANG"
  158. gunshot.SoundId = "rbxassetid://550209561"
  159. gunshot.Volume = 2
  160. gunshot:Play()
  161. char.Humanoid.WalkSpeed = 0
  162. char.Humanoid.JumpPower = 0
  163. for i = 0,1 , 0.03 do
  164. 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)
  165. 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)
  166. 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)
  167. 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)
  168. 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)
  169. renders:wait()
  170. end
  171. wait(3)
  172. local scream = Instance.new("Sound",char.Torso)
  173. scream.SoundId = "rbxassetid://138167455"
  174. scream.Volume = 4
  175. scream:Play()
  176. char.Head.face.Texture = "http://www.roblox.com/asset/?id=1364114735"
  177. for i = 0,1 , 0.03 do
  178. 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)
  179. renders:wait()
  180. end
  181. wait(5)
  182. char.Head.face.Texture = "http://www.roblox.com/asset/?id=295197013"
  183. for i = 0,1 , 0.03 do
  184. 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)
  185. renders:wait()
  186. end
  187. local Part0 = Instance.new("Part")
  188. Part0.Name = "bl00d"
  189. Part0.CanCollide = false
  190. Part0.Anchored = true
  191. Part0.Parent = char
  192. Part0.BrickColor = BrickColor.new("Black")
  193. Part0.Rotation = Vector3.new(0, 0, 90)
  194. Part0.Shape = Enum.PartType.Cylinder
  195. Part0.Size = Vector3.new(0.310000002, 1.77000022, 2)
  196. 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)
  197. Part0.Color = Color3.new(0.458824, 0, 0)
  198. Part0.Position = Vector3.new(10.5427914, 1.28072846, 11.4908791)
  199. Part0.Orientation = Vector3.new(0, 0, 90)
  200. Part0.Color = Color3.new(0, 0, 0)
  201. for i = 1,400 do
  202. game.Players.owner.Character.Head.CanCollide = false
  203. Part0.Size = Part0.Size + Vector3.new(0,0.01,0.01)
  204. Part0.CFrame = game.Players.owner.Character.Torso.CFrame * CFrame.new(0,0,0.4)
  205. Part0.CFrame = Part0.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  206. game:GetService("RunService").Stepped:wait()
  207. end
  208. wait(4)
  209. for i = 0,1 , 0.03 do
  210. 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)
  211. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i)
  212. 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)
  213. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i)
  214. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.4999938, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i)
  215. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i)
  216. renders:wait()
  217. end
  218. lhandweld:Destroy()
  219. llegweld:Destroy()
  220. rhandweld:Destroy()
  221. rlegweld:Destroy()
  222. headweld:Destroy()
  223. humanoidrootpart:Destroy()
  224. lhandclone.Parent = char.Torso
  225. llegclone.Parent = char.Torso
  226. rhandclone.Parent = char.Torso
  227. rlegclone.Parent = char.Torso
  228. heed.Parent = char.Torso
  229. rootjointclone.Parent = char.HumanoidRootPart
  230. char.Humanoid.WalkSpeed = 16
  231. char.Humanoid.JumpPower = 50
  232. -- the thing that follows you
  233. local part = Instance.new("Part",char)
  234. part.Transparency = 1
  235. part.Size = Vector3.new(5.92, 0.05, 5.95)
  236. part.CanCollide = false
  237. local surfacegui = Instance.new("SurfaceGui",part)
  238. surfacegui.Adornee = part
  239. surfacegui.Face = "Top"
  240. surfacegui.AlwaysOnTop = false
  241. local image = Instance.new("ImageLabel",surfacegui)
  242. image.Size = UDim2.new(1, 1, 1, 1)
  243. image.Image = "rbxassetid://418573253"
  244. image.BackgroundTransparency = 1
  245. local weld = Instance.new("Weld",part)
  246. weld.Part0 = part
  247. weld.Part1 = char.HumanoidRootPart
  248. for i = 0,1 , 0.05 do
  249. weld.C0 = weld.C0:lerp(CFrame.new(-0.232723236, 2.4942894, 0.332229614, 1, 0, 0, 0, 0.999996066, 0, 0, 0, 1),i)
  250. game:GetService("RunService").RenderStepped:wait()
  251. end
  252. -- funcs
  253. function onTouched(brick)
  254. local humn = brick.Parent:FindFirstChildOfClass("Humanoid")
  255. if humn then
  256. for i,v in pairs(humn.Parent:GetChildren()) do
  257. if v.ClassName == "Part" then
  258. v.Transparency = 0.5
  259. v.Color = Color3.new(0,0,0)
  260. v.Head.face.Texture = "http://www.roblox.com/asset/?id=295197013"
  261. v.Parent.Humanoid.Health = 1
  262.  
  263. end
  264. end
  265. end
  266. end
  267. char.Torso.Touched:connect(onTouched)
  268. -- Transparency
  269. char["Left Arm"].Transparency = 0.5
  270. char["Left Leg"].Transparency = 0.5
  271. char["Right Arm"].Transparency = 0.5
  272. char["Right Leg"].Transparency = 0.5
  273. char["Head"].Transparency = 0.5
  274. char.Torso.Transparency = 0.5
  275. -- Color
  276. local bdycolors = char["Body Colors"]
  277. bdycolors.HeadColor = BrickColor.new("Really black")
  278. bdycolors.LeftArmColor = BrickColor.new("Really black")
  279. bdycolors.RightArmColor = BrickColor.new("Really black")
  280. bdycolors.LeftLegColor = BrickColor.new("Really black")
  281. bdycolors.RightLegColor = BrickColor.new("Really black")
  282. bdycolors.TorsoColor = BrickColor.new("Really black")
  283. -- Music
  284. local music = Instance.new("Sound",char)
  285. music.SoundId = "rbxassetid://592088356"
  286. music.Volume = 1
  287. music:Play()
  288. music.Looped = true
  289. -- Name
  290. local nametag = Instance.new("BillboardGui",char.Head)
  291. nametag.StudsOffset = Vector3.new(0,2,0)
  292. nametag.Adornee = char.Head
  293. nametag.Size = UDim2.new(0,200,0,50)
  294.  
  295. local text = Instance.new("TextLabel",nametag)
  296. text.Size = UDim2.new(0,200,0,50)
  297. text.BackgroundTransparency = 1
  298. text.Text = "The Ghost"
  299. text.TextColor3 = Color3.new(180/255,0,0)
  300. text.TextStrokeColor3 = Color3.new(0,0,0)
  301. text.Font = Enum.Font.Fantasy
  302. text.TextScaled = true
  303. text.TextStrokeTransparency = 0
  304. coroutine.wrap(function()
  305. while wait() do
  306. wait(3)
  307. text.Text = "GIVE UP"
  308. wait()
  309. text.Text = "The Ghost";
  310. wait(2)
  311. local str = ""
  312. for i = 1, math.random(3,25) do
  313. str = str..string.char(math.random(65,122))
  314. end
  315. text.Text = str
  316. wait()
  317. str = ""
  318. for i = 1, math.random(12,25) do
  319. str = str..string.char(math.random(48,122))
  320. end
  321. wait()
  322. text.Text = str
  323. wait()
  324. text.Text = "The Ghost";
  325. wait(1)
  326. text.Text = "BE GONE THOT"
  327. wait()
  328. text.Text = "Burn in hell."
  329. wait()
  330. text.Text = "The Ghost";
  331. wait(2)
  332. text.Text = "You made me do this.";
  333. wait()
  334. text.Text = "edgy";
  335. wait()
  336. for i = 1, math.random(12,25) do
  337. str = str..string.char(math.random(48,57))
  338. end
  339. text.Text = str
  340. wait()
  341. text.Text = "The Ghost";
  342. wait(2)
  343. end
  344. end)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement