Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
87
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 = game:GetService("Players").LocalPlayer
  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. p = (game.Players.owner.Name)
  88. char = game.Players.owner.Character
  89.  
  90.  
  91. local player = owner
  92. repeat wait() until player.Character.Humanoid
  93. local humanoid = player.Character.Humanoid
  94.  
  95. for i,v in pairs(char:GetChildren()) do
  96. if v.ClassName == 'Hat' then
  97. v:Destroy()
  98. end
  99. end
  100.  
  101. ScarySound1 = Instance.new("Sound")
  102. ScarySound1.Parent = char.Torso
  103. ScarySound1.SoundId = "rbxassetid://177113856"
  104. ScarySound1.Volume = 1
  105.  
  106. ScarySound2 = Instance.new("Sound")
  107. ScarySound2.Parent = char.Torso
  108. ScarySound2.SoundId = "rbxassetid://234313800"
  109. ScarySound2.Volume = 0.5
  110. ScarySound2.Looped = true
  111.  
  112. ScarySound3 = Instance.new("Sound")
  113. ScarySound3.Parent = char.Torso
  114. ScarySound3.SoundId = "rbxassetid://254933693"
  115. ScarySound3.Volume = 0.5
  116. ScarySound3.Looped = true
  117.  
  118. Punch = Instance.new("Sound")
  119. Punch.Parent = char.Torso
  120. Punch.SoundId = "rbxassetid://261566877"
  121. Punch.Volume = 1
  122. Punch.Looped = false
  123.  
  124. hole = Instance.new("Sound")
  125. hole.Parent = char.Torso
  126. hole.SoundId = "rbxassetid://266364769"
  127. hole.Volume = 1
  128. hole.Looped = false
  129.  
  130. game.Players.owner.Character.Sound:Destroy()
  131.  
  132. function Normal()
  133. ScarySound3:Play()
  134. char.Humanoid.WalkSpeed = 16
  135. char.Head.face.Texture = "rbxassetid://443236276"
  136. char["Left Leg"].Transparency = 0.5
  137. char["Head"].Transparency = 0.5
  138. char["Right Leg"].Transparency = 0.5
  139. char["Torso"].Transparency = 0.5
  140. char["Left Arm"].Transparency = 0.5
  141. char["Right Arm"].Transparency = 0.5
  142. end
  143.  
  144. function GoInvisible()
  145. ScarySound3:Stop()
  146. ScarySound1:Stop()
  147. char.Humanoid.WalkSpeed = 120
  148. char.Head.face.Transparency = 1
  149. char["Left Leg"].Transparency = 0.5
  150. char["Head"].Transparency = 0.5
  151. char["Right Leg"].Transparency = 0.5
  152. char["Torso"].Transparency = 0.5
  153. char["Left Arm"].Transparency = 0.5
  154. char["Right Arm"].Transparency = 0.5
  155. wait(0.001)
  156. char["Left Leg"].Transparency = 0.6
  157. char["Head"].Transparency = 0.6
  158. char["Right Leg"].Transparency = 0.6
  159. char["Torso"].Transparency = 0.6
  160. char["Left Arm"].Transparency = 0.6
  161. char["Right Arm"].Transparency = 0.6
  162. wait(0.001)
  163. char["Left Leg"].Transparency = 0.7
  164. char["Head"].Transparency = 0.7
  165. char["Right Leg"].Transparency = 0.7
  166. char["Torso"].Transparency = 0.7
  167. char["Left Arm"].Transparency = 0.7
  168. char["Right Arm"].Transparency = 0.7
  169. wait(0.001)
  170. char["Left Leg"].Transparency = 1
  171. char["Head"].Transparency = 1
  172. char["Right Leg"].Transparency = 1
  173. char["Torso"].Transparency = 1
  174. char["Left Arm"].Transparency = 1
  175. char["Right Arm"].Transparency = 1
  176. end
  177.  
  178. function GoVisible()
  179. ScarySound3:Play()
  180. char.Humanoid.WalkSpeed = 16
  181. ScarySound1:Play()
  182. char.Head.face.Transparency = 0
  183. char["Left Leg"].Transparency = 0.9
  184. char["Head"].Transparency = 0.9
  185. char["Right Leg"].Transparency = 9
  186. char["Torso"].Transparency = 0.9
  187. char["Left Arm"].Transparency = 0.9
  188. char["Right Arm"].Transparency = 0.9
  189. wait(0.001)
  190. char["Left Leg"].Transparency = 0.7
  191. char["Head"].Transparency = 0.7
  192. char["Right Leg"].Transparency = 0.7
  193. char["Torso"].Transparency = 0.7
  194. char["Left Arm"].Transparency = 0.7
  195. char["Right Arm"].Transparency = 0.7
  196. wait(0.001)
  197. char["Left Leg"].Transparency = 0.5
  198. char["Head"].Transparency = 0.5
  199. char["Right Leg"].Transparency = 0.5
  200. char["Torso"].Transparency = 0.5
  201. char["Left Arm"].Transparency = 0.5
  202. char["Right Arm"].Transparency = 0.5
  203.  
  204. end
  205.  
  206. Normal()
  207.  
  208. local anim = Instance.new("Animation")
  209. anim.AnimationId = "rbxassetid://191123156"
  210.  
  211. mouse.KeyDown:connect(function(key)
  212. if key == "z" then
  213. if char.Head.Transparency == 0.5 then
  214. GoInvisible()
  215.  
  216. elseif char.Head.Transparency == 1 then
  217. GoVisible()
  218. end
  219. end end)
  220.  
  221. mouse.KeyDown:connect(function(key)
  222. if key == "x" then
  223. if ScarySound2.IsPlaying == false then
  224. ScarySound2:Play()
  225. elseif ScarySound2.IsPlaying == true then
  226. ScarySound2:Stop()
  227.  
  228.  
  229. end
  230. end end)
  231.  
  232. function onTouch(part)
  233.  
  234. local humanoid = part.Parent:findFirstChild("Humanoid")
  235. local model = part.Parent
  236. local torso = part.Parent:findFirstChild("Torso")
  237. local head = part.Parent:findFirstChild("Head")
  238. local leftleg = part.Parent:findFirstChild("Left Leg")
  239. local rightleg = part.Parent:findFirstChild("Right Leg")
  240. local leftarm = part.Parent:findFirstChild("Left Arm")
  241. local rightarm = part.Parent:findFirstChild("Right Arm")
  242.  
  243.  
  244. if (humanoid ~=nil) then
  245.  
  246. --humanoid.Health = 0
  247.  
  248. head.BrickColor = BrickColor.new("Really black")
  249. torso.BrickColor = BrickColor.new("Really black")
  250. leftleg.BrickColor = BrickColor.new("Really black")
  251. rightleg.BrickColor = BrickColor.new("Really black")
  252. rightarm.BrickColor = BrickColor.new("Really black")
  253. leftarm.BrickColor = BrickColor.new("Really black")
  254. humanoid.Sit = true
  255. wait(0.5)
  256. torso.Anchored = true
  257. wait(3)
  258.  
  259. e=Instance.new('Part', model)
  260. e.Size = Vector3.new(2.25,2.25,2.25)
  261. e.Transparency = 1
  262. e.Anchored = true
  263. e.CFrame = CFrame.new(head.Position)
  264. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  265. wait(0.1)
  266. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  267. wait(0.1)
  268. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  269. wait(0.1)
  270. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  271. wait(0.1)
  272. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  273. wait(0.1)
  274. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  275. wait(0.1)
  276. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  277. wait(0.1)
  278. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  279. wait(0.1)
  280. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  281. wait(0.1)
  282. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  283. wait(0.1)
  284. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  285. wait(0.1)
  286. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  287. wait(0.1)
  288. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  289. wait(0.1)
  290. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  291. wait(0.1)
  292. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  293. wait(0.1)
  294. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  295. wait(0.1)
  296. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  297. wait(0.1)
  298. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  299. wait(0.1)
  300. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  301. wait(0.1)
  302. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  303. wait(0.1)
  304. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  305. wait(0.1)
  306. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  307. wait(0.1)
  308. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  309. wait(0.1)
  310. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  311. wait(0.1)
  312. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  313. wait(0.1)
  314. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  315. wait(0.1)
  316. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  317. wait(0.1)
  318. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  319. wait(0.1)
  320. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  321. wait(0.1)
  322. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  323. wait(0.1)
  324. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  325. wait(0.1)
  326. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  327. wait(0.1)
  328. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  329. wait(0.1)
  330. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  331. wait(0.1)
  332. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  333. wait(0.1)
  334. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  335. wait(0.1)
  336. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  337. wait(0.1)
  338. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  339. wait(0.1)
  340. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  341. wait(0.1)
  342. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  343. wait(0.1)
  344. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  345. wait(0.1)
  346. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  347. wait(0.1)
  348. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  349. wait(0.1)
  350. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  351. wait(0.1)
  352. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  353. wait(0.1)
  354. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  355. wait(0.1)
  356. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  357. wait(0.1)
  358. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  359.  
  360.  
  361. wait(2)
  362. head:Destroy()
  363. q=Instance.new('ParticleEmitter', e)
  364. q.Size = NumberSequence.new(0.5)
  365. q.Rate = 50
  366. q.Transparency = NumberSequence.new(0.5)
  367. q.Speed = NumberRange.new(7)
  368. q.VelocitySpread = 100
  369. q.Lifetime = NumberRange.new(1)
  370. q.Texture = 'rbxassetid://122275188'
  371.  
  372. torso.Anchored = true
  373. rightleg.Anchored = true
  374. leftleg.Anchored = true
  375. rightarm.Anchored = true
  376. leftarm.Anchored = true
  377. ded = Instance.new("Sound")
  378. ded.Parent = torso
  379. ded.SoundId = "rbxassetid://131060226"
  380. ded.Volume = 1
  381. ded.Looped = false
  382. wait()
  383. ded:Play()
  384.  
  385.  
  386.  
  387.  
  388. end
  389.  
  390. end
  391.  
  392.  
  393.  
  394. char.Torso.Touched:connect(onTouch)
  395.  
  396. mouse.KeyDown:connect(function(key)
  397. if key == "c" then
  398. local playAnim = humanoid:LoadAnimation(anim)
  399.  
  400. Punch:Play()
  401. playAnim:Play()
  402.  
  403.  
  404.  
  405. end
  406. end)
  407.  
  408. debounce = false
  409.  
  410. function onTouched(hit)
  411. hole:Play()
  412. hit.CanCollide=false
  413. wait(.5)
  414. hit.CanCollide = true
  415. debounce = true
  416.  
  417. end
  418. game.Players.owner.Character.Torso.Touched:connect(onTouched)
  419.  
  420.  
  421. while wait() do
  422. char["Left Leg"].BrickColor = BrickColor.new("Really black")
  423. char["Head"].BrickColor = BrickColor.new("Really black")
  424. char["Right Leg"].BrickColor = BrickColor.new("Really black")
  425. char["Torso"].BrickColor = BrickColor.new("Really black")
  426. char["Left Arm"].BrickColor = BrickColor.new("Really black")
  427. char["Right Arm"].BrickColor = BrickColor.new("Really black")
  428. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement