Advertisement
pakin2549

Untitled

Aug 16th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  5.  
  6.  
  7. local player = owner
  8. local Cha = player.Character
  9. local mouse = player:GetMouse()
  10. local henshine = false
  11. local RAC = Cha.Torso:WaitForChild("Right Shoulder")
  12. local LAC = Cha.Torso:WaitForChild("Left Shoulder")
  13. local Neck = Cha.Torso:FindFirstChild("Neck")
  14. local RA = Cha:FindFirstChild("Right Arm")
  15. local LA = Cha:FindFirstChild("Left Arm")
  16. local Torso = Cha.Torso
  17. local Head = Cha.Head
  18. local RL = Cha:FindFirstChild("Right Leg")
  19. local LL = Cha:FindFirstChild("Left Leg")
  20. local Humanoid = Cha.Humanoid
  21.  
  22.  
  23.  
  24.  
  25. player.Chatted:connect(function(message)
  26. local msg = string.lower(message)
  27. if string.find(msg, "spit") then
  28. wait()
  29. Sound0 = Instance.new("Sound")
  30. ParticleEmitter1 = Instance.new("ParticleEmitter")
  31. ParticleEmitter2 = Instance.new("ParticleEmitter")
  32. ParticleEmitter3 = Instance.new("ParticleEmitter")
  33. Sound0.Name = "Spit Sound"
  34. Sound0.Parent = mas
  35. Sound0.SoundId = "rbxassetid://1370363170"
  36. ParticleEmitter1.Name = "1"
  37. ParticleEmitter1.Parent = Head
  38. ParticleEmitter1.Speed = NumberRange.new(30, 35)
  39. ParticleEmitter1.Rotation = NumberRange.new(-180, 180)
  40. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.666667, 1, 1),Color3.new(0.666667, 1, 1))
  41. ParticleEmitter1.LightEmission = 0.20000000298023
  42. ParticleEmitter1.Texture = "rbxassetid://241685484"
  43. ParticleEmitter1.Transparency = NumberSequence.new(0.70624995231628,0.41874998807907,1)
  44. ParticleEmitter1.ZOffset = 1
  45. ParticleEmitter1.Size = NumberSequence.new(0.10000000149012,0.10000000149012)
  46. ParticleEmitter1.Acceleration = Vector3.new(0, -100, 0)
  47. ParticleEmitter1.EmissionDirection = Enum.NormalId.Front
  48. ParticleEmitter1.Lifetime = NumberRange.new(1.2999999523163, 1.2999999523163)
  49. ParticleEmitter1.Rate = 1
  50. ParticleEmitter1.RotSpeed = NumberRange.new(-180, 180)
  51. ParticleEmitter1.SpreadAngle = Vector2.new(6, 6)
  52. ParticleEmitter1.VelocitySpread = 6
  53. ParticleEmitter2.Name = "1"
  54. ParticleEmitter2.Parent = Head
  55. ParticleEmitter2.Speed = NumberRange.new(30, 35)
  56. ParticleEmitter2.Rotation = NumberRange.new(-180, 180)
  57. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.666667, 1, 1),Color3.new(0.666667, 1, 1))
  58. ParticleEmitter2.LightEmission = 0.20000000298023
  59. ParticleEmitter2.Texture = "rbxassetid://241685484"
  60. ParticleEmitter2.Transparency = NumberSequence.new(0.70624995231628,0.41874998807907,1)
  61. ParticleEmitter2.ZOffset = 1
  62. ParticleEmitter2.Size = NumberSequence.new(0.10000000149012,0.10000000149012)
  63. ParticleEmitter2.Acceleration = Vector3.new(0, -100, 0)
  64. ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
  65. ParticleEmitter2.Lifetime = NumberRange.new(1.2999999523163, 1.2999999523163)
  66. ParticleEmitter2.Rate = 1
  67. ParticleEmitter2.RotSpeed = NumberRange.new(-180, 180)
  68. ParticleEmitter2.SpreadAngle = Vector2.new(6, 6)
  69. ParticleEmitter2.VelocitySpread = 6
  70. ParticleEmitter3.Name = "1"
  71. ParticleEmitter3.Parent = Head
  72. ParticleEmitter3.Speed = NumberRange.new(30, 35)
  73. ParticleEmitter3.Rotation = NumberRange.new(-180, 180)
  74. ParticleEmitter3.Color = ColorSequence.new(Color3.new(0.666667, 1, 1),Color3.new(0.666667, 1, 1))
  75. ParticleEmitter3.LightEmission = 0.20000000298023
  76. ParticleEmitter3.Texture = "rbxassetid://241685484"
  77. ParticleEmitter3.Transparency = NumberSequence.new(0.70624995231628,0.41874998807907,1)
  78. ParticleEmitter3.ZOffset = 1
  79. ParticleEmitter3.Size = NumberSequence.new(0.10000000149012,0.10000000149012)
  80. ParticleEmitter3.Acceleration = Vector3.new(0, -100, 0)
  81. ParticleEmitter3.EmissionDirection = Enum.NormalId.Front
  82. ParticleEmitter3.Lifetime = NumberRange.new(1.2999999523163, 1.2999999523163)
  83. ParticleEmitter3.Rate = 1
  84. ParticleEmitter3.RotSpeed = NumberRange.new(-180, 180)
  85. ParticleEmitter3.SpreadAngle = Vector2.new(6, 6)
  86. ParticleEmitter3.VelocitySpread = 6
  87. Sound0:Play()
  88. wait(1)
  89. Sound0:Destroy()
  90. ParticleEmitter1:Destroy()
  91. ParticleEmitter2:Destroy()
  92. ParticleEmitter3:Destroy()
  93. end
  94. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement