SHOW:
|
|
- or go back to the newest paste.
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:WaitForChild("Neck") |
13 | + | local Neck = Cha:WaitForChild("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 | Neck.C0 = CFrame.Angle(24.16, 0, 0) | |
30 | wait(0.4) | |
31 | Neck.C0 = CFrame.Angle(-9.48, 0, 0) | |
32 | Sound0 = Instance.new("Sound") | |
33 | ParticleEmitter1 = Instance.new("ParticleEmitter") | |
34 | ParticleEmitter2 = Instance.new("ParticleEmitter") | |
35 | ParticleEmitter3 = Instance.new("ParticleEmitter") | |
36 | Sound0.Name = "Spit Sound" | |
37 | Sound0.Parent = mas | |
38 | Sound0.SoundId = "rbxassetid://1370363170" | |
39 | ParticleEmitter1.Name = "1" | |
40 | ParticleEmitter1.Parent = Head | |
41 | ParticleEmitter1.Speed = NumberRange.new(30, 35) | |
42 | ParticleEmitter1.Rotation = NumberRange.new(-180, 180) | |
43 | ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.666667, 1, 1),Color3.new(0.666667, 1, 1)) | |
44 | ParticleEmitter1.LightEmission = 0.20000000298023 | |
45 | ParticleEmitter1.Texture = "rbxassetid://241685484" | |
46 | ParticleEmitter1.Transparency = NumberSequence.new(0.70624995231628,0.41874998807907,1) | |
47 | ParticleEmitter1.ZOffset = 1 | |
48 | ParticleEmitter1.Size = NumberSequence.new(0.10000000149012,0.10000000149012) | |
49 | ParticleEmitter1.Acceleration = Vector3.new(0, -100, 0) | |
50 | ParticleEmitter1.EmissionDirection = Enum.NormalId.Front | |
51 | ParticleEmitter1.Lifetime = NumberRange.new(1.2999999523163, 1.2999999523163) | |
52 | ParticleEmitter1.Rate = 1 | |
53 | ParticleEmitter1.RotSpeed = NumberRange.new(-180, 180) | |
54 | ParticleEmitter1.SpreadAngle = Vector2.new(6, 6) | |
55 | ParticleEmitter1.VelocitySpread = 6 | |
56 | ParticleEmitter2.Name = "1" | |
57 | ParticleEmitter2.Parent = Head | |
58 | ParticleEmitter2.Speed = NumberRange.new(30, 35) | |
59 | ParticleEmitter2.Rotation = NumberRange.new(-180, 180) | |
60 | ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.666667, 1, 1),Color3.new(0.666667, 1, 1)) | |
61 | ParticleEmitter2.LightEmission = 0.20000000298023 | |
62 | ParticleEmitter2.Texture = "rbxassetid://241685484" | |
63 | ParticleEmitter2.Transparency = NumberSequence.new(0.70624995231628,0.41874998807907,1) | |
64 | ParticleEmitter2.ZOffset = 1 | |
65 | ParticleEmitter2.Size = NumberSequence.new(0.10000000149012,0.10000000149012) | |
66 | ParticleEmitter2.Acceleration = Vector3.new(0, -100, 0) | |
67 | ParticleEmitter2.EmissionDirection = Enum.NormalId.Front | |
68 | ParticleEmitter2.Lifetime = NumberRange.new(1.2999999523163, 1.2999999523163) | |
69 | ParticleEmitter2.Rate = 1 | |
70 | ParticleEmitter2.RotSpeed = NumberRange.new(-180, 180) | |
71 | ParticleEmitter2.SpreadAngle = Vector2.new(6, 6) | |
72 | ParticleEmitter2.VelocitySpread = 6 | |
73 | ParticleEmitter3.Name = "1" | |
74 | ParticleEmitter3.Parent = Head | |
75 | ParticleEmitter3.Speed = NumberRange.new(30, 35) | |
76 | ParticleEmitter3.Rotation = NumberRange.new(-180, 180) | |
77 | ParticleEmitter3.Color = ColorSequence.new(Color3.new(0.666667, 1, 1),Color3.new(0.666667, 1, 1)) | |
78 | ParticleEmitter3.LightEmission = 0.20000000298023 | |
79 | ParticleEmitter3.Texture = "rbxassetid://241685484" | |
80 | ParticleEmitter3.Transparency = NumberSequence.new(0.70624995231628,0.41874998807907,1) | |
81 | ParticleEmitter3.ZOffset = 1 | |
82 | ParticleEmitter3.Size = NumberSequence.new(0.10000000149012,0.10000000149012) | |
83 | ParticleEmitter3.Acceleration = Vector3.new(0, -100, 0) | |
84 | ParticleEmitter3.EmissionDirection = Enum.NormalId.Front | |
85 | ParticleEmitter3.Lifetime = NumberRange.new(1.2999999523163, 1.2999999523163) | |
86 | ParticleEmitter3.Rate = 1 | |
87 | ParticleEmitter3.RotSpeed = NumberRange.new(-180, 180) | |
88 | ParticleEmitter3.SpreadAngle = Vector2.new(6, 6) | |
89 | ParticleEmitter3.VelocitySpread = 6 | |
90 | Sound0:Play() | |
91 | wait(1) | |
92 | Sound0:Destroy() | |
93 | ParticleEmitter1:Destroy() | |
94 | ParticleEmitter2:Destroy() | |
95 | ParticleEmitter3:Destroy() | |
96 | end | |
97 | end) |