Advertisement
5325325325

Untitled

Oct 11th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.54 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 h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85.  
  86. plr = owner
  87. char = plr.Character
  88. skin = BrickColor.new("Pastel brown")
  89.  
  90. wait(0.5)
  91. for i,v in pairs(char:GetChildren()) do
  92. if v.ClassName == "Shirt" or v.ClassName == "Pants" then
  93. v:Destroy()
  94. end
  95. end
  96. local shirt = Instance.new("Shirt",char)
  97. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=115893651"
  98. local pants = Instance.new("Pants",char)
  99. pants.PantsTemplate = "http://www.roblox.com/asset/?id=115893704"
  100. local bdy = char["Body Colors"]
  101. bdy.HeadColor = skin
  102. bdy.LeftArmColor = skin
  103. bdy.LeftLegColor = skin
  104. bdy.RightArmColor = skin
  105. bdy.RightLegColor = skin
  106. bdy.TorsoColor = skin
  107. wait(1)
  108. local gunshot = Instance.new("Sound",char.Torso)
  109. gunshot.Name = "BANG"
  110. gunshot.SoundId = "rbxassetid://213603013"
  111. gunshot.Volume = 2
  112. gunshot:Play()
  113. char.Humanoid.WalkSpeed = 0
  114. char.Humanoid.JumpPower = 0
  115. char.Torso["Right Shoulder"].C1 = CFrame.new(0,0,0)
  116. char.Torso["Left Shoulder"].C1 = CFrame.new(0,0,0)
  117. char.Torso["Left Hip"].C1 = CFrame.new(0,0,0)
  118. char.Torso["Right Hip"].C1 = CFrame.new(0,0,0)
  119. char.HumanoidRootPart.RootJoint.C1 = CFrame.new(0,0,0)
  120. rlegweld = char.Torso["Right Hip"]
  121. llegweld = char.Torso["Left Hip"]
  122. rhandweld = char.Torso["Right Shoulder"]
  123. lhandweld = char.Torso["Left Shoulder"]
  124. humanoidrootpart = char.HumanoidRootPart.RootJoint
  125. for i = 0,1 , 0.03 do
  126. 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)
  127. 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)
  128. 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)
  129. 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)
  130. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -2.71110725, -1.9999876, 1, -1.89579053e-26, -7.87598728e-27, 7.01770661e-27, 6.76514401e-06, 1.0000025, -1.93673287e-26, -1.00000238, 6.85455143e-06),i)
  131. game:GetService("RunService").RenderStepped:wait()
  132. end
  133. wait(2)
  134. char.Torso.Neck.C1 = CFrame.new(0,0,0)
  135. local scream = Instance.new("Sound",char)
  136. scream.SoundId = "rbxassetid://566988981"
  137. scream.Volume = 4
  138. scream:Play()
  139. char.Head.face.Texture = "http://www.roblox.com/asset/?id=152630087"
  140. for i = 0,1 ,0.03 do
  141. char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(1.1920929e-07, 1.01759481, 0.499690324, 1, 2.27373675e-13, -3.63797881e-12, 7.27595761e-12, 0.0351885781, -0.999380767, 7.81597009e-14, 0.999380767, 0.0351885781),i)
  142. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.43054783, 2.02057076, -4.70876694e-06, -0.998074114, -0.0620345771, -4.98416557e-06, 0.0620345846, -0.998074114, 2.182147e-06, -5.10993777e-06, 1.86875695e-06, 1.00000012),i)
  143. game:GetService("RunService").RenderStepped:wait()
  144. end
  145. wait(2)
  146. for i = 0,1 ,0.03 do
  147. char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  148. 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)
  149. game:GetService("RunService").RenderStepped:wait()
  150. end
  151. wait(4)
  152. renders = game:GetService("RunService").RenderStepped
  153. for i = 0,1 , 0.03 do
  154. 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)
  155. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i)
  156. 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)
  157. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i)
  158. char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0, 1.4999938, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i)
  159. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i)
  160. renders:wait()
  161. end
  162. local nametag = Instance.new("BillboardGui",char)
  163. nametag.StudsOffset = Vector3.new(0,2,0)
  164. nametag.Adornee = char.Head
  165. nametag.Size = UDim2.new(0,200,0,50)
  166.  
  167. local text = Instance.new("TextLabel",nametag)
  168. text.Size = UDim2.new(0,200,0,50)
  169. text.BackgroundTransparency = 1
  170. text.Text = "The Ghost"
  171. text.TextColor3 = Color3.new(180/255,0,0)
  172. text.TextStrokeColor3 = Color3.new(0,0,0)
  173. text.Font = Enum.Font.Fantasy
  174. text.TextScaled = true
  175. text.TextStrokeTransparency = 0
  176. coroutine.wrap(function()
  177. while wait() do
  178. wait(3)
  179. text.Text = "GIVE UP"
  180. wait()
  181. text.Text = "The Ghost";
  182. wait(2)
  183. local str = ""
  184. for i = 1, math.random(3,25) do
  185. str = str..string.char(math.random(65,122))
  186. end
  187. text.Text = str
  188. wait()
  189. str = ""
  190. for i = 1, math.random(12,25) do
  191. str = str..string.char(math.random(48,122))
  192. end
  193. wait()
  194. text.Text = str
  195. wait()
  196. text.Text = "The Ghost";
  197. wait(1)
  198. text.Text = "BE GONE THOT"
  199. wait()
  200. text.Text = "Burn in hell."
  201. wait()
  202. text.Text = "The Ghost";
  203. wait(2)
  204. text.Text = "You made me do this.";
  205. wait()
  206. text.Text = "edgy";
  207. wait()
  208. for i = 1, math.random(12,25) do
  209. str = str..string.char(math.random(48,57))
  210. end
  211. text.Text = str
  212. wait()
  213. text.Text = "The Ghost";
  214. wait(2)
  215. end
  216. end)()
  217. char.Humanoid.WalkSpeed = 16
  218. char.Humanoid.JumpPower = 50
  219. local rhandclone = game.Players.owner.Character.Torso["Right Shoulder"]:Clone()
  220. local rhandweld = Instance.new("Weld", game.Players.owner.Character.Torso)
  221. rhandweld.Part0 = game.Players.owner.Character.Torso
  222. rhandweld.Part1 = game.Players.owner.Character["Right Arm"]
  223. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  224. local lhandclone = game.Players.owner.Character.Torso["Left Shoulder"]:Clone()
  225. local lhandweld = Instance.new("Weld", game.Players.owner.Character.Torso)
  226. lhandweld.Part0 = game.Players.owner.Character.Torso
  227. lhandweld.Part1 = game.Players.owner.Character["Left Arm"]
  228. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  229. local llegclone = game.Players.owner.Character.Torso["Left Hip"]:Clone()
  230. game.Players.owner.Character.Torso["Left Hip"]:Remove()
  231. local llegweld = Instance.new("Weld", game.Players.owner.Character.Torso)
  232. llegweld.Part0 = game.Players.owner.Character.Torso
  233. llegweld.Part1 = game.Players.owner.Character["Left Leg"]
  234. llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
  235. local rlegclone = game.Players.owner.Character.Torso["Right Hip"]:Clone()
  236. game.Players..Character.Torso["Right Hip"]:Remove()
  237. local rlegweld = Instance.new("Weld", game.Players.owner.Character.Torso)
  238. rlegweld.Part0 = game.Players.owner.Character.Torso
  239. rlegweld.Part1 = game.Players.owner.Character["Right Leg"]
  240. rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
  241. local rootjointclone = game.Players.owner.Character.HumanoidRootPart.RootJoint:Clone()
  242. game.Players.owner.Character.HumanoidRootPart.RootJoint:Remove()
  243. local humanoidrootpart = Instance.new("Weld", game.Players.owner.Character.Torso)
  244. humanoidrootpart.Part0 = game.Players.owner.Character.HumanoidRootPart
  245. humanoidrootpart.Part1 = game.Players.owner.Character.Torso
  246. local heed = game.Players.owner.Character.Torso["Neck"]:Clone()
  247. local headweld = Instance.new("Weld", game.Players.owner.Character.Torso)
  248. headweld.Part0 = game.Players.owner.Character.Torso
  249. headweld.Part1 = game.Players.owner.Character.Head
  250. headweld.C0 = CFrame.new(0, 1.5, 0, 0.805139124, -0.593086064, 0, 0.593086064, 0.805139124, 0, 0, 0, 1)
  251. model = Instance.new("Model",char)
  252. char.Humanoid.Name = "nil"
  253. for i,v in pairs(char:GetChildren()) do
  254. if v.ClassName == "Accessory" then
  255. v:Remove()
  256. end
  257. end
  258. for i,v in pairs(char:GetChildren()) do
  259. if v.ClassName == "Part" then
  260. v.Transparency = 1
  261. end
  262. end
  263. local music = Instance.new("Sound",char)
  264. music.SoundId = "rbxassetid://254933693"
  265. music.Volume = 4
  266. music.Looped = true
  267. music:Play()
  268. local hitbox = Instance.new("Part",char.Torso)
  269. hitbox.Size = char.Torso.Size
  270. hitbox.Transparency = 1
  271. hitbox.CanCollide = false
  272. local hweld = Instance.new("Weld",hitbox)
  273. hweld.Part0 = hitbox
  274. hweld.Part1 = char.Torso
  275. hweld.C0 = CFrame.new(0, 0, 1.02879095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  276. local slap = Instance.new("Sound",char)
  277. slap.SoundId = "rbxassetid://261566877"
  278. slap.Name = "damage"
  279. slap.Volume = 4
  280. hitbox.Touched:connect(function(part)
  281. local hum = part.Parent:FindFirstChildOfClass("Humanoid")
  282. if hum then
  283. slap:Play()
  284. hum.Sit = true
  285. hum.JumpPower = 0
  286. wait(3)
  287. for i,v in pairs(hum.Parent:GetChildren()) do
  288. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  289. local cp = Instance.new("BodyPosition",v)
  290. cp.Position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  291. v.BrickColor = BrickColor.new("Really black")
  292. game:GetService("Debris"):AddItem(hum.Parent,2)
  293. end
  294. end
  295. hum.Health = 0
  296. hum.Name = "w h y ?"
  297. end
  298. end)
  299. char.Parent = game.Workspace.CurrentCamera
  300. model.Parent = game.Workspace
  301. model.Name = "GhostTrail"
  302. char.Head.face:Remove()
  303. while true do
  304. wait(0.01)
  305. if model.Parent == nil then
  306. model.Parent = game.Workspace
  307. end
  308. local hum = char:FindFirstChildOfClass("Humanoid")
  309. hum.MaxHealth = math.huge
  310. hum.Health = math.huge
  311. for i,v in pairs(char:GetChildren()) do
  312. if v.ClassName == "Part" then
  313. local cp = v:Clone()
  314. cp.Parent = model
  315. cp.Anchored = true
  316. cp.CanCollide = false
  317. cp.BrickColor = BrickColor.new("Really black")
  318. cp.Material = Enum.Material.SmoothPlastic
  319. cp.Transparency = 0.8
  320. if cp.Name == "HumanoidRootPart" then
  321. cp:Remove()
  322. end
  323. for i,v in pairs(cp:GetChildren()) do
  324. if v.ClassName == "Motor6D" or v.ClassName == "Weld" then
  325. v:Remove()
  326. end
  327. end
  328. game:GetService("Debris"):AddItem(cp,0.2)
  329. end
  330. end
  331. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement