Hugo1234cool

Untitled

Jan 31st, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.92 KB | None | 0 0
  1. plr =owner
  2. char = plr.Character
  3. skin = BrickColor.new("Pastel brown")
  4. --https://github.com/Mokiros/roblox-FE-compatibility
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player,game,owner = owner,game
  7. local RealPlayer = Player
  8. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  9. wait(0.5)
  10. for i,v in pairs(char:GetChildren()) do
  11. if v.ClassName == "Shirt" or v.ClassName == "Pants" then
  12. v:Destroy()
  13. end
  14. end
  15. local shirt = Instance.new("Shirt",char)
  16. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=115893651"
  17. local pants = Instance.new("Pants",char)
  18. pants.PantsTemplate = "http://www.roblox.com/asset/?id=115893704"
  19. local bdy = char["Body Colors"]
  20. bdy.HeadColor = skin
  21. bdy.LeftArmColor = skin
  22. bdy.LeftLegColor = skin
  23. bdy.RightArmColor = skin
  24. bdy.RightLegColor = skin
  25. bdy.TorsoColor = skin
  26. wait(1)
  27. local gunshot = Instance.new("Sound",char.Torso)
  28. gunshot.Name = "BANG"
  29. gunshot.SoundId = "rbxassetid://213603013"
  30. gunshot.Volume = 2
  31. gunshot:Play()
  32. char.Humanoid.WalkSpeed = 0
  33. char.Humanoid.JumpPower = 0
  34. char.Torso["Right Shoulder"].C1 = CFrame.new(0,0,0)
  35. char.Torso["Left Shoulder"].C1 = CFrame.new(0,0,0)
  36. char.Torso["Left Hip"].C1 = CFrame.new(0,0,0)
  37. char.Torso["Right Hip"].C1 = CFrame.new(0,0,0)
  38. char.HumanoidRootPart.RootJoint.C1 = CFrame.new(0,0,0)
  39. rlegweld = char.Torso["Right Hip"]
  40. llegweld = char.Torso["Left Hip"]
  41. rhandweld = char.Torso["Right Shoulder"]
  42. lhandweld = char.Torso["Left Shoulder"]
  43. humanoidrootpart = char.HumanoidRootPart.RootJoint
  44. for i = 0,1 , 0.03 do
  45. 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)
  46. 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)
  47. 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)
  48. 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)
  49. 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)
  50. game:GetService("RunService").RenderStepped:wait()
  51. end
  52. wait(2)
  53. char.Torso.Neck.C1 = CFrame.new(0,0,0)
  54. local scream = Instance.new("Sound",char)
  55. scream.SoundId = "rbxassetid://566988981"
  56. scream.Volume = 4
  57. scream:Play()
  58. char.Head.face.Texture = "http://www.roblox.com/asset/?id=152630087"
  59. for i = 0,1 ,0.03 do
  60. 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)
  61. 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)
  62. game:GetService("RunService").RenderStepped:wait()
  63. end
  64. wait(2)
  65. for i = 0,1 ,0.03 do
  66. 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)
  67. 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)
  68. game:GetService("RunService").RenderStepped:wait()
  69. end
  70. wait(4)
  71. renders = game:GetService("RunService").RenderStepped
  72. for i = 0,1 , 0.03 do
  73. 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)
  74. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i)
  75. 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)
  76. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.9999913, 0, 1, 0, 0, 0, 0.999995589, 0, 0, 0, 1),i)
  77. 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)
  78. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.999995708, 0, 0, 0, 1),i)
  79. renders:wait()
  80. end
  81. local nametag = Instance.new("BillboardGui",char)
  82. nametag.StudsOffset = Vector3.new(0,2,0)
  83. nametag.Adornee = char.Head
  84. nametag.Size = UDim2.new(0,200,0,50)
  85.  
  86. local text = Instance.new("TextLabel",nametag)
  87. text.Size = UDim2.new(0,200,0,50)
  88. text.BackgroundTransparency = 1
  89. text.Text = "The Ghost"
  90. text.TextColor3 = Color3.new(180/255,0,0)
  91. text.TextStrokeColor3 = Color3.new(0,0,0)
  92. text.Font = Enum.Font.Fantasy
  93. text.TextScaled = true
  94. text.TextStrokeTransparency = 0
  95. coroutine.wrap(function()
  96. while wait() do
  97. wait(3)
  98. text.Text = "GIVE UP"
  99. wait()
  100. text.Text = "The Ghost";
  101. wait(2)
  102. local str = ""
  103. for i = 1, math.random(3,25) do
  104. str = str..string.char(math.random(65,122))
  105. end
  106. text.Text = str
  107. wait()
  108. str = ""
  109. for i = 1, math.random(12,25) do
  110. str = str..string.char(math.random(48,122))
  111. end
  112. wait()
  113. text.Text = str
  114. wait()
  115. text.Text = "The Ghost";
  116. wait(1)
  117. text.Text = "BE GONE THOT"
  118. wait()
  119. text.Text = "Burn in hell."
  120. wait()
  121. text.Text = "The Ghost";
  122. wait(2)
  123. text.Text = "You made me do this.";
  124. wait()
  125. text.Text = "edgy";
  126. wait()
  127. for i = 1, math.random(12,25) do
  128. str = str..string.char(math.random(48,57))
  129. end
  130. text.Text = str
  131. wait()
  132. text.Text = "The Ghost";
  133. wait(2)
  134. end
  135. end)()
  136. char.Humanoid.WalkSpeed = 16
  137. char.Humanoid.JumpPower = 50
  138. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  139. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  140. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  141. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  142. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  143. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  144. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  145. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  146. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  147. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  148. local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  149. game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove()
  150. local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  151. llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  152. llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
  153. llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
  154. local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  155. game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
  156. local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  157. rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  158. rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
  159. rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
  160. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  161. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  162. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  163. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  164. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  165. local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  166. local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  167. headweld.Part0 = game.Players.LocalPlayer.Character.Torso
  168. headweld.Part1 = game.Players.LocalPlayer.Character.Head
  169. headweld.C0 = CFrame.new(0, 1.5, 0, 0.805139124, -0.593086064, 0, 0.593086064, 0.805139124, 0, 0, 0, 1)
  170. model = Instance.new("Model",char)
  171. char.Humanoid.Name = "nil"
  172. for i,v in pairs(char:GetChildren()) do
  173. if v.ClassName == "Accessory" then
  174. v:Remove()
  175. end
  176. end
  177. for i,v in pairs(char:GetChildren()) do
  178. if v.ClassName == "Part" then
  179. v.Transparency = 1
  180. end
  181. end
  182. local music = Instance.new("Sound",char)
  183. music.SoundId = "rbxassetid://254933693"
  184. music.Volume = 4
  185. music.Looped = true
  186. music:Play()
  187. local hitbox = Instance.new("Part",char.Torso)
  188. hitbox.Size = char.Torso.Size
  189. hitbox.Transparency = 1
  190. hitbox.CanCollide = false
  191. local hweld = Instance.new("Weld",hitbox)
  192. hweld.Part0 = hitbox
  193. hweld.Part1 = char.Torso
  194. hweld.C0 = CFrame.new(0, 0, 1.02879095, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  195. local slap = Instance.new("Sound",char)
  196. slap.SoundId = "rbxassetid://261566877"
  197. slap.Name = "damage"
  198. slap.Volume = 4
  199. hitbox.Touched:connect(function(part)
  200. local hum = part.Parent:FindFirstChildOfClass("Humanoid")
  201. if hum then
  202. slap:Play()
  203. hum.Sit = true
  204. hum.JumpPower = 0
  205. wait(3)
  206. for i,v in pairs(hum.Parent:GetChildren()) do
  207. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  208. local cp = Instance.new("BodyPosition",v)
  209. cp.Position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  210. v.BrickColor = BrickColor.new("Really black")
  211. game:GetService("Debris"):AddItem(hum.Parent,2)
  212. end
  213. end
  214. hum.Health = 0
  215. hum.Name = "w h y ?"
  216. end
  217. end)
  218. char.Parent = game.Workspace.CurrentCamera
  219. model.Parent = game.Workspace
  220. model.Name = "GhostTrail"
  221. char.Head.face:Remove()
  222. while true do
  223. wait(0.01)
  224. if model.Parent == nil then
  225. model.Parent = game.Workspace
  226. end
  227. local hum = char:FindFirstChildOfClass("Humanoid")
  228. hum.MaxHealth = math.huge
  229. hum.Health = math.huge
  230. for i,v in pairs(char:GetChildren()) do
  231. if v.ClassName == "Part" then
  232. local cp = v:Clone()
  233. cp.Parent = model
  234. cp.Anchored = true
  235. cp.CanCollide = false
  236. cp.BrickColor = BrickColor.new("Really black")
  237. cp.Material = Enum.Material.SmoothPlastic
  238. cp.Transparency = 0.8
  239. if cp.Name == "HumanoidRootPart" then
  240. cp:Remove()
  241. end
  242. for i,v in pairs(cp:GetChildren()) do
  243. if v.ClassName == "Motor6D" or v.ClassName == "Weld" then
  244. v:Remove()
  245. end
  246. end
  247. game:GetService("Debris"):AddItem(cp,0.2)
  248. end
  249. end
  250. end
Advertisement
Add Comment
Please, Sign In to add comment