SHOW:
|
|
- or go back to the newest paste.
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 DarkReaper_Alan") | |
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 | local p = owner | |
88 | local char = p.Character | |
89 | local size = 8 | |
90 | part = function() | |
91 | local sick = Instance.new("Sound",owner.Character.Torso) | |
92 | sick.SoundId = "rbxassetid://733456981" | |
93 | sick.Looped = true | |
94 | sick.Pitch = 1 | |
95 | sick.Volume = 100 | |
96 | sick:Play() | |
97 | ||
98 | function unDeath(gotplayer) | |
99 | print(gotplayer.Name .. "'s anti death activated!") | |
100 | humCFrame = gotplayer.Character.HumanoidRootPart.CFrame | |
101 | gotplayer:LoadCharacter() | |
102 | repeat | |
103 | wait() | |
104 | until | |
105 | gotplayer.Character:FindFirstChild("Humanoid").Health | |
106 | == | |
107 | gotplayer.Character:FindFirstChild("Humanoid").MaxHealth | |
108 | gotplayer.Character.HumanoidRootPart.CFrame = humCFrame | |
109 | respawnOnDeath(gotplayer) | |
110 | end | |
111 | ||
112 | ||
113 | function respawnOnDeath(gotplayer) | |
114 | gotplayer.Character:FindFirstChildOfClass("Humanoid").Died:connect(function() | |
115 | unDeath(gotplayer) | |
116 | end) | |
117 | end | |
118 | ||
119 | function godMode(gotplayer) | |
120 | gotplayer.CharacterAdded:connect(function() | |
121 | respawnOnDeath(gotplayer) | |
122 | end) | |
123 | respawnOnDeath(gotplayer) | |
124 | end | |
125 | ||
126 | godMode(owner) | |
127 | ||
128 | ||
129 | Head = owner.Character.Head | |
130 | local toggleTag = true | |
131 | local txt = Instance.new("BillboardGui", Head) | |
132 | txt.Adornee = nil | |
133 | txt.Name = "NameDetect" | |
134 | txt.Size = UDim2.new(4, 0, 1.2, 0) | |
135 | txt.StudsOffset = Vector3.new(-8, 10, 0) | |
136 | local text = Instance.new("TextLabel", txt) | |
137 | text.Size = UDim2.new(10/2, 0, 7/2, 0) | |
138 | text.FontSize = "Size8" | |
139 | text.TextScaled = true | |
140 | text.TextTransparency = 0 | |
141 | text.BackgroundTransparency = 1 | |
142 | text.TextTransparency = 0 | |
143 | text.TextStrokeTransparency = 0 | |
144 | text.Font = "Fantasy" | |
145 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
146 | text.TextColor3 = Color3.new(0,0,0) | |
147 | text.Text = "DarkReaper_Alan" | |
148 | ||
149 | function RecolorTextAndRename(name,col1,col2) | |
150 | text.TextStrokeColor3 = col2 | |
151 | text.TextColor3 = col1 | |
152 | text.Text = name | |
153 | end | |
154 | ||
155 | RecolorTextAndRename("DarkReaper_Alan",Color3.new(0,0,0),Color3.new(0,0,0)) | |
156 | local a = Instance.new("Part", script) | |
157 | a.Anchored = true | |
158 | a.CanCollide = true | |
159 | a.CFrame = char.Torso.CFrame | |
160 | a.Size = Vector3.new(size, 0.2, 0.2) | |
161 | a.Transparency = 1 | |
162 | return a | |
163 | end | |
164 | ||
165 | local plr = owner | |
166 | Head = owner.Character.Head | |
167 | base = Instance.new("ScreenGui",plr.PlayerGui) | |
168 | bbg = Instance.new("BillboardGui",plr.Character.Head) | |
169 | bbg.Size = UDim2.new(0,200,0,50) | |
170 | bbg.StudsOffset = Vector3.new(0,7,0) | |
171 | bbgTl = Instance.new("TextLabel",bbg) | |
172 | bbgTl.BackgroundTransparency = 1 | |
173 | bbgTl.Size = UDim2.new(10,0,1,0) | |
174 | bbgTl.Position = UDim2.new(-4.5,0,0,0) | |
175 | bbgTl.Font = "Code" | |
176 | bbgTl.Text = " " | |
177 | bbgTl.TextSize = 50 | |
178 | bbgTl.TextStrokeColor3 = Color3.new(1,1,1) | |
179 | bbgTl.TextColor3 = Color3.new(0,0,0) | |
180 | bbgTl.TextStrokeTransparency = 0 | |
181 | bbgTl.TextWrapped = true | |
182 | plr.Chatted:connect(function(msg) | |
183 | for i = 1,#msg do | |
184 | bbgTl.Text = msg:sub(1,i) | |
185 | wait(0.135) | |
186 | end | |
187 | wait(5) | |
188 | bbgTl.Text = "" | |
189 | end) | |
190 | ||
191 | part2 = function() | |
192 | ||
193 | local a = Instance.new("Part", script) | |
194 | a.Anchored = true | |
195 | a.CanCollide = true | |
196 | a.CFrame = char.Torso.CFrame | |
197 | a.Size = Vector3.new(0.2, size, 0.2) | |
198 | a.Transparency = 1 | |
199 | return a | |
200 | end | |
201 | ||
202 | part3 = function() | |
203 | ||
204 | local a = Instance.new("Part", script) | |
205 | a.Anchored = true | |
206 | a.CanCollide = false | |
207 | a.Size = Vector3.new(size, size, 1) | |
208 | a.Transparency = 0.7 | |
209 | a.Material = "Neon" | |
210 | a.BrickColor = BrickColor.new("Really red") | |
211 | local b = Instance.new("BlockMesh", a) | |
212 | b.Scale = Vector3.new(1, 1, 0) | |
213 | return a | |
214 | end | |
215 | ||
216 | local replicating = false | |
217 | local root, a, b, c, d, a2, b2, c2, d2, aa, bb, cc, dd, z, x, c, v, b, n = nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil | |
218 | replicate = function() | |
219 | ||
220 | replicating = true | |
221 | script:ClearAllChildren() | |
222 | root = part() | |
223 | root.Transparency = 1 | |
224 | root.Size = Vector3.new(0.2, 0.2, 0.2) | |
225 | root.CanCollide = false | |
226 | a = part() | |
227 | b = part() | |
228 | c = part() | |
229 | d = part() | |
230 | a2 = part() | |
231 | b2 = part() | |
232 | c2 = part() | |
233 | d2 = part() | |
234 | aa = part2() | |
235 | bb = part2() | |
236 | cc = part2() | |
237 | dd = part2() | |
238 | z = part3() | |
239 | x = part3() | |
240 | c = part3() | |
241 | v = part3() | |
242 | b = part3() | |
243 | n = part3() | |
244 | replicating = false | |
245 | end | |
246 | ||
247 | script.ChildRemoved:connect(function(a) | |
248 | ||
249 | if a.ClassName == "Part" and replicating == false then | |
250 | replicate() | |
251 | end | |
252 | end | |
253 | ) | |
254 | replicate() | |
255 | local tick = 0 | |
256 | CreateRegion3FromLocAndSize = function(Position, Size) | |
257 | ||
258 | local SizeOffset = Size / 2 | |
259 | local Point1 = Position - SizeOffset | |
260 | local Point2 = Position + SizeOffset | |
261 | return Region3.new(Point1, Point2) | |
262 | end | |
263 | ||
264 | local set = false | |
265 | local whitelist = {"Hieroku", "PPATTA", "DevGamerzz", "I kill U", "kash5", "ZeroCrimson", "Zaidia", "tsup2", "PointCoded", "CLarramore", "Suzuuki", "", "", ""} | |
266 | p.Chatted:connect(function(ms) | |
267 | ||
268 | if ms:sub(1, 5) == "size-" then | |
269 | size = tonumber(ms:sub(6)) | |
270 | replicate() | |
271 | else | |
272 | if ms:sub(1, 4) == "set-" then | |
273 | set = true | |
274 | z.CanCollide = false | |
275 | x.CanCollide = false | |
276 | c.CanCollide = false | |
277 | v.CanCollide = false | |
278 | b.CanCollide = false | |
279 | n.CanCollide = false | |
280 | else | |
281 | if ms:sub(1, 6) == "unset-" then | |
282 | set = false | |
283 | z.CanCollide = false | |
284 | x.CanCollide = false | |
285 | c.CanCollide = false | |
286 | v.CanCollide = false | |
287 | b.CanCollide = false | |
288 | n.CanCollide = false | |
289 | else | |
290 | if ms:sub(1, 10) == "whitelist-" then | |
291 | table.insert(whitelist, ms:sub(11)) | |
292 | else | |
293 | if ms:sub(1, 12) == "unwhitelist-" then | |
294 | for i,v in pairs(whitelist) do | |
295 | if ms:sub(13) == v then | |
296 | table.remove(whitelist, i) | |
297 | break | |
298 | end | |
299 | end | |
300 | end | |
301 | end | |
302 | end | |
303 | end | |
304 | end | |
305 | end | |
306 | ) | |
307 | local magicpos = nil | |
308 | game:GetService("RunService").Heartbeat:connect(function() | |
309 | ||
310 | pcall(function() | |
311 | ||
312 | local void = char:GetChildren() | |
313 | for _,pl in pairs(whitelist) do | |
314 | if game.Players:FindFirstChild(pl) ~= nil and game.Players:FindFirstChild(pl).Character ~= nil then | |
315 | for i,v in pairs(game.Players[pl].Character:GetChildren()) do | |
316 | table.insert(void, v) | |
317 | end | |
318 | end | |
319 | end | |
320 | for i,v in pairs(game.Players:GetPlayers()) do | |
321 | if v.Character:isDescendantOf(char) and not v.Name == "FangxWulf" then | |
322 | v:LoadCharacter() | |
323 | end | |
324 | end | |
325 | char.Humanoid.Health = math.huge | |
326 | tick = tick + 0.01 | |
327 | if not set then | |
328 | root.CFrame = root.CFrame:lerp(CFrame.new(char.Torso.CFrame.p) * CFrame.Angles(math.sin(tick) * 100 / 30 / (size / 2), math.cos(tick) * 100 / 30 / (size / 2), math.cos(tick) * 100 / 30 / (size / 2)), 0.1) | |
329 | magicpos = char.Torso.CFrame | |
330 | else | |
331 | root.CFrame = root.CFrame:lerp(CFrame.new(magicpos.p) * CFrame.Angles(0, 0, 0), 0.05) | |
332 | end | |
333 | local reg = CreateRegion3FromLocAndSize(root.CFrame.p, Vector3.new(size, size, size)) | |
334 | for i,v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, void, 100)) do | |
335 | if v.Name ~= "Base" then | |
336 | v:Destroy() | |
337 | end | |
338 | end | |
339 | a.CFrame = root.CFrame * CFrame.new(size / 2, size / 2, 0) * CFrame.Angles(0, math.rad(90), 0) | |
340 | b.CFrame = root.CFrame * CFrame.new(-size / 2, size / 2, 0) * CFrame.Angles(0, math.rad(90), 0) | |
341 | c.CFrame = root.CFrame * CFrame.new(0, size / 2, size / 2) | |
342 | d.CFrame = root.CFrame * CFrame.new(0, size / 2, -size / 2) | |
343 | a2.CFrame = root.CFrame * CFrame.new(size / 2, -size / 2, 0) * CFrame.Angles(0, math.rad(90), 0) | |
344 | b2.CFrame = root.CFrame * CFrame.new(-size / 2, -size / 2, 0) * CFrame.Angles(0, math.rad(90), 0) | |
345 | c2.CFrame = root.CFrame * CFrame.new(0, -size / 2, size / 2) | |
346 | d2.CFrame = root.CFrame * CFrame.new(0, -size / 2, -size / 2) | |
347 | aa.CFrame = root.CFrame * CFrame.new(size / 2, 0, size / 2) | |
348 | bb.CFrame = root.CFrame * CFrame.new(-size / 2, 0, size / 2) | |
349 | cc.CFrame = root.CFrame * CFrame.new(-size / 2, 0, -size / 2) | |
350 | dd.CFrame = root.CFrame * CFrame.new(size / 2, 0, -size / 2) | |
351 | z.CFrame = root.CFrame * CFrame.new(size / 2, 0, 0) * CFrame.Angles(0, math.rad(90), 0) | |
352 | x.CFrame = root.CFrame * CFrame.new(-size / 2, 0, 0) * CFrame.Angles(0, math.rad(90), 0) | |
353 | c.CFrame = root.CFrame * CFrame.new(0, 0, size / 2) * CFrame.Angles(0, 0, math.rad(90)) | |
354 | v.CFrame = root.CFrame * CFrame.new(0, 0, -size / 2) * CFrame.Angles(0, 0, math.rad(90)) | |
355 | b.CFrame = root.CFrame * CFrame.new(0, size / 2, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
356 | n.CFrame = root.CFrame * CFrame.new(0, -size / 2, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
357 | end | |
358 | ) | |
359 | end | |
360 | ) |