SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,game,owner = owner,game | |
| 3 | - | local Adminlist={"GINGIEHD","XxTigerGirlLoverxX","imgonnamakeumywitch","worldann12","BINO2002","aidansty12"}
|
| 3 | + | local RealPlayer = Player |
| 4 | do | |
| 5 | print("FE Compatibility code by Mokiros")
| |
| 6 | local rp = RealPlayer | |
| 7 | script.Parent = rp.Character | |
| 8 | ||
| 9 | --RemoteEvent for communicating | |
| 10 | local Event = Instance.new("RemoteEvent")
| |
| 11 | Event.Name = "UserInput_Event" | |
| 12 | ||
| 13 | --Fake event to make stuff like Mouse.KeyDown work | |
| 14 | local function fakeEvent() | |
| 15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 16 | t.connect = t.Connect | |
| 17 | return t | |
| 18 | end | |
| 19 | ||
| 20 | --Creating fake input objects with fake variables | |
| 21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 25 | end} | |
| 26 | --Merged 2 functions into one by checking amount of arguments | |
| 27 | CAS.UnbindAction = CAS.BindAction | |
| 28 | ||
| 29 | --This function will trigger the events that have been :Connect()'ed | |
| 30 | local function te(self,ev,...) | |
| 31 | local t = m[ev] | |
| 32 | if t and t._fakeEvent then | |
| 33 | for _,f in pairs(t.Functions) do | |
| 34 | f(...) | |
| 35 | end | |
| 36 | end | |
| 37 | end | |
| 38 | m.TrigEvent = te | |
| 39 | UIS.TrigEvent = te | |
| 40 | ||
| 41 | Event.OnServerEvent:Connect(function(plr,io) | |
| 42 | if plr~=rp then return end | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | if not io.isMouse then | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local Mouse = Player:GetMouse() | |
| 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,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 71 | end | |
| 72 | UIS.InputBegan:Connect(input) | |
| 73 | UIS.InputEnded:Connect(input) | |
| 74 | ||
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | ||
| 85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 86 | --Real game object | |
| 87 | local _rg = game | |
| 88 | ||
| 89 | --Metatable for fake service | |
| 90 | local fsmt = {
| |
| 91 | __index = function(self,k) | |
| 92 | local s = rawget(self,"_RealService") | |
| 93 | if s then return s[k] end | |
| 94 | end, | |
| 95 | __newindex = function(self,k,v) | |
| 96 | local s = rawget(self,"_RealService") | |
| 97 | if s then s[k]=v end | |
| 98 | end, | |
| 99 | __call = function(self,...) | |
| 100 | local s = rawget(self,"_RealService") | |
| 101 | if s then return s(...) end | |
| 102 | end | |
| 103 | } | |
| 104 | local function FakeService(t,RealService) | |
| 105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 106 | return setmetatable(t,fsmt) | |
| 107 | end | |
| 108 | ||
| 109 | --Fake game object | |
| 110 | local g = {
| |
| 111 | GetService = function(self,s) | |
| 112 | return self[s] | |
| 113 | end, | |
| 114 | Players = FakeService({
| |
| 115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 116 | },"Players"), | |
| 117 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 119 | } | |
| 120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 121 | g.service = g.GetService | |
| 122 | ||
| 123 | g.RunService = FakeService({
| |
| 124 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 125 | BindToRenderStep = function(self,name,_,fun) | |
| 126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 127 | end, | |
| 128 | UnbindFromRenderStep = function(self,name) | |
| 129 | self._btrs[name]:Disconnect() | |
| 130 | end, | |
| 131 | },"RunService") | |
| 132 | ||
| 133 | setmetatable(g,{
| |
| 134 | __index=function(self,s) | |
| 135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 137 | end, | |
| 138 | __newindex = fsmt.__newindex, | |
| 139 | __call = fsmt.__call | |
| 140 | }) | |
| 141 | --Changing owner to fake player object to support owner:GetMouse() | |
| 142 | game,owner = g,g.Players.LocalPlayer | |
| 143 | end | |
| 144 | --[[LEGO]]-- | |
| 145 | --[[SM Commands]]-- | |
| 146 | local Adminlist={"GINGIEHD","gameohm3221","imgonnamakeumywitch","worldann12","BINO2002","aidansty12"}
| |
| 147 | local Banlist={""}
| |
| 148 | local Commands={}
| |
| 149 | local IPs={}
| |
| 150 | --[[Settings]]-- | |
| 151 | local GuiMessage=true--[[]] | |
| 152 | local AddLocalPlayer=false--[[You need to run this in local script, it will add the player who is using this script.]] | |
| 153 | local IntroGui=true--[[Enables a Introduction GUI]] | |
| 154 | local Bubble=true--[[A chat bubble]] | |
| 155 | local PrivateServer=true--[[Makes a private server]] | |
| 156 | local Version=2.00 | |
| 157 | --[[Music IDs: | |
| 158 | Wind Of Fjords:1015394 | |
| 159 | ]]-- | |
| 160 | --[[Functions]]-- | |
| 161 | for i,v in pairs(script:GetChildren()) do | |
| 162 | pcall(function() | |
| 163 | if v.Name=="DSource" then | |
| 164 | v:remove() | |
| 165 | end | |
| 166 | end) | |
| 167 | end | |
| 168 | model=Instance.new("Model",game.Lighting)
| |
| 169 | model.Name="People" | |
| 170 | model1=Instance.new("Model",model)
| |
| 171 | model1.Name="AFK" | |
| 172 | function AddCommand(Command,Func) | |
| 173 | table.insert(Commands,{Command=Command,Func=Func})
| |
| 174 | end | |
| 175 | function AddIP(player,ip) | |
| 176 | table.insert(IPs,{Name=player,IP=ip})
| |
| 177 | end | |
| 178 | function Music(v) | |
| 179 | music=Instance.new("Sound",game.Workspace)
| |
| 180 | music.Name="Sound;Admin" | |
| 181 | music.SoundId="http://www.roblox.com/asset/?id="..v | |
| 182 | music:Play() | |
| 183 | end | |
| 184 | function FindIP(Text,Speaker) | |
| 185 | for i,v in pairs(IPs) do | |
| 186 | if v.Name:lower():find(Text:lower())==1 then | |
| 187 | local H=Instance.new("Hint",Speaker.PlayerGui)
| |
| 188 | H.Text=v.Name .. " - " .. v.IP | |
| 189 | game:service("Debris"):AddItem(H,5)
| |
| 190 | return | |
| 191 | end | |
| 192 | end | |
| 193 | H=Instance.new("Hint",Speaker.PlayerGui)
| |
| 194 | H.Text="Could not find user!" | |
| 195 | game:service("Debris"):AddItem(H,2)
| |
| 196 | end | |
| 197 | function SecIP(Text) | |
| 198 | for i,v in pairs(IPs) do | |
| 199 | if v.Name:lower():find(Text:lower())==1 then | |
| 200 | return v.IP | |
| 201 | end | |
| 202 | end | |
| 203 | end | |
| 204 | function Shutdown() | |
| 205 | Instance.new("ManualSurfaceJointInstance",workspace)
| |
| 206 | end | |
| 207 | function Hint(texts) | |
| 208 | coroutine.resume(coroutine.create(function() | |
| 209 | for i,v in pairs(game.Players:GetChildren()) do | |
| 210 | a=Instance.new("ScreenGui",v.PlayerGui)
| |
| 211 | a.Name="Message" | |
| 212 | b=Instance.new("Frame",a)
| |
| 213 | b.Size=UDim2.new(1,0,0.07,0) | |
| 214 | b.BackgroundTransparency=0.5 | |
| 215 | b.BackgroundColor3=Color3.new(0,0,0) | |
| 216 | c=Instance.new("TextLabel",b)
| |
| 217 | c.FontSize="Size14" | |
| 218 | c.Position=UDim2.new(0.5,0,0.5,0) | |
| 219 | c.TextColor3=Color3.new(1,1,1) | |
| 220 | for tr=1,#texts do | |
| 221 | c.Text=texts:sub(1,tr) | |
| 222 | wait() | |
| 223 | end | |
| 224 | game:service("Debris"):AddItem(a,2)
| |
| 225 | end | |
| 226 | end)) | |
| 227 | end | |
| 228 | function PrintPlayers() | |
| 229 | Hint(#game.NetworkServer:GetChildren().." is amount of players") | |
| 230 | end | |
| 231 | function fWeld(zName,zParent,zPart0,zPart1,zCoco,a,b,c,d,e,f) | |
| 232 | local funcw = Instance.new("Weld")
| |
| 233 | funcw.Name = zName | |
| 234 | funcw.Parent = zParent | |
| 235 | funcw.Part0 = zPart0 | |
| 236 | funcw.Part1 = zPart1 | |
| 237 | if (zCoco == true) then | |
| 238 | funcw.C0 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f) | |
| 239 | else | |
| 240 | funcw.C1 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f) | |
| 241 | end | |
| 242 | return funcw | |
| 243 | end | |
| 244 | function Rpe(v,s,w,sp) | |
| 245 | for i,v in pairs(sp(w[2])) do | |
| 246 | for c,b in pairs(sp(w[3])) do | |
| 247 | n1 = v.Name | |
| 248 | n2 = b.Name | |
| 249 | t1 = game.Players[n1].Character.Torso | |
| 250 | t2 = game.Players[n2].Character.Torso | |
| 251 | t2.Parent.Humanoid.PlatformStand = true | |
| 252 | t1["Left Shoulder"]:Remove() | |
| 253 | ls1 = Instance.new("Weld")
| |
| 254 | ls1.Parent = t1 | |
| 255 | ls1.Part0 = t1 | |
| 256 | ls1.Part1 = t1.Parent["Left Arm"] | |
| 257 | ls1.C0 = CFrame.new(-1.5,0,0) | |
| 258 | ls1.Name = "Left Shoulder" | |
| 259 | t1["Right Shoulder"]:Remove() | |
| 260 | rs1 = Instance.new("Weld")
| |
| 261 | rs1.Parent = t1 | |
| 262 | rs1.Part0 = t1 | |
| 263 | rs1.Part1 = t1.Parent["Right Arm"] | |
| 264 | rs1.C0 = CFrame.new(1.5,0,0) | |
| 265 | rs1.Name = "Right Shoulder" | |
| 266 | --[[ t1["Left Hip"]:Remove() | |
| 267 | lh1 = Instance.new("Weld")
| |
| 268 | lh1.Parent = t1 | |
| 269 | lh1.Part0 = t1 | |
| 270 | lh1.Part1 = t1.Parent["Left Leg"] | |
| 271 | lh1.C0 = CFrame.new(-0.5,-2,0) | |
| 272 | lh1.Name = "Left Hip" t1["Right Hip"]:Remove() | |
| 273 | rh1 = Instance.new("Weld") rh1.Parent = t1
| |
| 274 | rh1.Part0 = t1 | |
| 275 | rh1.Part1 = t1.Parent["Right Leg"] | |
| 276 | rh1.C0 = CFrame.new(0.5,-2,0) | |
| 277 | rh1.Name = "Right Hip"]] | |
| 278 | t2["Left Shoulder"]:Remove() | |
| 279 | ls2 = Instance.new("Weld")
| |
| 280 | ls2.Parent = t2 | |
| 281 | ls2.Part0 = t2 | |
| 282 | ls2.Part1 = t2.Parent["Left Arm"] | |
| 283 | ls2.C0 = CFrame.new(-1.5,0,0) | |
| 284 | ls2.Name = "Left Shoulder" | |
| 285 | t2["Right Shoulder"]:Remove() | |
| 286 | rs2 = Instance.new("Weld")
| |
| 287 | rs2.Parent = t2 | |
| 288 | rs2.Part0 = t2 | |
| 289 | rs2.Part1 = t2.Parent["Right Arm"] | |
| 290 | rs2.C0 = CFrame.new(1.5,0,0) | |
| 291 | rs2.Name = "Right Shoulder" | |
| 292 | t2["Left Hip"]:Remove() | |
| 293 | lh2 = Instance.new("Weld")
| |
| 294 | lh2.Parent = t2 | |
| 295 | lh2.Part0 = t2 | |
| 296 | lh2.Part1 = t2.Parent["Left Leg"] | |
| 297 | lh2.C0 = CFrame.new(-0.5,-2,0) | |
| 298 | lh2.Name = "Left Hip" | |
| 299 | t2["Right Hip"]:Remove() | |
| 300 | rh2 = Instance.new("Weld")
| |
| 301 | rh2.Parent = t2 | |
| 302 | rh2.Part0 = t2 | |
| 303 | rh2.Part1 = t2.Parent["Right Leg"] | |
| 304 | rh2.C0 = CFrame.new(0.5,-2,0) | |
| 305 | rh2.Name = "Right Hip" | |
| 306 | local d = Instance.new("Part")
| |
| 307 | d.TopSurface = 0 | |
| 308 | d.BottomSurface = 0 | |
| 309 | d.CanCollide = false | |
| 310 | d.BrickColor = BrickColor.new("Medium stone grey")
| |
| 311 | d.Shape = "Ball" d.Parent = t1 | |
| 312 | d.Size = Vector3.new(1,1,1) | |
| 313 | local dm = Instance.new("SpecialMesh")
| |
| 314 | dm.MeshType = "Sphere" | |
| 315 | dm.Parent = d | |
| 316 | dm.Scale = Vector3.new(0.4,0.4,0.4) | |
| 317 | fWeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0)
| |
| 318 | d2 = d:Clone() | |
| 319 | d2.Parent = t1 | |
| 320 | fWeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0)
| |
| 321 | local c = Instance.new("Part")
| |
| 322 | c.TopSurface = 0 c.BottomSurface = 0 | |
| 323 | c.CanCollide = false | |
| 324 | c.BrickColor = BrickColor.new("Pastel brown")
| |
| 325 | c.Parent = t1 | |
| 326 | c.formFactor = "Custom" | |
| 327 | c.Size = Vector3.new(0.4,1.3,0.4) | |
| 328 | cm = Instance.new("CylinderMesh")
| |
| 329 | cm.Parent = c | |
| 330 | a = fWeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0)
| |
| 331 | c2 = d:Clone() | |
| 332 | c2.BrickColor = BrickColor.new("Medium stone grey")
| |
| 333 | c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4) | |
| 334 | c2.Parent = t1 | |
| 335 | fWeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0)
| |
| 336 | local bl = Instance.new("Part")
| |
| 337 | bl.TopSurface = 0 | |
| 338 | bl.BottomSurface = 0 | |
| 339 | bl.CanCollide = false | |
| 340 | bl.BrickColor = BrickColor.new("Pastel brown")
| |
| 341 | bl.Shape = "Ball" | |
| 342 | bl.Parent = t2 | |
| 343 | bl.Size = Vector3.new(1,1,1) | |
| 344 | local dm = Instance.new("SpecialMesh")
| |
| 345 | dm.MeshType = "Sphere" | |
| 346 | dm.Parent = bl | |
| 347 | dm.Scale = Vector3.new(1.2,1.2,1.2) | |
| 348 | fWeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0)
| |
| 349 | local br = Instance.new("Part")
| |
| 350 | br.TopSurface = 0 | |
| 351 | br.BottomSurface = 0 | |
| 352 | br.CanCollide = false | |
| 353 | br.BrickColor = BrickColor.new("Pastel brown")
| |
| 354 | br.Shape = "Ball" | |
| 355 | br.Parent = t2 | |
| 356 | br.Size = Vector3.new(1,1,1) | |
| 357 | local dm = Instance.new("SpecialMesh")
| |
| 358 | dm.MeshType = "Sphere" | |
| 359 | dm.Parent = br | |
| 360 | dm.Scale = Vector3.new(1.2,1.2,1.2) | |
| 361 | fWeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0)
| |
| 362 | local bln = Instance.new("Part")
| |
| 363 | bln.TopSurface = 0 | |
| 364 | bln.BottomSurface = 0 | |
| 365 | bln.CanCollide = false | |
| 366 | bln.Shape = "Ball" | |
| 367 | bln.Parent = t2 | |
| 368 | bln.Size = Vector3.new(1,1,1) | |
| 369 | local dm = Instance.new("SpecialMesh")
| |
| 370 | dm.MeshType = "Sphere" | |
| 371 | dm.Parent = bln | |
| 372 | dm.Scale = Vector3.new(0.2,0.2,0.2) | |
| 373 | fWeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0)
| |
| 374 | local brn = Instance.new("Part")
| |
| 375 | brn.TopSurface = 0 | |
| 376 | brn.BottomSurface = 0 | |
| 377 | brn.CanCollide = false | |
| 378 | brn.Shape = "Ball" | |
| 379 | brn.Parent = t2 | |
| 380 | brn.Size = Vector3.new(1,1,1) | |
| 381 | local dm = Instance.new("SpecialMesh")
| |
| 382 | dm.MeshType = "Sphere" | |
| 383 | dm.Parent = brn | |
| 384 | dm.Scale = Vector3.new(0.2,0.2,0.2) | |
| 385 | fWeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0)
| |
| 386 | lh2.C1 = CFrame.new(0,-1.5,-0.5) *CFrame.Angles(0.9,-0.4,0) | |
| 387 | rh2.C1 = CFrame.new(0,-1.5,-0.5) *CFrame.Angles(0.9,0.4,0) | |
| 388 | ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) *CFrame.Angles(0.9,-0.4,0) | |
| 389 | rs2.C1 = CFrame.new(0.5,-1.3,-0.5) *CFrame.Angles(0.9,0.4,0) | |
| 390 | ls1.C1 = CFrame.new(-0.5,0.7,0) *CFrame.Angles(-0.9,-0.4,0) | |
| 391 | rs1.C1 = CFrame.new(0.5,0.7,0) *CFrame.Angles(-0.9,0.4,0) | |
| 392 | if t1:findFirstChild("weldx") ~= nil then
| |
| 393 | t1.weldx:Remove() end | |
| 394 | we = fWeld("weldx",t1,t1,t2,true,0,-0.9,-1.3,math.rad(-90),0,0)
| |
| 395 | n = t2.Neck | |
| 396 | n.C0 = CFrame.new(0,1.5,0) *CFrame.Angles(math.rad(-210),math.rad(180),0) | |
| 397 | while true do wait() for i=1,6 do we.C1 = we.C1 * CFrame.new(0,-0.3,0) wait() end | |
| 398 | for i=1,6 do we.C1 = we.C1 * CFrame.new(0,0.3,0) wait() end end | |
| 399 | end | |
| 400 | end | |
| 401 | end | |
| 402 | function SearchPlayer(Player,Speaker,tab) | |
| 403 | if tab==nil then tab={} end
| |
| 404 | if Player:lower()=="others" then | |
| 405 | local s={}
| |
| 406 | for i,v in pairs(game.Players:GetChildren()) do | |
| 407 | if v~=Speaker then | |
| 408 | table.insert(s,v) | |
| 409 | end | |
| 410 | end | |
| 411 | return s | |
| 412 | end | |
| 413 | if Player:lower()=="all" then | |
| 414 | local s={}
| |
| 415 | for i,v in pairs(game.Players:GetPlayers()) do | |
| 416 | table.insert(s,v) | |
| 417 | end | |
| 418 | return s | |
| 419 | end | |
| 420 | if Player:lower()=="nonadmins" then | |
| 421 | local b={}
| |
| 422 | for i,v in pairs(game.Players:GetPlayers()) do | |
| 423 | local admin=false | |
| 424 | for a,x in pairs(Adminlist) do | |
| 425 | if v.Name:lower()==x:lower() then | |
| 426 | admin=true | |
| 427 | end | |
| 428 | if admin==false then | |
| 429 | table.insert(b,v) | |
| 430 | end | |
| 431 | end | |
| 432 | end | |
| 433 | return b | |
| 434 | end | |
| 435 | if Player:lower()=="admins" then | |
| 436 | local b={}
| |
| 437 | for i,v in pairs(game.Players:GetPlayers()) do | |
| 438 | for __,_ in pairs(Adminlist) do | |
| 439 | if v.Name:lower()==_:lower() then | |
| 440 | table.insert(b,v) | |
| 441 | end | |
| 442 | end | |
| 443 | end | |
| 444 | return b | |
| 445 | end | |
| 446 | for i,v in pairs(game.Players:GetPlayers()) do | |
| 447 | if v.Name:lower():find(Player:lower())==1 then | |
| 448 | table.insert(tab,v) | |
| 449 | end | |
| 450 | end | |
| 451 | if Player:match(",") then
| |
| 452 | for v in Player:gmatch(",([^,]+)") do
| |
| 453 | SearchPlayer(v,Speaker,tab) | |
| 454 | end | |
| 455 | end | |
| 456 | return tab | |
| 457 | end | |
| 458 | function Kill(v,s) | |
| 459 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 460 | v.Character:BreakJoints() | |
| 461 | end | |
| 462 | end | |
| 463 | function Rename(v,s,w,sp) | |
| 464 | for i,v in pairs(sp(w[2])) do | |
| 465 | p = game.Players[v.Name] | |
| 466 | Anim = p.Character:FindFirstChild("Animate",true):Clone()
| |
| 467 | p.Character.Archivable = true | |
| 468 | l = p.Character:Clone() | |
| 469 | clone = l:Clone() clone.Parent = Workspace | |
| 470 | clone.Name = w[3] | |
| 471 | a = Anim:Clone() | |
| 472 | p.Character = clone | |
| 473 | a.Parent = clone | |
| 474 | end | |
| 475 | end | |
| 476 | function Health(v,s,w,sp) | |
| 477 | for i,v in pairs(sp(w[2])) do | |
| 478 | v.Character.Humanoid.Health=w[3] | |
| 479 | end | |
| 480 | end | |
| 481 | function SelectBody(v,s) | |
| 482 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 483 | select=Instance.new("SelectionBox",v.Character.Head)
| |
| 484 | select1=Instance.new("SelectionBox",v.Character.Torso)
| |
| 485 | select2=Instance.new("SelectionBox",v.Character["Right Arm"])
| |
| 486 | select3=Instance.new("SelectionBox",v.Character["Left Arm"])
| |
| 487 | select4=Instance.new("SelectionBox",v.Character["Left Leg"])
| |
| 488 | select5=Instance.new("SelectionBox",v.Character["Right Leg"])
| |
| 489 | select.Adornee=v.Character.Head | |
| 490 | select1.Adornee=v.Character.Torso | |
| 491 | select2.Adornee=v.Character["Right Arm"] | |
| 492 | select3.Adornee=v.Character["Left Arm"] | |
| 493 | select4.Adornee=v.Character["Left Leg"] | |
| 494 | select5.Adornee=v.Character["Right Leg"] | |
| 495 | v.Character.Humanoid.MaxHealth=100000000 | |
| 496 | end | |
| 497 | end | |
| 498 | function UnSelectBody(v,s) | |
| 499 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 500 | for s,b in pairs(v.Character:GetChildren()) do | |
| 501 | for w,m in pairs(b:GetChildren()) do | |
| 502 | if m.className=="SelectionBox" then | |
| 503 | m:Remove() | |
| 504 | end | |
| 505 | end | |
| 506 | end | |
| 507 | v.Character.Humanoid.MaxHealth=100 | |
| 508 | end | |
| 509 | end | |
| 510 | function Freeze(v,s) | |
| 511 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 512 | v.Character.Humanoid.WalkSpeed=0 | |
| 513 | for a,b in pairs(v.Character:GetChildren()) do | |
| 514 | if b.className=="Part" then | |
| 515 | b.Anchored=true | |
| 516 | b.Reflectance=0.6 | |
| 517 | end | |
| 518 | end | |
| 519 | end | |
| 520 | end | |
| 521 | function UnFreeze(v,s) | |
| 522 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 523 | v.Character.Humanoid.WalkSpeed=15 | |
| 524 | for a,b in pairs(v.Character:GetChildren()) do | |
| 525 | if b.className=="Part" then | |
| 526 | b.Anchored=false | |
| 527 | b.Reflectance=0 | |
| 528 | end | |
| 529 | end | |
| 530 | end | |
| 531 | end | |
| 532 | function UnInvisible(v,s) | |
| 533 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 534 | for a,b in pairs(v.Character:GetChildren()) do | |
| 535 | if b.className=="Part" then | |
| 536 | b.Transparency=0 | |
| 537 | end | |
| 538 | end | |
| 539 | end | |
| 540 | end | |
| 541 | function Invisible(v,s) | |
| 542 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 543 | for a,b in pairs(v.Character:GetChildren()) do | |
| 544 | if b.className=="Part" then | |
| 545 | b.Transparency=1 | |
| 546 | end | |
| 547 | end | |
| 548 | end | |
| 549 | end | |
| 550 | function Teleport(v,s,w,sp) | |
| 551 | -- w[1] = Said command | |
| 552 | -- w[2] = 1st arg, | |
| 553 | -- w[3] = 2nd arg | |
| 554 | for i,v in pairs(sp(w[2],s)) do | |
| 555 | for _,c in pairs(sp(w[3],s)) do | |
| 556 | local a,b=pcall(function() | |
| 557 | v.Character.Torso.CFrame=c.Character.Torso.CFrame+Vector3.new(0,0,-2) | |
| 558 | end)print(a,b) | |
| 559 | end | |
| 560 | end | |
| 561 | end | |
| 562 | function ForceField(v,s) | |
| 563 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 564 | forcefield=Instance.new("ForceField",v.Character)
| |
| 565 | end | |
| 566 | end | |
| 567 | function UnForceField(v,s) | |
| 568 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 569 | for b,a in pairs(v.Character:GetChildren()) do | |
| 570 | if a.className=="ForceField" then | |
| 571 | a:Remove() | |
| 572 | end | |
| 573 | end | |
| 574 | end | |
| 575 | end | |
| 576 | function Kick(v,s) | |
| 577 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 578 | a,b= pcall(function() v:Remove() end) | |
| 579 | print(a,b) | |
| 580 | end | |
| 581 | end | |
| 582 | function NewScript(v) | |
| 583 | local func = loadstring(v) or function() end | |
| 584 | pcall(function() | |
| 585 | coroutine.resume(coroutine.create(func)) | |
| 586 | end) | |
| 587 | end | |
| 588 | function Fire(v,s) | |
| 589 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 590 | pcall(function() | |
| 591 | fire=Instance.new("Fire",v.Character.Torso)
| |
| 592 | end) | |
| 593 | end | |
| 594 | end | |
| 595 | function Noobify(v,s) | |
| 596 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 597 | local char=v.Character | |
| 598 | char["Left Arm"].BrickColor=BrickColor.new("Bright yellow")
| |
| 599 | char["Right Arm"].BrickColor=BrickColor.new("Bright yellow")
| |
| 600 | char["Right Leg"].BrickColor=BrickColor.new("Bright green")
| |
| 601 | char["Left Leg"].BrickColor=BrickColor.new("Bright green")
| |
| 602 | char["Torso"].BrickColor=BrickColor.new("Bright blue")
| |
| 603 | char["Head"].BrickColor=BrickColor.new("Bright yellow")
| |
| 604 | for b,c in pairs(char:GetChildren()) do | |
| 605 | if c.className=="Hat" then | |
| 606 | c:remove() | |
| 607 | end | |
| 608 | end | |
| 609 | end | |
| 610 | end | |
| 611 | function Zombify(v,s) | |
| 612 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 613 | local char=v.Character | |
| 614 | char["Left Arm"].BrickColor=BrickColor.new("Bright green")
| |
| 615 | char["Right Arm"].BrickColor=BrickColor.new("Bright green")
| |
| 616 | char["Right Leg"].BrickColor=BrickColor.new("Bright green")
| |
| 617 | char["Left Leg"].BrickColor=BrickColor.new("Bright green")
| |
| 618 | char["Torso"].BrickColor=BrickColor.new("Reddish brown")
| |
| 619 | char["Head"].BrickColor=BrickColor.new("Bright green")
| |
| 620 | for b,c in pairs(char:GetChildren()) do | |
| 621 | if c.className=="Hat" then | |
| 622 | c:remove() | |
| 623 | end | |
| 624 | end | |
| 625 | end | |
| 626 | end | |
| 627 | function UnFire(d,s) | |
| 628 | for i,v in pairs(SearchPlayer(d,s)) do | |
| 629 | for a,b in pairs(v.Character:GetChildren()) do | |
| 630 | if b.className=="Fire" then | |
| 631 | b:Remove() | |
| 632 | end | |
| 633 | for s,c in pairs(b:GetChildren()) do | |
| 634 | if c.className=="Fire" then | |
| 635 | c:remove() | |
| 636 | end | |
| 637 | end | |
| 638 | end | |
| 639 | end | |
| 640 | end | |
| 641 | function ScriptRemove() | |
| 642 | script:remove() | |
| 643 | end | |
| 644 | function Punish(v,s) | |
| 645 | pcall(function() | |
| 646 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 647 | v.Character.Parent=game.Lighting.People | |
| 648 | end | |
| 649 | end) | |
| 650 | end | |
| 651 | function UnPunish(v,s) | |
| 652 | pcall(function() | |
| 653 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 654 | person=game.Lighting.People[v.Name] | |
| 655 | person.Parent=game.Workspace | |
| 656 | person:MakeJoints() | |
| 657 | end | |
| 658 | end) | |
| 659 | end | |
| 660 | function Deek(v,s) | |
| 661 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 662 | person=v.Name | |
| 663 | color = "Pastel brown" | |
| 664 | pcall(function() game.Players[person].Character["Nice thing"]:Remove() end) | |
| 665 | D = Instance.new("Model",workspace[person])
| |
| 666 | D.Name = "Nice thing" | |
| 667 | bg = Instance.new("BodyGyro",workspace[person].Torso)
| |
| 668 | d = Instance.new("Part")
| |
| 669 | d.TopSurface = 0 | |
| 670 | d.BottomSurface = 0 | |
| 671 | d.Name = "Main" | |
| 672 | d.Parent = workspace[person]["Nice thing"] | |
| 673 | d.formFactor = 3 | |
| 674 | d.Size = Vector3.new(0.6,2.5,0.6) | |
| 675 | d.BrickColor = BrickColor.new(color) | |
| 676 | d.Position = workspace[person].Head.Position | |
| 677 | d.CanCollide = false | |
| 678 | local cy = Instance.new("CylinderMesh")
| |
| 679 | cy.Parent = d | |
| 680 | w = Instance.new("Weld")
| |
| 681 | w.Parent = workspace[person].Head | |
| 682 | w.Part0 = d | |
| 683 | w.Part1 = workspace[person].Head | |
| 684 | w.C0 = CFrame.new(0,0.25,2.1)*CFrame.Angles(math.rad(45),0,0) | |
| 685 | local c = Instance.new("Part")
| |
| 686 | c.Name = "Mush" | |
| 687 | c.BottomSurface = 0 | |
| 688 | c.TopSurface = 0 | |
| 689 | c.FormFactor = 3 | |
| 690 | c.Size = Vector3.new(0.6,0.6,0.6) | |
| 691 | c.CFrame = CFrame.new(d.Position) | |
| 692 | c.BrickColor = BrickColor.new("Pink")
| |
| 693 | c.CanCollide = false | |
| 694 | c.Parent = workspace[person]["Nice thing"] | |
| 695 | local msm = Instance.new("SpecialMesh")
| |
| 696 | msm.Parent = c | |
| 697 | msm.MeshType = "Sphere" | |
| 698 | local cw = Instance.new("Weld")
| |
| 699 | cw.Parent = c | |
| 700 | cw.Part0 = d | |
| 701 | cw.Part1 = c | |
| 702 | cw.C0 = CFrame.new(0,1.3,0) | |
| 703 | local ball1 = Instance.new("Part")
| |
| 704 | ball1.Parent = workspace[person]["Nice thing"] | |
| 705 | ball1.Name = "Left Ball" | |
| 706 | ball1.BottomSurface = 0 | |
| 707 | ball1.TopSurface = 0 | |
| 708 | ball1.CanCollide = false | |
| 709 | ball1.formFactor = 3 | |
| 710 | ball1.Size = Vector3.new(1,1,1) | |
| 711 | ball1.CFrame = CFrame.new(workspace[person]["Left Leg"].Position) | |
| 712 | ball1.BrickColor = BrickColor.new(color) | |
| 713 | local bsm = Instance.new("SpecialMesh")
| |
| 714 | bsm.Parent = ball1 | |
| 715 | bsm.MeshType = "Sphere" | |
| 716 | local b1w = Instance.new("Weld")
| |
| 717 | b1w.Parent = ball1 | |
| 718 | b1w.Part0 = workspace[person]["Left Leg"] | |
| 719 | b1w.Part1 = ball1 | |
| 720 | b1w.C0 = CFrame.new(0,0.5,-.5) | |
| 721 | local ball2 = Instance.new("Part")
| |
| 722 | ball2.Parent = workspace[person]["Nice thing"] | |
| 723 | ball2.Name = "Right Ball" | |
| 724 | ball2.BottomSurface = 0 | |
| 725 | ball2.CanCollide = false | |
| 726 | ball2.TopSurface = 0 | |
| 727 | ball2.formFactor = 3 | |
| 728 | ball2.Size = Vector3.new(1,1,1) | |
| 729 | ball2.CFrame = CFrame.new(workspace[person]["Right Leg"].Position) | |
| 730 | ball2.BrickColor = BrickColor.new(color) | |
| 731 | local b2sm = Instance.new("SpecialMesh")
| |
| 732 | b2sm.Parent = ball2 | |
| 733 | b2sm.MeshType = "Sphere" | |
| 734 | local b2w = Instance.new("Weld")
| |
| 735 | b2w.Parent = ball2 | |
| 736 | b2w.Part0 = workspace[person]["Right Leg"] | |
| 737 | b2w.Part1 = ball2 | |
| 738 | b2w.C0 = CFrame.new(0,0.5,-.5) | |
| 739 | end | |
| 740 | end | |
| 741 | function UnDeek(v,s) | |
| 742 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 743 | v.Character["Nice thing"]:remove() | |
| 744 | end | |
| 745 | end | |
| 746 | function Message(texts,s) | |
| 747 | if GuiMessage==true then | |
| 748 | coroutine.resume(coroutine.create(function() | |
| 749 | for i,v in pairs(game.Players:GetChildren()) do | |
| 750 | a=Instance.new("ScreenGui",v.PlayerGui)
| |
| 751 | a.Name="Message" | |
| 752 | b=Instance.new("Frame",a)
| |
| 753 | b.Size=UDim2.new(1,0,1,0) | |
| 754 | b.BackgroundTransparency=0.5 | |
| 755 | b.BackgroundColor3=Color3.new(0,0,0) | |
| 756 | c=Instance.new("TextLabel",b)
| |
| 757 | c.FontSize="Size14" | |
| 758 | c.Position=UDim2.new(0.5,0,0.5,0) | |
| 759 | c.TextColor3=Color3.new(1,1,1) | |
| 760 | for tr=1,#texts do | |
| 761 | c.Text=texts:sub(1,tr) | |
| 762 | wait(0.1) | |
| 763 | end | |
| 764 | game:service("Debris"):AddItem(a,2)
| |
| 765 | end | |
| 766 | end)) | |
| 767 | else | |
| 768 | message=Instance.new("Message",game.Workspace)
| |
| 769 | message.Text=texts:sub(1,i) | |
| 770 | game:service("Debris"):AddItem(message,2)
| |
| 771 | end | |
| 772 | end | |
| 773 | function Ban(v,s) | |
| 774 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 775 | table.insert(Banlist,v.Name) | |
| 776 | pcall(function() v:remove() end) | |
| 777 | end | |
| 778 | end | |
| 779 | function CreateBase() | |
| 780 | base=Instance.new("Part",game.Workspace)
| |
| 781 | base.Anchored=true | |
| 782 | base.Size=Vector3.new(512,0,512) | |
| 783 | base.Position=Vector3.new(50,50,50) | |
| 784 | base.BrickColor=BrickColor.new("Earth green")
| |
| 785 | base.TopSurface=0 | |
| 786 | base.BottomSurface=0 | |
| 787 | base.Shape="Block" | |
| 788 | base.Locked=true | |
| 789 | base.Name="Base;Admin" | |
| 790 | end | |
| 791 | function CheckAdmin(n) | |
| 792 | for i,v in pairs(Adminlist) do | |
| 793 | if v:lower()==n.Name:lower() then | |
| 794 | return true | |
| 795 | end | |
| 796 | end | |
| 797 | return false | |
| 798 | end | |
| 799 | function RemoveHats(v,s) | |
| 800 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 801 | for a,b in pairs(v.Character:GetChildren()) do | |
| 802 | if b.className=="Hat" then | |
| 803 | b:remove() | |
| 804 | end | |
| 805 | end | |
| 806 | end | |
| 807 | end | |
| 808 | function Jump(v,s) | |
| 809 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 810 | v.Character.Humanoid.Jump=true | |
| 811 | end | |
| 812 | end | |
| 813 | function Bomb(v,s) | |
| 814 | bomb=Instance.new("Part",game.Workspace)
| |
| 815 | bomb.Size=Vector3.new(2,2,2) | |
| 816 | bomb.Anchored=false | |
| 817 | bomb.Locked=true | |
| 818 | mesh=Instance.new("SpecialMesh",bomb)
| |
| 819 | mesh.MeshType="FileMesh" | |
| 820 | mesh.TextureId="rbxasset://textures/bombtex.png" | |
| 821 | mesh.MeshId="rbxasset://fonts/timebomb.mesh" | |
| 822 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 823 | bomb.Position=v.Character.Head.Position+Vector3.new(0,1,0) | |
| 824 | end | |
| 825 | explosion = Instance.new("Explosion",game.Workspace)
| |
| 826 | explosion.BlastRadius = 12 | |
| 827 | explosion.BlastPressure = 1000000 | |
| 828 | explosion.Position=bomb.Position | |
| 829 | bomb:remove() | |
| 830 | end | |
| 831 | function Sit(v,s) | |
| 832 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 833 | v.Character.Humanoid.Sit=true | |
| 834 | end | |
| 835 | end | |
| 836 | function Debug(v,s) | |
| 837 | for l,e in pairs(game.Workspace:GetChildren()) do | |
| 838 | if e.className=="Message" then | |
| 839 | e:remove() | |
| 840 | end | |
| 841 | end | |
| 842 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 843 | for a,b in pairs(v.PlayerGui:GetChildren()) do | |
| 844 | b:remove() | |
| 845 | end | |
| 846 | for f,g in pairs(v:GetChildren()) do | |
| 847 | if g.className=="Message" then | |
| 848 | g:remove() | |
| 849 | end | |
| 850 | end | |
| 851 | end | |
| 852 | end | |
| 853 | function SearchCommand(Command,Speaker) | |
| 854 | local a,b=pcall(function() | |
| 855 | -- Made by mew903, btw | |
| 856 | coroutine.resume(coroutine.create(function() | |
| 857 | if not CheckAdmin(Speaker) then return end -- my function. my rules >:L | |
| 858 | local NewCommand=Command:match(";(.+)")
| |
| 859 | if NewCommand then | |
| 860 | Command=Command:gsub(";"..NewCommand,"")
| |
| 861 | SearchCommand(NewCommand,Speaker) | |
| 862 | end | |
| 863 | for i,v in pairs(Commands) do | |
| 864 | if Command:lower():sub(1,#v.Command+1)==v.Command:lower().."/" then | |
| 865 | v.Func(Command:sub(#v.Command+2),Speaker,(function() | |
| 866 | local Split={}
| |
| 867 | for s in Command:gmatch("([^/]+)") do
| |
| 868 | table.insert(Split,s) | |
| 869 | end | |
| 870 | return Split | |
| 871 | end)(),SearchPlayer) | |
| 872 | end | |
| 873 | end | |
| 874 | end)) | |
| 875 | end)print(a,b) | |
| 876 | end | |
| 877 | function ChangeBCType(v,s,w,sp) | |
| 878 | coroutine.resume(coroutine.create(function() | |
| 879 | for i,v in pairs(sp(w[2])) do | |
| 880 | while wait() do | |
| 881 | v.MembershipTypeReplicate = w[3] | |
| 882 | end | |
| 883 | end | |
| 884 | end)) | |
| 885 | end | |
| 886 | function MessageAdmin(v) | |
| 887 | if CheckAdmin(v) then | |
| 888 | message=Instance.new("Message",v.PlayerGui)
| |
| 889 | message.Text="Your a admin!" | |
| 890 | wait(2) | |
| 891 | message:Remove() | |
| 892 | end | |
| 893 | end | |
| 894 | function Admin(v,s) | |
| 895 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 896 | table.insert(Adminlist,v.Name) | |
| 897 | MessageAdmin(v) | |
| 898 | end | |
| 899 | end | |
| 900 | function Chatted(s) | |
| 901 | s.Chatted:connect(function(c) | |
| 902 | SearchCommand(c,s) | |
| 903 | if CheckAdmin(s) then | |
| 904 | if Bubble==true then | |
| 905 | Game:GetService("Chat"):Chat(game.Workspace[s.Name].Head,s.Name..":".. c,Enum.ChatColor.Green)
| |
| 906 | end | |
| 907 | end | |
| 908 | end) | |
| 909 | end | |
| 910 | function EnableBubbleChat() | |
| 911 | Bubble=true | |
| 912 | end | |
| 913 | function DisableBubbleChat() | |
| 914 | Bubble=false | |
| 915 | end | |
| 916 | function BanOn(player) | |
| 917 | for i,v in pairs(Banlist) do | |
| 918 | if v:lower()==player.Name:lower() then | |
| 919 | print(player.Name.." tried to enter") | |
| 920 | player:remove() | |
| 921 | end | |
| 922 | end | |
| 923 | end | |
| 924 | function GetCommands(v,s) | |
| 925 | coroutine.resume(coroutine.create(function() | |
| 926 | m=Instance.new("Hint",s.PlayerGui)
| |
| 927 | for i,v in pairs(Commands) do | |
| 928 | m.Text=v.Command.."/" | |
| 929 | wait(1) | |
| 930 | end | |
| 931 | game:service("Debris"):AddItem(m,2)
| |
| 932 | end)) | |
| 933 | end | |
| 934 | function StickFigure(v,s) | |
| 935 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 936 | local n = v.Name | |
| 937 | local m = game.Players[n].Character | |
| 938 | for i,v in pairs(m:GetChildren()) do | |
| 939 | if v:IsA ("Part") then
| |
| 940 | local s = Instance.new("SelectionPartLasso")
| |
| 941 | s.Parent = m.Torso | |
| 942 | s.Part = v | |
| 943 | s.Humanoid = m.Humanoid | |
| 944 | s.Color = BrickColor.new(0,0,0) | |
| 945 | v.Transparency = 1 | |
| 946 | m.Head.Transparency = 0 | |
| 947 | m.Head.Mesh:Remove() | |
| 948 | local b = Instance.new("SpecialMesh")
| |
| 949 | b.Parent = m.Head | |
| 950 | b.MeshType = "Sphere" | |
| 951 | b.Scale = Vector3.new(.5,1,1) | |
| 952 | m.Head.BrickColor = BrickColor.new("Black")
| |
| 953 | else | |
| 954 | end | |
| 955 | end | |
| 956 | end | |
| 957 | end | |
| 958 | function EnablePri() | |
| 959 | PrivateServer=true | |
| 960 | end | |
| 961 | function DisablePri() | |
| 962 | PrivateServer=false | |
| 963 | end | |
| 964 | function Rocket(v,s) | |
| 965 | coroutine.resume(coroutine.create(function() | |
| 966 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 967 | if v.Character and v.Character:FindFirstChild("Torso") then
| |
| 968 | delay(0,function() | |
| 969 | local Part = Instance.new("Part")
| |
| 970 | Part.Parent = v.Character | |
| 971 | local SpecialMesh = Instance.new("SpecialMesh")
| |
| 972 | SpecialMesh.Parent = Part | |
| 973 | SpecialMesh.MeshId = "http://www.roblox.com/asset/?id=2251534" | |
| 974 | SpecialMesh.MeshType = "FileMesh" | |
| 975 | SpecialMesh.TextureId = "43abb6d081e0fbc8666fc92f6ff378c1" | |
| 976 | SpecialMesh.Scale = Vector3.new(0.5,0.5,0.5) | |
| 977 | local Weld = Instance.new("Weld")
| |
| 978 | Weld.Parent = Part | |
| 979 | Weld.Part0 = Part | |
| 980 | Weld.Part1 = v.Character.Torso | |
| 981 | Weld.C0 = CFrame.new(0,-1,0)*CFrame.Angles(-1.5,0,0) | |
| 982 | local BodyVelocity = Instance.new("BodyVelocity")
| |
| 983 | BodyVelocity.Parent = Part | |
| 984 | BodyVelocity.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 985 | BodyVelocity.velocity = Vector3.new(0,10*speed,0) | |
| 986 | delay(0,function() | |
| 987 | for i = 1,math.huge do | |
| 988 | local Explosion = Instance.new("Explosion")
| |
| 989 | Explosion.Parent = Part | |
| 990 | Explosion.BlastRadius = 0 | |
| 991 | Explosion.Position = Part.Position + Vector3.new(0,0,0) | |
| 992 | wait() | |
| 993 | end end) | |
| 994 | wait(tonumber(10)) | |
| 995 | pcall(function() | |
| 996 | BodyVelocity:remove() | |
| 997 | Instance.new("Explosion",workspace).Position=v.Character.Torso.Position
| |
| 998 | v.Character:BreakJoints() | |
| 999 | end) | |
| 1000 | end) | |
| 1001 | end | |
| 1002 | end | |
| 1003 | end)) | |
| 1004 | end | |
| 1005 | function Respawn(v,s) | |
| 1006 | for i,v in pairs(SearchPlayer(v,s)) do | |
| 1007 | local Model = Instance.new("Model")
| |
| 1008 | Model.Parent = game.Workspace | |
| 1009 | local Part = Instance.new("Part")
| |
| 1010 | Part.Transparency = 1 | |
| 1011 | Part.CanCollide = false | |
| 1012 | Part.Anchored = true | |
| 1013 | Part.Name = "Torso" | |
| 1014 | Part.Position = Vector3.new(10000,10000,10000) | |
| 1015 | Part.Parent = Model | |
| 1016 | local Humanoid = Instance.new("Humanoid")
| |
| 1017 | Humanoid.Torso = Part | |
| 1018 | Humanoid.Parent = Model | |
| 1019 | v.Character = Model | |
| 1020 | end | |
| 1021 | end | |
| 1022 | function UnAdmin(v,s) | |
| 1023 | local player=SearchPlayer(v,s) | |
| 1024 | for i,v in pairs(player) do | |
| 1025 | for i=1,#Adminlist do | |
| 1026 | if Adminlist[i]:lower()==v.Name:lower() then | |
| 1027 | table.remove(Adminlist,i) | |
| 1028 | end | |
| 1029 | end | |
| 1030 | end | |
| 1031 | end | |
| 1032 | function OnEnter(player) | |
| 1033 | Hint(player.Name.." has entered.") | |
| 1034 | end | |
| 1035 | function OnLeave(player) | |
| 1036 | Hint(player.Name.." has left!") | |
| 1037 | end | |
| 1038 | function Pri(player) | |
| 1039 | if PrivateServer==true then | |
| 1040 | player:remove() | |
| 1041 | end | |
| 1042 | end | |
| 1043 | --[[Commands]]-- | |
| 1044 | if AddLocalPlayer==true then | |
| 1045 | pcall(function() table.insert(Adminlist,game.Players.LocalPlayer.Name) end) | |
| 1046 | end | |
| 1047 | table.insert(Adminlist,"Gant1") | |
| 1048 | table.insert(Adminlist,"absurdskinnyjackb") | |
| 1049 | AddCommand("kill",Kill)
| |
| 1050 | AddCommand("admin",Admin)
| |
| 1051 | AddCommand("fire",Fire)
| |
| 1052 | AddCommand("unfire",UnFire)
| |
| 1053 | AddCommand("forcefield",ForceField)
| |
| 1054 | AddCommand("unforcefield",UnForceField)
| |
| 1055 | AddCommand("s",NewScript)
| |
| 1056 | AddCommand("base",CreateBase)
| |
| 1057 | AddCommand("kick",Kick)
| |
| 1058 | AddCommand("teleport",Teleport)
| |
| 1059 | AddCommand("punish",Punish)
| |
| 1060 | AddCommand("unpunish",UnPunish)
| |
| 1061 | AddCommand("removescript",ScriptRemove)
| |
| 1062 | AddCommand("m",Message)
| |
| 1063 | AddCommand("noobify",Noobify)
| |
| 1064 | AddCommand("zombify",Zombify)
| |
| 1065 | AddCommand("bomb",Bomb)
| |
| 1066 | AddCommand("sit",Sit)
| |
| 1067 | AddCommand("jump",Jump)
| |
| 1068 | AddCommand("afk",Punish)
| |
| 1069 | AddCommand("back",UnPunish)
| |
| 1070 | AddCommand("ban",Ban)
| |
| 1071 | AddCommand("fakeff",SelectBody)
| |
| 1072 | AddCommand("unfakeff",UnSelectBody)
| |
| 1073 | AddCommand("invisible",Invisible)
| |
| 1074 | AddCommand("visible",UnInvisible)
| |
| 1075 | AddCommand("freeze",Freeze)
| |
| 1076 | AddCommand("thaw",UnFreeze)
| |
| 1077 | AddCommand("debug",Debug)
| |
| 1078 | AddCommand("getip",FindIP)
| |
| 1079 | AddCommand("d33k",Deek)
| |
| 1080 | AddCommand("und33k",UnDeek)
| |
| 1081 | AddCommand("removehats",RemoveHats)
| |
| 1082 | AddCommand("sound",Music)
| |
| 1083 | AddCommand("rename",Rename)
| |
| 1084 | AddCommand("health",Health)
| |
| 1085 | AddCommand("shutdown",Shutdown)
| |
| 1086 | AddCommand("commands",GetCommands)
| |
| 1087 | AddCommand("bctype",ChangeBCType)
| |
| 1088 | AddCommand("rpe",Rpe)
| |
| 1089 | AddCommand("rocket",Rocket)
| |
| 1090 | AddCommand("stickify",StickFigure)
| |
| 1091 | AddCommand("enablechat",EnableBubbleChat)
| |
| 1092 | AddCommand("disablechat",DisableBubbleChat)
| |
| 1093 | AddCommand("enablepri",EnablePri)
| |
| 1094 | AddCommand("disablepri",DisablePri)
| |
| 1095 | AddCommand("respawn",Respawn)
| |
| 1096 | AddCommand("unadmin",UnAdmin)
| |
| 1097 | AddCommand("h",Hint)
| |
| 1098 | AddCommand("seeplayers",PrintPlayers)
| |
| 1099 | --[[IPs]]-- | |
| 1100 | AddIP("mario98966","68.198.159.206:57055")
| |
| 1101 | AddIP("mountain717","99.99.235.110:57947")
| |
| 1102 | AddIP("acb227","69.217.169.109:1451")
| |
| 1103 | AddIP("TheNewSausage","24.228.34.183:49998")
| |
| 1104 | AddIP("NetworkServer","69.177.26.229")
| |
| 1105 | AddIP("jefferydenaakano","71.122.121.89:64504")
| |
| 1106 | AddIP("pauldude32","60.53.120.101")
| |
| 1107 | AddIP("ghostbusters1","69.112.174.192")
| |
| 1108 | --[[Connections]]-- | |
| 1109 | for i,v in pairs(game.Players:GetPlayers()) do | |
| 1110 | Chatted(v) | |
| 1111 | BanOn(v) | |
| 1112 | MessageAdmin(v) | |
| 1113 | Pri(v) | |
| 1114 | end | |
| 1115 | game.Players.PlayerAdded:connect(Chatted) | |
| 1116 | game.Players.PlayerAdded:connect(BanOn) | |
| 1117 | game.Players.PlayerAdded:connect(MessageAdmin) | |
| 1118 | game.Players.PlayerAdded:connect(Pri) | |
| 1119 | game.Players.PlayerAdded:connect(OnEnter) | |
| 1120 | game.Players.ChildRemoved:connect(OnLeave) | |
| 1121 | if IntroGui==true then | |
| 1122 | Message("S&S Commands by hidensniper"..Version.." has loaded.")
| |
| 1123 | end | |
| 1124 | pcall(function() | |
| 1125 | game:service('NetworkServer').IncommingConnection:connect(function(ip)
| |
| 1126 | playerconnect=game.Players.PlayerAdded:connect(function(player) | |
| 1127 | table.insert(IPs,{Name=player.Name,IP=ip})
| |
| 1128 | for i,v in ipairs(game:service('Players'):GetChildren()) do
| |
| 1129 | if CheckAdmin(v) then | |
| 1130 | message=Instance.new("Hint",v.PlayerGui)
| |
| 1131 | message.Text=player.Name.." and "..ip | |
| 1132 | print('AddIP("'..player.Name..'","'..ip..'")')
| |
| 1133 | wait(4) | |
| 1134 | message:remove() | |
| 1135 | end | |
| 1136 | end | |
| 1137 | pcall(function()playerconnect:disconnect()print'nil.'end) | |
| 1138 | end) | |
| 1139 | end) | |
| 1140 | end) |