Advertisement
NoHackJustStevePlayz

test test test test

Aug 13th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.56 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. p = (game.Players.LocalPlayer.Name)
  84. char = game.Players.LocalPlayer.Character
  85.  
  86.  
  87. local player = owner
  88. repeat wait() until player.Character.Humanoid
  89. local humanoid = player.Character.Humanoid
  90.  
  91. for i,v in pairs(char:GetChildren()) do
  92. if v.ClassName == 'Hat' then
  93. v:Destroy()
  94. end
  95. end
  96.  
  97. ScarySound1 = Instance.new("Sound")
  98. ScarySound1.Parent = char.Torso
  99. ScarySound1.SoundId = "rbxassetid://177113856"
  100. ScarySound1.Volume = 1
  101.  
  102. ScarySound2 = Instance.new("Sound")
  103. ScarySound2.Parent = char.Torso
  104. ScarySound2.SoundId = "rbxassetid://234313800"
  105. ScarySound2.Volume = 0.5
  106. ScarySound2.Looped = true
  107.  
  108. ScarySound3 = Instance.new("Sound")
  109. ScarySound3.Parent = char.Torso
  110. ScarySound3.SoundId = "rbxassetid://254933693"
  111. ScarySound3.Volume = 0.5
  112. ScarySound3.Looped = true
  113.  
  114. Punch = Instance.new("Sound")
  115. Punch.Parent = char.Torso
  116. Punch.SoundId = "rbxassetid://261566877"
  117. Punch.Volume = 1
  118. Punch.Looped = false
  119.  
  120. hole = Instance.new("Sound")
  121. hole.Parent = char.Torso
  122. hole.SoundId = "rbxassetid://266364769"
  123. hole.Volume = 1
  124. hole.Looped = false
  125.  
  126. game.Players.LocalPlayer.Character.Sound:Destroy()
  127.  
  128. function Normal()
  129. ScarySound3:Play()
  130. char.Humanoid.WalkSpeed = 16
  131. char.Head.face.Texture = "rbxassetid://443236276"
  132. char["Left Leg"].Transparency = 0.5
  133. char["Head"].Transparency = 0.5
  134. char["Right Leg"].Transparency = 0.5
  135. char["Torso"].Transparency = 0.5
  136. char["Left Arm"].Transparency = 0.5
  137. char["Right Arm"].Transparency = 0.5
  138. end
  139.  
  140. function GoInvisible()
  141. ScarySound3:Stop()
  142. ScarySound1:Stop()
  143. char.Humanoid.WalkSpeed = 120
  144. char.Head.face.Transparency = 1
  145. char["Left Leg"].Transparency = 0.5
  146. char["Head"].Transparency = 0.5
  147. char["Right Leg"].Transparency = 0.5
  148. char["Torso"].Transparency = 0.5
  149. char["Left Arm"].Transparency = 0.5
  150. char["Right Arm"].Transparency = 0.5
  151. wait(0.001)
  152. char["Left Leg"].Transparency = 0.6
  153. char["Head"].Transparency = 0.6
  154. char["Right Leg"].Transparency = 0.6
  155. char["Torso"].Transparency = 0.6
  156. char["Left Arm"].Transparency = 0.6
  157. char["Right Arm"].Transparency = 0.6
  158. wait(0.001)
  159. char["Left Leg"].Transparency = 0.7
  160. char["Head"].Transparency = 0.7
  161. char["Right Leg"].Transparency = 0.7
  162. char["Torso"].Transparency = 0.7
  163. char["Left Arm"].Transparency = 0.7
  164. char["Right Arm"].Transparency = 0.7
  165. wait(0.001)
  166. char["Left Leg"].Transparency = 1
  167. char["Head"].Transparency = 1
  168. char["Right Leg"].Transparency = 1
  169. char["Torso"].Transparency = 1
  170. char["Left Arm"].Transparency = 1
  171. char["Right Arm"].Transparency = 1
  172. end
  173.  
  174. function GoVisible()
  175. ScarySound3:Play()
  176. char.Humanoid.WalkSpeed = 16
  177. ScarySound1:Play()
  178. char.Head.face.Transparency = 0
  179. char["Left Leg"].Transparency = 0.9
  180. char["Head"].Transparency = 0.9
  181. char["Right Leg"].Transparency = 9
  182. char["Torso"].Transparency = 0.9
  183. char["Left Arm"].Transparency = 0.9
  184. char["Right Arm"].Transparency = 0.9
  185. wait(0.001)
  186. char["Left Leg"].Transparency = 0.7
  187. char["Head"].Transparency = 0.7
  188. char["Right Leg"].Transparency = 0.7
  189. char["Torso"].Transparency = 0.7
  190. char["Left Arm"].Transparency = 0.7
  191. char["Right Arm"].Transparency = 0.7
  192. wait(0.001)
  193. char["Left Leg"].Transparency = 0.5
  194. char["Head"].Transparency = 0.5
  195. char["Right Leg"].Transparency = 0.5
  196. char["Torso"].Transparency = 0.5
  197. char["Left Arm"].Transparency = 0.5
  198. char["Right Arm"].Transparency = 0.5
  199.  
  200. end
  201.  
  202. Normal()
  203.  
  204. local anim = Instance.new("Animation")
  205. anim.AnimationId = "rbxassetid://191123156"
  206.  
  207. mouse.KeyDown:connect(function(key)
  208. if key == "z" then
  209. if char.Head.Transparency == 0.5 then
  210. GoInvisible()
  211.  
  212. elseif char.Head.Transparency == 1 then
  213. GoVisible()
  214. end
  215. end end)
  216.  
  217. mouse.KeyDown:connect(function(key)
  218. if key == "x" then
  219. if ScarySound2.IsPlaying == false then
  220. ScarySound2:Play()
  221. elseif ScarySound2.IsPlaying == true then
  222. ScarySound2:Stop()
  223.  
  224.  
  225. end
  226. end end)
  227.  
  228. function onTouch(part)
  229.  
  230. local humanoid = part.Parent:findFirstChild("Humanoid")
  231. local model = part.Parent
  232. local torso = part.Parent:findFirstChild("Torso")
  233. local head = part.Parent:findFirstChild("Head")
  234. local leftleg = part.Parent:findFirstChild("Left Leg")
  235. local rightleg = part.Parent:findFirstChild("Right Leg")
  236. local leftarm = part.Parent:findFirstChild("Left Arm")
  237. local rightarm = part.Parent:findFirstChild("Right Arm")
  238.  
  239.  
  240. if (humanoid ~=nil) then
  241.  
  242. --humanoid.Health = 0
  243.  
  244. head.BrickColor = BrickColor.new("Really black")
  245. torso.BrickColor = BrickColor.new("Really black")
  246. leftleg.BrickColor = BrickColor.new("Really black")
  247. rightleg.BrickColor = BrickColor.new("Really black")
  248. rightarm.BrickColor = BrickColor.new("Really black")
  249. leftarm.BrickColor = BrickColor.new("Really black")
  250. humanoid.Sit = true
  251. wait(0.5)
  252. torso.Anchored = true
  253. wait(3)
  254.  
  255. e=Instance.new('Part', model)
  256. e.Size = Vector3.new(2.25,2.25,2.25)
  257. e.Transparency = 1
  258. e.Anchored = true
  259. e.CFrame = CFrame.new(head.Position)
  260. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  261. wait(0.1)
  262. head.Mesh.Scale = head.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  263. wait(0.1)
  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.  
  356.  
  357. wait(2)
  358. head:Destroy()
  359. q=Instance.new('ParticleEmitter', e)
  360. q.Size = NumberSequence.new(0.5)
  361. q.Rate = 50
  362. q.Transparency = NumberSequence.new(0.5)
  363. q.Speed = NumberRange.new(7)
  364. q.VelocitySpread = 100
  365. q.Lifetime = NumberRange.new(1)
  366. q.Texture = 'rbxassetid://122275188'
  367.  
  368. torso.Anchored = true
  369. rightleg.Anchored = true
  370. leftleg.Anchored = true
  371. rightarm.Anchored = true
  372. leftarm.Anchored = true
  373. ded = Instance.new("Sound")
  374. ded.Parent = torso
  375. ded.SoundId = "rbxassetid://131060226"
  376. ded.Volume = 1
  377. ded.Looped = false
  378. wait()
  379. ded:Play()
  380.  
  381.  
  382.  
  383.  
  384. end
  385.  
  386. end
  387.  
  388.  
  389.  
  390. char.Torso.Touched:connect(onTouch)
  391.  
  392. mouse.KeyDown:connect(function(key)
  393. if key == "c" then
  394. local playAnim = humanoid:LoadAnimation(anim)
  395.  
  396. Punch:Play()
  397. playAnim:Play()
  398.  
  399.  
  400.  
  401. end
  402. end)
  403.  
  404. debounce = false
  405.  
  406. function onTouched(hit)
  407. hole:Play()
  408. hit.CanCollide=false
  409. wait(.5)
  410. hit.CanCollide = true
  411. debounce = true
  412.  
  413. end
  414. game.Players.LocalPlayer.Character.Torso.Touched:connect(onTouched)
  415.  
  416.  
  417. while wait() do
  418. char["Left Leg"].BrickColor = BrickColor.new("Really black")
  419. char["Head"].BrickColor = BrickColor.new("Really black")
  420. char["Right Leg"].BrickColor = BrickColor.new("Really black")
  421. char["Torso"].BrickColor = BrickColor.new("Really black")
  422. char["Left Arm"].BrickColor = BrickColor.new("Really black")
  423. char["Right Arm"].BrickColor = BrickColor.new("Really black")
  424. endxxz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement