SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do | |
6 | print("FE Compatibility code V2 by Mokiros") | |
7 | local RealPlayer = RealPlayer | |
8 | script.Parent = RealPlayer.Character | |
9 | ||
10 | --Fake event to make stuff like Mouse.KeyDown work | |
11 | local Disconnect_Function = function(this) | |
12 | this[1].Functions[this[2]] = nil | |
13 | end | |
14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}} | |
15 | local FakeEvent_Metatable = {__index={ | |
16 | Connect = function(this,f) | |
17 | local i = tostring(math.random(0,10000)) | |
18 | while this.Functions[i] do | |
19 | i = tostring(math.random(0,10000)) | |
20 | end | |
21 | this.Functions[i] = f | |
22 | return setmetatable({this,i},Disconnect_Metatable) | |
23 | end | |
24 | }} | |
25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
26 | local function fakeEvent() | |
27 | return setmetatable({Functions={}},FakeEvent_Metatable) | |
28 | end | |
29 | ||
30 | --Creating fake input objects with fake variables | |
31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
37 | end} | |
38 | --Merged 2 functions into one by checking amount of arguments | |
39 | CAS.UnbindAction = CAS.BindAction | |
40 | ||
41 | --This function will trigger the events that have been :Connect()'ed | |
42 | local function TriggerEvent(self,ev,...) | |
43 | for _,f in pairs(self[ev].Functions) do | |
44 | f(...) | |
45 | end | |
46 | end | |
47 | FakeMouse.TriggerEvent = TriggerEvent | |
48 | UIS.TriggerEvent = TriggerEvent | |
49 | ||
50 | --Client communication | |
51 | local Event = Instance.new("RemoteEvent") | |
52 | Event.Name = "UserInput_Event" | |
53 | Event.OnServerEvent:Connect(function(plr,io) | |
54 | if plr~=RealPlayer then return end | |
55 | FakeMouse.Target = io.Target | |
56 | FakeMouse.Hit = io.Hit | |
57 | if not io.isMouse then | |
58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
61 | end | |
62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
64 | end | |
65 | for _,t in pairs(CAS.Actions) do | |
66 | for _,k in pairs(t.Keys) do | |
67 | if k==io.KeyCode then | |
68 | t.Function(t.Name,io.UserInputState,io) | |
69 | end | |
70 | end | |
71 | end | |
72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
74 | end | |
75 | end) | |
76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event") | |
77 | local Mouse = owner:GetMouse() | |
78 | local UIS = game:GetService("UserInputService") | |
79 | local input = function(io,RobloxHandled) | |
80 | if RobloxHandled then return end | |
81 | --Since InputObject is a client-side instance, we create and pass table instead | |
82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
83 | end | |
84 | UIS.InputBegan:Connect(input) | |
85 | UIS.InputEnded:Connect(input) | |
86 | local h,t | |
87 | --Give the server mouse data every second frame, but only if the values changed | |
88 | --If player is not moving their mouse, client won't fire events | |
89 | local HB = game:GetService("RunService").Heartbeat | |
90 | while true do | |
91 | if h~=Mouse.Hit or t~=Mouse.Target then | |
92 | h,t=Mouse.Hit,Mouse.Target | |
93 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
94 | end | |
95 | --Wait 2 frames | |
96 | for i=1,2 do | |
97 | HB:Wait() | |
98 | end | |
99 | end]==],script) | |
100 | ||
101 | ----Sandboxed game object that allows the usage of client-side methods and services | |
102 | --Real game object | |
103 | local RealGame = game | |
104 | ||
105 | --Metatable for fake service | |
106 | local FakeService_Metatable = { | |
107 | __index = function(self,k) | |
108 | local s = rawget(self,"_RealService") | |
109 | if s then | |
110 | return typeof(s[k])=="function" | |
111 | and function(_,...)return s[k](s,...)end or s[k] | |
112 | end | |
113 | end, | |
114 | __newindex = function(self,k,v) | |
115 | local s = rawget(self,"_RealService") | |
116 | if s then s[k]=v end | |
117 | end | |
118 | } | |
119 | local function FakeService(t,RealService) | |
120 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
121 | return setmetatable(t,FakeService_Metatable) | |
122 | end | |
123 | ||
124 | --Fake game object | |
125 | local FakeGame = { | |
126 | GetService = function(self,s) | |
127 | return rawget(self,s) or RealGame:GetService(s) | |
128 | end, | |
129 | Players = FakeService({ | |
130 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player) | |
131 | },"Players"), | |
132 | UserInputService = FakeService(UIS,"UserInputService"), | |
133 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
134 | RunService = FakeService({ | |
135 | _btrs = {}, | |
136 | RenderStepped = RealGame:GetService("RunService").Heartbeat, | |
137 | BindToRenderStep = function(self,name,_,fun) | |
138 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
139 | end, | |
140 | UnbindFromRenderStep = function(self,name) | |
141 | self._btrs[name]:Disconnect() | |
142 | end, | |
143 | },"RunService") | |
144 | } | |
145 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
146 | FakeGame.service = FakeGame.GetService | |
147 | FakeService(FakeGame,game) | |
148 | --Changing owner to fake player object to support owner:GetMouse() | |
149 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
150 | end | |
151 | ||
152 | wait(1) | |
153 | local p = game:GetService("Players") | |
154 | pp = p.LocalPlayer--The variable is named after your small 'thing'. | |
155 | local ChatService = game:GetService("Chat") | |
156 | local mouse = pp:GetMouse() | |
157 | local skidspace = game:GetService("Workspace") --This is a script intended for script builder | |
158 | plr = skidspace[pp.Name] --You have to deal with all this idiots; Just like school. | |
159 | local hum = plr:FindFirstChildOfClass("Humanoid") | |
160 | hum.WalkSpeed = 11.5*6 | |
161 | hum.DisplayDistanceType = "None" | |
162 | function ChatFunction(loc, msg) | |
163 | local ChatGuiPart1 = Instance.new("BillboardGui",loc) | |
164 | ChatGuiPart1.Name = "ChatGui" | |
165 | ChatGuiPart1.AlwaysOnTop = true | |
166 | ChatGuiPart1.ExtentsOffset = Vector3.new(0, 5, 0) | |
167 | ChatGuiPart1.Size = UDim2.new(0, 200, 0, 50) | |
168 | local ChatGuiPart2 = Instance.new("TextLabel") | |
169 | ChatGuiPart2.BorderColor3 = Color3.new(1, 0, 0) | |
170 | ChatGuiPart2.BorderSizePixel = 3 | |
171 | ChatGuiPart2.BackgroundColor3 = Color3.new(255, 255, 255) | |
172 | ChatGuiPart2.Size = UDim2.new(0, 200, 0, 50) | |
173 | ChatGuiPart2.Font = Enum.Font.Arcade | |
174 | ChatGuiPart2.FontSize = Enum.FontSize.Size14 | |
175 | ChatGuiPart2.TextColor3 = Color3.new(1, 0, 0) | |
176 | ChatGuiPart2.TextWrapped = true | |
177 | ChatGuiPart2.Parent = ChatGuiPart1 | |
178 | ChatGuiPart2.Text = msg | |
179 | wait() | |
180 | --ChatGuiPart1:Destroy() | |
181 | end | |
182 | ||
183 | -------------------------------------------------- | |
184 | --186942568 | |
185 | local theme = Instance.new("Sound",pp.Character) | |
186 | theme.Name = "Girei" | |
187 | theme.SoundId = "rbxassetid://324905722" | |
188 | theme.Volume = 3 | |
189 | theme.Looped = true | |
190 | theme:Play() | |
191 | ||
192 | -------------------------------------------------- | |
193 | ||
194 | for _,v in pairs(plr:GetChildren()) do | |
195 | if v:IsA("Accessory") or v:IsA("Hat") or v:IsA("Shirt") or v:IsA("Pants") or v:IsA("CharacterMesh") then | |
196 | v:Destroy() | |
197 | end | |
198 | end | |
199 | ||
200 | bc = plr["Body Colors"] | |
201 | black = BrickColor.new("Really black") | |
202 | bc.LeftArmColor = black | |
203 | bc.LeftLegColor = black | |
204 | bc.RightArmColor = black | |
205 | bc.RightLegColor = black | |
206 | bc.TorsoColor = black | |
207 | bc.HeadColor = black | |
208 | ||
209 | sbt = Instance.new("SelectionBox",plr.Torso) | |
210 | sbt.Adornee = sbt.Parent | |
211 | sbt.LineThickness = 0.01 | |
212 | sbra = Instance.new("SelectionBox",plr["Right Arm"]) | |
213 | sbra.Adornee = sbra.Parent | |
214 | sbra.LineThickness = 0.01 | |
215 | sbla = Instance.new("SelectionBox",plr["Left Arm"]) | |
216 | sbla.Adornee = sbla.Parent | |
217 | sbla.LineThickness = 0.01 | |
218 | sbrl = Instance.new("SelectionBox",plr["Right Leg"]) | |
219 | sbrl.Adornee = sbrl.Parent | |
220 | sbrl.LineThickness = 0.01 | |
221 | sbll = Instance.new("SelectionBox",plr["Left Leg"]) | |
222 | sbll.Adornee = sbll.Parent | |
223 | sbll.LineThickness = 0.01 | |
224 | --sbh = Instance.new("SelectionBox",plr.Head) | |
225 | --sbh.Adornee = sbh.Parent | |
226 | ||
227 | ||
228 | sbt.Color3 = Color3.new(math.random(), math.random(), math.random()) | |
229 | sbra.Color3 = Color3.new(math.random(), math.random(), math.random()) | |
230 | sbla.Color3 = Color3.new(math.random(), math.random(), math.random()) | |
231 | sbrl.Color3 = Color3.new(math.random(), math.random(), math.random()) | |
232 | sbll.Color3 = Color3.new(math.random(), math.random(), math.random()) | |
233 | --sbh.Color3 = Color3.new(math.random(), math.random(), math.random()) | |
234 | local Title1 = Instance.new("BillboardGui",plr.Head) | |
235 | Title1.Adornee = plr.Head | |
236 | Title1.AlwaysOnTop = true | |
237 | Title1.Size = UDim2.new(0, 200, 0, 50) | |
238 | local Title2 = Instance.new("TextLabel") | |
239 | Title2.BackgroundTransparency = 1 | |
240 | Title2.Position = UDim2.new(0, 0, -0.899999976, 0) | |
241 | Title2.Size = UDim2.new(0, 200, 0, 50) | |
242 | Title2.Font = Enum.Font.Arcade | |
243 | Title2.FontSize = Enum.FontSize.Size24 | |
244 | Title2.Text = "Demon of Insanity" | |
245 | Title2.TextColor3 = Color3.new(1, 0, 0) | |
246 | Title2.TextScaled = true | |
247 | Title2.TextWrapped = true | |
248 | Title2.Parent = Title1 | |
249 | ||
250 | --Commented neatness stops here, along with all other forms of organization. | |
251 | ||
252 | for i = 1,50 do | |
253 | wait(0.0005) | |
254 | game:GetService("Lighting").Brightness = game:GetService("Lighting").Brightness - 0.2 | |
255 | end | |
256 | ChatFunction(pp.Character.Head, "The Demon of Insanity has arrived, this world is now mine.") | |
257 | wait(3) | |
258 | pp.Character.Head.ChatGui:Destroy() | |
259 | --game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character, "My incarnation is complete. The Demon of Insanity is here.","Red") | |
260 | game:GetService("Lighting").Brightness = 0 | |
261 | ||
262 | function md() | |
263 | ChatFunction(pp.Character.Head, "This world shall be rid of all sanity!") | |
264 | --game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character, "This world shall be rid of all sanity!","Red") | |
265 | game:GetService("Lighting").Ambient = Color3.new(255/255, 0/255, 0,255) | |
266 | game:GetService("Lighting").TimeOfDay = 24000004 | |
267 | local destruction = Instance.new("Part") | |
268 | destruction.Touched:connect(function(hit) | |
269 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
270 | if hit.Parent.Name == pp.Name or hit.Parent.Parent.Name == pp.Name then | |
271 | else | |
272 | hit.Parent:FindFirstChildOfClass("Humanoid").Health = 0 | |
273 | end | |
274 | end | |
275 | end) | |
276 | destruction.Parent = plr | |
277 | destruction.Material = Enum.Material.Ice | |
278 | destruction.BrickColor = BrickColor.new("Maroon") | |
279 | destruction.Transparency = 0.25 | |
280 | destruction.CFrame = plr["Right Arm"].CFrame | |
281 | destruction.Shape = Enum.PartType.Ball | |
282 | destruction.Size = Vector3.new(4, 4, 4) | |
283 | destruction.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
284 | destruction.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
285 | destruction.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
286 | destruction.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
287 | destruction.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
288 | destruction.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
289 | destruction.CanCollide = false | |
290 | destruction.Color = Color3.new(0.458824, 0, 0) | |
291 | local bp = Instance.new("BodyPosition",destruction) | |
292 | bp.MaxForce = Vector3.new(10000, 10000, 10000) | |
293 | position = mouse.Hit | |
294 | bp.Position = mouse.Hit.p | |
295 | wait(2.5) | |
296 | destruction.Anchored = true | |
297 | local boom = Instance.new("Sound",pp.Character) | |
298 | boom.SoundId = "rbxassetid://144699494" | |
299 | boom.Pitch = 0.45 | |
300 | boom:Play() | |
301 | boom.Volume = 10 | |
302 | for i = 1,75 do | |
303 | wait(0.00005) | |
304 | destruction.CFrame = position | |
305 | destruction.Size = Vector3.new(4, 4, 4) * i*0.75 | |
306 | destruction.CFrame = position | |
307 | destruction.Transparency = 0.25 * (i/18) | |
308 | end | |
309 | pp.Character.Head.ChatGui:Destroy() | |
310 | destruction:Destroy() | |
311 | end | |
312 | ||
313 | ||
314 | mouse.KeyDown:connect(function(key) | |
315 | if key == "q" then | |
316 | md() | |
317 | end | |
318 | end) | |
319 | ||
320 | ||
321 | ||
322 | local player = game.Players.LocalPlayer | |
323 | local pchar = player.Character | |
324 | local mouse = player:GetMouse() | |
325 | local cam = workspace.CurrentCamera | |
326 | root = plr.HumanoidRootPart | |
327 | ||
328 | local rad = math.rad | |
329 | bodyparts = {} | |
330 | local keysDown = {} | |
331 | local flySpeed = 0 | |
332 | local MAX_FLY_SPEED = 150 | |
333 | ||
334 | local canFly = false | |
335 | local flyToggled = false | |
336 | ||
337 | local forward, side = 0, 0 | |
338 | local lastForward, lastSide = 0, 0 | |
339 | ||
340 | local floatBP = Instance.new("BodyPosition") | |
341 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
342 | local flyBV = Instance.new("BodyVelocity") | |
343 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
344 | local turnBG = Instance.new("BodyGyro") | |
345 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
346 | ||
347 | mouse.KeyDown:connect(function(key) | |
348 | keysDown[key] = true | |
349 | ||
350 | if key == "f" then | |
351 | flyToggled = not flyToggled | |
352 | ||
353 | if not flyToggled then | |
354 | stanceToggle = "Normal" | |
355 | floatBP.Parent = nil | |
356 | flyBV.Parent = nil | |
357 | turnBG.Parent = nil | |
358 | root.Velocity = Vector3.new() | |
359 | pchar:FindFirstChildOfClass("Humanoid").PlatformStand = false | |
360 | end | |
361 | end | |
362 | ||
363 | end) | |
364 | mouse.KeyUp:connect(function(key) | |
365 | keysDown[key] = nil | |
366 | end) | |
367 | ||
368 | local function updateFly() | |
369 | ||
370 | ||
371 | ||
372 | ||
373 | if not flyToggled then return end | |
374 | ||
375 | lastForward = forward | |
376 | lastSide = side | |
377 | ||
378 | forward = 0 | |
379 | side = 0 | |
380 | ||
381 | if keysDown.w then | |
382 | forward = forward + 1 | |
383 | end | |
384 | if keysDown.s then | |
385 | forward = forward - 1 | |
386 | end | |
387 | if keysDown.a then | |
388 | side = side - 1 | |
389 | end | |
390 | if keysDown.d then | |
391 | side = side + 1 | |
392 | end | |
393 | ||
394 | canFly = (forward ~= 0 or side ~= 0) | |
395 | ||
396 | if canFly then | |
397 | stanceToggle = "Floating" | |
398 | turnBG.Parent = root | |
399 | floatBP.Parent = nil | |
400 | flyBV.Parent = root | |
401 | ||
402 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
403 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
404 | else | |
405 | floatBP.position = root.Position | |
406 | floatBP.Parent = root | |
407 | ||
408 | flySpeed = flySpeed - 1 | |
409 | if flySpeed < 0 then flySpeed = 0 end | |
410 | end | |
411 | ||
412 | local camCF = cam.CoordinateFrame | |
413 | local in_forward = canFly and forward or lastForward | |
414 | local in_side = canFly and side or lastSide | |
415 | ||
416 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side,in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
417 | ||
418 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0,0) | |
419 | end | |
420 | ||
421 | game:service'RunService'.RenderStepped:connect(function() | |
422 | if flyToggled then | |
423 | pchar:FindFirstChildOfClass("Humanoid").PlatformStand = true | |
424 | end | |
425 | updateFly() | |
426 | end) | |
427 | ||
428 | ||
429 | ||
430 | function bringforthe() | |
431 | if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
432 | ChatFunction(pp.Character.Head, "Your existence has brought my attention, so I have brought you.") | |
433 | --game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character, "Your existence has brought my attention, so I have brought you.","Red") | |
434 | local bodyposition = Instance.new("BodyPosition",mouse.Target) | |
435 | bodyposition.MaxForce = Vector3.new(10000, 10000, 10000) | |
436 | bodyposition.Position = plr["Right Arm"].Position | |
437 | wait(5) | |
438 | bodyposition:Destroy() | |
439 | pp.Character.Head.ChatGui:Destroy() | |
440 | end | |
441 | end | |
442 | ||
443 | ||
444 | ||
445 | mouse.KeyDown:connect(function(key) | |
446 | if key == "r" then | |
447 | bringforthe() | |
448 | end | |
449 | end) | |
450 | ||
451 | ||
452 | ||
453 | ||
454 | function relay() | |
455 | ChatFunction(pp.Character.Head, "Foolish mortals, my methods of transportation are far more superior.") | |
456 | --game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character, "Foolish mortals, my methods of transportation are far more superior.","Red") | |
457 | local r1 = Instance.new("Part") | |
458 | r1.Parent = plr | |
459 | r1.BrickColor = BrickColor.new("Really black") | |
460 | r1.CFrame = CFrame.new(-7, 2.25, 71, 0, -1, 0, -1, 0, 0, 0, 0, -1) | |
461 | r1.CFrame = mouse.Hit | |
462 | r1.Rotation = Vector3.new(-180, 0, 90) | |
463 | r1.Shape = Enum.PartType.Cylinder | |
464 | r1.Size = Vector3.new(0.5, 3, 3) | |
465 | r1.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
466 | r1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
467 | r1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
468 | r1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
469 | r1.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
470 | r1.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
471 | r1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
472 | r1.Anchored = true | |
473 | plr.Torso.CFrame = CFrame.new(r1.CFrame.x, r1.CFrame.y + 5, r1.CFrame.z) | |
474 | for i = 1,100 do | |
475 | wait(0.005) | |
476 | r1.Transparency = r1.Transparency + 0.01 | |
477 | end | |
478 | r1:Destroy() | |
479 | pp.Character.Head.ChatGui:Destroy() | |
480 | end | |
481 | ||
482 | mouse.KeyDown:connect(function(key) | |
483 | if key == "b" then | |
484 | relay() | |
485 | end | |
486 | end) | |
487 | ||
488 | ||
489 | ||
490 | ||
491 | function ps() | |
492 | ChatFunction(pp.Character.Head, "The term 'Personal Space', is one of the few terms humans have made that is actually smart.") | |
493 | --game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character, "Your term 'Personal Space', is one of the terms humans have made that is actually smart.","Red") | |
494 | local push = Instance.new("Part") | |
495 | push.Touched:connect(function(hit) | |
496 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
497 | if hit.Parent.Name == pp.Name or hit.Parent.Parent.Name == pp.Name then | |
498 | else | |
499 | hit.Parent:FindFirstChildOfClass("Humanoid").Health = 0 | |
500 | end | |
501 | end | |
502 | end) | |
503 | push.Parent = game.Workspace | |
504 | push.Material = Enum.Material.Neon | |
505 | push.BrickColor = BrickColor.new("Really black") | |
506 | push.Transparency = 0.25 | |
507 | push.Shape = Enum.PartType.Ball | |
508 | push.Size = Vector3.new(8, 8, 8) | |
509 | push.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
510 | push.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
511 | push.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
512 | push.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
513 | push.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
514 | push.CanCollide = false | |
515 | push.Anchored = false | |
516 | push.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
517 | push.CFrame = plr.Torso.CFrame | |
518 | wait(0.05) | |
519 | local weld = Instance.new("Weld",push) | |
520 | weld.Part0 = push | |
521 | --weld.C0 = push.CFrame:inverse() | |
522 | weld.Part1 = plr.Torso | |
523 | --weld.C1 = plr.Torso.CFrame:inverse() | |
524 | wait(1.5) | |
525 | push:Destroy() | |
526 | pp.Character.Head.ChatGui:Destroy() | |
527 | end | |
528 | ||
529 | ||
530 | function aieou() | |
531 | if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
532 | if mouse.Target.Parent:FindFirstChild("Torso") then | |
533 | ||
534 | ||
535 | for i,v in pairs(mouse.Target.Parent:GetChildren()) do | |
536 | if v:IsA("Part") then | |
537 | if v.Name == "Torso" then | |
538 | ||
539 | --game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character, "Your torso, it will make a fine addition to my collection.","Red") | |
540 | ||
541 | mouse.Target.Parent:FindFirstChild("Torso").Size = Vector3.new(1, 1, 1) | |
542 | else | |
543 | v:Destroy() | |
544 | ||
545 | end | |
546 | end | |
547 | end | |
548 | end | |
549 | ||
550 | end | |
551 | end | |
552 | ||
553 | ||
554 | function minion() | |
555 | if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
556 | ChatFunction(pp.Character.Head, "You're now my minion, "..mouse.Target.Parent.Name..", now kill in my name.") | |
557 | --game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character, "You're now my minion, "..mouse.Target.Parent.Name..", now kill in my name.","Red") | |
558 | wait(2.5) | |
559 | pp.Character.Head.ChatGui:Destroy() | |
560 | minion = mouse.Target.Parent | |
561 | local push = Instance.new("Part") | |
562 | push.Touched:connect(function(hit) | |
563 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
564 | if hit.Parent.Name == pp.Name or hit.Parent.Parent.Name == pp.Name or hit.Parent.Name == mouse.Target.Parent.Name or hit.Parent.Parent.Name == mouse.Target.Parent.Name then | |
565 | else | |
566 | ChatFunction(minion.Head, "Master "..pp.Name..", I have killed for you, in your name.") | |
567 | --game:GetService("Chat"):Chat(minion.Head, "Master "..pp.Name..", I have killed for you, in your name.","Red") | |
568 | hit.Parent:FindFirstChildOfClass("Humanoid").Health = 0 | |
569 | wait(1.5) | |
570 | minion.Head.ChatGui:Destroy() | |
571 | end | |
572 | end | |
573 | end) | |
574 | local Minion1 = Instance.new("BillboardGui",mouse.Target.Parent:FindFirstChild("Head")) | |
575 | Minion1.Adornee = mouse.Target.Parent:FindFirstChild("Head") | |
576 | Minion1.AlwaysOnTop = true | |
577 | Minion1.Size = UDim2.new(0, 200, 0, 50) | |
578 | local Minion2 = Instance.new("TextLabel") | |
579 | Minion2.BackgroundTransparency = 1 | |
580 | Minion2.Position = UDim2.new(0, 0, -0.899999976, 0) | |
581 | Minion2.Size = UDim2.new(0, 200, 0, 50) | |
582 | Minion2.Font = Enum.Font.Arcade | |
583 | Minion2.FontSize = Enum.FontSize.Size24 | |
584 | Minion2.Text = "Minion of Insanity" | |
585 | Minion2.TextColor3 = Color3.new(0.333333, 0.666667, 0.498039) | |
586 | Minion2.TextScaled = true | |
587 | Minion2.TextWrapped = true | |
588 | Minion2.Parent = Minion1 | |
589 | push.Parent = mouse.Target.Parent | |
590 | push.Material = Enum.Material.Neon | |
591 | push.BrickColor = BrickColor.new("Really black") | |
592 | push.Transparency = 0.25 | |
593 | push.Shape = Enum.PartType.Ball | |
594 | push.Size = Vector3.new(8, 8, 8) | |
595 | push.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
596 | push.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
597 | push.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
598 | push.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
599 | push.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
600 | push.CanCollide = false | |
601 | push.Anchored = false | |
602 | push.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
603 | push.CFrame = mouse.Target.Parent:FindFirstChild("Torso").CFrame | |
604 | wait(0.05) | |
605 | local weld = Instance.new("Weld",push) | |
606 | weld.Part0 = push | |
607 | --weld.C0 = push.CFrame:inverse() | |
608 | weld.Part1 = mouse.Target.Parent:FindFirstChild("Torso") | |
609 | --weld.C1 = plr.Torso.CFrame:inverse() | |
610 | end | |
611 | end | |
612 | ||
613 | mouse.KeyDown:connect(function(key) | |
614 | if key == "v" then | |
615 | minion() | |
616 | end | |
617 | end) | |
618 | ||
619 | mouse.KeyDown:connect(function(key) | |
620 | if key == "g" then | |
621 | aieou() | |
622 | end | |
623 | end) | |
624 | ||
625 | mouse.KeyDown:connect(function(key) | |
626 | if key == "e" then | |
627 | ps() | |
628 | end | |
629 | end) | |
630 | ||
631 | ||
632 | ||
633 | function possessed() | |
634 | if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
635 | local possessee = mouse.Target.Parent | |
636 | local curse = Instance.new("Model") | |
637 | curse.Name = "Curse" | |
638 | curse.Parent = possessee | |
639 | ChatFunction(possessee.Head, "Master "..pp.Name..", I shall be your servant, command me whenever you are ready.") | |
640 | --game:GetService("Chat"):Chat(possessee.Head, "Master "..pp.Name..", I shall be your servant, command me whenever you are ready.","Red") | |
641 | wait(3) | |
642 | possessee.Head.ChatGui:Destroy() | |
643 | end | |
644 | end | |
645 | ||
646 | mouse.KeyDown:connect(function(key) | |
647 | if key == "z" then | |
648 | possessed() | |
649 | ||
650 | end | |
651 | end) | |
652 | ||
653 | function curse() | |
654 | ChatFunction(pp.Character.Head, "Servants! The time is now! Rid this world of all sanity!") | |
655 | wait(2) | |
656 | pp.Character.Head.ChatGui:Destroy() | |
657 | --game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character, "Servants! The time is now! Rid this world of all sanity!","Red") | |
658 | for i,v in pairs(game:GetService("Workspace"):GetChildren()) do | |
659 | if v:IsA("Model") then | |
660 | if v:FindFirstChild("Curse") then | |
661 | ||
662 | wait(0.5) | |
663 | ChatFunction(v.Head, "Master "..pp.Name.." has commanded me to do this.") | |
664 | --game:GetService("Chat"):Chat(v.Head, "Master "..pp.Name.." has commanded me to do this.","Red") | |
665 | --bp = Instance.new("BodyPosition",v) | |
666 | --bp.MaxForce = Vector3.new(10000, 10000, 10000) | |
667 | --bp.Position = Vector3.new(0, 3, 0) | |
668 | wait(4) | |
669 | v.Head.ChatGui:Destroy() | |
670 | local servantdestruction = Instance.new("Part") | |
671 | servantdestruction.Parent = v | |
672 | servantdestruction.Material = Enum.Material.Ice | |
673 | servantdestruction.BrickColor = BrickColor.new("Maroon") | |
674 | servantdestruction.Transparency = 0.25 | |
675 | servantdestruction.Shape = Enum.PartType.Ball | |
676 | servantdestruction.Size = Vector3.new(4, 4, 4) | |
677 | servantdestruction.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
678 | servantdestruction.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
679 | servantdestruction.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
680 | servantdestruction.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
681 | servantdestruction.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
682 | servantdestruction.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
683 | servantdestruction.CanCollide = false | |
684 | servantdestruction.Color = Color3.new(0.458824, 0, 0) | |
685 | servantdestruction.Anchored = true | |
686 | servantdestruction.CFrame = v.Torso.CFrame | |
687 | wait(0.25) | |
688 | servantdestruction.Touched:connect(function(hit) | |
689 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
690 | if hit.Parent.Name == pp.Name or hit.Parent.Parent.Name == pp.Name then | |
691 | else | |
692 | hit.Parent:FindFirstChildOfClass("Humanoid").Health = 0 | |
693 | end | |
694 | end | |
695 | end) | |
696 | sboom = Instance.new("Sound",game:GetService("Workspace")) | |
697 | sboom.SoundId = "rbxassetid://144699494" | |
698 | sboom.Pitch = 0.45 | |
699 | sboom:Play() | |
700 | sboom.Volume = 10 | |
701 | for i = 1,25 do | |
702 | wait(0.00005) | |
703 | servantdestruction.CFrame = v.Torso.CFrame | |
704 | servantdestruction.Size = Vector3.new(4, 4, 4) * i*0.5 | |
705 | servantdestruction.CFrame = v.Torso.CFrame | |
706 | servantdestruction.Transparency = 0.60 * (i/18) | |
707 | end | |
708 | servantdestruction:Destroy() | |
709 | wait(1.5) | |
710 | ChatFunction(v.Head, "So this is what Master "..pp.Name.." is capable of.") | |
711 | --game:GetService("Chat"):Chat(v.Head, "So this is what Master "..pp.Name.." is capable of.","Red") | |
712 | ||
713 | end | |
714 | end | |
715 | end | |
716 | end | |
717 | ||
718 | mouse.KeyDown:connect(function(key) | |
719 | if key == "x" then | |
720 | curse() | |
721 | end | |
722 | end) | |
723 | ||
724 | function clean() | |
725 | for i,v in pairs(game:GetService("Workspace"):GetChildren()) do | |
726 | if v:IsA("Model") then | |
727 | if v:FindFirstChildOfClass("Humanoid") then | |
728 | else | |
729 | v:Destroy() | |
730 | if v:IsA("Part") then | |
731 | if v.Name == "Base" then | |
732 | else | |
733 | v:Destroy() | |
734 | end | |
735 | end | |
736 | end | |
737 | end | |
738 | end | |
739 | end | |
740 | ||
741 | mouse.KeyDown:connect(function(key) | |
742 | if key == "c" then | |
743 | clean() | |
744 | end | |
745 | end) | |
746 | ||
747 | mouse.KeyDown:connect(function(key) | |
748 | if key == "t" then --In case unnamed objects that you need the name of appear, or unnamed players, take this. | |
749 | print(mouse.Target.Name) | |
750 | print(mouse.Target.Parent.Name) | |
751 | print(mouse.Target.Parent.Parent.Name) | |
752 | end | |
753 | end) | |
754 | ||
755 | print("Demon of Insanity") | |
756 | print() | |
757 | warn("By DontBlinkDrWho") | |
758 | print("-_-_-_-_-_-_-_-_-") | |
759 | print() | |
760 | print("Q = World Riddening.") | |
761 | print("E = Personal space.") | |
762 | print("R = Pull.") | |
763 | print("T = Demons Knowledge.") | |
764 | print("F = Stolen gift of Flight.") | |
765 | print("G = Torsi attack (Shrinks torso, destroys everything else).") | |
766 | print("Z = Servant.") | |
767 | print("X = Servants curse.") | |
768 | print("C = Clean.") | |
769 | print("V = Minion.") | |
770 | ||
771 | --This is the end of the script. | |
772 | while wait() do | |
773 | hum.MaxHealth = math.huge -- God mode | |
774 | hum.Name = math.random(167.432) --Break other scripts (Especially on sb), killing you will be harder | |
775 | hum.Health = math.huge -- God mode | |
776 | sbt.Color3 = Color3.new(math.random(), math.random(), math.random()) | |
777 | sbra.Color3 = Color3.new(math.random(), math.random(), math.random()) | |
778 | sbla.Color3 = Color3.new(math.random(), math.random(), math.random()) | |
779 | sbrl.Color3 = Color3.new(math.random(), math.random(), math.random()) | |
780 | sbll.Color3 = Color3.new(math.random(), math.random(), math.random()) | |
781 | wait() | |
782 | end |