SHOW:
|
|
- or go back to the newest paste.
1 | - | ply = game.Players.breezyshadow012 |
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 print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end ply = game.Players.timetodie23232223 | |
6 | load = false | |
7 | ||
8 | g = Instance.new("GuiMain") | |
9 | g.Parent = ply.PlayerGui | |
10 | g.Name = "controlls" | |
11 | desktop = Instance.new("ImageLabel") | |
12 | desktop.Parent = g | |
13 | desktop.Image = "http://www.roblox.com/asset/?id=51028037" | |
14 | desktop.Position = UDim2.new(0, 25, 0, 25) | |
15 | desktop.Size = UDim2.new(0.899999976, 0, 0.899999976, 0) | |
16 | bin = Instance.new("ImageButton") | |
17 | bin.Parent = g | |
18 | bin.Transparency = 1 | |
19 | bin.Image = "http://www.roblox.com/asset/?id=51338258" | |
20 | bin.Position = UDim2.new(0, 50, 0, 50) | |
21 | bin.Size = UDim2.new(0, 50, 0, 50) | |
22 | start = Instance.new("TextButton") | |
23 | start.Parent = g | |
24 | start.Transparency = 0 | |
25 | start.Text = "Start" | |
26 | start.Position = UDim2.new(0, 35, 0.87, 0) | |
27 | start.BackgroundColor = BrickColor.new("Bright green") | |
28 | start.Size = UDim2.new(0, 100, 0, 50) | |
29 | startm = Instance.new("TextButton") | |
30 | startm.Parent = g | |
31 | startm.Active = false | |
32 | startm.Transparency = 1 | |
33 | startm.Text = "" | |
34 | startm.Position = UDim2.new(0, 50, 0.79, 0) | |
35 | startm.BackgroundColor = BrickColor.new("White") | |
36 | startm.Size = UDim2.new(0, 100, 0, 50) | |
37 | firefox = Instance.new("ImageLabel") | |
38 | firefox.Parent = g | |
39 | firefox.Image = "" | |
40 | firefox.BackgroundColor = BrickColor.new("White") | |
41 | firefox.Transparency = 1 | |
42 | firefox.Position = UDim2.new(0, 25, 0, 25) | |
43 | firefox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0) | |
44 | google = Instance.new("ImageLabel") | |
45 | google.Parent = g | |
46 | google.Image = "" | |
47 | google.BackgroundColor = BrickColor.new("White") | |
48 | google.Transparency = 1 | |
49 | google.Position = UDim2.new(0, 25, 0, 25) | |
50 | google.Size = UDim2.new(0.899999976, 0, 0.899999976, 0) | |
51 | firefox2 = Instance.new("ImageLabel") | |
52 | firefox2.Parent = g | |
53 | firefox2.Image = "" | |
54 | firefox2.BackgroundColor = BrickColor.new("Bright blue") | |
55 | firefox2.Transparency = 1 | |
56 | firefox2.Position = UDim2.new(0, 25, 0, 25) | |
57 | firefox2.Size = UDim2.new(0.899999976, 0, 0, 25) | |
58 | web = Instance.new("TextBox") | |
59 | web.Parent = g | |
60 | web.Text = "new:Tab" | |
61 | web.BackgroundColor = BrickColor.new("White") | |
62 | web.Transparency = 1 | |
63 | web.Position = UDim2.new(0, 50, 0, 25) | |
64 | web.Size = UDim2.new(0.799999976, 0, 0, 22) | |
65 | search = Instance.new("TextBox") | |
66 | search.Parent = g | |
67 | search.Text = "" | |
68 | search.BackgroundColor = BrickColor.new("White") | |
69 | search.Transparency = 1 | |
70 | search.Position = UDim2.new(0, 60, 0, 465) | |
71 | search.Size = UDim2.new(0.85, 0, 0, 55) | |
72 | close = Instance.new("TextButton") | |
73 | close.Active = false | |
74 | close.Parent = g | |
75 | close.Text = "X" | |
76 | close.BackgroundColor = BrickColor.new("Bright red") | |
77 | close.Transparency = 1 | |
78 | close.Position = UDim2.new(0, 1037, 0, 25) | |
79 | close.Size = UDim2.new(0, 25, 0, 25) | |
80 | go = Instance.new("TextButton") | |
81 | go.Active = false | |
82 | go.Parent = g | |
83 | go.Text = "->" | |
84 | go.BackgroundColor = BrickColor.new("Bright green") | |
85 | go.Transparency = 1 | |
86 | go.Position = UDim2.new(0, 1017, 0, 25) | |
87 | go.Size = UDim2.new(0, 25, 0, 25) | |
88 | ||
89 | ||
90 | ||
91 | start.MouseOver:connect(function() | |
92 | if load == false then | |
93 | load = true | |
94 | ||
95 | end | |
96 | end) | |
97 | ||
98 | bin.Mouse.Button1Down:connect(function() | |
99 | if load == false then | |
100 | load = true | |
101 | for i = 1,0,-0.1 do | |
102 | firefox.Transparency = i | |
103 | firefox2.Transparency = i | |
104 | go.Transparency = i | |
105 | go.Active = true | |
106 | web.Transparency = i | |
107 | close.Transparency = i | |
108 | close.Active = true | |
109 | bin.Active = false | |
110 | start.Active = false | |
111 | startm.Active = false | |
112 | wait() | |
113 | end | |
114 | for i = 0.1,1,0.1 do | |
115 | desktop.Transparency = i | |
116 | bin.Transparency = 1 | |
117 | start.Transparency = 1 | |
118 | startm.Transparency = 1 | |
119 | load = false | |
120 | wait() | |
121 | end | |
122 | end | |
123 | end) | |
124 | close.MouseButton1Down:connect(function() | |
125 | if load == false then | |
126 | load = true | |
127 | for i=0.1,1,0.1 do | |
128 | firefox.Transparency = i | |
129 | search.Transparency = i | |
130 | firefox2.Transparency = i | |
131 | go.Transparency = i | |
132 | google.Transparency = i | |
133 | google.Image = "" | |
134 | go.Active = false | |
135 | web.Transparency = i | |
136 | close.Transparency = i | |
137 | close.Active = false | |
138 | bin.Active = true | |
139 | start.Active = true | |
140 | start.Transparency = 0 | |
141 | startm.Active = false | |
142 | wait() | |
143 | end | |
144 | for i = 1,0,-0.1 do | |
145 | desktop.Transparency = i | |
146 | bin.Transparency = 1 | |
147 | start.Transparency = 1 | |
148 | startm.Transparency = 1 | |
149 | load = false | |
150 | wait() | |
151 | end | |
152 | end | |
153 | end) | |
154 | go.MouseButton1Down:connect(function() | |
155 | if load == false then | |
156 | load = true | |
157 | if web.Text == "www.google.com" then | |
158 | wait(1) | |
159 | firefox.Transparency = 1 | |
160 | firefox2.Transparency = 0 | |
161 | google.Transparency = 0 | |
162 | search.Transparency = 0 | |
163 | google.Image = "http://www.roblox.com/asset/?id=29978517" | |
164 | load = false | |
165 | end | |
166 | end | |
167 | end) |