SHOW:
|
|
- or go back to the newest paste.
1 | ||
2 | -- This script has been converted to FE by iPxter | |
3 | ||
4 | ||
5 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
6 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
7 | do | |
8 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
9 | script.Parent = Player.Character | |
10 | ||
11 | --RemoteEvent for communicating | |
12 | local Event = Instance.new("RemoteEvent") | |
13 | Event.Name = "UserInput_Event" | |
14 | ||
15 | --Fake event to make stuff like Mouse.KeyDown work | |
16 | local function fakeEvent() | |
17 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
18 | t.connect = t.Connect | |
19 | return t | |
20 | end | |
21 | ||
22 | --Creating fake input objects with fake variables | |
23 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
24 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
25 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
26 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
27 | end} | |
28 | --Merged 2 functions into one by checking amount of arguments | |
29 | CAS.UnbindAction = CAS.BindAction | |
30 | ||
31 | --This function will trigger the events that have been :Connect()'ed | |
32 | local function te(self,ev,...) | |
33 | local t = m[ev] | |
34 | if t and t._fakeEvent and t.Function then | |
35 | t.Function(...) | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=Player then return end | |
43 | if io.isMouse then | |
44 | m.Target = io.Target | |
45 | m.Hit = io.Hit | |
46 | else | |
47 | local b = io.UserInputState == Enum.UserInputState.Begin | |
48 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
49 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
50 | end | |
51 | for _,t in pairs(CAS.Actions) do | |
52 | for _,k in pairs(t.Keys) do | |
53 | if k==io.KeyCode then | |
54 | t.Function(t.Name,io.UserInputState,io) | |
55 | end | |
56 | end | |
57 | end | |
58 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
59 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
60 | end | |
61 | end) | |
62 | Event.Parent = NLS([==[ | |
63 | local Player = game:GetService("Players").LocalPlayer | |
64 | local Event = script:WaitForChild("UserInput_Event") | |
65 | ||
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local Mouse = Player:GetMouse() | |
76 | local h,t | |
77 | --Give the server mouse data 30 times every second, but only if the values changed | |
78 | --If player is not moving their mouse, client won't fire events | |
79 | while wait(1/30) do | |
80 | if h~=Mouse.Hit or t~=Mouse.Target then | |
81 | h,t=Mouse.Hit,Mouse.Target | |
82 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
83 | end | |
84 | end]==],Player.Character) | |
85 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
86 | end | |
87 | ||
88 | wait(0.2) | |
89 | ||
90 | -- This script has been converted to FE by iPxter | |
91 | local ADMINS = {} | |
92 | local BANS = {7355} | |
93 | ||
94 | -- / stuff | |
95 | ||
96 | local VERSION = '1.7.9' | |
97 | local UPDATED = '2/24/2017' | |
98 | local CHANGELOG = { | |
99 | ' * changed control center look', | |
100 | ' + added ;fun', | |
101 | ' + added ;message [s]', | |
102 | ' * fixed ;nograv [plr]', | |
103 | ' - removed ;spam and ;nospam (updates)', | |
104 | ' * hopefully fixed ;crash [plr]', | |
105 | ' - removed ;fr [plr] and ;unfr [plr] (updates)', | |
106 | ' + added ;control [plr] (beta)' | |
107 | } | |
108 | ||
109 | local CREDITS = [[ | |
110 | Rocky2u - lol | |
111 | veinyrox - ;crash and ;shutdown | |
112 | Harkinian - half of the message function | |
113 | ]] | |
114 | ||
115 | function _G.ADD_ADMIN(ID) table.insert(ADMINS, ID) end | |
116 | function _G.ADD_BAN(ID) table.insert(BANS, ID) end | |
117 | ||
118 | local gCoreGui = game:GetService('CoreGui') | |
119 | local gLighting = game:GetService('Lighting') | |
120 | local gNetworkClient = game:GetService('NetworkClient') | |
121 | local gPlayers = game:GetService('Players') | |
122 | local gWorkspace = game:GetService('Workspace') | |
123 | ||
124 | local LP = gPlayers.LocalPlayer | |
125 | local MOUSE = LP:GetMouse() | |
126 | ||
127 | local SERVER_LOCKED = false | |
128 | local SHOWING_MESSAGE = false | |
129 | ||
130 | local SERVICES = {} | |
131 | SERVICES.EVENTS = {} | |
132 | ||
133 | local COMMANDS = {} | |
134 | local STD = {} | |
135 | local FRIEND_SPAM = {} | |
136 | local JAILED = {} | |
137 | local KICKS = {} | |
138 | ||
139 | local C_PREFIX = ';' | |
140 | local SPLIT = ' ' | |
141 | ||
142 | local IP = gNetworkClient.ClientReplicator.MachineAddress | |
143 | local PORT = gNetworkClient.ClientReplicator.Port | |
144 | ||
145 | local NEW = LoadLibrary('RbxUtility').Create | |
146 | ||
147 | for i,v in pairs(gCoreGui:GetChildren()) do if v.Name == 'cmdbar_seth' or v.Name == 'notify_seth' then v:destroy() end end | |
148 | ||
149 | function UPDATE_CHAT(PLAYER) local C = PLAYER.Chatted:connect(function(M) if CHECK_ADMIN(PLAYER) then DEXECUTE(M, PLAYER) end end) table.insert(SERVICES.EVENTS, C) end | |
150 | function STD.TABLE(T, V) if not T then return false end for i,v in pairs(T) do if v == V then return true end end return false end | |
151 | function STD.ENDAT(S, V) local SF = S:find(V) if SF then return S:sub(0, SF - string.len(V)), true else return S, false end end | |
152 | function CHECK_ADMIN(PLAYER) if FIND_IN_TABLE(ADMINS, PLAYER.userId) then return true elseif PLAYER.userId == LP.userId then return true end end | |
153 | function FCOMMAND(COMMAND) for i,v in pairs(COMMANDS) do if v.N:lower() == COMMAND:lower() or STD.TABLE(v.A, COMMAND:lower()) then return v end end end | |
154 | function GCOMMAND(M) local CMD, HS = STD.ENDAT(M:lower(), SPLIT) if HS then return {CMD, true} else return {CMD, false} end end | |
155 | function GPREFIX(STRING) if STRING:sub(1, string.len(C_PREFIX)) == C_PREFIX then return {'COMMAND', string.len(C_PREFIX) + 1} end return end | |
156 | function GARGS(STRING) local A = {} local NA = nil local HS = nil local S = STRING repeat NA, HS = STD.ENDAT(S:lower(), SPLIT) if NA ~= '' then table.insert(A, NA) S = S:sub(string.len(NA) + string.len(SPLIT) + 1) end until not HS return A end | |
157 | function GCAPARGS(STRING) local A = {} local NA = nil local HS = nil local S = STRING repeat NA, HS = STD.ENDAT(S, SPLIT) if NA ~= '' then table.insert(A, NA) S = S:sub(string.len(NA) + string.len(SPLIT) + 1) end until not HS return A end | |
158 | function ECOMMAND(STRING, SPEAKER) repeat if STRING:find(' ') then STRING = STRING:gsub(' ', ' ') end until not STRING:find(' ') local SCMD, A, CMD SCMD = GCOMMAND(STRING) CMD = FCOMMAND(SCMD[1]) if not CMD then return end A = STRING:sub(string.len(SCMD[1]) + string.len(SPLIT) + 1) local ARGS = GARGS(A) CA = GCAPARGS(A) pcall(function() CMD.F(ARGS, SPEAKER) end) end | |
159 | function DEXECUTE(STRING, SPEAKER) if not CHECK_ADMIN(SPEAKER) then return end STRING = STRING:gsub('/e ', '') local GP = GPREFIX(STRING) if not GP then return end STRING = STRING:sub(GP[2]) if GP[1] == 'COMMAND' then ECOMMAND(STRING, SPEAKER) end end | |
160 | ||
161 | function GLS(LOWER, START) local AA = '' for i,v in pairs(CA) do if i > START then if AA ~= '' then AA = AA .. ' ' .. v else AA = AA .. v end end end if not LOWER then return AA else return string.lower(AA) end end | |
162 | function C3(R, G, B) return Color3.new(R/255, G/255, B/255) end | |
163 | function GET_MASS(A, B) B = 0 for i,v in pairs(A:GetChildren()) do if v:IsA('BasePart') then B = B + v:GetMass() end GET_MASS(v) end return B end | |
164 | ||
165 | gPlayers.PlayerAdded:connect(function(PLAYER) | |
166 | if SERVER_LOCKED then PLAYER.CharacterAdded:connect(function() table.insert(KICKS, PLAYER) return end) end | |
167 | if FIND_IN_TABLE(BANS, PLAYER.userId) then PLAYER.CharacterAdded:connect(function() table.insert(KICKS, PLAYER) return end) end | |
168 | UPDATE_CHAT(PLAYER) | |
169 | if CHECK_ADMIN(PLAYER) then PLAYER.CharacterAdded:connect(function() game.Chat:Chat(PLAYER.Character.Head, STUFF .. 'Welcome, you\'re an admin!') end) end | |
170 | end) | |
171 | ||
172 | function ADD_COMMAND(N, D, A, F) table.insert(COMMANDS, {N = N, D = D, A = A, F = F}) end | |
173 | ||
174 | function GET_PLAYER(NAME, SPEAKER) | |
175 | local NAME_TABLE = {} | |
176 | NAME = NAME:lower() | |
177 | if NAME == 'me' then | |
178 | table.insert(NAME_TABLE, SPEAKER.Name) | |
179 | elseif NAME == 'others' then | |
180 | for i,v in pairs(gPlayers:GetPlayers()) do if v.Name ~= SPEAKER.Name then table.insert(NAME_TABLE, v.Name) end end | |
181 | elseif NAME == 'all' then | |
182 | for i,v in pairs(gPlayers:GetPlayers()) do table.insert(NAME_TABLE, v.Name) end | |
183 | elseif NAME == 'random' then | |
184 | table.insert(NAME_TABLE, gPlayers:GetPlayers()[math.random(1, #gPlayers:GetPlayers())].Name) | |
185 | elseif NAME == 'team' then | |
186 | for i,v in pairs(gPlayers:GetPlayers()) do if v.TeamColor == SPEAKER.TeamColor then table.insert(NAME_TABLE, v.Name) end end | |
187 | elseif NAME == 'nonadmins' then | |
188 | for i,v in pairs(gPlayers:GetPlayers()) do if not CHECK_ADMIN(v) then table.insert(NAME_TABLE, v.Name) end end | |
189 | elseif NAME == 'admins' then | |
190 | for i,v in pairs(gPlayers:GetPlayers()) do if CHECK_ADMIN(v) then table.insert(NAME_TABLE, v.Name) end end | |
191 | elseif NAME == 'nonfriends' then | |
192 | for i,v in pairs(gPlayers:GetPlayers()) do if not v:IsFriendsWith(SPEAKER.userId) then table.insert(NAME_TABLE, v.Name) end end | |
193 | elseif NAME == 'friends' then | |
194 | for i,v in pairs(gPlayers:GetPlayers()) do if v ~= SPEAKER and v:IsFriendsWith(SPEAKER.userId) then table.insert(NAME_TABLE, v.Name) end end | |
195 | elseif NAME == 'nonguests' then | |
196 | for i,v in pairs(gPlayers:GetPlayers()) do if not v.Guest then table.insert(NAME_TABLE, v.Name) end end | |
197 | elseif NAME == 'guests' then | |
198 | for i,v in pairs(gPlayers:GetPlayers()) do if v.Guest then table.insert(NAME_TABLE, v.Name) end end | |
199 | elseif NAME == 'nbcs' then | |
200 | for i,v in pairs(gPlayers:GetPlayers()) do if v.MembershipType == Enum.MembershipType.None then table.insert(NAME_TABLE, v.Name) end end | |
201 | elseif NAME == 'bcs' then | |
202 | for i,v in pairs(gPlayers:GetPlayers()) do if v.MembershipType == Enum.MembershipType.BuildersClub then table.insert(NAME_TABLE, v.Name) end end | |
203 | elseif NAME == 'tbcs' then | |
204 | for i,v in pairs(gPlayers:GetPlayers()) do if v.MembershipType == Enum.MembershipType.TurboBuildersClub then table.insert(NAME_TABLE, v.Name) end end | |
205 | elseif NAME == 'obcs' then | |
206 | for i,v in pairs(gPlayers:GetPlayers()) do if v.MembershipType == Enum.MembershipType.OutrageousBuildersClub then table.insert(NAME_TABLE, v.Name) end end | |
207 | else | |
208 | for i,v in pairs(gPlayers:GetPlayers()) do local L_NAME = v.Name:lower() local F = L_NAME:find(NAME) if F == 1 then table.insert(NAME_TABLE, v.Name) end end | |
209 | end | |
210 | return NAME_TABLE | |
211 | end | |
212 | ||
213 | -- / stuff | |
214 | ||
215 | STUFF = '[ Rocky2u\'s CMDs ] : ' | |
216 | ||
217 | local SI = 'rbxasset://textures/blackBkg_square.png' | |
218 | ||
219 | function LOAD_DATA() | |
220 | local DATA = Instance.new('Folder') | |
221 | ||
222 | LOOPED = Instance.new('Folder', DATA) | |
223 | GUIS = Instance.new('Folder', DATA) | |
224 | HUMANOIDS = Instance.new('Folder', DATA) | |
225 | OTHER = Instance.new('Folder', DATA) | |
226 | ||
227 | MAIN_GUI = Instance.new('ScreenGui', GUIS) | |
228 | MAIN_GUI.Name = 'seth_main' | |
229 | NEW'TextLabel'{Name = 'main', Active = true, BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(0.5, -200, 0.4, 0), Size = UDim2.new(0, 400, 0, 25), Draggable = true, Font = 'SourceSansBold', Text = ' Control Center', TextColor3 = C3(255, 255, 255), TextSize = 20, TextXAlignment = 'Left', Parent = MAIN_GUI} | |
230 | NEW'Frame'{Name = 'holder', BackgroundColor3 = C3(255, 255, 255), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(0, 0, 1, 0), Size = UDim2.new(1, 25, 12, 0), Parent = MAIN_GUI.main} | |
231 | local BUTTONS = Instance.new('Folder', MAIN_GUI.main.holder) BUTTONS.Name = 'buttons' | |
232 | NEW'TextButton'{Name = 'server', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(0, 5, 0, 5), Size = UDim2.new(0, 100, 0, 30), ClipsDescendants = true, Font = 'SourceSansBold', Text = 'server info', TextColor3 = C3(255, 255, 255), TextSize = 20, Parent = BUTTONS} | |
233 | NEW'TextButton'{Name = 'admins', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(0, 110, 0, 5), Size = UDim2.new(0, 100, 0, 30), ClipsDescendants = true, Font = 'SourceSansBold', Text = 'admins', TextColor3 = C3(255, 255, 255), TextSize = 20, Parent = BUTTONS} | |
234 | NEW'TextButton'{Name = 'bans', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(0, 215, 0, 5), Size = UDim2.new(0, 100, 0, 30), ClipsDescendants = true, Font = 'SourceSansBold', Text = 'bans', TextColor3 = C3(255, 255, 255), TextSize = 20, Parent = BUTTONS} | |
235 | NEW'TextButton'{Name = 'cmds', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(0, 320, 0, 5), Size = UDim2.new(0, 100, 0, 30), ClipsDescendants = true, Font = 'SourceSansBold', Text = 'commands', TextColor3 = C3(255, 255, 255), TextSize = 20, Parent = BUTTONS} | |
236 | NEW'TextButton'{Name = 'fun', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(0, 50, 0, 40), Size = UDim2.new(0, 105, 0, 30), ClipsDescendants = true, Font = 'SourceSansBold', Text = 'fun', TextColor3 = C3(255, 255, 255), TextSize = 20, Parent = BUTTONS} | |
237 | NEW'TextButton'{Name = 'changelog', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(0, 160, 0, 40), Size = UDim2.new(0, 105, 0, 30), ClipsDescendants = true, Font = 'SourceSansBold', Text = 'changelog', TextColor3 = C3(255, 255, 255), TextSize = 20, Parent = BUTTONS} | |
238 | NEW'TextButton'{Name = 'credits', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(0, 270, 0, 40), Size = UDim2.new(0, 105, 0, 30), ClipsDescendants = true, Font = 'SourceSansBold', Text = 'credits', TextColor3 = C3(255, 255, 255), TextSize = 20, Parent = BUTTONS} | |
239 | ||
240 | local HOLDERS = Instance.new('Folder', MAIN_GUI.main.holder) HOLDERS.Name = 'holders' | |
241 | NEW'Frame'{Name = 'server', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.8, BorderSizePixel = 0, Position = UDim2.new(0, 5, 0, 85), Size = UDim2.new(1, -10, 0, 210), Parent = HOLDERS} | |
242 | NEW'TextLabel'{Name = 'fe', BackgroundColor3 = C3(255, 255, 255), BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 30), Font = 'SourceSansBold', Text = ' FilteringEnabled | ', TextColor3 = C3(0, 0, 0), TextSize = 24, TextTransparency = 0.25, TextXAlignment = 'Left', Parent = HOLDERS.server} | |
243 | NEW'TextLabel'{Name = 'ip', BackgroundColor3 = C3(255, 255, 255), BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, 30), Size = UDim2.new(1, 0, 0, 30), Font = 'SourceSansBold', Text = ' IP Address | ', TextColor3 = C3(0, 0, 0), TextSize = 24, TextTransparency = 0.25, TextXAlignment = 'Left', Parent = HOLDERS.server} | |
244 | NEW'TextLabel'{Name = 'port', BackgroundColor3 = C3(255, 255, 255), BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, 60), Size = UDim2.new(1, 0, 0, 30), Font = 'SourceSansBold', Text = ' Port | ', TextColor3 = C3(0, 0, 0), TextSize = 24, TextTransparency = 0.25, TextXAlignment = 'Left', Parent = HOLDERS.server} | |
245 | NEW'TextLabel'{Name = 'place_id', BackgroundColor3 = C3(255, 255, 255), BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, 90), Size = UDim2.new(1, 0, 0, 30), Font = 'SourceSansBold', Text = ' Place ID | ', TextColor3 = C3(0, 0, 0), TextSize = 24, TextTransparency = 0.25, TextXAlignment = 'Left', Parent = HOLDERS.server} | |
246 | NEW'TextLabel'{Name = 'players', BackgroundColor3 = C3(255, 255, 255), BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, 120), Size = UDim2.new(1, 0, 0, 30), Font = 'SourceSansBold', Text = ' Players | ', TextColor3 = C3(0, 0, 0), TextSize = 24, TextTransparency = 0.25, TextXAlignment = 'Left', Parent = HOLDERS.server} | |
247 | NEW'TextLabel'{Name = 'time', BackgroundColor3 = C3(255, 255, 255), BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, 150), Size = UDim2.new(1, 0, 0, 30), Font = 'SourceSansBold', Text = ' Time | ', TextColor3 = C3(0, 0, 0), TextSize = 24, TextTransparency = 0.25, TextXAlignment = 'Left', Parent = HOLDERS.server} | |
248 | NEW'TextLabel'{Name = 'gravity', BackgroundColor3 = C3(255, 255, 255), BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, 180), Size = UDim2.new(1, 0, 0, 30), Font = 'SourceSansBold', Text = ' Gravity | ', TextColor3 = C3(0, 0, 0), TextSize = 24, TextTransparency = 0.25, TextXAlignment = 'Left', Parent = HOLDERS.server} | |
249 | NEW'ScrollingFrame'{Name = 'admins', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.8, BorderSizePixel = 0, Position = UDim2.new(0, 5, 0, 85), Size = UDim2.new(1, -10, 0, 210), Visible = false, CanvasSize = UDim2.new(0, 0, 0, 0), ScrollBarThickness = 5, TopImage = SI, MidImage = SI, BottomImage = SI, Parent = HOLDERS} | |
250 | NEW'ScrollingFrame'{Name = 'bans', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.8, BorderSizePixel = 0, Position = UDim2.new(0, 5, 0, 85), Size = UDim2.new(1, -10, 0, 210), Visible = false, CanvasSize = UDim2.new(0, 0, 0, 0), ScrollBarThickness = 5, TopImage = SI, MidImage = SI, BottomImage = SI, Parent = HOLDERS} | |
251 | NEW'ScrollingFrame'{Name = 'cmds', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.8, BorderSizePixel = 0, Position = UDim2.new(0, 5, 0, 115), Size = UDim2.new(1, -10, 0, 210), Visible = false, CanvasSize = UDim2.new(0, 0, 0, 0), ScrollBarThickness = 5, TopImage = SI, MidImage = SI, BottomImage = SI, Parent = HOLDERS} | |
252 | NEW'ScrollingFrame'{Name = 'fun', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.8, BorderSizePixel = 0, Position = UDim2.new(0, 5, 0, 85), Size = UDim2.new(1, -10, 0, 210), Visible = false, CanvasSize = UDim2.new(0, 0, 0, 0), ScrollBarThickness = 5, TopImage = SI, MidImage = SI, BottomImage = SI, Parent = HOLDERS} | |
253 | NEW'ScrollingFrame'{Name = 'changelog', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.8, BorderSizePixel = 0, Position = UDim2.new(0, 5, 0, 85), Size = UDim2.new(1, -10, 0, 210), Visible = false, CanvasSize = UDim2.new(0, 0, 0, 0), ScrollBarThickness = 5, TopImage = SI, MidImage = SI, BottomImage = SI, Parent = HOLDERS} | |
254 | local Y_CHANGES = 0 | |
255 | for i,v in pairs(CHANGELOG) do | |
256 | NEW'TextLabel'{Name = '', BackgroundColor3 = C3(255, 255, 255), BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, Y_CHANGES), Size = UDim2.new(1, 0, 0, 30), Font = 'SourceSansBold', Text = v, TextColor3 = C3(0, 0, 0), TextSize = 24, TextTransparency = 0.25, TextXAlignment = 'Left', Parent = HOLDERS.changelog} | |
257 | HOLDERS.changelog.CanvasSize = HOLDERS.changelog.CanvasSize + UDim2.new(0, 0, 0, 30) | |
258 | Y_CHANGES = Y_CHANGES + 30 | |
259 | end | |
260 | NEW'Frame'{Name = 'credits', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.8, BorderSizePixel = 0, Position = UDim2.new(0, 5, 0, 85), Size = UDim2.new(1, -10, 0, 210), Visible = false, Parent = HOLDERS} | |
261 | NEW'TextLabel'{Name = 'text', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 1, BorderSizePixel = 0, Size = UDim2.new(1, 0, 1, 0), Font = 'SourceSansBold', Text = CREDITS, TextColor3 = C3(0, 0, 0), TextSize = 24, TextTransparency = 0.25, TextXAlignment = 'Left', TextYAlignment = 'Top', Parent = HOLDERS.credits} | |
262 | NEW'TextBox'{Name = 'search', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(0.25, 0, 0, 85), Size = UDim2.new(0.5, 0, 0, 25), Visible = false, Font = 'SourceSansBold', Text = 'search commands', TextColor3 = C3(255, 255, 255), TextSize = 20, Parent = HOLDERS} | |
263 | ||
264 | NEW'Frame'{Name = 'line', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(0, 5, 0, 75), Size = UDim2.new(1, -10, 0, 5), Parent = MAIN_GUI.main.holder} | |
265 | NEW'TextButton'{Name = 'close', BackgroundColor3 = C3(255, 50, 50), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(1, 0, 0, 0), Size = UDim2.new(0, 25, 0, 25), Text = '', Parent = MAIN_GUI.main} | |
266 | ||
267 | CMD_BAR_H = Instance.new('ScreenGui', GUIS) | |
268 | CMD_BAR_H.Name = 'cmdbar_seth' | |
269 | NEW'TextBox'{Name = 'bar', BackgroundColor3 = C3(0, 0, 0), BackgroundTransparency = 0.5, BorderSizePixel = 0, Position = UDim2.new(0, -200, 1, -50), Size = UDim2.new(0, 225, 0, 25), Font = 'SourceSansItalic', Text = 'press ; to execute a command', TextColor3 = C3(255, 255, 255), TextSize = 20, Parent = CMD_BAR_H} | |
270 | NEW'ScrollingFrame'{Name = 'commands', BackgroundColor3 = C3(50, 50, 50), BackgroundTransparency = 0.5, BorderSizePixel = 0, Position = UDim2.new(0, 0, 1, -25), Size = UDim2.new(1, 0, 0, 0), Visible = false, CanvasSize = UDim2.new(0, 0, 0, 0), ScrollBarThickness = 6, ScrollingEnabled = true, BottomImage = SI, MidImage = SI, TopImage = SI, Parent = CMD_BAR_H.bar} | |
271 | NEW'TextLabel'{Name = 'commands_ex', BackgroundTransparency = 1, BorderSizePixel = 0, Size = UDim2.new(0, 200, 0, 20), Visible = false, Font = 'SourceSansBold', TextColor3 = C3(255, 255, 255), TextSize = 18, TextXAlignment = 'Left', Parent = CMD_BAR_H.bar} | |
272 | ||
273 | local NOTIFY_H = Instance.new('ScreenGui', GUIS) | |
274 | NOTIFY_H.Name = 'notify_seth' | |
275 | local N = Instance.new('Frame', NOTIFY_H) | |
276 | N.Name = 'notify' | |
277 | N.BackgroundColor3 = C3(0, 0, 0) | |
278 | N.BackgroundTransparency = 0.5 | |
279 | N.BorderSizePixel = 0 | |
280 | N.Position = UDim2.new(0, -225, 0.6, 0) | |
281 | N.Size = UDim2.new(0, 225, 0, 30) | |
282 | local BAR = Instance.new('Frame', N) | |
283 | BAR.Name = '' | |
284 | BAR.BackgroundColor3 = C3(255, 255, 255) | |
285 | BAR.BackgroundTransparency = 0.5 | |
286 | BAR.BorderSizePixel = 0 | |
287 | BAR.Position = UDim2.new(0, 0, 1, 0) | |
288 | BAR.Size = UDim2.new(1, 0, 0, 5) | |
289 | local TEXT = Instance.new('TextLabel', N) | |
290 | TEXT.Name = 'text' | |
291 | TEXT.BackgroundTransparency = 1 | |
292 | TEXT.BorderSizePixel = 0 | |
293 | TEXT.Size = UDim2.new(1, 0, 1, 0) | |
294 | TEXT.Font = 'SourceSansBold' | |
295 | TEXT.TextColor3 = C3(255, 255, 255) | |
296 | TEXT.TextSize = 18 | |
297 | TEXT.TextXAlignment = 'Left' | |
298 | ||
299 | PAPER_MESH = Instance.new('BlockMesh', OTHER) | |
300 | PAPER_MESH.Scale = Vector3.new(1, 1, 0.1) | |
301 | ||
302 | JAIL = Instance.new('Model', OTHER) | |
303 | JAIL.Name = 'JAIL' | |
304 | local B = Instance.new('Part', JAIL) | |
305 | B.Name = 'BUTTOM' | |
306 | B.BrickColor = BrickColor.new('Black') | |
307 | B.Transparency = 0.5 | |
308 | B.Anchored = true | |
309 | B.Locked = true | |
310 | B.Size = Vector3.new(6, 1, 6) | |
311 | B.TopSurface = 'Smooth' | |
312 | B.BottomSurface = 'Smooth' | |
313 | local M = Instance.new('Part', JAIL) | |
314 | M.Name = 'MAIN' | |
315 | M.BrickColor = BrickColor.new('Black') | |
316 | M.Transparency = 1 | |
317 | M.Anchored = true | |
318 | M.CanCollide = false | |
319 | M.Locked = true | |
320 | M.Position = B.Position + Vector3.new(0, 3, 0) | |
321 | M.Size = Vector3.new(1, 1, 1) | |
322 | local P1 = Instance.new('Part', JAIL) | |
323 | P1.BrickColor = BrickColor.new('Black') | |
324 | P1.Transparency = 1 | |
325 | P1.Position = B.Position + Vector3.new(0, 3.5, -2.5) | |
326 | P1.Rotation = Vector3.new(0, 90, 0) | |
327 | P1.Anchored = true | |
328 | P1.Locked = true | |
329 | P1.Size = Vector3.new(1, 6, 6) | |
330 | local P2 = Instance.new('Part', JAIL) | |
331 | P2.BrickColor = BrickColor.new('Black') | |
332 | P2.Transparency = 1 | |
333 | P2.Position = B.Position + Vector3.new(-2.5, 3.5, 0) | |
334 | P2.Rotation = Vector3.new(-180, 0, -180) | |
335 | P2.Anchored = true | |
336 | P2.Locked = true | |
337 | P2.Size = Vector3.new(1, 6, 4) | |
338 | local P3 = Instance.new('Part', JAIL) | |
339 | P3.BrickColor = BrickColor.new('Black') | |
340 | P3.Transparency = 1 | |
341 | P3.Position = B.Position + Vector3.new(2.5, 3.5, 0) | |
342 | P3.Rotation = Vector3.new(0, 0, 0) | |
343 | P3.Anchored = true | |
344 | P3.Locked = true | |
345 | P3.Size = Vector3.new(1, 6, 4) | |
346 | local P4 = Instance.new('Part', JAIL) | |
347 | P4.BrickColor = BrickColor.new('Black') | |
348 | P4.Transparency = 1 | |
349 | P4.Position = B.Position + Vector3.new(0, 3.5, 2.5) | |
350 | P4.Rotation = Vector3.new(0, 90, 0) | |
351 | P4.Anchored = true | |
352 | P4.Locked = true | |
353 | P4.Size = Vector3.new(1, 6, 4) | |
354 | local TOP = Instance.new('Part', JAIL) | |
355 | TOP.BrickColor = BrickColor.new('Black') | |
356 | TOP.Transparency = 0.5 | |
357 | TOP.Position = B.Position + Vector3.new(0, 7, 0) | |
358 | TOP.Rotation = Vector3.new(0, 0, 0) | |
359 | TOP.Anchored = true | |
360 | TOP.Locked = true | |
361 | TOP.Size = Vector3.new(6, 1, 6) | |
362 | TOP.TopSurface = 'Smooth' | |
363 | TOP.BottomSurface = 'Smooth' | |
364 | ||
365 | ROCKET = Instance.new('Part', OTHER) | |
366 | ROCKET.Name = 'rocket_seth' | |
367 | ROCKET.CanCollide = false | |
368 | ROCKET.Size = Vector3.new(2, 5, 2) | |
369 | Instance.new('CylinderMesh', ROCKET) | |
370 | local F = Instance.new('Part', ROCKET) | |
371 | F.BrickColor = BrickColor.new('Black') | |
372 | F.CanCollide = false | |
373 | F.Size = Vector3.new(2, 0.2, 2) | |
374 | Instance.new('CylinderMesh', F) | |
375 | local PE = Instance.new('ParticleEmitter', F) | |
376 | PE.Color = ColorSequence.new(C3(236, 139, 70), C3(236, 139, 70)) | |
377 | PE.Size = NumberSequence.new(0.2) | |
378 | PE.Texture = 'rbxassetid://17238048' | |
379 | PE.LockedToPart = true | |
380 | PE.Lifetime = NumberRange.new(0.2) | |
381 | PE.Rate = 50 | |
382 | PE.Speed = NumberRange.new(-20) | |
383 | local TOP = Instance.new('Part', ROCKET) | |
384 | TOP.CanCollide = false | |
385 | TOP.Shape = 'Ball' | |
386 | TOP.Size = Vector3.new(2, 2, 2) | |
387 | TOP.TopSurface = 'Smooth' | |
388 | TOP.BottomSurface = 'Smooth' | |
389 | local BF = Instance.new('BodyForce', ROCKET) | |
390 | BF.Name = 'force' | |
391 | BF.Force = Vector3.new(0, 0, 0) | |
392 | local W1 = Instance.new('Weld', ROCKET) | |
393 | W1.Part0 = ROCKET | |
394 | W1.Part1 = F | |
395 | W1.C1 = CFrame.new(0, 2.6, 0) | |
396 | local W2 = Instance.new('Weld', ROCKET) | |
397 | W2.Part0 = ROCKET | |
398 | W2.Part1 = TOP | |
399 | W2.C1 = CFrame.new(0, -2.6, 0) | |
400 | ||
401 | ALIEN_H = Instance.new('Accessory', OTHER) | |
402 | local H = Instance.new('Part', ALIEN_H) | |
403 | H.Name = 'Handle' | |
404 | H.Size = Vector3.new(2, 2.4, 2) | |
405 | local HA = Instance.new('Attachment', H) | |
406 | HA.Name = 'HatAttachment' | |
407 | HA.Position = Vector3.new(0, 0.15, 0) | |
408 | local SM = Instance.new('SpecialMesh', H) | |
409 | SM.MeshId = 'rbxassetid://13827689' | |
410 | SM.MeshType = 'FileMesh' | |
411 | SM.Scale = Vector3.new(1, 1.02, 1) | |
412 | SM.TextureId = 'rbxassetid://13827796' | |
413 | ||
414 | local S = Instance.new('Model', OTHER) S.Name = 'swastika' | |
415 | NEW'Part'{BrickColor = BrickColor.new('Really red'), Material = 'Plastic', Anchored = true, CanCollide = false, Size = Vector3.new(2, 2, 2), BottomSurface = 'Smooth', TopSurface = 'Smooth', Parent = S} | |
416 | NEW'Part'{BrickColor = BrickColor.new('Really red'), Material = 'Plastic', Position = Vector3.new(0, 3, 0), Anchored = true, CanCollide = false, Size = Vector3.new(2, 4, 2), BottomSurface = 'Smooth', TopSurface = 'Smooth', Parent = S} | |
417 | NEW'Part'{BrickColor = BrickColor.new('Really red'), Material = 'Plastic', Position = Vector3.new(3, 0, 0), Anchored = true, CanCollide = false, Size = Vector3.new(4, 2, 2), BottomSurface = 'Smooth', TopSurface = 'Smooth', Parent = S} | |
418 | NEW'Part'{BrickColor = BrickColor.new('Really red'), Material = 'Plastic', Position = Vector3.new(0, -3, 0), Anchored = true, CanCollide = false, Size = Vector3.new(2, 4, 2), BottomSurface = 'Smooth', TopSurface = 'Smooth', Parent = S} | |
419 | NEW'Part'{BrickColor = BrickColor.new('Really red'), Material = 'Plastic', Position = Vector3.new(-3, 0, 0), Anchored = true, CanCollide = false, Size = Vector3.new(4, 2, 2), BottomSurface = 'Smooth', TopSurface = 'Smooth', Parent = S} | |
420 | NEW'Part'{BrickColor = BrickColor.new('Really red'), Material = 'Plastic', Position = Vector3.new(3, 4, 0), Anchored = true, CanCollide = false, Size = Vector3.new(4, 2, 2), BottomSurface = 'Smooth', TopSurface = 'Smooth', Parent = S} | |
421 | NEW'Part'{BrickColor = BrickColor.new('Really red'), Material = 'Plastic', Position = Vector3.new(4, -3, 0), Anchored = true, CanCollide = false, Size = Vector3.new(2, 4, 2), BottomSurface = 'Smooth', TopSurface = 'Smooth', Parent = S} | |
422 | NEW'Part'{BrickColor = BrickColor.new('Really red'), Material = 'Plastic', Position = Vector3.new(-3, -4, 0), Anchored = true, CanCollide = false, Size = Vector3.new(4, 2, 2), BottomSurface = 'Smooth', TopSurface = 'Smooth', Parent = S} | |
423 | NEW'Part'{BrickColor = BrickColor.new('Really red'), Material = 'Plastic', Position = Vector3.new(-4, 3, 0), Anchored = true, CanCollide = false, Size = Vector3.new(2, 4, 2), BottomSurface = 'Smooth', TopSurface = 'Smooth', Parent = S} | |
424 | ||
425 | CMD_BAR_H.Parent = gCoreGui | |
426 | end | |
427 | ||
428 | local RS = game:GetService('RunService').RenderStepped | |
429 | ||
430 | function OPEN_MAIN() | |
431 | SETH_MAIN = MAIN_GUI:Clone() | |
432 | ||
433 | local BUTTONS = SETH_MAIN.main.holder.buttons | |
434 | local HOLDERS = SETH_MAIN.main.holder.holders | |
435 | ||
436 | for i,v in pairs(SETH_MAIN.main.holder.buttons:GetChildren()) do | |
437 | v.MouseButton1Down:connect(function(X, Y) | |
438 | OPEN_TAB(v.Name) | |
439 | if not v:FindFirstChild('circle') then | |
440 | local C = Instance.new('ImageLabel', v) | |
441 | C.BackgroundTransparency = 1 | |
442 | C.Position = UDim2.new(0, X - 0, 0, Y - 35) - UDim2.new(0, v.AbsolutePosition.X, 0, v.AbsolutePosition.Y) | |
443 | C.Size = UDim2.new(0, 0, 0, 0) | |
444 | C.ZIndex = v.ZIndex | |
445 | C.Image = 'rbxassetid://200182847' | |
446 | C.ImageColor3 = C3(0, 100, 255) | |
447 | C.Name = 'circle' | |
448 | C:TweenSizeAndPosition(UDim2.new(0, 500, 0, 500), C.Position - UDim2.new(0, 250, 0, 250), 'Out', 'Quart', 2.5) | |
449 | for i = 0, 1, 0.03 do | |
450 | C.ImageTransparency = i | |
451 | RS:wait() | |
452 | end | |
453 | C:destroy() | |
454 | end | |
455 | end) | |
456 | end | |
457 | ||
458 | HOLDERS.server.place_id.Text = ' Place ID | ' .. game.PlaceId | |
459 | game:GetService('RunService').Stepped:connect(function() | |
460 | if SETH_MAIN:FindFirstChild('main') and HOLDERS:FindFirstChild('server') then | |
461 | if not gWorkspace.FilteringEnabled then | |
462 | HOLDERS.server.fe.Text = ' FilteringEnabled | false' | |
463 | else | |
464 | HOLDERS.server.fe.Text = ' FilteringEnabled | true' | |
465 | end | |
466 | HOLDERS.server.ip.Text = ' IP Address | ' .. IP | |
467 | HOLDERS.server.port.Text = ' Port | ' .. PORT | |
468 | HOLDERS.server.players.Text = ' Players | ' .. gPlayers.NumPlayers .. '/' .. gPlayers.MaxPlayers | |
469 | HOLDERS.server.time.Text = ' Time | ' .. gLighting.TimeOfDay | |
470 | HOLDERS.server.gravity.Text = ' Gravity | ' .. gWorkspace.Gravity | |
471 | end | |
472 | end) | |
473 | ||
474 | function UPDATE_ADMINS() | |
475 | HOLDERS.admins:ClearAllChildren() | |
476 | HOLDERS.admins.CanvasSize = UDim2.new(0, 0, 0, 0) | |
477 | local Y_ADMINS = 5 | |
478 | for i,v in pairs(ADMINS) do | |
479 | NEW'TextLabel'{Name = v, BackgroundColor3 = C3(255, 255, 255), BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, Y_ADMINS), Size = UDim2.new(1, -30, 0, 25), Font = 'SourceSansBold', TextColor3 = C3(0, 0, 0), TextSize = 24, TextTransparency = 0.25, TextXAlignment = 'Left', Parent = HOLDERS.admins} | |
480 | NEW'TextButton'{Name = 'update', BackgroundColor3 = C3(255, 50, 50), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(1, 0, 0, 0), Size = UDim2.new(0, 25, 0, 25), Text = '', Parent = HOLDERS.admins[v]} | |
481 | HOLDERS.admins[v].update.MouseButton1Down:connect(function() | |
482 | table.remove(ADMINS, i) | |
483 | UPDATE_ADMINS() | |
484 | end) | |
485 | HOLDERS.admins.CanvasSize = HOLDERS.admins.CanvasSize + UDim2.new(0, 0, 0, 30) | |
486 | Y_ADMINS = Y_ADMINS + 30 | |
487 | end | |
488 | HOLDERS.admins.CanvasSize = HOLDERS.admins.CanvasSize + UDim2.new(0, 0, 0, 5) | |
489 | spawn(function() | |
490 | for i,v in pairs(HOLDERS.admins:GetChildren()) do | |
491 | v.Text = ' ' .. gPlayers:GetNameFromUserIdAsync(v.Name) | |
492 | end | |
493 | end) | |
494 | end | |
495 | UPDATE_ADMINS() | |
496 | ||
497 | function UPDATE_BANS() | |
498 | HOLDERS.bans:ClearAllChildren() | |
499 | HOLDERS.bans.CanvasSize = UDim2.new(0, 0, 0, 0) | |
500 | local Y_BANS = 5 | |
501 | for i,v in pairs(BANS) do | |
502 | NEW'TextLabel'{Name = v, BackgroundColor3 = C3(255, 255, 255), BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, Y_BANS), Size = UDim2.new(1, -30, 0, 25), Font = 'SourceSansBold', Text = '', TextColor3 = C3(0, 0, 0), TextSize = 24, TextTransparency = 0.25, TextXAlignment = 'Left', Parent = HOLDERS.bans} | |
503 | NEW'TextButton'{Name = 'update', BackgroundColor3 = C3(255, 50, 50), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(1, 0, 0, 0), Size = UDim2.new(0, 25, 0, 25), Text = '', Parent = HOLDERS.bans[v]} | |
504 | HOLDERS.bans[v].update.MouseButton1Down:connect(function() | |
505 | table.remove(BANS, i) | |
506 | UPDATE_BANS() | |
507 | end) | |
508 | HOLDERS.bans.CanvasSize = HOLDERS.bans.CanvasSize + UDim2.new(0, 0, 0, 30) | |
509 | Y_BANS = Y_BANS + 30 | |
510 | end | |
511 | HOLDERS.bans.CanvasSize = HOLDERS.bans.CanvasSize + UDim2.new(0, 0, 0, 5) | |
512 | spawn(function() | |
513 | for i,v in pairs(HOLDERS.bans:GetChildren()) do | |
514 | v.Text = ' ' .. gPlayers:GetNameFromUserIdAsync(v.Name) | |
515 | end | |
516 | end) | |
517 | end | |
518 | UPDATE_BANS() | |
519 | ||
520 | local function DISPLAY_CMDS() | |
521 | local Y_COMMANDS = 0 | |
522 | for i,v in pairs(COMMANDS) do | |
523 | NEW'TextLabel'{Name = '', BackgroundColor3 = C3(255, 255, 255), BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, Y_COMMANDS), Size = UDim2.new(1, 0, 0, 25), Font = 'SourceSansBold', Text = ' ' .. v.D, TextColor3 = C3(0, 0, 0), TextSize = 24, TextTransparency = 0.25, TextXAlignment = 'Left', Parent = HOLDERS.cmds} | |
524 | HOLDERS.cmds.CanvasSize = HOLDERS.cmds.CanvasSize + UDim2.new(0, 0, 0, 25) | |
525 | Y_COMMANDS = Y_COMMANDS + 25 | |
526 | end | |
527 | end | |
528 | DISPLAY_CMDS() | |
529 | ||
530 | HOLDERS.search.Changed:connect(function() | |
531 | if SETH_MAIN:FindFirstChild('main') and SETH_MAIN.main.holder.holders:FindFirstChild('search') then | |
532 | if HOLDERS.search.Text ~= 'search commands' and HOLDERS.search.Focused then | |
533 | if HOLDERS.search.Text ~= '' then | |
534 | if not HOLDERS.search.Text:find(' ') then | |
535 | HOLDERS.cmds:ClearAllChildren() | |
536 | HOLDERS.cmds.CanvasSize = UDim2.new(0, 0, 0, 0) | |
537 | local Y_COMMANDS = 0 | |
538 | for i,v in pairs(COMMANDS) do | |
539 | if v.N:find(HOLDERS.search.Text) then | |
540 | HOLDERS.cmds.CanvasSize = HOLDERS.cmds.CanvasSize + UDim2.new(0, 0, 0, 25) | |
541 | NEW'TextLabel'{Name = '', BackgroundColor3 = C3(255, 255, 255), BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, Y_COMMANDS), Size = UDim2.new(1, 0, 0, 25), Font = 'SourceSansBold', Text = ' ' .. v.D, TextColor3 = C3(0, 0, 0), TextSize = 24, TextTransparency = 0.25, TextXAlignment = 'Left', Parent = HOLDERS.cmds} | |
542 | HOLDERS.changelog.CanvasSize = HOLDERS.changelog.CanvasSize + UDim2.new(0, 0, 0, 25) | |
543 | Y_COMMANDS = Y_COMMANDS + 25 | |
544 | end | |
545 | end | |
546 | end | |
547 | else | |
548 | HOLDERS.cmds:ClearAllChildren() | |
549 | HOLDERS.cmds.CanvasSize = UDim2.new(0, 0, 0, 0) | |
550 | DISPLAY_CMDS() | |
551 | end | |
552 | end | |
553 | end | |
554 | end) | |
555 | ||
556 | local FUN = {'balefire', 'swastika', 'trowel', 'path giver', 'orbital strike'} | |
557 | local Y_FUN = 5 | |
558 | for i,v in pairs(FUN) do | |
559 | NEW'TextLabel'{Name = v, BackgroundColor3 = C3(255, 255, 255), BackgroundTransparency = 1, Position = UDim2.new(0, 0, 0, Y_FUN), Size = UDim2.new(1, -50, 0, 25), Font = 'SourceSansBold', Text = ' ' .. v, TextColor3 = C3(0, 0, 0), TextSize = 24, TextTransparency = 0.25, TextXAlignment = 'Left', Parent = HOLDERS.fun} | |
560 | HOLDERS.fun.CanvasSize = HOLDERS.fun.CanvasSize + UDim2.new(0, 0, 0, 30) | |
561 | Y_FUN = Y_FUN + 30 | |
562 | end | |
563 | HOLDERS.fun.CanvasSize = HOLDERS.fun.CanvasSize + UDim2.new(0, 0, 0, 5) | |
564 | for i,v in pairs(HOLDERS.fun:GetChildren()) do | |
565 | NEW'TextButton'{Name = 'load', BackgroundColor3 = C3(50, 50, 255), BackgroundTransparency = 0.25, BorderSizePixel = 0, Position = UDim2.new(1, 0, 0, 0), Size = UDim2.new(0, 45, 0, 25), ClipsDescendants = true, Font = 'SourceSansBold', Text = 'load', TextColor3 = C3(255, 255, 255), TextSize = 20, Parent = v} | |
566 | v.load.MouseButton1Down:connect(function() | |
567 | if v.Name == 'balefire' then LOAD_BALEFIRE() | |
568 | elseif v.Name == 'swastika' then local S = OTHER.swastika:Clone() S.Parent = gWorkspace S:MoveTo(LP.Character.Head.Position + Vector3.new(0, 10, 0)) | |
569 | elseif v.Name == 'trowel' then LOAD_TROWEL() | |
570 | elseif v.Name == 'path giver' then LOAD_PATH() | |
571 | elseif v.Name == 'orbital strike' then LOAD_STRIKE() | |
572 | end | |
573 | end) | |
574 | end | |
575 | ||
576 | SETH_MAIN.main.close.MouseButton1Down:connect(function() | |
577 | SETH_MAIN:destroy() | |
578 | end) | |
579 | ||
580 | SETH_MAIN.Parent = gCoreGui | |
581 | end | |
582 | ||
583 | LOAD_DATA() | |
584 | ||
585 | --/ TOOLS | |
586 | ||
587 | function LOAD_BALEFIRE() | |
588 | local HB = Instance.new('HopperBin', LP.Backpack) | |
589 | HB.Name = 'balefire' | |
590 | ||
591 | local function BF(P) | |
592 | for i = 1, 50 do | |
593 | local E = Instance.new('Explosion', gWorkspace) | |
594 | E.BlastRadius = 3 | |
595 | E.BlastPressure = 999999 | |
596 | E.Position = LP.Character.Torso.CFrame.p + ((P - LP.Character.Torso.CFrame.p).unit * 6 * i) + ((P - LP.Character.Torso.CFrame.p).unit * 7) | |
597 | end | |
598 | end | |
599 | ||
600 | FIRED = false | |
601 | local function FIRE(M) | |
602 | if not FIRED then | |
603 | FIRED = true | |
604 | BF(M.Hit.p) | |
605 | wait(0.25) | |
606 | FIRED = false | |
607 | end | |
608 | end | |
609 | ||
610 | HB.Selected:connect(function(M) | |
611 | M.Button1Down:connect(function() | |
612 | FIRE(M) | |
613 | end) | |
614 | end) | |
615 | end | |
616 | ||
617 | function LOAD_TROWEL() | |
618 | local T = Instance.new('Tool', LP.Backpack) T.Name = 'trowel' | |
619 | NEW'Part'{Name = 'Handle', Size = Vector3.new(1, 4.4, 1), Parent = T} | |
620 | NEW'SpecialMesh'{MeshId = 'rbxasset://fonts/trowel.mesh', MeshType = 'FileMesh', TextureId = 'rbxasset://textures/TrowelTexture.png', Parent = T.Handle} | |
621 | NEW'Sound'{Name = 'build', SoundId = 'rbxasset://sounds//bass.wav', Volume = 1, Parent = T.Handle} | |
622 | ||
623 | local HEIGHT = 5 | |
624 | local SPEED = 0.05 | |
625 | local WIDTH = 15 | |
626 | ||
627 | function BRICK(CF, P, C) | |
628 | local B = Instance.new('Part') | |
629 | B.BrickColor = C | |
630 | B.CFrame = CF * CFrame.new(P + B.Size / 2) | |
631 | B.Parent = game.Workspace | |
632 | B:MakeJoints() | |
633 | B.Material = 'Neon' | |
634 | return B, P + B.Size | |
635 | end | |
636 | ||
637 | function BW(CF) | |
638 | local BC = BrickColor.Random() | |
639 | local B = {} | |
640 | assert(WIDTH > 0) | |
641 | local Y = 0 | |
642 | while Y < HEIGHT do | |
643 | local P | |
644 | local X = -WIDTH / 2 | |
645 | while X < WIDTH / 2 do | |
646 | local brick | |
647 | brick, P = BRICK(CF, Vector3.new(X, Y, 0), BC) | |
648 | X = P.x | |
649 | table.insert(B, brick) | |
650 | wait(SPEED) | |
651 | end | |
652 | Y = P.y | |
653 | end | |
654 | return B | |
655 | end | |
656 | ||
657 | function S(A) | |
658 | if math.abs(A.x) > math.abs(A.z) then | |
659 | if A.x > 0 then | |
660 | return Vector3.new(1, 0, 0) | |
661 | else | |
662 | return Vector3.new(-1, 0, 0) | |
663 | end | |
664 | else | |
665 | if A.z > 0 then | |
666 | return Vector3.new(0, 0, 1) | |
667 | else | |
668 | return Vector3.new(0, 0, -1) | |
669 | end | |
670 | end | |
671 | end | |
672 | ||
673 | T.Enabled = true | |
674 | T.Activated:connect(function() | |
675 | if T.Enabled and LP.Character:FindFirstChild('Humanoid') then | |
676 | T.Enabled = false | |
677 | T.Handle.build:Play() | |
678 | BW(CFrame.new(LP.Character.Humanoid.TargetPoint, LP.Character.Humanoid.TargetPoint + S((LP.Character.Humanoid.TargetPoint - LP.Character.Head.Position).unit))) | |
679 | T.Enabled = true | |
680 | end | |
681 | end) | |
682 | end | |
683 | ||
684 | function LOAD_PATH() | |
685 | local HB = Instance.new('HopperBin', LP.Backpack) HB.Name = 'path giver' | |
686 | ||
687 | local function PATH(M, C) | |
688 | if ENABLED and LP.Character then | |
689 | if not gWorkspace:FindFirstChild('paths_seth') then Instance.new('Folder', gWorkspace).Name = 'paths_seth' end | |
690 | local hit = M.Target | |
691 | local point = M.Hit.p | |
692 | local P = Instance.new('Part', gWorkspace.paths_seth) | |
693 | P.BrickColor = C | |
694 | P.Material = 'Neon' | |
695 | P.Transparency = 0.75 | |
696 | P.Anchored = true | |
697 | P.Size = Vector3.new(20, 1, 20) | |
698 | P.Velocity = M.Hit.lookVector * 75 | |
699 | P.BottomSurface = 'Smooth' | |
700 | P.TopSurface = 'Smooth' | |
701 | P.CFrame = CFrame.new(LP.Character.Head.Position) | |
702 | P.CFrame = CFrame.new(LP.Character.Torso.Position.x, LP.Character.Torso.Position.y - 4, LP.Character.Torso.Position.z) | |
703 | P.CFrame = CFrame.new(P.Position, point) | |
704 | wait() | |
705 | PATH(M, C) | |
706 | end | |
707 | end | |
708 | ||
709 | local function SELECTED(M) | |
710 | M.Button1Down:connect(function() ENABLED = true PATH(M, BrickColor.Random()) end) | |
711 | M.Button1Up:connect(function() ENABLED = false end) | |
712 | M.KeyDown:connect(function(K) if K == 'r' then if gWorkspace:FindFirstChild('paths_seth') then gWorkspace.paths_seth:destroy() end end end) | |
713 | end | |
714 | ||
715 | HB.Selected:connect(SELECTED) | |
716 | end | |
717 | ||
718 | function LOAD_STRIKE() | |
719 | local HB = Instance.new('HopperBin', LP.Backpack) HB.Name = 'orbital strike' | |
720 | ||
721 | local function SHOOT(T) | |
722 | if ENABLED then | |
723 | local P0 = CFrame.new(0, 1500, 0) | |
724 | P0 = P0 + ((P0 * CFrame.fromEulerAnglesXYZ(math.pi / 2, 0, 0)).lookVector * 0.5) + (P0 * CFrame.fromEulerAnglesXYZ(0, math.pi / 2, 0)).lookVector | |
725 | local P1 = P0 + ((P0.p - T.Hit.p).unit * -2) | |
726 | SATELITE.CFrame = CFrame.new((P0.p + P1.p) / 2, P0.p) * CFrame.fromEulerAnglesXYZ(-math.pi / 2, 0, 0) | |
727 | ||
728 | local M = Instance.new('Model', gWorkspace) | |
729 | NEW'Part'{BrickColor = BrickColor.new('Pink'), Material = 'Neon', CFrame = CFrame.new((SATELITE.CFrame.p + T.Hit.p) / 2, SATELITE.CFrame.p), Anchored = true, CanCollide = false, Size = Vector3.new(1, 1, 1), Parent = M} | |
730 | NEW'BlockMesh'{Scale = Vector3.new(1, 1, (SATELITE.CFrame.p - T.Hit.p).magnitude), Parent = M.Part} | |
731 | NEW'Explosion'{Position = T.Hit.p, BlastRadius = 20, Parent = gWorkspace} | |
732 | ||
733 | for i = 1,10 do M.Part.Transparency = 0.5 + (i * 0.05) wait(0.05) end | |
734 | M:destroy() | |
735 | end | |
736 | end | |
737 | ||
738 | HB.Selected:connect(function(M) | |
739 | if not gWorkspace:FindFirstChild('orbital_seth') then | |
740 | SATELITE = Instance.new('Part', gWorkspace) | |
741 | SATELITE.Name = 'orbital_seth' | |
742 | SATELITE.Position = Vector3.new(0, 1500, 0) | |
743 | SATELITE.Anchored = true | |
744 | SATELITE.CanCollide = false | |
745 | SATELITE.Size = Vector3.new(5, 16.8, 5) | |
746 | NEW'SpecialMesh'{MeshId = 'rbxassetid://1064328', Scale = Vector3.new(0.2, 0.2, 0.2), Parent = SATELITE} | |
747 | end | |
748 | M.Button1Down:connect(function() ENABLED = true SHOOT(M) end) | |
749 | M.Button1Up:connect(function() ENABLED = false end) | |
750 | end) | |
751 | end | |
752 | ||
753 | function FIND_IN_TABLE(TABLE, NAME) | |
754 | for i,v in pairs(TABLE) do | |
755 | if v == NAME then | |
756 | return true | |
757 | end | |
758 | end | |
759 | return false | |
760 | end | |
761 | ||
762 | function GET_IN_TABLE(TABLE, NAME) | |
763 | for i = 1, #TABLE do | |
764 | if TABLE[i] == NAME then | |
765 | return i | |
766 | end | |
767 | end | |
768 | return false | |
769 | end | |
770 | ||
771 | local NOCLIP, JESUSFLY, SWIM = false, false, false | |
772 | ||
773 | game:GetService('RunService').Stepped:connect(function() | |
774 | if NOCLIP then | |
775 | if LP.Character:FindFirstChild('Humanoid') then LP.Character.Humanoid:ChangeState(11) end | |
776 | elseif JESUSFLY then | |
777 | if LP.Character:FindFirstChild('Humanoid') then LP.Character.Humanoid:ChangeState(12) end | |
778 | elseif SWIM then | |
779 | if LP.Character:FindFirstChild('Humanoid') then LP.Character.Humanoid:ChangeState(4) end | |
780 | end | |
781 | for i,v in pairs(gPlayers:GetPlayers()) do if FIND_IN_TABLE(KICKS, v) then KICK(v) end end | |
782 | end) | |
783 | ||
784 | local NOTIFY_1 = false | |
785 | local NOTIFY_2 = false | |
786 | ||
787 | function NOTIFY(M, R, G, B) | |
788 | spawn(function() | |
789 | repeat wait() until not NOTIFY_1 | |
790 | local NOTIFY_SETH = GUIS.notify_seth:Clone() NOTIFY_SETH.Parent = gCoreGui | |
791 | if NOTIFY_SETH then | |
792 | NOTIFY_SETH.notify[''].BackgroundColor3 = C3(R, G, B) | |
793 | NOTIFY_SETH.notify.text.Text = ' ' .. M | |
794 | repeat wait() until not NOTIFY_1 | |
795 | NOTIFY_1 = true | |
796 | wait(0.5) | |
797 | NOTIFY_SETH.notify:TweenPosition(UDim2.new(0, 0, 0.6, 0), 'InOut', 'Quad', 0.4, false) wait(0.5) | |
798 | wait(0.5) | |
799 | repeat wait() until not NOTIFY_2 | |
800 | NOTIFY_1 = false | |
801 | NOTIFY_SETH.notify:TweenPosition(UDim2.new(0, 0, 0.6, -40), 'InOut', 'Quad', 0.4, false) wait(0.5) | |
802 | wait(0.5) | |
803 | NOTIFY_2 = true | |
804 | wait(2.5) | |
805 | NOTIFY_SETH.notify:TweenPosition(UDim2.new(0, -225, 0.6, -40), 'InOut', 'Quad', 0.4, false) wait(0.5) | |
806 | end | |
807 | wait(1) | |
808 | NOTIFY_SETH:destroy() | |
809 | NOTIFY_2 = false | |
810 | end) | |
811 | end | |
812 | ||
813 | function KICK(P) | |
814 | spawn(function() | |
815 | for i = 1,5 do | |
816 | if P.Character and P.Character:FindFirstChild('HumanoidRootPart') and P.Character:FindFirstChild('Torso') then | |
817 | P.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000) | |
818 | local SP = Instance.new('SkateboardPlatform', P.Character) SP.Position = P.Character.HumanoidRootPart.Position SP.Transparency = 1 | |
819 | spawn(function() | |
820 | repeat wait() | |
821 | if P.Character and P.Character:FindFirstChild('HumanoidRootPart') then SP.Position = P.Character.HumanoidRootPart.Position end | |
822 | until not gPlayers:FindFirstChild(P.Name) | |
823 | end) | |
824 | P.Character.Torso.Anchored = true | |
825 | end | |
826 | end | |
827 | end) | |
828 | end | |
829 | ||
830 | gPlayers.PlayerRemoving:connect(function(P) | |
831 | if FIND_IN_TABLE(KICKS, P) then | |
832 | for i,v in pairs(KICKS) do if v == P then table.remove(KICKS, i) end end | |
833 | NOTIFY('KICKED ' .. P.Name, 255, 255, 255) | |
834 | end | |
835 | if FIND_IN_TABLE(JAILED, P.Name) then | |
836 | for i,v in pairs(JAILED) do if v == P.Name then table.remove(KICKS, i) end end | |
837 | end | |
838 | end) | |
839 | ||
840 | function FIX_LIGHTING() | |
841 | gLighting.Ambient = C3(0.5, 0.5, 0.5) | |
842 | gLighting.Brightness = 1 | |
843 | gLighting.GlobalShadows = true | |
844 | gLighting.Outlines = false | |
845 | gLighting.TimeOfDay = 14 | |
846 | gLighting.FogEnd = 100000 | |
847 | end | |
848 | ||
849 | function COLOR(PLAYER, BCOLOR) | |
850 | for i,v in pairs(PLAYER.Character:GetChildren()) do if v:IsA('Shirt') or v:IsA('Pants') then v:destroy() elseif v:IsA('ShirtGraphic') then v.Archivable = false v.Graphic = '' end end | |
851 | for i,v in pairs(PLAYER.Character.Head:GetChildren()) do if v:IsA('Decal') then v:destroy() end end | |
852 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
853 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
854 | v.BrickColor = BrickColor.new(BCOLOR) | |
855 | elseif v:IsA('Accessory') then | |
856 | v.Handle.BrickColor = BrickColor.new(BCOLOR) | |
857 | for a,b in pairs(v.Handle:GetChildren()) do | |
858 | if b:IsA('SpecialMesh') then | |
859 | b.TextureId = '' | |
860 | end | |
861 | end | |
862 | end | |
863 | end | |
864 | end | |
865 | ||
866 | function LAG(PLAYER) | |
867 | local POS = CFrame.new(math.random(-100000, 100000), math.random(-100000, 100000), math.random(-100000, 100000)) | |
868 | spawn(function() | |
869 | repeat wait() | |
870 | if PLAYER and PLAYER.Character then | |
871 | PLAYER.CameraMode = 'LockFirstPerson' | |
872 | PLAYER.Character.HumanoidRootPart.CFrame = POS | |
873 | PLAYER.Character.Torso.Anchored = true | |
874 | Instance.new('ForceField', PLAYER.Character) | |
875 | Instance.new('Smoke', PLAYER.Character.Head) | |
876 | end | |
877 | until not gPlayers:FindFirstChild(PLAYER.Name) | |
878 | end) | |
879 | end | |
880 | ||
881 | local FLYING = false | |
882 | ||
883 | if LP.Character and LP.Character:FindFirstChild('Humanoid') then | |
884 | LP.Character.Humanoid.Died:connect(function() FLYING = false end) | |
885 | end | |
886 | ||
887 | function sFLY() | |
888 | repeat wait() until LP and LP.Character and LP.Character:FindFirstChild('Torso') and LP.Character:FindFirstChild('Humanoid') | |
889 | repeat wait() until MOUSE | |
890 | ||
891 | local T = LP.Character.Torso | |
892 | local CONTROL = {F = 0, B = 0, L = 0, R = 0} | |
893 | local lCONTROL = {F = 0, B = 0, L = 0, R = 0} | |
894 | local SPEED = 0 | |
895 | ||
896 | local function FLY() | |
897 | FLYING = true | |
898 | local BG = Instance.new('BodyGyro', T) | |
899 | local BV = Instance.new('BodyVelocity', T) | |
900 | BG.P = 9e4 | |
901 | BG.maxTorque = Vector3.new(9e9, 9e9, 9e9) | |
902 | BG.cframe = T.CFrame | |
903 | BV.velocity = Vector3.new(0, 0.1, 0) | |
904 | BV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
905 | spawn(function() | |
906 | repeat wait() | |
907 | LP.Character.Humanoid.PlatformStand = true | |
908 | if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then | |
909 | SPEED = 50 | |
910 | elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then | |
911 | SPEED = 0 | |
912 | end | |
913 | if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then | |
914 | BV.velocity = ((gWorkspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((gWorkspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - gWorkspace.CurrentCamera.CoordinateFrame.p)) * SPEED | |
915 | lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R} | |
916 | elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then | |
917 | BV.velocity = ((gWorkspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((gWorkspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - gWorkspace.CurrentCamera.CoordinateFrame.p)) * SPEED | |
918 | else | |
919 | BV.velocity = Vector3.new(0, 0.1, 0) | |
920 | end | |
921 | BG.cframe = gWorkspace.CurrentCamera.CoordinateFrame | |
922 | until not FLYING | |
923 | CONTROL = {F = 0, B = 0, L = 0, R = 0} | |
924 | lCONTROL = {F = 0, B = 0, L = 0, R = 0} | |
925 | SPEED = 0 | |
926 | BG:destroy() | |
927 | BV:destroy() | |
928 | LP.Character.Humanoid.PlatformStand = false | |
929 | end) | |
930 | end | |
931 | ||
932 | MOUSE.KeyDown:connect(function(KEY) | |
933 | if KEY:lower() == 'w' then | |
934 | CONTROL.F = 1 | |
935 | elseif KEY:lower() == 's' then | |
936 | CONTROL.B = -1 | |
937 | elseif KEY:lower() == 'a' then | |
938 | CONTROL.L = -1 | |
939 | elseif KEY:lower() == 'd' then | |
940 | CONTROL.R = 1 | |
941 | end | |
942 | end) | |
943 | ||
944 | MOUSE.KeyUp:connect(function(KEY) | |
945 | if KEY:lower() == 'w' then | |
946 | CONTROL.F = 0 | |
947 | elseif KEY:lower() == 's' then | |
948 | CONTROL.B = 0 | |
949 | elseif KEY:lower() == 'a' then | |
950 | CONTROL.L = 0 | |
951 | elseif KEY:lower() == 'd' then | |
952 | CONTROL.R = 0 | |
953 | end | |
954 | end) | |
955 | FLY() | |
956 | end | |
957 | ||
958 | function NOFLY() | |
959 | FLYING = false | |
960 | LP.Character.Humanoid.PlatformStand = false | |
961 | end | |
962 | ||
963 | function RESET_MODEL(MODEL) | |
964 | for i,v in pairs(MODEL:GetChildren()) do | |
965 | if v:IsA('Seat') and v.Name == 'FakeTorso' then | |
966 | v:destroy() | |
967 | elseif v:IsA('CharacterMesh') or v:IsA('Shirt') or v:IsA('Pants') or v:IsA('Accessory') then | |
968 | v:destroy() | |
969 | elseif v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
970 | v.Transparency = 0 | |
971 | elseif v:IsA('ShirtGraphic') then | |
972 | v.Archivable = false | |
973 | v.Graphic = '' | |
974 | end | |
975 | end | |
976 | for i,v in pairs(MODEL.Torso:GetChildren()) do | |
977 | if v:IsA('SpecialMesh') then | |
978 | v:destroy() | |
979 | end | |
980 | end | |
981 | if MODEL.Head:FindFirstChild('Mesh') then | |
982 | MODEL.Head.Mesh:destroy() | |
983 | end | |
984 | if MODEL.Torso:FindFirstChild('Neck') then MODEL.Torso.Neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(90), math.rad(180), 0) end | |
985 | if MODEL.Torso:FindFirstChild('Left Shoulder') then MODEL.Torso['Left Shoulder'].C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(0, math.rad(-90), 0) end | |
986 | if MODEL.Torso:FindFirstChild('Right Shoulder') then MODEL.Torso['Right Shoulder'].C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0) end | |
987 | if MODEL.Torso:FindFirstChild('Left Hip') then MODEL.Torso['Left Hip'].C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, math.rad(-90), 0) end | |
988 | if MODEL.Torso:FindFirstChild('Right Hip') then MODEL.Torso['Right Hip'].C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, math.rad(90), 0) end | |
989 | end | |
990 | ||
991 | function UPDATE_MODEL(MODEL, USERNAME) | |
992 | local AppModel = gPlayers:GetCharacterAppearanceAsync(gPlayers:GetUserIdFromNameAsync(USERNAME)) | |
993 | MODEL.Name = USERNAME | |
994 | for i,v in pairs(AppModel:GetChildren()) do | |
995 | if v:IsA('SpecialMesh') or v:IsA('BlockMesh') or v:IsA('CylinderMesh') then | |
996 | v.Parent = MODEL.Head | |
997 | elseif v:IsA('Decal') then | |
998 | if MODEL.Head:FindFirstChild('face') then | |
999 | MODEL.Head.face.Texture = v.Texture | |
1000 | else | |
1001 | local FACE = Instance.new('Decal', MODEL.Head) | |
1002 | FACE.Texture = v.Texture | |
1003 | end | |
1004 | elseif v:IsA('BodyColors') or v:IsA('CharacterMesh') or v:IsA('Shirt') or v:IsA('Pants') or v:IsA('ShirtGraphic') then | |
1005 | if MODEL:FindFirstChild('Body Colors') then | |
1006 | MODEL['Body Colors']:destroy() | |
1007 | end | |
1008 | v.Parent = MODEL | |
1009 | elseif v:IsA('Accessory') then | |
1010 | v.Parent = MODEL | |
1011 | v.Handle.CFrame = MODEL.Head.CFrame * CFrame.new(0, MODEL.Head.Size.Y / 2, 0) * v.AttachmentPoint:inverse() | |
1012 | end | |
1013 | end | |
1014 | if not MODEL.Head:FindFirstChild('Mesh') then | |
1015 | local SM = Instance.new('SpecialMesh', MODEL.Head) | |
1016 | SM.MeshType = Enum.MeshType.Head | |
1017 | SM.Scale = Vector3.new(1.25, 1.25, 1.25) | |
1018 | end | |
1019 | end | |
1020 | ||
1021 | function CREEPER(PLAYER) | |
1022 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
1023 | if v:IsA('Shirt') or v:IsA('Pants') then | |
1024 | v:destroy() | |
1025 | elseif v:IsA('ShirtGraphic') then | |
1026 | v.Archivable = false | |
1027 | v.Graphic = '' | |
1028 | end | |
1029 | end | |
1030 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
1031 | if v:IsA('Accessory') then | |
1032 | v:destroy() | |
1033 | end | |
1034 | end | |
1035 | PLAYER.Character.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0) | |
1036 | PLAYER.Character.Torso['Right Shoulder'].C0 = CFrame.new(0,-1.5,-.5) * CFrame.Angles(0,math.rad(90),0) | |
1037 | PLAYER.Character.Torso['Left Shoulder'].C0 = CFrame.new(0,-1.5,-.5) * CFrame.Angles(0,math.rad(-90),0) | |
1038 | PLAYER.Character.Torso['Right Hip'].C0 = CFrame.new(0,-1,.5) * CFrame.Angles(0,math.rad(90),0) | |
1039 | PLAYER.Character.Torso['Left Hip'].C0 = CFrame.new(0,-1,.5) * CFrame.Angles(0,math.rad(-90),0) | |
1040 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
1041 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
1042 | v.BrickColor = BrickColor.new('Bright green') | |
1043 | end | |
1044 | end | |
1045 | end | |
1046 | ||
1047 | function SHREK(PLAYER) | |
1048 | COLOR(PLAYER, 'Bright green') | |
1049 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
1050 | if v:IsA('Shirt') or v:IsA('Pants') or v:IsA('Accessory') or v:IsA('CharacterMesh') then | |
1051 | v:destroy() | |
1052 | elseif v:IsA('ShirtGraphic') then | |
1053 | v.Archivable = false | |
1054 | v.Graphic = '' | |
1055 | end | |
1056 | end | |
1057 | for i,v in pairs(PLAYER.Character.Head:GetChildren()) do | |
1058 | if v:IsA('Decal') or v:IsA('SpecialMesh') then | |
1059 | v:destroy() | |
1060 | end | |
1061 | end | |
1062 | if PLAYER.Character:FindFirstChild('Shirt Graphic') then | |
1063 | PLAYER.Character['Shirt Graphic'].Archivable = false | |
1064 | PLAYER.Character['Shirt Graphic'].Graphic = '' | |
1065 | end | |
1066 | local M = Instance.new('SpecialMesh', PLAYER.Character.Head) | |
1067 | local S = Instance.new('Shirt', PLAYER.Character) | |
1068 | local P = Instance.new('Pants', PLAYER.Character) | |
1069 | M.MeshType = 'FileMesh' | |
1070 | M.MeshId = 'rbxassetid://19999257' | |
1071 | M.Offset = Vector3.new(-0.1, 0.1, 0) | |
1072 | M.TextureId = 'rbxassetid://156397869' | |
1073 | S.ShirtTemplate = 'rbxassetid://133078194' | |
1074 | P.PantsTemplate = 'rbxassetid://133078204' | |
1075 | end | |
1076 | ||
1077 | function DUCK(PLAYER) | |
1078 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
1079 | if v:IsA('Part') and v.Name ~= 'Torso' and v.Name ~= 'HumanoidRootPart' then | |
1080 | v.Transparency = 1 | |
1081 | elseif v:IsA('Shirt') or v:IsA('Pants') or v:IsA('Accessory') then | |
1082 | v:destroy() | |
1083 | elseif v:IsA('ShirtGraphic') then | |
1084 | v.Archivable = false | |
1085 | v.Graphic = '' | |
1086 | end | |
1087 | end | |
1088 | local DUCK = Instance.new('SpecialMesh', PLAYER.Character.Torso) | |
1089 | DUCK.MeshType = 'FileMesh' | |
1090 | DUCK.MeshId = 'rbxassetid://9419831' | |
1091 | DUCK.TextureId = 'rbxassetid://9419827' | |
1092 | DUCK.Scale = Vector3.new(5, 5, 5) | |
1093 | if PLAYER.Character.Head:FindFirstChild('face') then | |
1094 | PLAYER.Character.Head.face.Transparency = 1 | |
1095 | end | |
1096 | end | |
1097 | ||
1098 | function DOG(PLAYER) | |
1099 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
1100 | if v:IsA('Shirt') or v:IsA('Pants') then | |
1101 | v:destroy() | |
1102 | elseif v:IsA('ShirtGraphic') then | |
1103 | v.Archivable = false | |
1104 | v.Graphic = '' | |
1105 | end | |
1106 | end | |
1107 | PLAYER.Character.Torso.Transparency = 1 | |
1108 | PLAYER.Character.Torso.Neck.C0 = CFrame.new(0, -0.5, -2) * CFrame.Angles(math.rad(90), math.rad(180), 0) | |
1109 | PLAYER.Character.Torso['Right Shoulder'].C0 = CFrame.new(0.5, -1.5, -1.5) * CFrame.Angles(0, math.rad(90), 0) | |
1110 | PLAYER.Character.Torso['Left Shoulder'].C0 = CFrame.new(-0.5, -1.5, -1.5) * CFrame.Angles(0, math.rad(-90), 0) | |
1111 | PLAYER.Character.Torso['Right Hip'].C0 = CFrame.new(1.5, -1, 1.5) * CFrame.Angles(0, math.rad(90), 0) | |
1112 | PLAYER.Character.Torso['Left Hip'].C0 = CFrame.new(-1.5, -1, 1.5) * CFrame.Angles(0, math.rad(-90), 0) | |
1113 | local FakeTorso = Instance.new('Seat', PLAYER.Character) | |
1114 | local BF = Instance.new('BodyForce', FakeTorso) | |
1115 | local W = Instance.new('Weld', PLAYER.Character.Torso) | |
1116 | FakeTorso.Name = 'FakeTorso' | |
1117 | FakeTorso.TopSurface = 0 | |
1118 | FakeTorso.BottomSurface = 0 | |
1119 | FakeTorso.Size = Vector3.new(3,1,4) | |
1120 | FakeTorso.BrickColor = BrickColor.new('Brown') | |
1121 | FakeTorso.CFrame = PLAYER.Character.Torso.CFrame | |
1122 | BF.Force = Vector3.new(0, FakeTorso:GetMass() * 196.25, 0) | |
1123 | W.Part0 = PLAYER.Character.Torso | |
1124 | W.Part1 = FakeTorso | |
1125 | W.C0 = CFrame.new(0, -0.5, 0) | |
1126 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
1127 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
1128 | v.BrickColor = BrickColor.new('Brown') | |
1129 | end | |
1130 | end | |
1131 | end | |
1132 | ||
1133 | function ALIEN(PLAYER) | |
1134 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
1135 | if v:IsA('Shirt') or v:IsA('Pants') or v:IsA('Accessory') then | |
1136 | v:destroy() | |
1137 | elseif v:IsA('ShirtGraphic') then | |
1138 | v.Archivable = false | |
1139 | v.Graphic = '' | |
1140 | elseif v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
1141 | v.BrickColor = BrickColor.new('Fossil') | |
1142 | end | |
1143 | end | |
1144 | ALIEN_H:Clone().Parent = PLAYER.Character | |
1145 | end | |
1146 | ||
1147 | function DECALSPAM(INSTANCE, ID) | |
1148 | for i,v in pairs(INSTANCE:GetChildren()) do | |
1149 | if v:IsA('BasePart') then | |
1150 | spawn(function() | |
1151 | local FACES = {'Back', 'Bottom', 'Front', 'Left', 'Right', 'Top'} | |
1152 | local CURRENT_FACE = 1 | |
1153 | for i = 1, 6 do | |
1154 | local DECAL = Instance.new('Decal', v) | |
1155 | DECAL.Name = 'decal_seth' | |
1156 | DECAL.Texture = 'rbxassetid://' .. ID - 1 | |
1157 | DECAL.Face = FACES[CURRENT_FACE] | |
1158 | CURRENT_FACE = CURRENT_FACE + 1 | |
1159 | end | |
1160 | end) | |
1161 | end | |
1162 | DECALSPAM(v, ID) | |
1163 | end | |
1164 | end | |
1165 | ||
1166 | function UNDECALSPAM(INSTANCE) | |
1167 | for i,v in pairs(INSTANCE:GetChildren()) do | |
1168 | if v:IsA('BasePart') then | |
1169 | for a,b in pairs(v:GetChildren()) do | |
1170 | if b:IsA('Decal') and b.Name == 'decal_seth' then | |
1171 | b:destroy() | |
1172 | end | |
1173 | end | |
1174 | end | |
1175 | UNDECALSPAM(v) | |
1176 | end | |
1177 | end | |
1178 | ||
1179 | function CREATE_DONG(PLAYER, DONG_COLOR) | |
1180 | if PLAYER.Character:FindFirstChild('DONG') then | |
1181 | PLAYER.Character.DONG:destroy() | |
1182 | end | |
1183 | local D = Instance.new('Model', PLAYER.Character) | |
1184 | D.Name = 'DONG' | |
1185 | ||
1186 | local BG = Instance.new('BodyGyro', PLAYER.Character.Torso) | |
1187 | local MAIN = Instance.new('Part', PLAYER.Character['DONG']) | |
1188 | local M1 = Instance.new('CylinderMesh', MAIN) | |
1189 | local W1 = Instance.new('Weld', PLAYER.Character.Head) | |
1190 | local P1 = Instance.new('Part', PLAYER.Character['DONG']) | |
1191 | local M2 = Instance.new('SpecialMesh', P1) | |
1192 | local W2 = Instance.new('Weld', P1) | |
1193 | local B1 = Instance.new('Part', PLAYER.Character['DONG']) | |
1194 | local M3 = Instance.new('SpecialMesh', B1) | |
1195 | local W3 = Instance.new('Weld', B1) | |
1196 | local B2 = Instance.new('Part', PLAYER.Character['DONG']) | |
1197 | local M4 = Instance.new('SpecialMesh', B2) | |
1198 | local W4 = Instance.new('Weld', B2) | |
1199 | MAIN.TopSurface = 0 MAIN.BottomSurface = 0 MAIN.Name = 'Main' MAIN.Size = Vector3.new(0.6, 2.5, 0.6) MAIN.BrickColor = BrickColor.new(DONG_COLOR) MAIN.Position = PLAYER.Character.Head.Position MAIN.CanCollide = false | |
1200 | W1.Part0 = MAIN W1.Part1 = PLAYER.Character.Head W1.C0 = CFrame.new(0, 0.25, 2.1) * CFrame.Angles(math.rad(45), 0, 0) | |
1201 | P1.Name = 'Mush' P1.BottomSurface = 0 P1.TopSurface = 0 P1.Size = Vector3.new(0.6, 0.6, 0.6) P1.CFrame = CFrame.new(MAIN.Position) P1.BrickColor = BrickColor.new('Pink') P1.CanCollide = false | |
1202 | M2.MeshType = 'Sphere' | |
1203 | W2.Part0 = MAIN W2.Part1 = P1 W2.C0 = CFrame.new(0, 1.3, 0) | |
1204 | B1.Name = 'Left Ball' B1.BottomSurface = 0 B1.TopSurface = 0 B1.CanCollide = false B1.Size = Vector3.new(1, 1, 1) B1.CFrame = CFrame.new(PLAYER.Character['Left Leg'].Position) B1.BrickColor = BrickColor.new(DONG_COLOR) | |
1205 | M3.Parent = B1 M3.MeshType = 'Sphere' | |
1206 | W3.Part0 = PLAYER.Character['Left Leg'] W3.Part1 = B1 W3.C0 = CFrame.new(0, 0.5, -0.5) | |
1207 | B2.Name = 'Right Ball' B2.BottomSurface = 0 B2.CanCollide = false B2.TopSurface = 0 B2.Size = Vector3.new(1, 1, 1) B2.CFrame = CFrame.new(PLAYER.Character['Right Leg'].Position) B2.BrickColor = BrickColor.new(DONG_COLOR) | |
1208 | M4.MeshType = 'Sphere' | |
1209 | W4.Part0 = PLAYER.Character['Right Leg'] W4.Part1 = B2 W4.C0 = CFrame.new(0, 0.5, -0.5) | |
1210 | end | |
1211 | ||
1212 | function SCALE(C, S) | |
1213 | if tonumber(S) < 0.5 then S = 0.5 elseif tonumber(S) > 25 then S = 25 end | |
1214 | ||
1215 | local HAT_CLONE = {} | |
1216 | ||
1217 | for i,v in pairs(C:GetChildren()) do if v:IsA('Accessory') then local HC = v:Clone() table.insert(HAT_CLONE, HC) v:destroy() end end | |
1218 | ||
1219 | local HEAD = C.Head | |
1220 | local TORSO = C.Torso | |
1221 | local LA = C['Left Arm'] | |
1222 | local RA = C['Right Arm'] | |
1223 | local LL = C['Left Leg'] | |
1224 | local RL = C['Right Leg'] | |
1225 | local HRP = C.HumanoidRootPart | |
1226 | ||
1227 | HEAD.Size = Vector3.new(S * 2, S, S) | |
1228 | TORSO.Size = Vector3.new(S * 2, S * 2, S) | |
1229 | LA.Size = Vector3.new(S, S * 2, S) | |
1230 | RA.Size = Vector3.new(S, S * 2, S) | |
1231 | LL.Size = Vector3.new(S, S * 2, S) | |
1232 | RL.Size = Vector3.new(S, S * 2, S) | |
1233 | HRP.Size = Vector3.new(S * 2, S * 2, S) | |
1234 | ||
1235 | local M1 = Instance.new('Motor6D', TORSO) | |
1236 | local M2 = Instance.new('Motor6D', TORSO) | |
1237 | local M3 = Instance.new('Motor6D', TORSO) | |
1238 | local M4 = Instance.new('Motor6D', TORSO) | |
1239 | local M5 = Instance.new('Motor6D', TORSO) | |
1240 | local M6 = Instance.new('Motor6D', HRP) | |
1241 | ||
1242 | M1.Name = 'Neck' M1.Part0 = TORSO M1.Part1 = HEAD M1.C0 = CFrame.new(0, 1 * S, 0) * CFrame.Angles(-1.6, 0, 3.1) M1.C1 = CFrame.new(0, -0.5 * S, 0) * CFrame.Angles(-1.6, 0, 3.1) | |
1243 | M2.Name = 'Left Shoulder' M2.Part0 = TORSO M2.Part1 = LA M2.C0 = CFrame.new(-1 * S, 0.5 * S, 0) * CFrame.Angles(0, -1.6, 0) M2.C1 = CFrame.new(0.5 * S, 0.5 * S, 0) * CFrame.Angles(0, -1.6, 0) | |
1244 | M3.Name = 'Right Shoulder' M3.Part0 = TORSO M3.Part1 = RA M3.C0 = CFrame.new(1 * S, 0.5 * S, 0) * CFrame.Angles(0, 1.6, 0) M3.C1 = CFrame.new(-0.5 * S, 0.5 * S, 0) * CFrame.Angles(0, 1.6, 0) | |
1245 | M4.Name = 'Left Hip' M4.Part0 = TORSO M4.Part1 = LL M4.C0 = CFrame.new(-1 * S, -1 * S, 0) * CFrame.Angles(0, -1.6, 0) M4.C1 = CFrame.new(-0.5 * S, 1 * S, 0) * CFrame.Angles(0, -1.6, 0) | |
1246 | M5.Name = 'Right Hip' M5.Part0 = TORSO M5.Part1 = RL M5.C0 = CFrame.new(1 * S, -1 * S, 0) * CFrame.Angles(0, 1.6, 0) M5.C1 = CFrame.new(0.5 * S, 1 * S, 0) * CFrame.Angles(0, 1.6, 0) | |
1247 | M6.Name = 'RootJoint' M6.Part0 = HRP M6.Part1 = TORSO M6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1) M6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1) | |
1248 | ||
1249 | for i,v in pairs(HAT_CLONE) do v.Parent = C end | |
1250 | end | |
1251 | ||
1252 | function CAPE(COLOR) | |
1253 | if LP.Character:FindFirstChild('Cape') then LP.Character.Cape:destroy() end | |
1254 | ||
1255 | repeat wait() until LP and LP.Character and LP.Character:FindFirstChild('Torso') | |
1256 | ||
1257 | local T = LP.Character.Torso | |
1258 | ||
1259 | local C = Instance.new('Part', T.Parent) | |
1260 | C.Name = 'cape_seth' | |
1261 | C.Anchored = false | |
1262 | C.CanCollide = false | |
1263 | C.TopSurface = 0 | |
1264 | C.BottomSurface = 0 | |
1265 | C.BrickColor = BrickColor.new(COLOR) | |
1266 | C.Material = 'Neon' | |
1267 | C.Size = Vector3.new(0.2, 0.2, 0.2) | |
1268 | ||
1269 | local M = Instance.new('BlockMesh', C) | |
1270 | M.Scale = Vector3.new(9, 17.5, 0.5) | |
1271 | ||
1272 | local M1 = Instance.new('Motor', C) | |
1273 | M1.Part0 = C | |
1274 | M1.Part1 = T | |
1275 | M1.MaxVelocity = 1 | |
1276 | M1.C0 = CFrame.new(0, 1.75, 0) * CFrame.Angles(0, math.rad(90), 0) | |
1277 | M1.C1 = CFrame.new(0, 1, .45) * CFrame.Angles(0, math.rad(90), 0) | |
1278 | ||
1279 | local WAVE = false | |
1280 | ||
1281 | repeat wait(1 / 44) | |
1282 | local ANG = 0.2 | |
1283 | local oldMag = T.Velocity.magnitude | |
1284 | local MV = 0.1 | |
1285 | ||
1286 | if WAVE then | |
1287 | ANG = ANG + ((T.Velocity.magnitude / 10) * 0.05) + 1 | |
1288 | WAVE = false | |
1289 | else | |
1290 | WAVE = false | |
1291 | end | |
1292 | ANG = ANG + math.min(T.Velocity.magnitude / 30, 1) | |
1293 | M1.MaxVelocity = math.min((T.Velocity.magnitude / 10), 0.04) + MV | |
1294 | M1.DesiredAngle = -ANG | |
1295 | if M1.CurrentAngle < -0.05 and M1.DesiredAngle > -.05 then | |
1296 | M1.MaxVelocity = 0.04 | |
1297 | end | |
1298 | repeat | |
1299 | wait() | |
1300 | until M1.CurrentAngle == M1.DesiredAngle or math.abs(T.Velocity.magnitude - oldMag) >= (T.Velocity.magnitude / 10) + 1 | |
1301 | if T.Velocity.magnitude < 0.1 then | |
1302 | wait(0.1) | |
1303 | end | |
1304 | until not C or C.Parent ~= T.Parent | |
1305 | end | |
1306 | ||
1307 | function INFECT(PLAYER) | |
1308 | for i,v in pairs(PLAYER.Character:GetChildren()) do | |
1309 | Instance.new('Folder', PLAYER.Character).Name = 'infected_seth' | |
1310 | if v:IsA('Accessory') or v:IsA('Shirt') or v:IsA('Pants') then | |
1311 | v:destroy() | |
1312 | elseif v:IsA('ShirtGraphic') then | |
1313 | v.Archivable = false | |
1314 | v.Graphic = '' | |
1315 | end | |
1316 | end | |
1317 | ||
1318 | if PLAYER.Character.Head:FindFirstChild('face') then | |
1319 | PLAYER.Character.Head.face.Texture = 'rbxassetid://7074882' | |
1320 | end | |
1321 | ||
1322 | for i,v in pairs (PLAYER.Character:GetChildren()) do | |
1323 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
1324 | if v.Name == 'Head' or v.Name == 'Left Arm' or v.Name == 'Right Arm' then | |
1325 | v.BrickColor = BrickColor.new('Medium green') | |
1326 | elseif v.Name == 'Torso' or v.Name == 'Left Leg' or v.Name == 'Right Leg' then | |
1327 | v.BrickColor = BrickColor.new('Brown') | |
1328 | end | |
1329 | end | |
1330 | end | |
1331 | ||
1332 | local T = PLAYER.Character.Torso.Touched:connect(function(TC) | |
1333 | if not TC.Parent:FindFirstChild('infected_seth') then | |
1334 | local GPFC = gPlayers:GetPlayerFromCharacter(TC.Parent) | |
1335 | if GPFC then | |
1336 | INFECT(GPFC) | |
1337 | end | |
1338 | end | |
1339 | end) | |
1340 | end | |
1341 | ||
1342 | function fWeld(zName, zParent, zPart0, zPart1, zCoco, A, B, C, D, E, F) | |
1343 | local funcw = Instance.new('Weld') funcw.Name = zName funcw.Parent = zParent funcw.Part0 = zPart0 funcw.Part1 = zPart1 | |
1344 | if (zCoco) then | |
1345 | funcw.C0 = CFrame.new(A, B, C) * CFrame.fromEulerAnglesXYZ(D, E, F) | |
1346 | else | |
1347 | funcw.C1 = CFrame.new(A, B, C) * CFrame.fromEulerAnglesXYZ(D, E, F) | |
1348 | end | |
1349 | return funcw | |
1350 | end | |
1351 | ||
1352 | function BANG(VICTIM) | |
1353 | spawn(function() | |
1354 | local P1 = gPlayers.LocalPlayer.Character.Torso | |
1355 | local V1 = gPlayers[VICTIM].Character.Torso | |
1356 | ||
1357 | V1.Parent.Humanoid.PlatformStand = true | |
1358 | ||
1359 | P1['Left Shoulder']:destroy() local LA1 = Instance.new('Weld', P1) LA1.Part0 = P1 LA1.Part1 = P1.Parent['Left Arm'] LA1.C0 = CFrame.new(-1.5, 0, 0) LA1.Name = 'Left Shoulder' | |
1360 | ||
1361 | P1['Right Shoulder']:destroy() local RS1 = Instance.new('Weld', P1) RS1.Part0 = P1 RS1.Part1 = P1.Parent['Right Arm'] RS1.C0 = CFrame.new(1.5, 0, 0) RS1.Name = 'Right Shoulder' | |
1362 | ||
1363 | V1['Left Shoulder']:destroy() local LS2 = Instance.new('Weld', V1) LS2.Part0 = V1 LS2.Part1 = V1.Parent['Left Arm'] LS2.C0 = CFrame.new(-1.5, 0, 0) LS2.Name = 'Left Shoulder' | |
1364 | ||
1365 | V1['Right Shoulder']:destroy() local RS2 = Instance.new('Weld', V1) RS2.Part0 = V1 RS2.Part1 = V1.Parent['Right Arm'] RS2.C0 = CFrame.new(1.5, 0, 0) RS2.Name = 'Right Shoulder' | |
1366 | ||
1367 | V1['Left Hip']:destroy() local LH2 = Instance.new('Weld', V1) LH2.Part0 = V1 LH2.Part1 = V1.Parent['Left Leg'] LH2.C0 = CFrame.new(-0.5, -2, 0) LH2.Name = 'Left Hip' | |
1368 | ||
1369 | V1['Right Hip']:destroy() local RH2 = Instance.new('Weld', V1) RH2.Part0 = V1 RH2.Part1 = V1.Parent['Right Leg'] RH2.C0 = CFrame.new(0.5, -2, 0) RH2.Name = 'Right Hip' | |
1370 | ||
1371 | local D = Instance.new('Part', P1) D.TopSurface = 0 D.BottomSurface = 0 D.CanCollide = false D.BrickColor = BrickColor.new('Pastel brown') D.Shape = 'Ball' D.Size = Vector3.new(1, 1, 1) | |
1372 | ||
1373 | local DM1 = Instance.new('SpecialMesh', D) DM1.MeshType = 'Sphere' DM1.Scale = Vector3.new(0.4, 0.4, 0.4) | |
1374 | ||
1375 | fWeld('weld', P1, P1, D, true, -0.2, -1.3, -0.6, 0, 0, 0) | |
1376 | ||
1377 | local D2 = D:Clone() D2.Parent = P1 | |
1378 | ||
1379 | fWeld('weld', P1, P1, D2, true, 0.2, -1.3, -0.6, 0, 0, 0) | |
1380 | ||
1381 | local C = Instance.new('Part', P1) C.TopSurface = 0 C.BottomSurface = 0 C.CanCollide = false C.BrickColor = BrickColor.new('Pastel brown') C.Size = Vector3.new(0.4, 1.3, 0.4) | |
1382 | ||
1383 | fWeld('weld', P1, P1, C, true, 0, -1, -0.52 + (-C.Size.y / 2), math.rad(-80), 0, 0) | |
1384 | ||
1385 | local C2 = D:Clone() C2.BrickColor = BrickColor.new('Pink') C2.Mesh.Scale = Vector3.new(0.4, 0.62, 0.4) C2.Parent = P1 | |
1386 | ||
1387 | fWeld('weld', C, C, C2, true, 0, 0 + (C.Size.y / 2), 0, math.rad(-10), 0, 0) | |
1388 | ||
1389 | local CM = Instance.new('CylinderMesh', C) | |
1390 | ||
1391 | local BL = Instance.new('Part', V1) BL.TopSurface = 0 BL.BottomSurface = 0 BL.CanCollide = false BL.BrickColor = BrickColor.new('Pastel brown') BL.Shape = 'Ball' BL.Size = Vector3.new(1, 1, 1) | |
1392 | ||
1393 | local DM2 = Instance.new('SpecialMesh', BL) DM2.MeshType = 'Sphere' DM2.Scale = Vector3.new(1.2, 1.2, 1.2) | |
1394 | ||
1395 | fWeld('weld', V1, V1, BL, true, -0.5, 0.5, -0.6, 0, 0, 0) | |
1396 | ||
1397 | local BR = Instance.new('Part', V1) BR.TopSurface = 0 BR.BottomSurface = 0 BR.CanCollide = false BR.BrickColor = BrickColor.new('Pastel brown') BR.Shape = 'Ball' BR.Size = Vector3.new(1, 1, 1) | |
1398 | ||
1399 | local DM3 = Instance.new('SpecialMesh', BR) DM3.MeshType = 'Sphere' DM3.Scale = Vector3.new(1.2, 1.2, 1.2) | |
1400 | ||
1401 | fWeld('weld', V1, V1, BR, true, 0.5, 0.5, -0.6, 0, 0, 0) | |
1402 | ||
1403 | local BLN = Instance.new('Part', V1) BLN.TopSurface = 0 BLN.BottomSurface = 0 BLN.CanCollide = false BLN.BrickColor = BrickColor.new('Pink') BLN.Shape = 'Ball' BLN.Size = Vector3.new(1, 1, 1) | |
1404 | ||
1405 | local DM4 = Instance.new('SpecialMesh', BLN) DM4.MeshType = 'Sphere' DM4.Scale = Vector3.new(0.2, 0.2, 0.2) | |
1406 | ||
1407 | fWeld('weld', V1, V1, BLN, true, -0.5, 0.5, -1.2, 0, 0, 0) | |
1408 | ||
1409 | local BRN = Instance.new('Part', V1) BRN.TopSurface = 0 BRN.BottomSurface = 0 BRN.CanCollide = false BRN.BrickColor = BrickColor.new('Pink') BRN.Shape = 'Ball' BRN.Size = Vector3.new(1, 1, 1) | |
1410 | ||
1411 | local DM5 = Instance.new('SpecialMesh', BRN) DM5.MeshType = 'Sphere' DM5.Scale = Vector3.new(0.2, 0.2, 0.2) | |
1412 | ||
1413 | fWeld('weld', V1, V1, BRN, true, 0.5, 0.5, -1.2, 0, 0, 0) | |
1414 | ||
1415 | LH2.C1 = CFrame.new(0.2, 1.6, 0.4) * CFrame.Angles(3.9, -0.4, 0) RH2.C1 = CFrame.new(-0.2, 1.6, 0.4) * CFrame.Angles(3.9, 0.4, 0) | |
1416 | LS2.C1 = CFrame.new(-0.2, 0.9, 0.6) * CFrame.Angles(3.9, -0.2, 0) RS2.C1 = CFrame.new(0.2, 0.9, 0.6) * CFrame.Angles(3.9, 0.2, 0) | |
1417 | LA1.C1 = CFrame.new(-0.5, 0.7, 0) * CFrame.Angles(-0.9, -0.4, 0) RS1.C1 = CFrame.new(0.5, 0.7, 0) * CFrame.Angles(-0.9, 0.4, 0) | |
1418 | ||
1419 | if P1:FindFirstChild('weldx') then P1.weldx:destroy() end | |
1420 | ||
1421 | WE = fWeld('weldx', P1, P1, V1, true, 0, -0.9, -1.3, math.rad(-90), 0, 0) | |
1422 | ||
1423 | local N = V1.Neck N.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0) | |
1424 | end) | |
1425 | spawn(function() while wait() do for i = 1, 6 do WE.C1 = WE.C1 * CFrame.new(0, -0.3, 0) end for i = 1, 6 do WE.C1 = WE.C1 * CFrame.new(0, 0.3, 0) end end end) | |
1426 | end | |
1427 | ||
1428 | function RESPAWN(PLAYER) | |
1429 | local M = Instance.new('Model', gWorkspace) M.Name = 'respawn_seth' | |
1430 | local T = Instance.new('Part', M) T.Name = 'Torso' T.CanCollide = false T.Transparency = 1 | |
1431 | Instance.new('Humanoid', M) | |
1432 | PLAYER.Character = M | |
1433 | end | |
1434 | ||
1435 | function LOAD_MESSAGE(STRING) | |
1436 | gPlayers.LocalPlayer.CharacterAppearanceId = 20018 | |
1437 | RESPAWN(LP) | |
1438 | ||
1439 | R = false | |
1440 | LP.CharacterAdded:connect(function() | |
1441 | if not R then | |
1442 | wait(0.5) | |
1443 | if LP.Character:FindFirstChild('Humanoid') then | |
1444 | MAIN_HAT = LP.Character:FindFirstChild('BunnyEarsOfCaprice'):Clone() | |
1445 | end | |
1446 | R = true | |
1447 | end | |
1448 | end) | |
1449 | repeat wait() until R | |
1450 | RESPAWN(LP) | |
1451 | LP.CharacterAppearanceId = 0 | |
1452 | ||
1453 | if MAIN_HAT then | |
1454 | MAIN_HAT.Handle.CanCollide = true | |
1455 | local M = MAIN_HAT.Handle.BunnyTools.EggScript3:Clone() | |
1456 | local P = Instance.new('Part') | |
1457 | M.Disabled = false | |
1458 | M.Parent = P | |
1459 | MAIN_HAT.Handle.BunnyTools.EggMesh3:Clone().Parent = P | |
1460 | MAIN_HAT:destroy() | |
1461 | P.Parent = LP.Character | |
1462 | repeat wait() until LP:FindFirstChild('ChessMsg') | |
1463 | MG = LP:FindFirstChild('ChessMsg') | |
1464 | MG.Name = 'message_seth' | |
1465 | MG.Text = '' | |
1466 | MG.Parent = gWorkspace | |
1467 | MESSAGE(STRING) | |
1468 | P:destroy() | |
1469 | for i,v in pairs(gWorkspace:GetChildren()) do | |
1470 | if v:IsA('Part') and v.BrickColor == BrickColor.new('Bright red') and v.Reflectance == 0 and v.Transparency == 0 and not v.Anchored and v.CanCollide and v.Locked and v:FindFirstChild('Decal') and v.Size == Vector3.new(8, 0.4, 8) then | |
1471 | if v.Decal.Texture == 'http://www.roblox.com/asset/?id=1531000' and v.Transparency == 0 and v.Decal.Face == Enum.NormalId.Top then | |
1472 | v:destroy() | |
1473 | end | |
1474 | end | |
1475 | end | |
1476 | end | |
1477 | end | |
1478 | ||
1479 | function MESSAGE(STRING) | |
1480 | if not SHOWING_MESSAGE then | |
1481 | spawn(function() | |
1482 | SHOWING_MESSAGE = true | |
1483 | MG.Text = STRING | |
1484 | wait(5) | |
1485 | MG.Text = '' | |
1486 | SHOWING_MESSAGE = false | |
1487 | end) | |
1488 | end | |
1489 | end | |
1490 | ||
1491 | _G.CLICK_TP = false | |
1492 | local M_CTRL = false | |
1493 | ||
1494 | MOUSE.KeyDown:connect(function(K) if K:byte() == 50 then M_CTRL = true end end) | |
1495 | MOUSE.KeyUp:connect(function(K) if K:byte() == 50 then M_CTRL = false end end) | |
1496 | MOUSE.Button1Down:connect(function() if _G.CLICK_TP and M_CTRL and MOUSE.Target and LP.Character and LP.Character:FindFirstChild('HumanoidRootPart') then LP.Character.HumanoidRootPart.CFrame = CFrame.new(MOUSE.Hit.p) + Vector3.new(0, 3, 0) end end) | |
1497 | ||
1498 | gLighting.Outlines = false -- / outlines are gross | |
1499 | ||
1500 | if FIND_IN_TABLE(BANS, LP.userId) then LP:Kick() end | |
1501 | ||
1502 | for i,v in pairs(gPlayers:GetPlayers()) do if FIND_IN_TABLE(BANS, v.userId) then table.insert(KICKS, v) else UPDATE_CHAT(v) end end | |
1503 | ||
1504 | -- / commands | |
1505 | ||
1506 | ADD_COMMAND('ff','ff [plr]', {}, | |
1507 | function(ARGS, SPEAKER) | |
1508 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1509 | for i,v in pairs(PLAYERS) do | |
1510 | Instance.new('ForceField', gPlayers[v].Character) | |
1511 | end | |
1512 | end) | |
1513 | ||
1514 | ADD_COMMAND('unff','unff [plr]',{}, | |
1515 | function(ARGS, SPEAKER) | |
1516 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1517 | for i,v in pairs(PLAYERS) do | |
1518 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
1519 | if v:IsA('ForceField') then | |
1520 | v:destroy() | |
1521 | end | |
1522 | end | |
1523 | end | |
1524 | end) | |
1525 | ||
1526 | ADD_COMMAND('fire','fire [plr] [r] [g] [b]',{}, | |
1527 | function(ARGS, SPEAKER) | |
1528 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1529 | for i,v in pairs(PLAYERS) do | |
1530 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
1531 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
1532 | local F = Instance.new('Fire', v) | |
1533 | if ARGS[2] and ARGS[3] and ARGS[4] then | |
1534 | F.Color = C3(ARGS[2], ARGS[3], ARGS[4]) | |
1535 | F.SecondaryColor = C3(ARGS[2], ARGS[3], ARGS[4]) | |
1536 | end | |
1537 | end | |
1538 | end | |
1539 | end | |
1540 | end) | |
1541 | ||
1542 | ADD_COMMAND('unfire','unfire [plr]',{}, | |
1543 | function(ARGS, SPEAKER) | |
1544 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1545 | for i,v in pairs(PLAYERS) do | |
1546 | local PCHAR = gPlayers[v].Character | |
1547 | for i,v in pairs(PCHAR:GetChildren()) do | |
1548 | for i,v in pairs(v:GetChildren()) do | |
1549 | if v:IsA('Fire') then | |
1550 | v:destroy() | |
1551 | end | |
1552 | end | |
1553 | end | |
1554 | end | |
1555 | end) | |
1556 | ||
1557 | ADD_COMMAND('sp','sp [plr] [r] [g] [b]',{'sparkles'}, | |
1558 | function(ARGS, SPEAKER) | |
1559 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1560 | for i,v in pairs(PLAYERS) do | |
1561 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
1562 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
1563 | if ARGS[2] and ARGS[3] and ARGS[4] then | |
1564 | Instance.new('Sparkles', v).Color = C3(ARGS[2], ARGS[3], ARGS[4]) | |
1565 | else | |
1566 | Instance.new('Sparkles', v) | |
1567 | end | |
1568 | end | |
1569 | end | |
1570 | end | |
1571 | end) | |
1572 | ||
1573 | ADD_COMMAND('unsp','unsp [plr]',{'unsparkles'}, | |
1574 | function(ARGS, SPEAKER) | |
1575 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1576 | for i,v in pairs(PLAYERS) do | |
1577 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
1578 | for i,v in pairs(v:GetChildren()) do | |
1579 | if v:IsA('Sparkles') then | |
1580 | v:destroy() | |
1581 | end | |
1582 | end | |
1583 | end | |
1584 | end | |
1585 | end) | |
1586 | ||
1587 | ADD_COMMAND('smoke','smoke [plr]',{}, | |
1588 | function(ARGS, SPEAKER) | |
1589 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1590 | for i,v in pairs(PLAYERS) do | |
1591 | Instance.new('Smoke', gPlayers[v].Character.Torso) | |
1592 | end | |
1593 | end) | |
1594 | ||
1595 | ADD_COMMAND('unsmoke','unsmoke [plr]',{}, | |
1596 | function(ARGS, SPEAKER) | |
1597 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1598 | for i,v in pairs(PLAYERS) do | |
1599 | for i,v in pairs(gPlayers[v].Character.Torso:GetChildren()) do | |
1600 | if v:IsA('Smoke') then | |
1601 | v:destroy() | |
1602 | end | |
1603 | end | |
1604 | end | |
1605 | end) | |
1606 | ||
1607 | ADD_COMMAND('btools','btools [plr]',{}, | |
1608 | function(ARGS, SPEAKER) | |
1609 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1610 | for i,v in pairs(PLAYERS) do | |
1611 | Instance.new('HopperBin', gPlayers[v].Backpack).BinType = 2 | |
1612 | Instance.new('HopperBin', gPlayers[v].Backpack).BinType = 3 | |
1613 | Instance.new('HopperBin', gPlayers[v].Backpack).BinType = 4 | |
1614 | end | |
1615 | end) | |
1616 | ||
1617 | ADD_COMMAND('god','god [plr]',{}, | |
1618 | function(ARGS, SPEAKER) | |
1619 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1620 | for i,v in pairs(PLAYERS) do | |
1621 | local PCHAR = gPlayers[v].Character | |
1622 | if PCHAR:FindFirstChild('Humanoid') then | |
1623 | PCHAR.Humanoid.MaxHealth = math.huge PCHAR.Humanoid.Health = PCHAR.Humanoid.MaxHealth | |
1624 | end | |
1625 | end | |
1626 | end) | |
1627 | ||
1628 | ADD_COMMAND('sgod','sgod [plr]',{}, | |
1629 | function(ARGS, SPEAKER) | |
1630 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1631 | for i,v in pairs(PLAYERS) do | |
1632 | local PCHAR = gPlayers[v].Character | |
1633 | if PCHAR:FindFirstChild('Humanoid') then | |
1634 | PCHAR.Humanoid.MaxHealth = 10000000 PCHAR.Humanoid.Health = PCHAR.Humanoid.MaxHealth | |
1635 | end | |
1636 | end | |
1637 | end) | |
1638 | ||
1639 | ADD_COMMAND('ungod','ungod [plr]',{}, | |
1640 | function(ARGS, SPEAKER) | |
1641 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1642 | for i,v in pairs(PLAYERS) do | |
1643 | local PCHAR = gPlayers[v].Character | |
1644 | if PCHAR:FindFirstChild('Humanoid') then | |
1645 | PCHAR.Humanoid.MaxHealth = 100 | |
1646 | end | |
1647 | end | |
1648 | end) | |
1649 | ||
1650 | ADD_COMMAND('heal','heal [plr]',{}, | |
1651 | function(ARGS, SPEAKER) | |
1652 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1653 | for i,v in pairs(PLAYERS) do | |
1654 | local PCHAR = gPlayers[v].Character | |
1655 | if PCHAR:FindFirstChild('Humanoid') then | |
1656 | PCHAR.Humanoid.Health = PCHAR.Humanoid.MaxHealth | |
1657 | end | |
1658 | end | |
1659 | end) | |
1660 | ||
1661 | ADD_COMMAND('freeze','freeze [plr]',{'frz'}, | |
1662 | function(ARGS, SPEAKER) | |
1663 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1664 | for i,v in pairs(PLAYERS) do | |
1665 | for i,v in pairs(PLAYERS) do | |
1666 | local PCHAR = gPlayers[v].Character | |
1667 | for i,v in pairs(PCHAR:GetChildren()) do | |
1668 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
1669 | v.Anchored = true | |
1670 | end | |
1671 | end | |
1672 | end | |
1673 | end | |
1674 | end) | |
1675 | ||
1676 | ADD_COMMAND('thaw','thaw [plr]',{'unfreeze','unfrz'}, | |
1677 | function(ARGS, SPEAKER) | |
1678 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1679 | for i,v in pairs(PLAYERS) do | |
1680 | for i,v in pairs(PLAYERS) do | |
1681 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
1682 | if v:IsA('Part') then | |
1683 | v.Anchored = false | |
1684 | end | |
1685 | end | |
1686 | end | |
1687 | end | |
1688 | end) | |
1689 | ||
1690 | ADD_COMMAND('kill','kill [plr]',{}, | |
1691 | function(ARGS, SPEAKER) | |
1692 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1693 | for i,v in pairs(PLAYERS) do | |
1694 | gPlayers[v].Character:BreakJoints() | |
1695 | end | |
1696 | end) | |
1697 | ||
1698 | ADD_COMMAND('sound','sound [id]',{}, | |
1699 | function(ARGS, SPEAKER) | |
1700 | for i,v in pairs(gWorkspace:GetChildren()) do if v:IsA('Sound') then v:Stop() v:destroy() end end | |
1701 | if ARGS[1]:lower() ~= 'off' then | |
1702 | local S = Instance.new('Sound', gWorkspace) S.Name = 'song_seth' S.Archivable = false S.Looped = true S.SoundId = 'rbxassetid://' .. ARGS[1] S.Volume = 1 S:Play() | |
1703 | end | |
1704 | end) | |
1705 | ||
1706 | ADD_COMMAND('volume','volume [int]',{}, | |
1707 | function(ARGS, SPEAKER) | |
1708 | for i,v in pairs(gWorkspace:GetChildren()) do if v:IsA('Sound') then v.Volume = ARGS[1] end end | |
1709 | end) | |
1710 | ||
1711 | ADD_COMMAND('pitch','pitch [int]',{}, | |
1712 | function(ARGS, SPEAKER) | |
1713 | for i,v in pairs(gWorkspace:GetChildren()) do if v:IsA('Sound') then v.Pitch = ARGS[1] end end | |
1714 | end) | |
1715 | ||
1716 | ADD_COMMAND('explode','explode [plr]',{}, | |
1717 | function(ARGS, SPEAKER) | |
1718 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1719 | for i,v in pairs(PLAYERS) do | |
1720 | local PCHAR = gPlayers[v].Character | |
1721 | if PCHAR:FindFirstChild('Torso') then | |
1722 | Instance.new('Explosion', PCHAR).Position = PCHAR.Torso.Position | |
1723 | end | |
1724 | end | |
1725 | end) | |
1726 | ||
1727 | ADD_COMMAND('invis','invis [plr]',{}, | |
1728 | function(ARGS, SPEAKER) | |
1729 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1730 | for i,v in pairs(PLAYERS) do | |
1731 | local PCHAR = gPlayers[v].Character | |
1732 | for i,v in pairs(PCHAR:GetChildren()) do | |
1733 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
1734 | v.Transparency = 1 | |
1735 | end | |
1736 | if v:IsA('Accessory') and v:FindFirstChild('Handle') then | |
1737 | v.Handle.Transparency = 1 | |
1738 | end | |
1739 | end | |
1740 | if PCHAR.Head:FindFirstChild('face') then PCHAR.Head.face.Transparency = 1 end | |
1741 | end | |
1742 | end) | |
1743 | ||
1744 | ADD_COMMAND('vis','vis [plr]',{}, | |
1745 | function(ARGS, SPEAKER) | |
1746 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1747 | for i,v in pairs(PLAYERS) do | |
1748 | local PCHAR = gPlayers[v].Character | |
1749 | for i,v in pairs(PCHAR:GetChildren()) do | |
1750 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
1751 | v.Transparency = 0 | |
1752 | end | |
1753 | if v:IsA('Accessory') and v:FindFirstChild('Handle') then | |
1754 | v.Handle.Transparency = 0 | |
1755 | end | |
1756 | end | |
1757 | if PCHAR.Head:FindFirstChild('face') then PCHAR.Head.face.Transparency = 0 end | |
1758 | end | |
1759 | end) | |
1760 | ||
1761 | ADD_COMMAND('goto','goto [plr]',{}, | |
1762 | function(ARGS, SPEAKER) | |
1763 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1764 | for i,v in pairs(PLAYERS) do | |
1765 | local PCHAR = gPlayers[v].Character | |
1766 | if PCHAR then | |
1767 | SPEAKER.Character.HumanoidRootPart.CFrame = PCHAR.HumanoidRootPart.CFrame | |
1768 | end | |
1769 | end | |
1770 | end) | |
1771 | ||
1772 | ADD_COMMAND('bring','bring [plr]',{}, | |
1773 | function(ARGS, SPEAKER) | |
1774 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1775 | for i,v in pairs(PLAYERS) do | |
1776 | local PCHAR = gPlayers[v].Character | |
1777 | spawn(function() | |
1778 | for i = 0, 4 do | |
1779 | if PCHAR then | |
1780 | PCHAR.HumanoidRootPart.CFrame = SPEAKER.Character.HumanoidRootPart.CFrame | |
1781 | end | |
1782 | end | |
1783 | end) | |
1784 | end | |
1785 | end) | |
1786 | ||
1787 | ADD_COMMAND('tp','tp [plr] [plr]',{}, | |
1788 | function(ARGS, SPEAKER) | |
1789 | local PLAYERS1, PLAYERS2 = GET_PLAYER(ARGS[1], SPEAKER), GET_PLAYER(ARGS[2], SPEAKER) | |
1790 | for i,v in pairs(PLAYERS1) do for a,b in pairs(PLAYERS2) do | |
1791 | spawn(function() | |
1792 | for i = 0, 3 do | |
1793 | if gPlayers[v].Character and gPlayers[b].Character then | |
1794 | gPlayers[v].Character.HumanoidRootPart.CFrame = gPlayers[b].Character.HumanoidRootPart.CFrame | |
1795 | end | |
1796 | end | |
1797 | end) | |
1798 | end end | |
1799 | end) | |
1800 | ||
1801 | ADD_COMMAND('char','char [plr] [id]',{'charapp'}, | |
1802 | function(ARGS, SPEAKER) | |
1803 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1804 | for i,v in pairs(PLAYERS) do | |
1805 | gPlayers[v].CharacterAppearanceId = ARGS[2] | |
1806 | gPlayers[v].Character:BreakJoints() | |
1807 | end | |
1808 | end) | |
1809 | ||
1810 | ADD_COMMAND('ws','ws [plr] [int]',{}, | |
1811 | function(ARGS, SPEAKER) | |
1812 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1813 | for i,v in pairs(PLAYERS) do | |
1814 | local PCHAR = gPlayers[v].Character | |
1815 | if PCHAR:FindFirstChild('Humanoid') then | |
1816 | PCHAR.Humanoid.WalkSpeed = tonumber(ARGS[2]) | |
1817 | end | |
1818 | end | |
1819 | end) | |
1820 | ||
1821 | ADD_COMMAND('time','time [int]',{}, | |
1822 | function(ARGS, SPEAKER) | |
1823 | gLighting:SetMinutesAfterMidnight(tonumber(ARGS[1]) * 60) | |
1824 | end) | |
1825 | ||
1826 | ADD_COMMAND('kick','kick [plr]',{}, | |
1827 | function(ARGS, SPEAKER) | |
1828 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1829 | for i,v in pairs(PLAYERS) do | |
1830 | table.insert(KICKS, gPlayers[v]) | |
1831 | end | |
1832 | end) | |
1833 | ||
1834 | ADD_COMMAND('ban','ban [plr]',{}, | |
1835 | function(ARGS, SPEAKER) | |
1836 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1837 | for i,v in pairs(PLAYERS) do | |
1838 | table.insert(BANS, gPlayers[v].userId) | |
1839 | table.insert(KICKS, gPlayers[v]) | |
1840 | UPDATE_BANS() | |
1841 | end | |
1842 | end) | |
1843 | ||
1844 | ADD_COMMAND('unban','unban [username]',{}, | |
1845 | function(ARGS, SPEAKER) | |
1846 | if FIND_IN_TABLE(BANS, game.Players:GetUserIdFromNameAsync(ARGS[1])) then | |
1847 | table.remove(BANS, GET_IN_TABLE(BANS, game.Players:GetUserIdFromNameAsync(ARGS[1]))) | |
1848 | end | |
1849 | end) | |
1850 | ||
1851 | ADD_COMMAND('unlockws','unlock',{'unlock'}, | |
1852 | function(ARGS, SPEAKER) | |
1853 | local function UNLOCK(INSTANCE) | |
1854 | for i,v in pairs(INSTANCE:GetChildren()) do | |
1855 | if v:IsA('BasePart') then | |
1856 | v.Locked = false | |
1857 | end | |
1858 | UNLOCK(v) | |
1859 | end | |
1860 | end | |
1861 | UNLOCK(gWorkspace) | |
1862 | end) | |
1863 | ||
1864 | ADD_COMMAND('lockws','lock',{'lock'}, | |
1865 | function(ARGS, SPEAKER) | |
1866 | local function LOCK(INSTANCE) | |
1867 | for i,v in pairs(INSTANCE:GetChildren()) do | |
1868 | if v:IsA('BasePart') then | |
1869 | v.Locked = true | |
1870 | end | |
1871 | LOCK(v) | |
1872 | end | |
1873 | end | |
1874 | LOCK(gWorkspace) | |
1875 | end) | |
1876 | ||
1877 | ADD_COMMAND('unanchorws','unanchor',{'unanchor'}, | |
1878 | function(ARGS, SPEAKER) | |
1879 | local function UNANCHOR(INSTANCE) | |
1880 | for i,v in pairs(INSTANCE:GetChildren()) do | |
1881 | if v:IsA('BasePart') then | |
1882 | v.Anchored = false | |
1883 | end | |
1884 | UNANCHOR(v) | |
1885 | end | |
1886 | end | |
1887 | UNANCHOR(gWorkspace) | |
1888 | end) | |
1889 | ||
1890 | ADD_COMMAND('anchorws','anchor',{'anchor'}, | |
1891 | function(ARGS, SPEAKER) | |
1892 | local function ANCHOR(INSTANCE) | |
1893 | for i,v in pairs(INSTANCE:GetChildren()) do | |
1894 | if v:IsA('BasePart') then | |
1895 | v.Anchored = true | |
1896 | end | |
1897 | ANCHOR(v) | |
1898 | end | |
1899 | end | |
1900 | ANCHOR(gWorkspace) | |
1901 | end) | |
1902 | ||
1903 | ADD_COMMAND('hsize','hsize [plr] [int]',{'hatsize'}, | |
1904 | function(ARGS, SPEAKER) | |
1905 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1906 | for i,v in pairs(PLAYERS) do | |
1907 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
1908 | if v:IsA('Accessory') then | |
1909 | for a,b in pairs(v.Handle:GetChildren()) do | |
1910 | if b:IsA('SpecialMesh') then | |
1911 | b.Scale = ARGS[2] * Vector3.new(1, 1, 1) | |
1912 | end | |
1913 | end | |
1914 | end | |
1915 | end | |
1916 | end | |
1917 | end) | |
1918 | ||
1919 | ADD_COMMAND('shats','shats [plr]',{'stealhats'}, | |
1920 | function(ARGS, SPEAKER) | |
1921 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1922 | for i,v in pairs(PLAYERS) do | |
1923 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
1924 | if v:IsA('Accessory') then | |
1925 | v.Parent = SPEAKER.Character | |
1926 | end | |
1927 | end | |
1928 | end | |
1929 | end) | |
1930 | ||
1931 | ADD_COMMAND('rhats','rhats [plr]',{'removehats'}, | |
1932 | function(ARGS, SPEAKER) | |
1933 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1934 | for i,v in pairs(PLAYERS) do | |
1935 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
1936 | if v:IsA('Accessory') then | |
1937 | v:destroy() | |
1938 | end | |
1939 | end | |
1940 | end | |
1941 | end) | |
1942 | ||
1943 | ADD_COMMAND('firstp','firstp [plr]',{}, | |
1944 | function(ARGS, SPEAKER) | |
1945 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1946 | for i,v in pairs(PLAYERS) do | |
1947 | gPlayers[v].CameraMode = 'LockFirstPerson' | |
1948 | end | |
1949 | end) | |
1950 | ||
1951 | ADD_COMMAND('thirdp','thirdp [plr]',{}, | |
1952 | function(ARGS, SPEAKER) | |
1953 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1954 | for i,v in pairs(PLAYERS) do | |
1955 | gPlayers[v].CameraMode = 'Classic' | |
1956 | end | |
1957 | end) | |
1958 | ||
1959 | ADD_COMMAND('chat','chat [plr] [string]',{}, | |
1960 | function(ARGS, SPEAKER) | |
1961 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1962 | for i,v in pairs(PLAYERS) do | |
1963 | game.Chat:Chat(gPlayers[v].Character.Head, GLS(false, 1)) | |
1964 | end | |
1965 | end) | |
1966 | ||
1967 | ADD_COMMAND('name','name [plr] [string]',{}, | |
1968 | function(ARGS, SPEAKER) | |
1969 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1970 | for i,v in pairs(PLAYERS) do | |
1971 | gPlayers[v].Character.Name = GLS(false, 1) | |
1972 | end | |
1973 | end) | |
1974 | ||
1975 | ADD_COMMAND('unname','unname [plr]',{}, | |
1976 | function(ARGS, SPEAKER) | |
1977 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1978 | for i,v in pairs(PLAYERS) do | |
1979 | gPlayers[v].Character.Name = gPlayers[v].Name | |
1980 | end | |
1981 | end) | |
1982 | ||
1983 | ADD_COMMAND('noname','noname [plr]',{}, | |
1984 | function(ARGS, SPEAKER) | |
1985 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1986 | for i,v in pairs(PLAYERS) do | |
1987 | gPlayers[v].Character.Name = '' | |
1988 | end | |
1989 | end) | |
1990 | ||
1991 | ADD_COMMAND('stun','stun [plr]',{}, | |
1992 | function(ARGS, SPEAKER) | |
1993 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
1994 | for i,v in pairs(PLAYERS) do | |
1995 | local PCHAR = gPlayers[v].Character | |
1996 | PCHAR.Humanoid.PlatformStand = true | |
1997 | end | |
1998 | end) | |
1999 | ||
2000 | ADD_COMMAND('unstun','unstun [plr]',{}, | |
2001 | function(ARGS, SPEAKER) | |
2002 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2003 | for i,v in pairs(PLAYERS) do | |
2004 | local PCHAR = gPlayers[v].Character | |
2005 | PCHAR.Humanoid.PlatformStand = false | |
2006 | end | |
2007 | end) | |
2008 | ||
2009 | ADD_COMMAND('guest','guest [plr]',{}, | |
2010 | function(ARGS, SPEAKER) | |
2011 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2012 | for i,v in pairs(PLAYERS) do | |
2013 | local PCHAR = gPlayers[v].Character | |
2014 | gPlayers[v].CharacterAppearanceId = 1 | |
2015 | PCHAR:BreakJoints() | |
2016 | end | |
2017 | end) | |
2018 | ||
2019 | ADD_COMMAND('noob','noob [plr]',{}, | |
2020 | function(ARGS, SPEAKER) | |
2021 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2022 | for i,v in pairs(PLAYERS) do | |
2023 | local PCHAR = gPlayers[v].Character | |
2024 | gPlayers[v].CharacterAppearanceId = 155902847 | |
2025 | PCHAR:BreakJoints() | |
2026 | end | |
2027 | end) | |
2028 | ||
2029 | ADD_COMMAND('damage','damage [plr] [int]',{}, | |
2030 | function(ARGS, SPEAKER) | |
2031 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2032 | for i,v in pairs(PLAYERS) do | |
2033 | local PCHAR = gPlayers[v].Character | |
2034 | PCHAR.Humanoid.Health = PCHAR.Humanoid.Health - ARGS[2] | |
2035 | end | |
2036 | end) | |
2037 | ||
2038 | ADD_COMMAND('view','view [plr]',{}, | |
2039 | function(ARGS, SPEAKER) | |
2040 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2041 | for i,v in pairs(PLAYERS) do | |
2042 | local PCHAR = gPlayers[v].Character | |
2043 | gWorkspace.CurrentCamera.CameraSubject = PCHAR | |
2044 | end | |
2045 | end) | |
2046 | ||
2047 | ADD_COMMAND('unview','unview',{}, | |
2048 | function() | |
2049 | gWorkspace.CurrentCamera.CameraSubject = gPlayers.LocalPlayer.Character | |
2050 | end) | |
2051 | ||
2052 | ADD_COMMAND('nolimbs','nolimbs [plr]',{}, | |
2053 | function(ARGS, SPEAKER) | |
2054 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2055 | for i,v in pairs(PLAYERS) do | |
2056 | local PCHAR = gPlayers[v].Character | |
2057 | for i,v in pairs(PCHAR:GetChildren()) do | |
2058 | if v:IsA('Part') and v.Name ~= 'Head' and v.Name ~= 'Torso' and v.Name ~= 'HumanoidRootPart' then | |
2059 | v:destroy() | |
2060 | end | |
2061 | end | |
2062 | end | |
2063 | end) | |
2064 | ||
2065 | ADD_COMMAND('box','box [plr]',{}, | |
2066 | function(ARGS, SPEAKER) | |
2067 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2068 | for i,v in pairs(PLAYERS) do | |
2069 | local PCHAR = gPlayers[v].Character | |
2070 | local SB = Instance.new('SelectionBox', PCHAR) | |
2071 | SB.Adornee = SB.Parent | |
2072 | SB.Color = BrickColor.new('' .. (ARGS[2])) | |
2073 | end | |
2074 | end) | |
2075 | ||
2076 | ADD_COMMAND('unbox','nobox [plr]',{}, | |
2077 | function(ARGS, SPEAKER) | |
2078 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2079 | for i,v in pairs(PLAYERS) do | |
2080 | local PCHAR = gPlayers[v].Character | |
2081 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
2082 | if v:IsA('SelectionBox') then | |
2083 | v:destroy() | |
2084 | end | |
2085 | end | |
2086 | end | |
2087 | end) | |
2088 | ||
2089 | ADD_COMMAND('ghost','ghost [plr]',{}, | |
2090 | function(ARGS, SPEAKER) | |
2091 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2092 | for i,v in pairs(PLAYERS) do | |
2093 | local PCHAR = gPlayers[v].Character | |
2094 | for i,v in pairs(PCHAR:GetChildren()) do | |
2095 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
2096 | v.Transparency = 0.5 | |
2097 | elseif v:IsA('Accessory') and v:FindFirstChild('Handle') then | |
2098 | v.Handle.Transparency = 0.5 | |
2099 | elseif PCHAR.Head:FindFirstChild('face') then | |
2100 | PCHAR.Head.face.Transparency = 0.5 | |
2101 | end | |
2102 | end | |
2103 | end | |
2104 | end) | |
2105 | ||
2106 | ADD_COMMAND('sphere','sphere [plr]',{}, | |
2107 | function(ARGS, SPEAKER) | |
2108 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2109 | for i,v in pairs(PLAYERS) do | |
2110 | local PCHAR=gPlayers[v].Character | |
2111 | local SS = Instance.new('SelectionSphere', PCHAR) | |
2112 | SS.Adornee = SS.Parent | |
2113 | end | |
2114 | end) | |
2115 | ||
2116 | ADD_COMMAND('sky','sky [id]',{}, | |
2117 | function(ARGS, SPEAKER) | |
2118 | if ARGS[1] then | |
2119 | for i,v in pairs(gLighting:GetChildren()) do if v:IsA('Sky') then v:destroy() end end | |
2120 | local SKIES = {'Bk', 'Dn', 'Ft', 'Lf', 'Rt', 'Up'} | |
2121 | local SKY = Instance.new('Sky', gLighting) | |
2122 | for i,v in pairs(SKIES) do | |
2123 | SKY['Skybox' .. v] = 'rbxassetid://' .. ARGS[1] - 1 | |
2124 | end | |
2125 | end | |
2126 | end) | |
2127 | ||
2128 | ADD_COMMAND('ambient','ambient [r] [g] [b]',{}, | |
2129 | function(ARGS, SPEAKER) | |
2130 | if ARGS[1] and ARGS[2] and ARGS[3] then | |
2131 | gLighting.Ambient = C3(ARGS[1], ARGS[2], ARGS[3]) | |
2132 | end | |
2133 | end) | |
2134 | ||
2135 | ADD_COMMAND('jail','jail [plr]',{}, | |
2136 | function(ARGS, SPEAKER) | |
2137 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2138 | for i,v in pairs(PLAYERS) do | |
2139 | if FIND_IN_TABLE(JAILED, gPlayers[v].Name) then return end | |
2140 | table.insert(JAILED, gPlayers[v].Name) | |
2141 | local PCHAR = gPlayers[v].Character | |
2142 | local J = JAIL:Clone() J.Parent = gWorkspace J:MoveTo(PCHAR.Torso.Position) J.Name = 'JAIL_' .. gPlayers[v].Name | |
2143 | repeat wait() | |
2144 | PCHAR = gPlayers[v].Character if PCHAR and PCHAR:FindFirstChild('HumanoidRootPart') and J:FindFirstChild('MAIN') then PCHAR.HumanoidRootPart.CFrame = J.MAIN.CFrame + Vector3.new(0, 1, 0) end | |
2145 | until not FIND_IN_TABLE(JAILED, gPlayers[v].Name) | |
2146 | end | |
2147 | end) | |
2148 | ||
2149 | ADD_COMMAND('unjail','unjail [plr]',{}, | |
2150 | function(ARGS, SPEAKER) | |
2151 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2152 | for i,v in pairs(PLAYERS) do | |
2153 | for a,b in pairs(JAILED) do if b == gPlayers[v].Name then table.remove(JAILED, a) end end | |
2154 | if gWorkspace:FindFirstChild('JAIL_' .. gPlayers[v].Name) then gWorkspace['JAIL_' .. gPlayers[v].Name]:destroy() end | |
2155 | end | |
2156 | end) | |
2157 | ||
2158 | ADD_COMMAND('animation','animation [plr] [id]',{'anim'}, | |
2159 | function(ARGS, SPEAKER) | |
2160 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2161 | for i,v in pairs(PLAYERS) do | |
2162 | local ID = ARGS[2] | |
2163 | if ARGS[2] == 'climb' then ID = '180436334' end | |
2164 | if ARGS[2] == 'fall' then ID = '180436148' end | |
2165 | if ARGS[2] == 'jump' then ID = '125750702' end | |
2166 | if ARGS[2] == 'sit' then ID = '178130996' end | |
2167 | for a,b in pairs(gPlayers[v].Character.Animate:GetChildren()) do | |
2168 | if b:IsA('StringValue') then | |
2169 | for c,d in pairs(b:GetChildren()) do | |
2170 | if d:IsA('Animation') then | |
2171 | d.AnimationId = 'rbxassetid://' .. ID | |
2172 | end | |
2173 | end | |
2174 | end | |
2175 | end | |
2176 | end | |
2177 | end) | |
2178 | ||
2179 | ADD_COMMAND('fix','fix [plr]',{}, | |
2180 | function(ARGS, SPEAKER) | |
2181 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2182 | for i,v in pairs(PLAYERS) do | |
2183 | local PCHAR = gPlayers[v].Character | |
2184 | RESET_MODEL(PCHAR) | |
2185 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
2186 | end | |
2187 | end) | |
2188 | ||
2189 | ADD_COMMAND('creeper','creeper [plr]',{'crpr'}, | |
2190 | function(ARGS, SPEAKER) | |
2191 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2192 | for i,v in pairs(PLAYERS) do | |
2193 | CREEPER(gPlayers[v]) | |
2194 | end | |
2195 | end) | |
2196 | ||
2197 | ADD_COMMAND('uncreeper','uncreeper [plr]',{}, | |
2198 | function(ARGS, SPEAKER) | |
2199 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2200 | for i,v in pairs(PLAYERS) do | |
2201 | local PCHAR = gPlayers[v].Character | |
2202 | RESET_MODEL(PCHAR) | |
2203 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
2204 | end | |
2205 | end) | |
2206 | ||
2207 | ADD_COMMAND('shrek','shrek [plr]',{}, | |
2208 | function(ARGS, SPEAKER) | |
2209 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2210 | for i,v in pairs(PLAYERS) do | |
2211 | SHREK(gPlayers[v]) | |
2212 | end | |
2213 | end) | |
2214 | ||
2215 | ADD_COMMAND('unshrek','unshrek [plr]',{}, | |
2216 | function(ARGS, SPEAKER) | |
2217 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2218 | for i,v in pairs(PLAYERS) do | |
2219 | local PCHAR = gPlayers[v].Character | |
2220 | RESET_MODEL(PCHAR) | |
2221 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
2222 | end | |
2223 | end) | |
2224 | ||
2225 | ADD_COMMAND('nuke','nuke [plr]',{}, | |
2226 | function(ARGS, SPEAKER) | |
2227 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2228 | for i,v in pairs(PLAYERS) do | |
2229 | local PCHAR = gPlayers[v].Character | |
2230 | spawn(function() | |
2231 | if gPlayers[v] and PCHAR and PCHAR:FindFirstChild('Torso') then | |
2232 | local N = Instance.new('Part', gWorkspace) | |
2233 | N.Name = 'nuke_seth' | |
2234 | N.Anchored = true | |
2235 | N.CanCollide = false | |
2236 | N.Shape = 'Ball' | |
2237 | N.Size = Vector3.new(1, 1, 1) | |
2238 | N.BrickColor = BrickColor.new('New Yeller') | |
2239 | N.Transparency = 0.5 | |
2240 | N.Reflectance = 0.2 | |
2241 | N.TopSurface = 0 | |
2242 | N.BottomSurface = 0 | |
2243 | N.Touched:connect(function(T) | |
2244 | if T and T.Parent then | |
2245 | local E = Instance.new('Explosion', gWorkspace) | |
2246 | E.Position = T.Position | |
2247 | E.BlastRadius = 20 | |
2248 | E.BlastPressure = math.huge | |
2249 | end | |
2250 | end) | |
2251 | local CF = PCHAR.Torso.CFrame | |
2252 | N.CFrame = CF | |
2253 | for i = 1,30 do | |
2254 | N.Size = N.Size + Vector3.new(5, 5, 5) | |
2255 | N.CFrame = CF | |
2256 | wait(1 / 44) | |
2257 | end | |
2258 | N:destroy() | |
2259 | end | |
2260 | end) | |
2261 | end | |
2262 | end) | |
2263 | ||
2264 | ADD_COMMAND('unnuke','nonuke',{}, | |
2265 | function(ARGS, SPEAKER) | |
2266 | for i,v in pairs(gWorkspace:GetChildren()) do | |
2267 | if v:IsA('Part') and v.Name == 'nuke_seth' then | |
2268 | v:destroy() | |
2269 | end | |
2270 | end | |
2271 | end) | |
2272 | ||
2273 | ADD_COMMAND('infect','infect [plr]',{}, | |
2274 | function(ARGS, SPEAKER) | |
2275 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2276 | for i,v in pairs(PLAYERS) do | |
2277 | INFECT(gPlayers[v]) | |
2278 | end | |
2279 | end) | |
2280 | ||
2281 | ADD_COMMAND('uninfect','uninfect [plr]',{}, | |
2282 | function(ARGS, SPEAKER) | |
2283 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2284 | for i,v in pairs(PLAYERS) do | |
2285 | local PCHAR = gPlayers[v].Character | |
2286 | RESET_MODEL(PCHAR) | |
2287 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
2288 | end | |
2289 | end) | |
2290 | ||
2291 | ADD_COMMAND('duck','duck [plr]',{}, | |
2292 | function(ARGS, SPEAKER) | |
2293 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2294 | for i,v in pairs(PLAYERS) do | |
2295 | DUCK(gPlayers[v]) | |
2296 | end | |
2297 | end) | |
2298 | ||
2299 | ADD_COMMAND('unduck','unduck [plr]',{}, | |
2300 | function(ARGS, SPEAKER) | |
2301 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2302 | for i,v in pairs(PLAYERS) do | |
2303 | local PCHAR = gPlayers[v].Character | |
2304 | RESET_MODEL(PCHAR) | |
2305 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
2306 | end | |
2307 | end) | |
2308 | ||
2309 | ADD_COMMAND('disable','disable [plr]',{}, | |
2310 | function(ARGS, SPEAKER) | |
2311 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2312 | for i,v in pairs(PLAYERS) do | |
2313 | local PCHAR = gPlayers[v].Character | |
2314 | if PCHAR:FindFirstChild('Humanoid') then | |
2315 | PCHAR.Humanoid.Name = 'HUMANOID_' .. gPlayers[v].Name | |
2316 | local humanoid = PCHAR['HUMANOID_' .. gPlayers[v].Name] | |
2317 | humanoid.Parent = HUMANOIDS | |
2318 | end | |
2319 | end | |
2320 | end) | |
2321 | ||
2322 | ADD_COMMAND('enable','enable [plr]',{}, | |
2323 | function(ARGS, SPEAKER) | |
2324 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2325 | for i,v in pairs(PLAYERS) do | |
2326 | local PCHAR = gPlayers[v].Character | |
2327 | if PCHAR:FindFirstChild('Humanoid') then | |
2328 | return | |
2329 | else | |
2330 | if HUMANOIDS:FindFirstChild('HUMANOID_' .. gPlayers[v].Name) then | |
2331 | local humanoid = HUMANOIDS['HUMANOID_' .. gPlayers[v].Name] humanoid.Parent = PCHAR humanoid.Name = 'Humanoid' | |
2332 | end | |
2333 | end | |
2334 | end | |
2335 | end) | |
2336 | ||
2337 | ADD_COMMAND('size','size [plr] [int]',{}, | |
2338 | function(ARGS, SPEAKER) | |
2339 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2340 | for i,v in pairs(PLAYERS) do | |
2341 | SCALE(gPlayers[v].Character, ARGS[2]) | |
2342 | end | |
2343 | end) | |
2344 | ||
2345 | ADD_COMMAND('clone','clone [plr]',{}, | |
2346 | function(ARGS, SPEAKER) | |
2347 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2348 | for i,v in pairs(PLAYERS) do | |
2349 | local PCHAR = gPlayers[v].Character PCHAR.Archivable = true | |
2350 | local C = PCHAR:Clone() C.Parent = gWorkspace C:MoveTo(PCHAR:GetModelCFrame().p) C:MakeJoints() | |
2351 | PCHAR.Archivable = false | |
2352 | end | |
2353 | end) | |
2354 | ||
2355 | ADD_COMMAND('spin','spin [plr]',{}, | |
2356 | function(ARGS, SPEAKER) | |
2357 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2358 | for i,v in pairs(PLAYERS) do | |
2359 | local PCHAR = gPlayers[v].Character | |
2360 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
2361 | if v.Name == 'SPIN' then | |
2362 | v:destroy() | |
2363 | end | |
2364 | end | |
2365 | local T = PCHAR.Torso | |
2366 | local BG = Instance.new('BodyGyro', T) BG.Name = 'SPIN' BG.maxTorque = Vector3.new(0, math.huge, 0) BG.P = 11111 BG.cframe = T.CFrame | |
2367 | spawn(function() | |
2368 | repeat wait(1/44) | |
2369 | BG.CFrame = BG.CFrame * CFrame.Angles(0,math.rad(30),0) | |
2370 | until not BG or BG.Parent ~= T | |
2371 | end) | |
2372 | end | |
2373 | end) | |
2374 | ||
2375 | ADD_COMMAND('unspin','unspin [plr]',{}, | |
2376 | function(ARGS, SPEAKER) | |
2377 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2378 | for i,v in pairs(PLAYERS) do | |
2379 | local PCHAR = gPlayers[v].Character | |
2380 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
2381 | if v.Name == 'SPIN' then | |
2382 | v:destroy() | |
2383 | end | |
2384 | end | |
2385 | end | |
2386 | end) | |
2387 | ||
2388 | ADD_COMMAND('dog','dog [plr]',{}, | |
2389 | function(ARGS, SPEAKER) | |
2390 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2391 | for i,v in pairs(PLAYERS) do | |
2392 | DOG(gPlayers[v]) | |
2393 | end | |
2394 | end) | |
2395 | ||
2396 | ADD_COMMAND('undog','undog [plr]',{}, | |
2397 | function(ARGS, SPEAKER) | |
2398 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2399 | for i,v in pairs(PLAYERS) do | |
2400 | local PCHAR = gPlayers[v].Character | |
2401 | RESET_MODEL(PCHAR) | |
2402 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
2403 | end | |
2404 | end) | |
2405 | ||
2406 | ADD_COMMAND('loopheal','loopheal [plr]',{'lheal'}, | |
2407 | function(ARGS, SPEAKER) | |
2408 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2409 | for i,v in pairs(PLAYERS) do | |
2410 | local PCHAR = gPlayers[v].Character | |
2411 | if LOOPED:FindFirstChild(gPlayers[v].Name .. '_heal') then | |
2412 | LOOPED[gPlayers[v].Name .. '_heal']:destroy() | |
2413 | else | |
2414 | local loopheal = Instance.new('StringValue', LOOPED) | |
2415 | loopheal.Name = gPlayers[v].Name .. '_heal' | |
2416 | spawn(function() while wait() do | |
2417 | if LOOPED:FindFirstChild(gPlayers[v].Name .. '_heal') then | |
2418 | PCHAR.Humanoid.Health = PCHAR.Humanoid.MaxHealth | |
2419 | end | |
2420 | end end) | |
2421 | end | |
2422 | end | |
2423 | end) | |
2424 | ||
2425 | ADD_COMMAND('unloopheal','unloopheal [plr]',{'unlheal'}, | |
2426 | function(ARGS, SPEAKER) | |
2427 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2428 | for i,v in pairs(PLAYERS) do | |
2429 | local PCHAR = gPlayers[v].Character | |
2430 | if LOOPED:FindFirstChild(gPlayers[v].Name .. '_heal') then | |
2431 | LOOPED[gPlayers[v].Name .. '_heal']:destroy() | |
2432 | end | |
2433 | end | |
2434 | end) | |
2435 | ||
2436 | ADD_COMMAND('fling','fling [plr]',{}, | |
2437 | function(ARGS, SPEAKER) | |
2438 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2439 | for i,v in pairs(PLAYERS) do | |
2440 | local PCHAR = gPlayers[v].Character | |
2441 | if PCHAR:FindFirstChild('Humanoid') then | |
2442 | local X | |
2443 | local Z | |
2444 | repeat | |
2445 | X = math.random(-9999, 9999) | |
2446 | until math.abs(X) >= 5555 | |
2447 | repeat | |
2448 | Z = math.random(-9999, 9999) | |
2449 | until math.abs(Z) >= 5555 | |
2450 | PCHAR.Torso.Velocity = Vector3.new(0, 0, 0) | |
2451 | local BF = Instance.new('BodyForce', PCHAR.Torso) BF.force = Vector3.new(X * 4, 9999 * 5, Z * 4) | |
2452 | end | |
2453 | end | |
2454 | end) | |
2455 | ||
2456 | ADD_COMMAND('alien','alien [plr]',{}, | |
2457 | function(ARGS, SPEAKER) | |
2458 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2459 | for i,v in pairs(PLAYERS) do | |
2460 | ALIEN(gPlayers[v]) | |
2461 | end | |
2462 | end) | |
2463 | ||
2464 | ADD_COMMAND('nograv','nograv [plr]',{}, | |
2465 | function(ARGS, SPEAKER) | |
2466 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2467 | for i,v in pairs(PLAYERS) do | |
2468 | if not gPlayers[v].Character.Torso:FindFirstChild('nograv_seth') then | |
2469 | NEW'BodyForce'{Name = 'nograv_seth', Force = Vector3.new(0, GET_MASS(gPlayers[v].Character) * 196.2, 0), Parent = gPlayers[v].Character.Torso} | |
2470 | end | |
2471 | end | |
2472 | end) | |
2473 | ||
2474 | ADD_COMMAND('grav','grav [plr]',{}, | |
2475 | function(ARGS, SPEAKER) | |
2476 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2477 | for i,v in pairs(PLAYERS) do | |
2478 | if gPlayers[v].Character.Torso:FindFirstChild('nograv_seth') then | |
2479 | gPlayers[v].Character.Torso.nograv_seth:destroy() | |
2480 | end | |
2481 | end | |
2482 | end) | |
2483 | ||
2484 | ADD_COMMAND('cape','cape [brick color]',{}, | |
2485 | function(ARGS, SPEAKER) | |
2486 | spawn(function() | |
2487 | if LP.Character:FindFirstChild('Cape') then | |
2488 | LP.Character.Cape:destroy() | |
2489 | end | |
2490 | if not ARGS[1] then | |
2491 | ARGS[1] = 'Deep blue' | |
2492 | end | |
2493 | CAPE(GLS(false, 1)) | |
2494 | end) | |
2495 | end) | |
2496 | ||
2497 | ADD_COMMAND('uncape','uncape',{}, | |
2498 | function(ARGS, SPEAKER) | |
2499 | if LP.Character:FindFirstChild('cape_seth') then | |
2500 | LP.Character.cape_seth:destroy() | |
2501 | end | |
2502 | end) | |
2503 | ||
2504 | ADD_COMMAND('paper','paper [plr]',{}, | |
2505 | function(ARGS, SPEAKER) | |
2506 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2507 | for i,v in pairs(PLAYERS) do | |
2508 | local PCHAR = gPlayers[v].Character | |
2509 | for i,v in pairs(PCHAR:GetChildren()) do | |
2510 | if v:IsA('Part') and v.Name ~= 'HumanoidRootPart' then | |
2511 | PAPER_MESH:Clone().Parent = v | |
2512 | end | |
2513 | end | |
2514 | end | |
2515 | end) | |
2516 | ||
2517 | ADD_COMMAND('punish','punish [plr]',{}, | |
2518 | function(ARGS, SPEAKER) | |
2519 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2520 | for i,v in pairs(PLAYERS) do | |
2521 | local PCHAR = gPlayers[v].Character | |
2522 | PCHAR.Parent = gLighting | |
2523 | end | |
2524 | end) | |
2525 | ||
2526 | ADD_COMMAND('unpunish','unpunish [plr]',{}, | |
2527 | function(ARGS, SPEAKER) | |
2528 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2529 | for i,v in pairs(PLAYERS) do | |
2530 | local PCHAR = gLighting['' .. gPlayers[v].Name] | |
2531 | PCHAR.Parent = gWorkspace | |
2532 | end | |
2533 | end) | |
2534 | ||
2535 | local DISCO = false | |
2536 | ||
2537 | ADD_COMMAND('disco','disco',{}, | |
2538 | function(ARGS, SPEAKER) | |
2539 | DISCO = true | |
2540 | if not DISCO then | |
2541 | spawn(function() | |
2542 | repeat wait(1) gLighting.Ambient = C3(math.random(), math.random(), math.random()) until not DISCO | |
2543 | end) | |
2544 | end | |
2545 | end) | |
2546 | ||
2547 | ADD_COMMAND('undisco','undisco',{}, | |
2548 | function(ARGS, SPEAKER) | |
2549 | DISCO = false | |
2550 | end) | |
2551 | ||
2552 | ADD_COMMAND('team','team [plr] [team]',{}, | |
2553 | function(ARGS, SPEAKER) | |
2554 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2555 | for i,v in pairs(PLAYERS) do | |
2556 | for a,b in pairs(game.Teams:GetChildren()) do | |
2557 | if string.lower(b.Name) == GLS(true, 1) then | |
2558 | gPlayers[v].Team = b | |
2559 | end | |
2560 | end | |
2561 | end | |
2562 | end) | |
2563 | ||
2564 | ADD_COMMAND('jp','jp [plr] [int]',{}, | |
2565 | function(ARGS, SPEAKER) | |
2566 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2567 | for i,v in pairs(PLAYERS) do | |
2568 | local PCHAR = gPlayers[v].Character | |
2569 | if PCHAR:FindFirstChild('Humanoid') then PCHAR.Humanoid.JumpPower = ARGS[2] end | |
2570 | end | |
2571 | end) | |
2572 | ||
2573 | ADD_COMMAND('smallhead','smallhead [plr]',{'shead'}, | |
2574 | function(ARGS, SPEAKER) | |
2575 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2576 | for i,v in pairs(PLAYERS) do | |
2577 | local PCHAR = gPlayers[v].Character | |
2578 | PCHAR.Head.Mesh.Scale = Vector3.new(0.5, 0.5, 0.5) | |
2579 | PCHAR.Head.Mesh.Offset = Vector3.new(0, -0.25, 0) | |
2580 | end | |
2581 | end) | |
2582 | ||
2583 | ADD_COMMAND('bighead','bighead [plr]',{'bhead'}, | |
2584 | function(ARGS, SPEAKER) | |
2585 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2586 | for i,v in pairs(PLAYERS) do | |
2587 | local PCHAR = gPlayers[v].Character | |
2588 | PCHAR.Head.Mesh.Scale = Vector3.new(2.25, 2.25, 2.25) | |
2589 | PCHAR.Head.Mesh.Offset = Vector3.new(0, 0.5, 0) | |
2590 | end | |
2591 | end) | |
2592 | ||
2593 | ADD_COMMAND('headsize','headsize [plr] [int]',{'hsize'}, | |
2594 | function(ARGS, SPEAKER) | |
2595 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2596 | for i,v in pairs(PLAYERS) do | |
2597 | local PCHAR = gPlayers[v].Character | |
2598 | if ARGS[2] == 1 then | |
2599 | PCHAR.Head.Mesh.Scale = Vector3.new(1.25, 1.25, 1.25) | |
2600 | PCHAR.Head.Mesh.Offset = Vector3.new(0, 0, 0) | |
2601 | else | |
2602 | PCHAR.Head.Mesh.Scale = ARGS[2] * Vector3.new(1.25, 1.25, 1.25) | |
2603 | end | |
2604 | end | |
2605 | end) | |
2606 | ||
2607 | ADD_COMMAND('fixhead','fixhead [plr]',{'fhead'}, | |
2608 | function(ARGS, SPEAKER) | |
2609 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2610 | for i,v in pairs(PLAYERS) do | |
2611 | local PCHAR = gPlayers[v].Character | |
2612 | PCHAR.Head.Mesh.Scale = Vector3.new(1.25, 1.25, 1.25) | |
2613 | PCHAR.Head.Mesh.Offset = Vector3.new(0, 0, 0) | |
2614 | PCHAR.Head.Transparency = 0 | |
2615 | if PCHAR.Head:FindFirstChild('face') then PCHAR.Head.face.Transparency = 0 end | |
2616 | end | |
2617 | end) | |
2618 | ||
2619 | ADD_COMMAND('removehead','removehead [plr]',{'rhead'}, | |
2620 | function(ARGS, SPEAKER) | |
2621 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2622 | for i,v in pairs(PLAYERS) do | |
2623 | local PCHAR = gPlayers[v].Character | |
2624 | PCHAR.Head.Transparency = 1 | |
2625 | if PCHAR.Head:FindFirstChild('face') then PCHAR.Head.face.Transparency = 1 end | |
2626 | end | |
2627 | end) | |
2628 | ||
2629 | ADD_COMMAND('stealtools','stealtools [plr]',{'stools'}, | |
2630 | function(ARGS, SPEAKER) | |
2631 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2632 | for i,v in pairs(PLAYERS) do | |
2633 | for i,v in pairs(gPlayers[v].Backpack:GetChildren()) do | |
2634 | if v:IsA('Tool') or v:IsA('HopperBin') then | |
2635 | v.Parent = LP.Backpack | |
2636 | end | |
2637 | end | |
2638 | end | |
2639 | end) | |
2640 | ||
2641 | ADD_COMMAND('removetools','removetools [plr]',{'rtools'}, | |
2642 | function(ARGS, SPEAKER) | |
2643 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2644 | for i,v in pairs(PLAYERS) do | |
2645 | for i,v in pairs(gPlayers[v].Backpack:GetChildren()) do | |
2646 | if v:IsA('Tool') or v:IsA('HopperBin') then | |
2647 | v:destroy() | |
2648 | end | |
2649 | end | |
2650 | end | |
2651 | end) | |
2652 | ||
2653 | ADD_COMMAND('clonetools','clonetools [plr]',{'ctools'}, | |
2654 | function(ARGS, SPEAKER) | |
2655 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2656 | for i,v in pairs(PLAYERS) do | |
2657 | for i,v in pairs(gPlayers[v].Backpack:GetChildren()) do | |
2658 | if v:IsA('Tool') or v:IsA('HopperBin') then | |
2659 | v:Clone().Parent = LP.Backpack | |
2660 | end | |
2661 | end | |
2662 | end | |
2663 | end) | |
2664 | ||
2665 | ADD_COMMAND('dong','dong [plr]',{}, | |
2666 | function(ARGS, SPEAKER) | |
2667 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2668 | for i,v in pairs(PLAYERS) do | |
2669 | local PCHAR = gPlayers[v].Character | |
2670 | if ARGS[2] == 'black' then | |
2671 | CREATE_DONG(gPlayers[v], 'Brown') | |
2672 | end | |
2673 | if ARGS[2] == 'asian' then | |
2674 | CREATE_DONG(gPlayers[v], 'Cool yellow') | |
2675 | end | |
2676 | if ARGS[2] == 'alien' then | |
2677 | CREATE_DONG(gPlayers[v], 'Lime green') | |
2678 | end | |
2679 | if ARGS[2] == 'frozen' then | |
2680 | CREATE_DONG(gPlayers[v], 1019) | |
2681 | end | |
2682 | if not ARGS[2] then | |
2683 | CREATE_DONG(gPlayers[v], 'Pastel brown') | |
2684 | end | |
2685 | end | |
2686 | end) | |
2687 | ||
2688 | ADD_COMMAND('particles','particles [plr] [id]',{'pts'}, | |
2689 | function(ARGS, SPEAKER) | |
2690 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2691 | for i,v in pairs(PLAYERS) do | |
2692 | local PCHAR = gPlayers[v].Character | |
2693 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
2694 | if v:IsA('ParticleEmitter') then | |
2695 | v:destroy() | |
2696 | end | |
2697 | end | |
2698 | Instance.new('ParticleEmitter', PCHAR.Torso).Texture = 'rbxassetid://' .. ARGS[2] - 1 | |
2699 | end | |
2700 | end) | |
2701 | ||
2702 | ADD_COMMAND('rocket','rocket [plr]',{}, | |
2703 | function(ARGS, SPEAKER) | |
2704 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2705 | for i,v in pairs(PLAYERS) do | |
2706 | local PCHAR = gPlayers[v].Character | |
2707 | spawn(function() | |
2708 | local R = ROCKET:Clone() | |
2709 | R.Parent = gWorkspace | |
2710 | local W = Instance.new('Weld', R) | |
2711 | W.Part0 = W.Parent | |
2712 | W.Part1 = PCHAR.Torso | |
2713 | W.C1 = CFrame.new(0, 0.5, 1) | |
2714 | R.force.Force = Vector3.new(0, 15000, 0) | |
2715 | wait() | |
2716 | PCHAR.HumanoidRootPart.CFrame = PCHAR.HumanoidRootPart.CFrame * CFrame.new(0, 5, 0) | |
2717 | wait(5) | |
2718 | Instance.new('Explosion', R).Position = R.Position | |
2719 | wait(1) | |
2720 | R:destroy() | |
2721 | end) | |
2722 | end | |
2723 | end) | |
2724 | ||
2725 | ADD_COMMAND('blackify','blackify [plr]',{}, | |
2726 | function(ARGS, SPEAKER) | |
2727 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2728 | for i,v in pairs(PLAYERS) do | |
2729 | COLOR(gPlayers[v], 'Really black') | |
2730 | end | |
2731 | end) | |
2732 | ||
2733 | ADD_COMMAND('whitify','whitify [plr]',{}, | |
2734 | function(ARGS, SPEAKER) | |
2735 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2736 | for i,v in pairs(PLAYERS) do | |
2737 | COLOR(gPlayers[v], 'White') | |
2738 | end | |
2739 | end) | |
2740 | ||
2741 | ADD_COMMAND('color','color [plr] [brick color]',{}, | |
2742 | function(ARGS, SPEAKER) | |
2743 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2744 | for i,v in pairs(PLAYERS) do | |
2745 | COLOR(gPlayers[v], GLS(false, 1)) | |
2746 | end | |
2747 | end) | |
2748 | ||
2749 | ADD_COMMAND('sword','sword [plr]',{}, | |
2750 | function(ARGS, SPEAKER) | |
2751 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2752 | for i,v in pairs(PLAYERS) do | |
2753 | ECOMMAND('gear ' .. gPlayers[v].Name .. ' 125013769') | |
2754 | end | |
2755 | end) | |
2756 | ||
2757 | ADD_COMMAND('change','change [plr] [stat] [int/string]',{}, | |
2758 | function(ARGS, SPEAKER) | |
2759 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2760 | for i,v in pairs(PLAYERS) do | |
2761 | if gPlayers[v]:FindFirstChild('leaderstats') then | |
2762 | for i,v in pairs(gPlayers[v].leaderstats:GetChildren()) do | |
2763 | if string.lower(v.Name) == string.lower(ARGS[2]) and v:IsA('IntValue') or v:IsA('NumberValue') then | |
2764 | if ARGS[3] then v.Value = tonumber(ARGS[3]) end | |
2765 | elseif string.lower(v.Name) == string.lower(ARGS[2]) and v:IsA('StringValue') then | |
2766 | v.Value = GLS(false, 2) | |
2767 | end | |
2768 | end | |
2769 | end | |
2770 | end | |
2771 | end) | |
2772 | ||
2773 | ADD_COMMAND('bait','bait',{}, | |
2774 | function(ARGS, SPEAKER) | |
2775 | spawn(function() | |
2776 | local M = Instance.new('Model', gWorkspace) M.Name = 'Touch For Admin!' | |
2777 | local P = Instance.new('Part', M) P.Name = 'Head' P.Position = SPEAKER.Character.Head.Position P.BrickColor = BrickColor.new('Pink') P.Material = 'Neon' | |
2778 | local H = Instance.new('Humanoid', M) | |
2779 | P.Touched:connect(function(RIP) if RIP.Parent.Name ~= SPEAKER.Name or RIP.Parent.Name ~= LP.Name then if RIP.Parent:FindFirstChild('Humanoid') then RIP.Parent.Humanoid:destroy() end end end) | |
2780 | end) | |
2781 | end) | |
2782 | ||
2783 | ADD_COMMAND('naked','naked [plr]',{}, | |
2784 | function(ARGS, SPEAKER) | |
2785 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2786 | for i,v in pairs(PLAYERS) do | |
2787 | local PCHAR = gPlayers[v].Character | |
2788 | for i,v in pairs(PCHAR:GetChildren()) do | |
2789 | if v:IsA('Accessory') or v:IsA('Shirt') or v:IsA('Pants') or v:IsA('ShirtGraphic') then | |
2790 | v:destroy() | |
2791 | end | |
2792 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
2793 | if v:IsA('Decal') then | |
2794 | v:destroy() | |
2795 | end | |
2796 | end | |
2797 | end | |
2798 | end | |
2799 | end) | |
2800 | ||
2801 | ADD_COMMAND('decalspam','decalspam [decal]',{'dspam'}, | |
2802 | function(ARGS, SPEAKER) | |
2803 | if ARGS[1] then | |
2804 | DECALSPAM(gWorkspace, ARGS[1]) | |
2805 | end | |
2806 | end) | |
2807 | ||
2808 | ADD_COMMAND('undecalspam','undecalspam',{'undspam'}, | |
2809 | function(ARGS, SPEAKER) | |
2810 | if ARGS[1] then | |
2811 | UNDECALSPAM(gWorkspace) | |
2812 | end | |
2813 | end) | |
2814 | ||
2815 | ADD_COMMAND('bang','bang [plr]',{'rape'}, | |
2816 | function(ARGS, SPEAKER) | |
2817 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2818 | for i,v in pairs(PLAYERS) do | |
2819 | BANG(gPlayers[v].Name) | |
2820 | end | |
2821 | end) | |
2822 | ||
2823 | ADD_COMMAND('lag','lag [plr]',{}, | |
2824 | function(ARGS, SPEAKER) | |
2825 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2826 | for i,v in pairs(PLAYERS) do | |
2827 | LAG(gPlayers[v]) | |
2828 | end | |
2829 | end) | |
2830 | ||
2831 | ADD_COMMAND('respawn','respawn [plr]',{}, | |
2832 | function(ARGS, SPEAKER) | |
2833 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2834 | for i,v in pairs(PLAYERS) do | |
2835 | RESPAWN(gPlayers[v]) | |
2836 | end | |
2837 | end) | |
2838 | ||
2839 | ADD_COMMAND('face','face [plr] [decal]',{}, | |
2840 | function(ARGS, SPEAKER) | |
2841 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2842 | for i,v in pairs(PLAYERS) do | |
2843 | local PCHAR = gPlayers[v].Character | |
2844 | for i,v in pairs(PCHAR.Head:GetChildren()) do if v:IsA('Decal') then v:destroy() end end | |
2845 | local F = Instance.new('Decal', PCHAR.Head) F.Name = 'face' F.Texture = 'rbxassetid://' .. ARGS[2] - 1 | |
2846 | end | |
2847 | end) | |
2848 | ||
2849 | ADD_COMMAND('shirt','shirt [plr] [decal]',{}, | |
2850 | function(ARGS, SPEAKER) | |
2851 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2852 | for i,v in pairs(PLAYERS) do | |
2853 | local PCHAR = gPlayers[v].Character | |
2854 | for i,v in pairs(PCHAR:GetChildren()) do if v:IsA('Shirt') then v:destroy() end end | |
2855 | local S = Instance.new('Shirt', PCHAR) S.Name = 'Shirt' S.ShirtTemplate = 'rbxassetid://' .. ARGS[2] - 1 | |
2856 | end | |
2857 | end) | |
2858 | ||
2859 | ADD_COMMAND('pants','pants [plr] [decal]',{}, | |
2860 | function(ARGS, SPEAKER) | |
2861 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2862 | for i,v in pairs(PLAYERS) do | |
2863 | local PCHAR = gPlayers[v].Character | |
2864 | for i,v in pairs(PCHAR:GetChildren()) do if v:IsA('Pants') then v:destroy() end end | |
2865 | local P = Instance.new('Pants', PCHAR) P.Name = 'Shirt' P.PantsTemplate = 'rbxassetid://' .. ARGS[2] - 1 | |
2866 | end | |
2867 | end) | |
2868 | ||
2869 | ADD_COMMAND('longneck','longneck [plr]',{'lneck', 'giraffe'}, | |
2870 | function(ARGS, SPEAKER) | |
2871 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2872 | for i,v in pairs(PLAYERS) do | |
2873 | local PCHAR = gPlayers[v].Character | |
2874 | RESET_MODEL(PCHAR) | |
2875 | UPDATE_MODEL(PCHAR, gPlayers[v].Name) | |
2876 | for i,v in pairs(PCHAR:GetChildren()) do if v:IsA('Accessory') then v.Handle.Mesh.Offset = Vector3.new(0, 5, 0) end end | |
2877 | if PCHAR.Head:FindFirstChild('Mesh') then PCHAR.Head.Mesh.Offset = Vector3.new(0, 5, 0) end | |
2878 | local G = Instance.new('Part', PCHAR) G.Name = 'giraffe_seth' G.BrickColor = PCHAR.Head.BrickColor G.Size = Vector3.new(2, 1, 1) | |
2879 | local SM = Instance.new('SpecialMesh', G) SM.Scale = Vector3.new(1.25, 5, 1.25) SM.Offset = Vector3.new(0, 2, 0) | |
2880 | local W = Instance.new('Weld', G) W.Part0 = PCHAR.Head W.Part1 = G | |
2881 | end | |
2882 | end) | |
2883 | ||
2884 | ADD_COMMAND('stealchar','stealchar [plr]',{'schar'}, | |
2885 | function(ARGS, SPEAKER) | |
2886 | local PLAYERS1, PLAYERS2 = GET_PLAYER(ARGS[1]) | |
2887 | for i,v in pairs(PLAYERS1) do | |
2888 | RESET_MODEL(SPEAKER.Character) UPDATE_MODEL(SPEAKER.Character, gPlayers[v].Name) | |
2889 | end | |
2890 | end) | |
2891 | ||
2892 | ADD_COMMAND('baseplate','baseplate',{'bp'}, | |
2893 | function(ARGS, SPEAKER) | |
2894 | for i,v in pairs(gWorkspace:GetChildren()) do if v:IsA('Model') and v.Name == 'baseplate_seth' then v:destroy() end end | |
2895 | local BP = Instance.new('Part', gWorkspace) BP.Name = 'baseplate_seth' BP.Anchored = true BP.BrickColor = BrickColor.new('Bright green') BP.Size = Vector3.new(2048, 5, 2048) BP.Position = Vector3.new(0, 0, 0) | |
2896 | end) | |
2897 | ||
2898 | ADD_COMMAND('norotate','norotate [plr]',{'nrt'}, | |
2899 | function(ARGS, SPEAKER) | |
2900 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2901 | for i,v in pairs(PLAYERS) do | |
2902 | local PCHAR = gPlayers[v].Character | |
2903 | if PCHAR:FindFirstChild('Humanoid') then PCHAR.Humanoid.AutoRotate = false end | |
2904 | end | |
2905 | end) | |
2906 | ||
2907 | ADD_COMMAND('rotate','rotate [plr]',{'rt'}, | |
2908 | function(ARGS, SPEAKER) | |
2909 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2910 | for i,v in pairs(PLAYERS) do | |
2911 | local PCHAR = gPlayers[v].Character | |
2912 | if PCHAR:FindFirstChild('Humanoid') then PCHAR.Humanoid.AutoRotate = true end | |
2913 | end | |
2914 | end) | |
2915 | ||
2916 | ADD_COMMAND('admin','admin [plr]',{}, | |
2917 | function(ARGS, SPEAKER) | |
2918 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2919 | for i,v in pairs(PLAYERS) do | |
2920 | if not CHECK_ADMIN(gPlayers[v]) then | |
2921 | table.insert(ADMINS, gPlayers[v].userId) | |
2922 | UPDATE_ADMINS() | |
2923 | spawn(function() | |
2924 | game.Chat:Chat(gPlayers[v].Character.Head, STUFF .. 'You\'re now an admin!') | |
2925 | wait(3) | |
2926 | game.Chat:Chat(gPlayers[v].Character.Head, STUFF .. 'Give me a try! | ' .. C_PREFIX .. 'ff me') | |
2927 | end) | |
2928 | end | |
2929 | end | |
2930 | end) | |
2931 | ||
2932 | ADD_COMMAND('unadmin','unadmin [plr]',{}, | |
2933 | function(ARGS, SPEAKER) | |
2934 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2935 | for i,v in pairs(PLAYERS) do | |
2936 | if CHECK_ADMIN(gPlayers[v]) then | |
2937 | if FIND_IN_TABLE(ADMINS, gPlayers[v].userId) then | |
2938 | table.remove(ADMINS, GET_IN_TABLE(ADMINS, gPlayers[v].userId)) | |
2939 | UPDATE_ADMINS() | |
2940 | game.Chat:Chat(gPlayers[v].Character.Head, STUFF .. 'You\'re no longer an admin.') | |
2941 | end | |
2942 | end | |
2943 | end | |
2944 | end) | |
2945 | ||
2946 | ADD_COMMAND('minzoom','minzoom [plr] [int]',{'minz'}, | |
2947 | function(ARGS, SPEAKER) | |
2948 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2949 | for i,v in pairs(PLAYERS) do | |
2950 | gPlayers[v].CameraMinZoomDistance = ARGS[2] | |
2951 | end | |
2952 | end) | |
2953 | ||
2954 | ADD_COMMAND('maxzoom','maxzoom [plr] [int]',{'maxz'}, | |
2955 | function(ARGS, SPEAKER) | |
2956 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2957 | for i,v in pairs(PLAYERS) do | |
2958 | gPlayers[v].CameraMaxZoomDistance = ARGS[2] | |
2959 | end | |
2960 | end) | |
2961 | ||
2962 | ADD_COMMAND('age','age [plr]',{}, | |
2963 | function(ARGS, SPEAKER) | |
2964 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2965 | for i,v in pairs(PLAYERS) do | |
2966 | NOTIFY(gPlayers[v].Name .. ' | ' .. gPlayers[v].AccountAge, 255, 255, 255) | |
2967 | end | |
2968 | end) | |
2969 | ||
2970 | ADD_COMMAND('hl','hl [plr] [r] [g] [b]',{}, | |
2971 | function(ARGS, SPEAKER) | |
2972 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2973 | for i,v in pairs(PLAYERS) do | |
2974 | local PCHAR = gPlayers[v].Character | |
2975 | if PCHAR:FindFirstChild('Torso') then | |
2976 | local HL = Instance.new('SpotLight', PCHAR.Torso) HL.Name = 'seth_hl' HL.Brightness = 5 HL.Range = 60 | |
2977 | if ARGS[2] and ARGS[3] and ARGS[4] then | |
2978 | HL.Color = C3(ARGS[2], ARGS[3], ARGS[4]) | |
2979 | end | |
2980 | end | |
2981 | end | |
2982 | end) | |
2983 | ||
2984 | ADD_COMMAND('unhl','unhl [plr]',{}, | |
2985 | function(ARGS, SPEAKER) | |
2986 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
2987 | for i,v in pairs(PLAYERS) do | |
2988 | local PCHAR = gPlayers[v].Character | |
2989 | if PCHAR:FindFirstChild('Torso') then | |
2990 | for i,v in pairs(PCHAR.Torso:GetChildren()) do | |
2991 | if v:IsA('SpotLight') and v.Name == 'seth_hl' then | |
2992 | v:destroy() | |
2993 | end | |
2994 | end | |
2995 | end | |
2996 | end | |
2997 | end) | |
2998 | ||
2999 | ADD_COMMAND('crash','crash [plr]',{}, | |
3000 | function(ARGS, SPEAKER) | |
3001 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3002 | for i,v in pairs(PLAYERS) do | |
3003 | local PCHAR = gPlayers[v].Character | |
3004 | PCHAR.Torso.Anchored = true | |
3005 | for i,v in pairs(PCHAR:GetChildren()) do | |
3006 | if v:IsA('Humanoid') then | |
3007 | for i = 1,10 do | |
3008 | v.HipHeight = 1/0*0 | |
3009 | end | |
3010 | end | |
3011 | end | |
3012 | end | |
3013 | end) | |
3014 | ||
3015 | ADD_COMMAND('shutdown','shutdown',{}, | |
3016 | function(ARGS, SPEAKER) | |
3017 | gWorkspace.Gravity = 1/0*0 | |
3018 | end) | |
3019 | ||
3020 | ADD_COMMAND('smite','smite [plr]',{}, | |
3021 | function(ARGS, SPEAKER) | |
3022 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3023 | for i,v in pairs(PLAYERS) do | |
3024 | local PCHAR = gPlayers[v].Character | |
3025 | spawn(function() | |
3026 | local function CastRay(A, B, C) local V = B - A return workspace:FindPartOnRayWithIgnoreList(Ray.new(A, V.unit * math.min(V.magnitude, 999)), C or {}, false, true) end | |
3027 | ||
3028 | local PP = PCHAR.PrimaryPart.Position - Vector3.new(0, 3, 0) | |
3029 | local S = Instance.new('Sound', gWorkspace) S.SoundId = 'rbxassetid://178090362' S.Volume = 1 S:Play() spawn(function() wait(7) S:destroy() end) | |
3030 | local S,P2 = CastRay(PP, PP - Vector3.new(0, 9, 0), {PCHAR}) | |
3031 | ||
3032 | local P1 = Instance.new('Part', game.Workspace) | |
3033 | P1.BrickColor = BrickColor.new('Institutional white') | |
3034 | P1.Material = 'Neon' | |
3035 | P1.Transparency = 0.9 | |
3036 | P1.Anchored = true | |
3037 | P1.CanCollide = false | |
3038 | P1.Size = Vector3.new(0.2, 0.2, 0.2) | |
3039 | P1.CFrame = CFrame.new((S and P2 or PP) + Vector3.new(0, 1e3, 0)) | |
3040 | Instance.new('BlockMesh', P1).Scale = Vector3.new(10, 10000, 10) | |
3041 | ||
3042 | local P2, P3, P4, P5 = P1:Clone(), P1:Clone(), P1:Clone(), P1:Clone() | |
3043 | for i, v in next, {P2, P3, P4, P5} do i = i * 0.1 v.Parent, v.Size = P1, Vector3.new(0.2 + i, 0.2, 0.2 + i ) v.CFrame = P1.CFrame end wait(0.5) P1:destroy() PCHAR:BreakJoints() | |
3044 | end) | |
3045 | end | |
3046 | end) | |
3047 | ||
3048 | ADD_COMMAND('skydive','skydive [plr]',{}, | |
3049 | function(ARGS, SPEAKER) | |
3050 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3051 | for i,v in pairs(PLAYERS) do | |
3052 | local PCHAR = gPlayers[v].Character | |
3053 | spawn(function() | |
3054 | for i = 0, 3 do | |
3055 | if PCHAR then | |
3056 | PCHAR.HumanoidRootPart.CFrame = PCHAR.HumanoidRootPart.CFrame + Vector3.new(0, 7500, 0) | |
3057 | end | |
3058 | end | |
3059 | end) | |
3060 | end | |
3061 | end) | |
3062 | ||
3063 | ADD_COMMAND('message','message [string]',{'m'}, | |
3064 | function(ARGS, SPEAKER) | |
3065 | spawn(function() | |
3066 | if MG then | |
3067 | MESSAGE(GLS(false, 0)) | |
3068 | else | |
3069 | LOAD_MESSAGE(GLS(false, 0)) | |
3070 | end | |
3071 | end) | |
3072 | end) | |
3073 | ||
3074 | ADD_COMMAND('control','control [plr]',{}, | |
3075 | function(ARGS, SPEAKER) | |
3076 | local PLAYERS = GET_PLAYER(ARGS[1], SPEAKER) | |
3077 | for i,v in pairs(PLAYERS) do | |
3078 | local PCHAR = gPlayers[v].Character | |
3079 | local HB = Instance.new('HopperBin', LP.Backpack) HB.Name = gPlayers[v].Name | |
3080 | local CONTROL_ENABLED = false | |
3081 | local function CONTROL(P, V3) | |
3082 | if CONTROL_ENABLED then | |
3083 | if P.Character and P.Character:FindFirstChild('Humanoid') then | |
3084 | P.Character.Humanoid:MoveTo(V3) | |
3085 | end | |
3086 | end | |
3087 | end | |
3088 | HB.Selected:connect(function(M) | |
3089 | M.Button1Down:connect(function() CONTROL_ENABLED = true CONTROL(gPlayers:FindFirstChild(HB.Name), M.Hit.p) end) | |
3090 | M.Button1Up:connect(function() CONTROL_ENABLED = false end) | |
3091 | end) | |
3092 | end | |
3093 | end) | |
3094 | ||
3095 | -- / extra | |
3096 | ||
3097 | ADD_COMMAND('gravity','gravity [int]',{}, | |
3098 | function(ARGS, SPEAKER) | |
3099 | gWorkspace.Gravity = ARGS[1] | |
3100 | end) | |
3101 | ||
3102 | ADD_COMMAND('fixlighting','fixlighting',{'fixl'}, | |
3103 | function(ARGS, SPEAKER) | |
3104 | FIX_LIGHTING() | |
3105 | end) | |
3106 | ||
3107 | ADD_COMMAND('fixfog','fixfog',{'clrfog'}, | |
3108 | function(ARGS, SPEAKER) | |
3109 | gLighting.FogColor = C3(191, 191, 191) | |
3110 | gLighting.FogEnd = 100000000 | |
3111 | gLighting.FogStart = 0 | |
3112 | end) | |
3113 | ||
3114 | ADD_COMMAND('day','day',{}, | |
3115 | function(ARGS, SPEAKER) | |
3116 | gLighting.TimeOfDay = 14 | |
3117 | end) | |
3118 | ||
3119 | ADD_COMMAND('night','night',{}, | |
3120 | function(ARGS, SPEAKER) | |
3121 | gLighting.TimeOfDay = 24 | |
3122 | end) | |
3123 | ||
3124 | ADD_COMMAND('serverlock','serverlock',{'slock'}, | |
3125 | function(ARGS, SPEAKER) | |
3126 | SERVER_LOCKED = true | |
3127 | end) | |
3128 | ||
3129 | ADD_COMMAND('unserverlock','unserverlock',{'unslock'}, | |
3130 | function(ARGS, SPEAKER) | |
3131 | SERVER_LOCKED = false | |
3132 | end) | |
3133 | ||
3134 | ADD_COMMAND('fogend','fogend [int]',{}, | |
3135 | function(ARGS, SPEAKER) | |
3136 | gLighting.FogEnd = ARGS[1] | |
3137 | end) | |
3138 | ||
3139 | ADD_COMMAND('fogcolor','fogcolor [r] [g] [b]',{}, | |
3140 | function(ARGS, SPEAKER) | |
3141 | if ARGS[1] and ARGS[2] and ARGS[3] then | |
3142 | gLighting.FogColor = C3(ARGS[1], ARGS[2], ARGS[3]) | |
3143 | end | |
3144 | end) | |
3145 | ||
3146 | ADD_COMMAND('noclip','noclip',{}, | |
3147 | function(ARGS, SPEAKER) | |
3148 | NOCLIP = true | |
3149 | JESUSFLY = false | |
3150 | SWIM = false | |
3151 | end) | |
3152 | ||
3153 | ADD_COMMAND('clip','clip',{}, | |
3154 | function(ARGS, SPEAKER) | |
3155 | NOCLIP = false | |
3156 | end) | |
3157 | ||
3158 | ADD_COMMAND('jesusfly','jesusfly',{}, | |
3159 | function(ARGS, SPEAKER) | |
3160 | NOCLIP = false | |
3161 | JESUSFLY = true | |
3162 | SWIM = false | |
3163 | end) | |
3164 | ||
3165 | ADD_COMMAND('nojfly','nojfly',{}, | |
3166 | function(ARGS, SPEAKER) | |
3167 | JESUSFLY = false | |
3168 | end) | |
3169 | ||
3170 | ADD_COMMAND('swim','swim',{}, | |
3171 | function(ARGS, SPEAKER) | |
3172 | NOCLIP = false | |
3173 | JESUSFLY = false | |
3174 | SWIM = true | |
3175 | end) | |
3176 | ||
3177 | ADD_COMMAND('noswim','noswim',{}, | |
3178 | function(ARGS, SPEAKER) | |
3179 | SWIM = false | |
3180 | end) | |
3181 | ||
3182 | ADD_COMMAND('fly','fly',{}, | |
3183 | function(ARGS, SPEAKER) | |
3184 | sFLY() | |
3185 | end) | |
3186 | ||
3187 | ADD_COMMAND('unfly','unfly',{}, | |
3188 | function(ARGS, SPEAKER) | |
3189 | NOFLY() | |
3190 | end) | |
3191 | ||
3192 | ADD_COMMAND('prefix','prefix [string]',{}, | |
3193 | function(ARGS, SPEAKER) | |
3194 | if ARGS[1] then | |
3195 | C_PREFIX = ARGS[1] | |
3196 | NOTIFY('Changed prefix to \'' .. ARGS[1] .. '\'', 255, 255, 255) | |
3197 | end | |
3198 | end) | |
3199 | ||
3200 | ADD_COMMAND('version','version',{}, | |
3201 | function(ARGS, SPEAKER) | |
3202 | NOTIFY('VERSION | ' .. VERSION, 255, 255, 255) | |
3203 | end) | |
3204 | ||
3205 | ADD_COMMAND('fe','fe',{}, | |
3206 | function(ARGS, SPEAKER) | |
3207 | spawn(function() | |
3208 | CHECK_FE() | |
3209 | end) | |
3210 | end) | |
3211 | ||
3212 | function OPEN_COMMANDS() | |
3213 | SETH_MAIN.main.holder.Size = UDim2.new(1, 25, 12, 30) | |
3214 | SETH_MAIN.main.holder.holders.search.Visible = true | |
3215 | end | |
3216 | ||
3217 | function CLOSE_COMMANDS() | |
3218 | SETH_MAIN.main.holder.holders.search.Visible = false | |
3219 | SETH_MAIN.main.holder.Size = UDim2.new(1, 25, 12, 0) | |
3220 | end | |
3221 | ||
3222 | function OPEN_TAB(TAB) | |
3223 | if not gCoreGui:FindFirstChild('seth_main') then OPEN_MAIN() end | |
3224 | for a,b in pairs(SETH_MAIN.main.holder.holders:GetChildren()) do | |
3225 | if b.Name ~= TAB then | |
3226 | b.Visible = false | |
3227 | else | |
3228 | b.Visible = true | |
3229 | end | |
3230 | if TAB ~= 'cmds' then | |
3231 | CLOSE_COMMANDS() | |
3232 | else | |
3233 | OPEN_COMMANDS() | |
3234 | end | |
3235 | end | |
3236 | end | |
3237 | ||
3238 | ADD_COMMAND('serverinfo','serverinfo',{'sinfo'}, | |
3239 | function(ARGS, SPEAKER) | |
3240 | OPEN_TAB('server') | |
3241 | end) | |
3242 | ||
3243 | ADD_COMMAND('admins','admins',{}, | |
3244 | function(ARGS, SPEAKER) | |
3245 | OPEN_TAB('admins') | |
3246 | end) | |
3247 | ||
3248 | ADD_COMMAND('cmds','cmds',{'commands'}, | |
3249 | function(ARGS, SPEAKER) | |
3250 | OPEN_TAB('cmds') | |
3251 | end) | |
3252 | ||
3253 | ADD_COMMAND('bans','bans',{}, | |
3254 | function(ARGS, SPEAKER) | |
3255 | OPEN_TAB('bans') | |
3256 | end) | |
3257 | ||
3258 | ADD_COMMAND('fun','fun',{}, | |
3259 | function(ARGS, SPEAKER) | |
3260 | OPEN_TAB('fun') | |
3261 | end) | |
3262 | ||
3263 | ADD_COMMAND('changelog','changelog',{}, | |
3264 | function(ARGS, SPEAKER) | |
3265 | OPEN_TAB('changelog') | |
3266 | end) | |
3267 | ||
3268 | ADD_COMMAND('credits','credits',{}, | |
3269 | function(ARGS, SPEAKER) | |
3270 | OPEN_TAB('credits') | |
3271 | end) | |
3272 | ||
3273 | MOUSE.KeyDown:connect(function(key) | |
3274 | if key:byte() == 29 then | |
3275 | if not NOCLIP then | |
3276 | ECOMMAND('noclip') | |
3277 | elseif NOCLIP then | |
3278 | ECOMMAND('clip') | |
3279 | end | |
3280 | elseif key:byte() == 30 then | |
3281 | if not JESUSFLY then | |
3282 | ECOMMAND('jesusfly') | |
3283 | elseif JESUSFLY then | |
3284 | ECOMMAND('nojfly') | |
3285 | end | |
3286 | end | |
3287 | end) | |
3288 | ||
3289 | -- / after loaded | |
3290 | ||
3291 | function CHECK_FE() | |
3292 | if not gWorkspace.FilteringEnabled then | |
3293 | NOTIFY('Filtering is disabled', 50, 255, 50) | |
3294 | elseif gWorkspace.FilteringEnabled then | |
3295 | NOTIFY('Filtering is ENABLED', 255, 50, 50) | |
3296 | end | |
3297 | end | |
3298 | ||
3299 | CMD_BAR_H.bar:TweenPosition(UDim2.new(0, 0, 1, -50), 'InOut', 'Quad', 0.5, true) | |
3300 | ||
3301 | local GOING_IN = true | |
3302 | CMD_BAR_H.bar.Changed:connect(function() | |
3303 | if CMD_BAR_H.bar.Text ~= 'press ; to execute a command' and CMD_BAR_H.bar.Focused and not GOING_IN then | |
3304 | if CMD_BAR_H.bar.Text ~= '' then | |
3305 | if not CMD_BAR_H.bar.Text:find(' ') then | |
3306 | CMD_BAR_H.bar.commands.Visible = true | |
3307 | CMD_BAR_H.bar.commands:ClearAllChildren() | |
3308 | CMD_BAR_H.bar.commands.CanvasSize = UDim2.new(0, 0, 0, 0) | |
3309 | local Y_COMMANDS = 0 | |
3310 | for i,v in pairs(COMMANDS) do | |
3311 | if v.N:find(CMD_BAR_H.bar.Text) then | |
3312 | CMD_BAR_H.bar.commands:TweenSize(UDim2.new(1, 0, 1, -200), 'InOut', 'Quad', 0.2, true) | |
3313 | CMD_BAR_H.bar.commands.CanvasSize = CMD_BAR_H.bar.commands.CanvasSize + UDim2.new(0, 0, 0, 20) | |
3314 | local COMMANDS_C = CMD_BAR_H.bar.commands_ex:Clone() | |
3315 | COMMANDS_C.Position = UDim2.new(0, 0, 0, Y_COMMANDS) | |
3316 | COMMANDS_C.Visible = true | |
3317 | COMMANDS_C.Text = ' ' .. v.D | |
3318 | COMMANDS_C.Parent = CMD_BAR_H.bar.commands | |
3319 | Y_COMMANDS = Y_COMMANDS + 20 | |
3320 | end | |
3321 | end | |
3322 | end | |
3323 | else | |
3324 | CMD_BAR_H.bar.commands:TweenSize(UDim2.new(1, 0, 0, 0), 'InOut', 'Quad', 0.2, true) | |
3325 | CMD_BAR_H.bar.commands:ClearAllChildren() | |
3326 | CMD_BAR_H.bar.commands.CanvasSize = UDim2.new(0, 0, 0, 0) | |
3327 | end | |
3328 | end | |
3329 | end) | |
3330 | ||
3331 | CMD_BAR_H.bar.FocusLost:connect(function() | |
3332 | GOING_IN = true | |
3333 | if CMD_BAR_H.bar.Text ~= '' then | |
3334 | spawn(function() | |
3335 | ECOMMAND(CMD_BAR_H.bar.Text, LP) | |
3336 | end) | |
3337 | end | |
3338 | CMD_BAR_H.bar.commands:ClearAllChildren() | |
3339 | CMD_BAR_H.bar.commands.CanvasSize = UDim2.new(0, 0, 0, 0) | |
3340 | CMD_BAR_H.bar.commands:TweenSize(UDim2.new(1, 0, 0, 0), 'InOut', 'Quad', 0.2, true) | |
3341 | CMD_BAR_H.bar:TweenPosition(UDim2.new(0, -225, 1, -50), 'InOut', 'Quad', 0.5, true) | |
3342 | end) | |
3343 | ||
3344 | MOUSE.KeyDown:connect(function(K) | |
3345 | if K:byte() == 59 then | |
3346 | GOING_IN = false | |
3347 | CMD_BAR_H.bar:TweenPosition(UDim2.new(0, 0, 1, -50), 'InOut', 'Quad', 0.5, true) | |
3348 | CMD_BAR_H.bar:CaptureFocus() | |
3349 | end | |
3350 | end) | |
3351 | ||
3352 | NOTIFY('Hello, ' .. gPlayers.LocalPlayer.Name, 255, 255, 255) | |
3353 | CHECK_FE() | |
3354 | ||
3355 | print(#COMMANDS) |