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 | ||
8 | wait(1/60) | |
9 | ||
10 | plr = game.Players.LocalPlayer | |
11 | char = plr.Character | |
12 | Torso = char:FindFirstChild("Torso") | |
13 | root = char:FindFirstChild'HumanoidRootPart' | |
14 | hum = char:FindFirstChildOfClass'Humanoid' | |
15 | mouse = plr:GetMouse() | |
16 | clones = {} | |
17 | followplr = true | |
18 | radius = 25 | |
19 | ||
20 | if char.Head:FindFirstChild'face' then | |
21 | char.Head.face:Destroy() | |
22 | end | |
23 | ||
24 | for _, a in pairs(char:children()) do | |
25 | if a:IsA'Part' then | |
26 | a.Transparency = 1 | |
27 | elseif a:IsA'Accessory' then | |
28 | a:Destroy() | |
29 | end | |
30 | end | |
31 | ||
32 | body = Instance.new('Part',Torso) | |
33 | body.Anchored = false | |
34 | body.Name = "Body" | |
35 | body.Size = Vector3.new(0.07, 0.062, 0.078) | |
36 | bodym = Instance.new('SpecialMesh', body) | |
37 | bodym.Scale = Vector3.new(0.039, 0.039, 0.039) | |
38 | bodym.MeshId = "rbxassetid://1490852609" | |
39 | bodym.TextureId = "rbxassetid://1490852626" | |
40 | ||
41 | local music=Instance.new("Sound",char.Torso) | |
42 | music.SoundId="rbxassetid://414454387" | |
43 | music.Volume = 2.5 | |
44 | music.Looped=true | |
45 | music:Play() | |
46 | TheWay1 = Instance.new('Sound', body) | |
47 | TheWay1.SoundId = "" | |
48 | TheWay1.Volume = 3 | |
49 | TheWay1.Name = "TheWay1" | |
50 | Click = Instance.new('Sound', body) | |
51 | Click.SoundId = "rbxassetid://1335379417" | |
52 | Click.Volume = 3 | |
53 | ||
54 | num = 1 | |
55 | cooldown = false | |
56 | rand = math.random(1,2) | |
57 | ||
58 | for i = 1,10 do | |
59 | wait() | |
60 | char.Archivable = true | |
61 | clone = char:Clone() | |
62 | for _, a in pairs(clone:children()) do | |
63 | if a.Name == "Right Arm" or a.Name == "UpperRightArm" then | |
64 | a:Destroy() | |
65 | elseif a.Name == 'Left Arm' or a.Name == 'UpperLeftArm' then | |
66 | a:Destroy() | |
67 | elseif a.Name == "Torso" or a.Name == "UpperTorso" then | |
68 | if a.Sound then | |
69 | a.Sound:Remove() | |
70 | end | |
71 | end | |
72 | end | |
73 | table.insert(clones,clone) | |
74 | end | |
75 | ||
76 | for _, a in pairs(clones) do | |
77 | a.Parent = char | |
78 | a:MoveTo(root.Position + Vector3.new(math.random(1,10),math.random(1,10),math.random(1,10))) | |
79 | end | |
80 | ||
81 | function sfx1() | |
82 | for _, a in pairs(clones) do | |
83 | rand = math.random(1,2) | |
84 | if rand == 1 then | |
85 | a.Body['TheWay1'].Pitch = math.random(0.9,1) | |
86 | a.Body['TheWay1']:Play() | |
87 | elseif rand == 2 then | |
88 | a.Body['TheWay1'].Pitch = math.random(0.9,1) | |
89 | a.Body['TheWay1']:Play() | |
90 | end | |
91 | wait(math.random(0.4,0.6)) | |
92 | end | |
93 | end | |
94 | ||
95 | ||
96 | mouse.KeyDown:connect(function(k) | |
97 | key = k:lower() | |
98 | if key == "e" and not cooldown then | |
99 | cooldown = true | |
100 | sfx1() | |
101 | wait(.7) | |
102 | cooldown = false | |
103 | elseif key == "r" and not cooldown then | |
104 | cooldown = true | |
105 | sfx2() | |
106 | wait(.7) | |
107 | cooldown = false | |
108 | end | |
109 | end) | |
110 | ||
111 | plr.Chatted:connect(function(m) | |
112 | if string.sub(m:lower(),1,15) == "bruddas, follow" then | |
113 | for _,v in pairs(game:service'Players':GetPlayers()) do | |
114 | if string.find(v.Name:lower(),string.sub(m:lower(),17,-1)) then | |
115 | stalking = v | |
116 | else | |
117 | stalking = plr | |
118 | end | |
119 | end | |
120 | elseif string.sub(m:lower(),1,16) == "bruddas, protect" then | |
121 | for _,v in pairs(game:service'Players':GetPlayers()) do | |
122 | if string.find(v.Name:lower(),string.sub(m:lower(),18,-1)) then | |
123 | protecting = v | |
124 | else | |
125 | protecting = nil | |
126 | end | |
127 | end | |
128 | end | |
129 | end) | |
130 | ||
131 | while wait(1) do | |
132 | number = #clones | |
133 | position = root.CFrame | |
134 | protecting = false | |
135 | if stalking == nil then | |
136 | followplr = true | |
137 | elseif stalking ~= nil then | |
138 | followplr = false | |
139 | end | |
140 | for _, a in pairs(clones) do | |
141 | if a:FindFirstChildOfClass'Humanoid' and followplr and not protecting then | |
142 | a:FindFirstChildOfClass'Humanoid':MoveTo(root.Position + Vector3.new(math.random(-10,10),0,math.random(-10,10))) | |
143 | end | |
144 | end | |
145 | if not protecting and not followplr and stalking ~= nil and stalking.Character:FindFirstChild'HumanoidRootPart' then | |
146 | for _, a in pairs(clones) do | |
147 | if a:FindFirstChildOfClass'Humanoid' then | |
148 | a:FindFirstChildOfClass'Humanoid':MoveTo(stalking.Character.HumanoidRootPart.Position + Vector3.new(math.random(-10,10),0,math.random(-10,10))) | |
149 | end | |
150 | end | |
151 | rand = math.random(1,10) | |
152 | if rand == 5 then | |
153 | for i = 1,3 do | |
154 | random = clones[math.random(1,#clones)] | |
155 | rand = math.random(1,2) | |
156 | if rand == 1 then | |
157 | random.Body['TheWay1']:Play() | |
158 | else | |
159 | end | |
160 | end | |
161 | end | |
162 | end | |
163 | end |