Advertisement
JacksoMykalJunior

REANIMATED GHOST

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