Advertisement
zXzGamePROzXz

Ghost fe

Mar 16th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. --[[
  90. ROBLOX - ░▒▓█►─═ 𝙏𝙝𝙚 𝙂𝙝𝙤𝙨𝙩 ═─◄█▓▒░
  91.  
  92.  
  93. Made by Indencito (https://www.roblox.com/users/176124016/profile)
  94. CONTROLS: R - to Disable kill mode.
  95. E - to Enable kill mode.
  96. F - to be fast.
  97. g - to revert to original walkspeed
  98. t - to jump high
  99. y - to revert to original jumppower
  100. -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  101. HOWTO: kill - touch target.
  102. pass walls - walk through a wall.
  103. 𝙀𝙉𝘿
  104. 𝙀𝙉𝘿.𝙀𝙉𝘿
  105. 𝙀𝙉𝘿.𝙀𝙉𝘿.𝙀𝙉𝘿
  106. --]]
  107. wait(4)
  108. local Name1=game.Workspace
  109. local Player=Name1["zZzEgorPROzZz"]--You're name here
  110. local Name2=Player.Name
  111. local Halfway=0.50
  112. local attackin=Instance.new("BoolValue")
  113. attackin.Parent=Player.Head
  114. attackin.Value=true
  115. local UT=Player:FindFirstChild("Upper Torso")
  116. if (UT~=nil) then
  117. wait()
  118. Player:BreakJoints()
  119. end
  120. Player.Humanoid.Name=("Ghostly")
  121. local Shirt=Player:FindFirstChild("Shirt")
  122. if (Shirt~=nil) then
  123. Player.Shirt:Destroy()
  124. print("Shirt Removed")
  125. else
  126. print("Error removing Shirt")
  127. end
  128. local hmn=Player.Ghostly
  129. local TShirt=Player:FindFirstChild("Shirt Graphic")
  130. if (TShirt~=nil) then
  131. Player["Shirt Graphic"]:Destroy()
  132. print("T-Shirt Removed")
  133. else
  134. print("Error removing T-Shirt")
  135. end
  136. local Pants=Player:FindFirstChild("Pants")
  137. if (Pants~=nil) then
  138. Player.Pants:Destroy()
  139. print("Pants Removed")
  140. else
  141. print("Error removing Pants")
  142. end
  143. wait()
  144. Player.Head.BrickColor=BrickColor.new("White")
  145. Player.Torso.BrickColor=BrickColor.new("White")
  146. Player["Left Arm"].BrickColor=BrickColor.new("White")
  147. Player["Right Arm"].BrickColor=BrickColor.new("White")
  148. Player["Right Leg"].BrickColor=BrickColor.new("White")
  149. Player["Left Leg"].BrickColor=BrickColor.new("White")
  150. wait()
  151. Player.Torso.Transparency=Halfway
  152. Player.Head.Transparency=Halfway
  153. Player["Left Arm"].Transparency=Halfway
  154. Player["Right Arm"].Transparency=Halfway
  155. Player["Right Leg"].Transparency=Halfway
  156. Player["Left Leg"].Transparency=Halfway
  157. wait(1/5)
  158. local Sound=Instance.new("Sound")
  159. Sound.SoundId="rbxassetid://182390761"
  160. Sound.Volume=5
  161. Sound.Parent=Player.Head
  162. Sound.Playing=true
  163. Sound.Looped=true
  164. local v=Instance.new("Sound")
  165. v.Parent=Player.Head
  166. v.MaxDistance=40
  167. v.Volume=5
  168. v.SoundId="rbxassetid://1787893952"
  169. function onTouch(hit)
  170. local PV=hit:FindFirstChild("Humanoid")
  171. if (PV~=nil) then
  172. v.Playing=true
  173. wait(1)
  174. v.Playing=false
  175. end
  176. end
  177. Player.Torso.Touched:Connect(onTouch)
  178. Player.Ghostly.MaxHealth=("inf")
  179. Player.Ghostly.HealthDisplayType=("AlwaysOff")
  180. Player.Ghostly.WalkSpeed=100
  181. Player.Ghostly.JumpPower=200
  182. function onTouch(hit)
  183. local human=hit.Parent:FindFirstChild("Humanoid")
  184. if (human~=nil) then
  185. wait()
  186. if attackin.Value == false then
  187. hit.Parent:BreakJoints()
  188. end
  189. end
  190. end
  191. Player.Torso.Touched:Connect(onTouch)
  192. g=Instance.new("SurfaceLight")
  193. g.Parent=Player.Torso
  194. g.Angle=180
  195. g.Brightness=10
  196. g.Color=Color3.new(255,255,255)
  197. g.Face=("Top")
  198. g.Range=60
  199. wait(1/60)
  200. local load=Player:FindFirstChild("Torso")
  201. if (load~=nil) then
  202. print(Name2.." is now a spookay ghost")
  203. else
  204. print("This script will only work with r6")
  205. end
  206. function onTouch(hit)
  207. local block=hit.Parent:FindFirstChild("Part")
  208. if (block~=nil) then
  209. hit.CanCollide=false
  210. hit.Anchored=true
  211. wait(1)
  212. hit.CanCollide=true
  213. else
  214. hit.CanCollide=true
  215. end
  216. end
  217. Player.Torso.Touched:Connect(onTouch)
  218. function onTouch(hit)
  219. local block=hit.Parent:FindFirstChild("Part")
  220. if (block~=nil) then
  221. hit.CanCollide=false
  222. hit.Anchored=true
  223. wait(1)
  224. hit.CanCollide=true
  225. else
  226. hit.CanCollide=true
  227. end
  228. end
  229. Player.Head.Touched:Connect(onTouch)
  230. function onTouch(hit)
  231. local base=hit:FindFirstChild("Baseplate")
  232. if (base~=nil) then
  233. hit.CanCollide=true
  234. hit.Anchored=true
  235. end
  236. end
  237. Player.Torso.Touched:Connect(onTouch)
  238. wait(1)
  239. local gui=Instance.new("BillboardGui")
  240. gui.Parent=Player.Head
  241. gui.Adornee=Player.Head
  242. gui.MaxDistance = 100
  243. gui.Size=UDim2.new(3,0,3,0)
  244. gui.StudsOffset=Vector3.new(0.5,2,0)
  245. local text=Instance.new("TextLabel")
  246. text.Text = ("Ghost")
  247. text.Font = "Arcade"
  248. text.TextColor3 = Color3.new("White")
  249. text.Size=UDim2.new(1,0,1,0)
  250. text.FontSize = 'Size32'
  251. text.Position=UDim2.new(-0.125,0,-0.25,0)
  252. text.BackgroundTransparency = 1
  253. text.Parent=gui
  254. function onTouch(hit)
  255. local person=hit.Parent:FindFirstChild("Humanoid")
  256. if (person~=nil) then
  257. wait()
  258. if attackin.Value == false then
  259. text.Text=(hit.Parent.Name.." has been rekt by "..Name2)
  260. wait(2)
  261. text.Text=("Ghost")
  262. end
  263. end
  264. end
  265. Player.Torso.Touched:Connect(onTouch)
  266. function onDeath()
  267. text.Text=("RIP... "..Name2.." has died")
  268. game.SoundService.Sound:Destroy()
  269. script:Destroy()
  270. end
  271. Player.Ghostly.Died:Connect(onDeath)
  272. m.KeyDown:connect(function(key)
  273. if key:lower() == "r" then
  274. attackin.Value=false
  275. end
  276. end)
  277. m.KeyDown:connect(function(key)
  278. if key:lower() == "e" then
  279. attackin.Value=true
  280. end
  281. end)
  282. m.KeyDown:connect(function(key)
  283. if key:lower() == "f" then
  284. hmn.WalkSpeed=100
  285. end
  286. end)
  287. m.KeyDown:connect(function(key)
  288. if key:lower() == "g" then
  289. hmn.WalkSpeed=16
  290. end
  291. end)
  292. m.KeyDown:connect(function(key)
  293. if key:lower() == "t" then
  294. hmn.JumpPower=200
  295. end
  296. end)
  297. m.KeyDown:connect(function(key)
  298. if key:lower() == "y" then
  299. hmn.JumpPower=50
  300. end
  301. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement