SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Your fucking script is assholic use h/ dumbass") end | |
3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("Execute the c00l Kidd stuff")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 | |
6 | local debounce1 = false | |
7 | ||
8 | local module = {} | |
9 | function module.run(Command) | |
10 | ||
11 | if Command == "OOF" then | |
12 | require(script.Parent.Utility).PlaySound(12222242, 1) | |
13 | end | |
14 | ||
15 | if Command == "TOXICLANDS" then | |
16 | require(script.Parent.Utility).PlaySound(951611907, 1) | |
17 | require(script.Parent.SurfaceGui.MainScreen.ScreenCommands).DisplayMessage("DanPlayzGamesYT < Sub On YT",nil,8) | |
18 | end | |
19 | ||
20 | if Command == "FORUMPOST" then | |
21 | require(script.Parent.Utility).PlaySound(336120108, 1) | |
22 | require(script.Parent.SurfaceGui.MainScreen.ScreenCommands).DisplayMessage(">Unleashing Helloburp",nil,8) | |
23 | coroutine.resume(coroutine.create(function() | |
24 | for x = 1,100 do | |
25 | wait() | |
26 | script.Parent.ForumPost:SetPrimaryPartCFrame(script.Parent.ForumPost.PrimaryPart.CFrame + Vector3.new(0,0.15,0)) | |
27 | end | |
28 | ||
29 | for x = 1,100 do | |
30 | wait() | |
31 | script.Parent.ForumPost:SetPrimaryPartCFrame(script.Parent.ForumPost.PrimaryPart.CFrame - Vector3.new(0,0.15,0)) | |
32 | end | |
33 | end)) | |
34 | end | |
35 | ||
36 | if Command == "PROTOGENT" then | |
37 | require(script.Parent.Utility).PlaySound(989714243, 1, 5) | |
38 | require(script.Parent.SurfaceGui.MainScreen.ScreenCommands).DisplayMessage("Complete Security is my Motto",983466416,5) | |
39 | end | |
40 | ||
41 | if Command == "GUNFORME" then | |
42 | require(script.Parent.Utility).PlaySound(601852677, 1, 20) | |
43 | require(script.Parent.SurfaceGui.MainScreen.ScreenCommands).DisplayMessage("",47520630,10) | |
44 | end | |
45 | ||
46 | if Command == "FLASHINGLIGHTS" then | |
47 | require(script.Parent.Utility).PlaySound(148285918, 1, 5) | |
48 | require(script.Parent.SurfaceGui.MainScreen.ScreenCommands).DisplayMessage(">Commencing Rave...",nil,5) | |
49 | coroutine.resume(coroutine.create(function() | |
50 | local Ambient = game.Lighting.OutdoorAmbient | |
51 | for x = 1,10 do | |
52 | wait(0.5) | |
53 | game.Lighting.OutdoorAmbient = Color3.new(math.random(1/255,1),math.random(1/255,1),math.random(1/255,1)) | |
54 | end | |
55 | game.Lighting.OutdoorAmbient = Ambient | |
56 | end)) | |
57 | end | |
58 | ||
59 | if Command == "YOUAREDEAD" then | |
60 | require(script.Parent.Utility).PlaySound(173137001, 1, 3) | |
61 | require(script.Parent.SurfaceGui.MainScreen.ScreenCommands).DisplayMessage("You are dead. Not big surprise.",149629412,3) | |
62 | end | |
63 | ||
64 | if Command == "THELIE" then | |
65 | require(script.Parent.Utility).PlaySound(130781643, 1, 2) | |
66 | require(script.Parent.SurfaceGui.MainScreen.ScreenCommands).DisplayMessage("She meant it",56115656,2) | |
67 | end | |
68 | ||
69 | if Command == "KEEM" then | |
70 | require(script.Parent.Utility).PlaySound(458221837, 1, 6) | |
71 | require(script.Parent.SurfaceGui.MainScreen.ScreenCommands).DisplayMessage("You have earned a discount on GFuel!",822728335,6) | |
72 | end | |
73 | ||
74 | if Command == "KEK" then | |
75 | require(script.Parent.Utility).PlaySound(669794354, 1, 30) | |
76 | require(script.Parent.SurfaceGui.MainScreen.ScreenCommands).DisplayMessage("Noodles",852106957,5) | |
77 | end | |
78 | ||
79 | if Command == "GUACAMOLE" then | |
80 | require(script.Parent.Utility).PlaySound(370338875, 1) | |
81 | require(script.Parent.SurfaceGui.MainScreen.ScreenCommands).DisplayMessage(">Avocado peeling has commenced",193507902,10) | |
82 | end | |
83 | ||
84 | if Command == "HI" or Command == "HELLO" then | |
85 | if debounce1 == false then | |
86 | debounce1 = true | |
87 | local sound = require(script.Parent.Utility).PlaySound(538417377, 10, 60) | |
88 | sound.Pitch = 0.5 | |
89 | Instance.new("DistortionSoundEffect",sound) | |
90 | require(script.Parent.SurfaceGui.MainScreen.ScreenCommands).DisplayMessage(">Hello to you, too.",220510076,60) | |
91 | end | |
92 | end | |
93 | ||
94 | if Command == "FALLOUT" then | |
95 | if debounce1 == false then | |
96 | debounce1 = true | |
97 | require(script.Parent.Utility).PlaySound(290144648, 1) | |
98 | require(script.Parent.SurfaceGui.MainScreen.ScreenCommands).DisplayMessage("",9107249,10) | |
99 | end | |
100 | end | |
101 | end | |
102 | return module |