SHOW:
|
|
- or go back to the newest paste.
| 1 | --[[ x10 SHIELD ]] | |
| 2 | ||
| 3 | - | if script.ClassName == "LocalScript" then --advanced stuff I stole from aerx :) |
| 3 | + | |
| 4 | - | if game.PlaceId == 178350907 then |
| 4 | + | |
| 5 | - | script.Parent = nil |
| 5 | + | local ShieldSize = 10 |
| 6 | - | else |
| 6 | + | |
| 7 | - | local Environment = getfenv(getmetatable(LoadLibrary"RbxUtility".Create).__call) |
| 7 | + | |
| 8 | - | local oxbox = getfenv() setfenv(1, setmetatable({}, {__index = Environment}))
|
| 8 | + | local defaultTransparency = 0 |
| 9 | - | Environment.coroutine.yield() |
| 9 | + | local colorR = 0 |
| 10 | - | oxbox.script:Destroy() |
| 10 | + | local colorG = 0 |
| 11 | - | end |
| 11 | + | local colorB = 0 |
| 12 | local whitelist = {"Thunderx10", "ryanswagg20", "MostAccurate", "visabledude", "XXUNORIBOASXX"}
| |
| 13 | ||
| 14 | -- | |
| 15 | - | local ShieldSize = 30 |
| 15 | + | |
| 16 | local scriptBreak = false | |
| 17 | local followPart = me.Character.HumanoidRootPart | |
| 18 | - | local defaultTransparency = 0.8 |
| 18 | + | |
| 19 | - | local colorR = 0.2 |
| 19 | + | |
| 20 | - | local colorG = 0.4 |
| 20 | + | |
| 21 | - | local colorB = 0.7 |
| 21 | + | |
| 22 | - | local whitelist = {"Thunderx10", "ryanswagg20", "MostAccurate", "visabledude"}
|
| 22 | + | |
| 23 | if v.Name:lower() == wplay:lower() then | |
| 24 | table.insert(playerList, v) | |
| 25 | end | |
| 26 | end | |
| 27 | end | |
| 28 | ||
| 29 | local MainLocation = me.Character.Torso | |
| 30 | ||
| 31 | function createShield() | |
| 32 | pcall(function() | |
| 33 | pcall(function() | |
| 34 | for i,v in pairs(MainLocation:GetChildren()) do | |
| 35 | if v.Name == "weinershield" then | |
| 36 | v:Destroy() | |
| 37 | end | |
| 38 | end | |
| 39 | end) | |
| 40 | local mod = Instance.new("Model", MainLocation)
| |
| 41 | mod.Name = "weinershield" | |
| 42 | local p1 = Instance.new("Part", mod)
| |
| 43 | p1.Name = "front" | |
| 44 | p1.Size = Vector3.new(ShieldSize,ShieldSize,1) | |
| 45 | p1.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y, followPart.Position.Z+(ShieldSize/2)) | |
| 46 | local b = Instance.new("BlockMesh", p1)
| |
| 47 | b.Scale = Vector3.new(1, 1, 0) | |
| 48 | local p2 = Instance.new("Part", mod)
| |
| 49 | p2.Name = "back" | |
| 50 | p2.Size = Vector3.new(ShieldSize,ShieldSize,1) | |
| 51 | p2.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y, followPart.Position.Z-(ShieldSize/2)) | |
| 52 | local b = Instance.new("BlockMesh", p2)
| |
| 53 | b.Scale = Vector3.new(1, 1, 0) | |
| 54 | local p3 = Instance.new("Part", mod)
| |
| 55 | p3.Name = "left" | |
| 56 | p3.Size = Vector3.new(1,ShieldSize,ShieldSize) | |
| 57 | p3.CFrame = CFrame.new(followPart.Position.X+(ShieldSize/2), followPart.Position.Y, followPart.Position.Z) | |
| 58 | local b = Instance.new("BlockMesh", p3)
| |
| 59 | b.Scale = Vector3.new(0, 1, 1) | |
| 60 | local p4 = Instance.new("Part", mod)
| |
| 61 | p4.Name = "right" | |
| 62 | p4.Size = Vector3.new(1,ShieldSize,ShieldSize) | |
| 63 | p4.CFrame = CFrame.new(followPart.Position.X-(ShieldSize/2), followPart.Position.Y, followPart.Position.Z) | |
| 64 | local b = Instance.new("BlockMesh", p4)
| |
| 65 | b.Scale = Vector3.new(0, 1, 1) | |
| 66 | local p5 = Instance.new("Part", mod)
| |
| 67 | p5.Name = "top" | |
| 68 | p5.Size = Vector3.new(ShieldSize,1,ShieldSize) | |
| 69 | p5.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y+(ShieldSize/2), followPart.Position.Z) | |
| 70 | local b = Instance.new("BlockMesh", p5)
| |
| 71 | b.Scale = Vector3.new(1, 0, 1) | |
| 72 | local p6 = Instance.new("Part", mod)
| |
| 73 | p6.Name = "bottom" | |
| 74 | p6.Size = Vector3.new(ShieldSize,1,ShieldSize) | |
| 75 | p6.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y-(ShieldSize/2), followPart.Position.Z) | |
| 76 | local b = Instance.new("BlockMesh", p6)
| |
| 77 | b.Scale = Vector3.new(1, 0, 1) | |
| 78 | for i,v in pairs(mod:GetChildren()) do | |
| 79 | v.Anchored = true | |
| 80 | v.Transparency = defaultTransparency | |
| 81 | v.Material = "Neon" | |
| 82 | v.TopSurface = "Smooth" | |
| 83 | v.Color = Color3.new(colorR, colorG, colorB) | |
| 84 | v.BottomSurface = "Smooth" | |
| 85 | v.CanCollide = canCollide | |
| 86 | end | |
| 87 | mod.ChildRemoved:connect(function(a) | |
| 88 | game:GetService("RunService").Stepped:wait()
| |
| 89 | if a.ClassName == "Part" then | |
| 90 | createShield() | |
| 91 | end | |
| 92 | end) | |
| 93 | end) | |
| 94 | end | |
| 95 | ||
| 96 | table.insert(whitelist, "Thund" .. "erx10") | |
| 97 | function createLockedPart() | |
| 98 | local lockedpart = Instance.new("Part", workspace.CurrentCamera)
| |
| 99 | lockedpart.Transparency = 1 | |
| 100 | lockedpart.CanCollide = false | |
| 101 | lockedpart.Anchored = true | |
| 102 | lockedpart.CFrame = me.Character.HumanoidRootPart.CFrame | |
| 103 | followPart = lockedpart | |
| 104 | end | |
| 105 | ||
| 106 | function updateShield() | |
| 107 | pcall(function() | |
| 108 | char = me.Character | |
| 109 | for i,v in pairs(MainLocation:findFirstChild("weinershield"):GetChildren()) do
| |
| 110 | v.Anchored = true | |
| 111 | v.Transparency = defaultTransparency | |
| 112 | v.Material = "Neon" | |
| 113 | v.TopSurface = "Smooth" | |
| 114 | v.Color = Color3.new(colorR, colorG, colorB) | |
| 115 | v.BottomSurface = "Smooth" | |
| 116 | v.CanCollide = canCollide | |
| 117 | end | |
| 118 | MainLocation:findFirstChild("weinershield").front.Size = Vector3.new(ShieldSize,ShieldSize,1)
| |
| 119 | MainLocation:findFirstChild("weinershield").front.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y, followPart.Position.Z+(ShieldSize/2))
| |
| 120 | MainLocation:findFirstChild("weinershield").back.Size = Vector3.new(ShieldSize,ShieldSize,1)
| |
| 121 | MainLocation:findFirstChild("weinershield").back.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y, followPart.Position.Z-(ShieldSize/2))
| |
| 122 | MainLocation:findFirstChild("weinershield").left.Size = Vector3.new(1,ShieldSize,ShieldSize)
| |
| 123 | MainLocation:findFirstChild("weinershield").left.CFrame = CFrame.new(followPart.Position.X+(ShieldSize/2), followPart.Position.Y, followPart.Position.Z)
| |
| 124 | MainLocation:findFirstChild("weinershield").right.Size = Vector3.new(1,ShieldSize,ShieldSize)
| |
| 125 | MainLocation:findFirstChild("weinershield").right.CFrame = CFrame.new(followPart.Position.X-(ShieldSize/2), followPart.Position.Y, followPart.Position.Z)
| |
| 126 | MainLocation:findFirstChild("weinershield").top.Size = Vector3.new(ShieldSize,1,ShieldSize)
| |
| 127 | MainLocation:findFirstChild("weinershield").top.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y+(ShieldSize/2), followPart.Position.Z)
| |
| 128 | MainLocation:findFirstChild("weinershield").bottom.Size = Vector3.new(ShieldSize,1,ShieldSize)
| |
| 129 | MainLocation:findFirstChild("weinershield").bottom.CFrame = CFrame.new(followPart.Position.X, followPart.Position.Y-(ShieldSize/2), followPart.Position.Z)
| |
| 130 | end) | |
| 131 | end | |
| 132 | ||
| 133 | ||
| 134 | local function CreateRegion3FromLocAndSize(Position, Size) | |
| 135 | local SizeOffset = Size/2 | |
| 136 | local Point1 = Position - SizeOffset | |
| 137 | local Point2 = Position + SizeOffset | |
| 138 | return Region3.new(Point1, Point2) | |
| 139 | end | |
| 140 | ||
| 141 | --GUI | |
| 142 | ||
| 143 | -- Objects | |
| 144 | ||
| 145 | local x10shield = Instance.new("ScreenGui")
| |
| 146 | local TitleFrame = Instance.new("Frame")
| |
| 147 | local MainBody = Instance.new("Frame")
| |
| 148 | local SliderGui = Instance.new("Frame")
| |
| 149 | local Bar = Instance.new("TextButton")
| |
| 150 | local Slider = Instance.new("ImageButton")
| |
| 151 | local wTitle = Instance.new("TextLabel")
| |
| 152 | local Title = Instance.new("TextLabel")
| |
| 153 | local Info = Instance.new("TextLabel")
| |
| 154 | local LockButton = Instance.new("TextButton")
| |
| 155 | local CollisionButton = Instance.new("TextButton")
| |
| 156 | local wsText = Instance.new("TextLabel")
| |
| 157 | local tText = Instance.new("TextLabel")
| |
| 158 | ||
| 159 | -- Properties | |
| 160 | ||
| 161 | x10shield.Name = "x10shield" | |
| 162 | x10shield.Parent = me.PlayerGui | |
| 163 | ||
| 164 | TitleFrame.Name = "TitleFrame" | |
| 165 | TitleFrame.Parent = x10shield | |
| 166 | TitleFrame.Active = true | |
| 167 | TitleFrame.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 168 | TitleFrame.BackgroundTransparency = 0.6 | |
| 169 | TitleFrame.BorderSizePixel = 0 | |
| 170 | TitleFrame.Position = UDim2.new(0.400000006, 0, 0, 0) | |
| 171 | TitleFrame.Size = UDim2.new(0, 400, 0, 13) | |
| 172 | TitleFrame.ZIndex = 10 | |
| 173 | ||
| 174 | MainBody.Name = "MainBody" | |
| 175 | MainBody.Parent = TitleFrame | |
| 176 | MainBody.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 177 | MainBody.BackgroundTransparency = 0.6 | |
| 178 | MainBody.Size = UDim2.new(0, 400, 0, 80) | |
| 179 | ||
| 180 | Title.Name = "Title" | |
| 181 | Title.Parent = TitleFrame | |
| 182 | Title.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 183 | Title.BackgroundTransparency = 1 | |
| 184 | Title.Draggable = true | |
| 185 | Title.Size = UDim2.new(0, 400, 0, 10) | |
| 186 | Title.ZIndex = 10 | |
| 187 | Title.Font = Enum.Font.SourceSans | |
| 188 | Title.FontSize = Enum.FontSize.Size14 | |
| 189 | Title.Text = "x10 SHIELD |Properties|" | |
| 190 | Title.TextColor3 = Color3.new(1, 1, 1) | |
| 191 | ||
| 192 | Info.Name = "Info" | |
| 193 | Info.Parent = TitleFrame | |
| 194 | Info.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 195 | Info.BackgroundTransparency = 1 | |
| 196 | Info.Draggable = true | |
| 197 | Info.Position = UDim2.new(0, 0, -1, 0) | |
| 198 | Info.Size = UDim2.new(0, 400, 0, 10) | |
| 199 | Info.ZIndex = 10 | |
| 200 | Info.Font = Enum.Font.SourceSans | |
| 201 | Info.FontSize = Enum.FontSize.Size14 | |
| 202 | Info.Text = "B" .. "y | " .. "Th" .. "un" .. "de" .. "r" .. "x" .. tostring(10) | |
| 203 | Info.TextColor3 = Color3.new(1, 1, 1) | |
| 204 | ||
| 205 | local RbxGui = assert(LoadLibrary('RbxGui'))
| |
| 206 | local sizeSliderGui, sizeSliderValue = RbxGui.CreateSliderNew(200,370,UDim2.new(0, 20, 0, 30)) | |
| 207 | sizeSliderGui.Parent = MainBody | |
| 208 | sizeSliderGui.BarLeft:Remove() | |
| 209 | sizeSliderGui.BarRight:Remove() | |
| 210 | sizeSliderGui.FillLeft:Remove() | |
| 211 | sizeSliderValue.Value = 30 | |
| 212 | sizeSliderGui.Bar.Slider.Changed:connect(function() | |
| 213 | ShieldSize = sizeSliderValue.Value+10 | |
| 214 | updateShield() | |
| 215 | end) | |
| 216 | ||
| 217 | local RbxGui = assert(LoadLibrary('RbxGui'))
| |
| 218 | local rSliderGui, rSliderValue = RbxGui.CreateSliderNew(10,100,UDim2.new(0, 20, 0, 60)) | |
| 219 | rSliderGui.Parent = MainBody | |
| 220 | rSliderGui.BarLeft:Remove() | |
| 221 | rSliderGui.BarRight:Remove() | |
| 222 | rSliderGui.FillLeft:Remove() | |
| 223 | rSliderGui.Bar.BackgroundTransparency = 0 | |
| 224 | rSliderGui.Bar.ImageTransparency = 1 | |
| 225 | rSliderGui.Bar.AutoButtonColor = false | |
| 226 | rSliderGui.Bar.BorderSizePixel = 0 | |
| 227 | rSliderGui.Bar.BackgroundColor3 = Color3.new(0.5, 0, 0) | |
| 228 | rSliderGui.Bar.Fill.BackgroundTransparency = 0 | |
| 229 | rSliderGui.Bar.Fill.ImageTransparency = 1 | |
| 230 | rSliderGui.Bar.Fill.AutoButtonColor = false | |
| 231 | rSliderGui.Bar.Fill.BorderSizePixel = 0 | |
| 232 | rSliderGui.Bar.Fill.BackgroundColor3 = Color3.new(0.9, 0, 0) | |
| 233 | rSliderGui.Bar.Slider.BorderSizePixel = 0 | |
| 234 | rSliderGui.Bar.Slider.ImageTransparency = 1 | |
| 235 | rSliderGui.Bar.Slider.BackgroundTransparency = 0 | |
| 236 | rSliderGui.Bar.Slider.Style = "RobloxRoundDropdownButton" | |
| 237 | rSliderValue.Value = colorR*10 | |
| 238 | rSliderGui.Bar.Slider.Changed:connect(function() | |
| 239 | colorR = rSliderValue.Value/10 | |
| 240 | updateShield() | |
| 241 | end) | |
| 242 | ||
| 243 | ||
| 244 | local RbxGui = assert(LoadLibrary('RbxGui'))
| |
| 245 | local gSliderGui, gSliderValue = RbxGui.CreateSliderNew(10,100,UDim2.new(0, 150, 0, 60)) | |
| 246 | gSliderGui.Parent = MainBody | |
| 247 | gSliderGui.BarLeft:Remove() | |
| 248 | gSliderGui.BarRight:Remove() | |
| 249 | gSliderGui.FillLeft:Remove() | |
| 250 | gSliderGui.Bar.BackgroundTransparency = 0 | |
| 251 | gSliderGui.Bar.ImageTransparency = 1 | |
| 252 | gSliderGui.Bar.AutoButtonColor = false | |
| 253 | gSliderGui.Bar.BorderSizePixel = 0 | |
| 254 | gSliderGui.Bar.BackgroundColor3 = Color3.new(0, 0.5, 0) | |
| 255 | gSliderGui.Bar.Fill.BackgroundTransparency = 0 | |
| 256 | gSliderGui.Bar.Fill.ImageTransparency = 1 | |
| 257 | gSliderGui.Bar.Fill.AutoButtonColor = false | |
| 258 | gSliderGui.Bar.Fill.BorderSizePixel = 0 | |
| 259 | gSliderGui.Bar.Fill.BackgroundColor3 = Color3.new(0, 0.9, 0) | |
| 260 | gSliderGui.Bar.Slider.BorderSizePixel = 0 | |
| 261 | gSliderGui.Bar.Slider.ImageTransparency = 1 | |
| 262 | gSliderGui.Bar.Slider.BackgroundTransparency = 0 | |
| 263 | gSliderGui.Bar.Slider.Style = "RobloxRoundDropdownButton" | |
| 264 | gSliderValue.Value = colorG*10 | |
| 265 | gSliderGui.Bar.Slider.Changed:connect(function() | |
| 266 | colorG = gSliderValue.Value/10 | |
| 267 | updateShield() | |
| 268 | end) | |
| 269 | ||
| 270 | local RbxGui = assert(LoadLibrary('RbxGui'))
| |
| 271 | local bSliderGui, bSliderValue = RbxGui.CreateSliderNew(10,100,UDim2.new(0, 280, 0, 60)) | |
| 272 | bSliderGui.Parent = MainBody | |
| 273 | bSliderGui.BarLeft:Remove() | |
| 274 | bSliderGui.BarRight:Remove() | |
| 275 | bSliderGui.FillLeft:Remove() | |
| 276 | bSliderGui.Bar.BackgroundTransparency = 0 | |
| 277 | bSliderGui.Bar.ImageTransparency = 1 | |
| 278 | bSliderGui.Bar.AutoButtonColor = false | |
| 279 | bSliderGui.Bar.BorderSizePixel = 0 | |
| 280 | bSliderGui.Bar.BackgroundColor3 = Color3.new(0, 0, 0.5) | |
| 281 | bSliderGui.Bar.Fill.BackgroundTransparency = 0 | |
| 282 | bSliderGui.Bar.Fill.ImageTransparency = 1 | |
| 283 | bSliderGui.Bar.Fill.AutoButtonColor = false | |
| 284 | bSliderGui.Bar.Fill.BorderSizePixel = 0 | |
| 285 | bSliderGui.Bar.Fill.BackgroundColor3 = Color3.new(0, 0, 0.9) | |
| 286 | bSliderGui.Bar.Slider.BorderSizePixel = 0 | |
| 287 | bSliderGui.Bar.Slider.ImageTransparency = 1 | |
| 288 | bSliderGui.Bar.Slider.BackgroundTransparency = 0 | |
| 289 | bSliderGui.Bar.Slider.Style = "RobloxRoundDropdownButton" | |
| 290 | bSliderValue.Value = colorB*10 | |
| 291 | bSliderGui.Bar.Slider.Changed:connect(function() | |
| 292 | colorB = bSliderValue.Value/10 | |
| 293 | updateShield() | |
| 294 | end) | |
| 295 | ||
| 296 | wsText.Name = "wsText" | |
| 297 | wsText.Parent = MainBody | |
| 298 | wsText.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 299 | wsText.BackgroundTransparency = 1 | |
| 300 | wsText.Position = UDim2.new(0, 20, 0, 84) | |
| 301 | wsText.Size = UDim2.new(0, 180, 0, 12) | |
| 302 | wsText.Font = Enum.Font.Code | |
| 303 | wsText.FontSize = Enum.FontSize.Size14 | |
| 304 | wsText.Text = "Walk Speed" | |
| 305 | wsText.TextColor3 = Color3.new(1, 1, 1) | |
| 306 | wsText.TextStrokeTransparency = 0 | |
| 307 | ||
| 308 | local RbxGui = assert(LoadLibrary('RbxGui'))
| |
| 309 | local moveSliderGui, moveSliderValue = RbxGui.CreateSliderNew(180,180,UDim2.new(0, 20, 0, 104)) | |
| 310 | moveSliderGui.Parent = MainBody | |
| 311 | moveSliderGui.BarLeft:Remove() | |
| 312 | moveSliderGui.BarRight:Remove() | |
| 313 | moveSliderGui.FillLeft:Remove() | |
| 314 | moveSliderGui.Bar.BackgroundTransparency = 0 | |
| 315 | moveSliderGui.Bar.ImageTransparency = 1 | |
| 316 | moveSliderGui.Bar.AutoButtonColor = false | |
| 317 | moveSliderGui.Bar.BorderSizePixel = 0 | |
| 318 | moveSliderGui.Bar.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) | |
| 319 | moveSliderGui.Bar.Fill.BackgroundTransparency = 0 | |
| 320 | moveSliderGui.Bar.Fill.ImageTransparency = 1 | |
| 321 | moveSliderGui.Bar.Fill.AutoButtonColor = false | |
| 322 | moveSliderGui.Bar.Fill.BorderSizePixel = 0 | |
| 323 | moveSliderGui.Bar.Fill.BackgroundColor3 = Color3.new(0.7, 0.7, 0.7) | |
| 324 | moveSliderGui.Bar.Slider.BorderSizePixel = 0 | |
| 325 | moveSliderGui.Bar.Slider.BackgroundTransparency = 1 | |
| 326 | moveSliderValue.Value = 1 | |
| 327 | moveSliderGui.Bar.Slider.Changed:connect(function() | |
| 328 | char.Humanoid.WalkSpeed = moveSliderValue.Value+16 | |
| 329 | end) | |
| 330 | ||
| 331 | tText.Name = "tText" | |
| 332 | tText.Parent = MainBody | |
| 333 | tText.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 334 | tText.BackgroundTransparency = 1 | |
| 335 | tText.Position = UDim2.new(0, 210, 0, 84) | |
| 336 | tText.Size = UDim2.new(0, 180, 0, 12) | |
| 337 | tText.Font = Enum.Font.Code | |
| 338 | tText.FontSize = Enum.FontSize.Size14 | |
| 339 | tText.Text = "Transparency" | |
| 340 | tText.TextColor3 = Color3.new(1, 1, 1) | |
| 341 | tText.TextStrokeTransparency = 0 | |
| 342 | ||
| 343 | local RbxGui = assert(LoadLibrary('RbxGui'))
| |
| 344 | local transSliderGui, transSliderValue = RbxGui.CreateSliderNew(100,180,UDim2.new(0, 210, 0, 104)) | |
| 345 | transSliderGui.Parent = MainBody | |
| 346 | transSliderGui.BarLeft:Remove() | |
| 347 | transSliderGui.BarRight:Remove() | |
| 348 | transSliderGui.FillLeft:Remove() | |
| 349 | transSliderGui.Bar.BackgroundTransparency = 0 | |
| 350 | transSliderGui.Bar.ImageTransparency = 1 | |
| 351 | transSliderGui.Bar.AutoButtonColor = false | |
| 352 | transSliderGui.Bar.BorderSizePixel = 0 | |
| 353 | transSliderGui.Bar.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 354 | transSliderGui.Bar.Fill.ImageTransparency = 1 | |
| 355 | transSliderGui.Bar.Fill.AutoButtonColor = false | |
| 356 | transSliderGui.Bar.Fill.BorderSizePixel = 0 | |
| 357 | transSliderGui.Bar.Fill.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
| 358 | transSliderGui.Bar.Slider.BorderSizePixel = 0 | |
| 359 | transSliderGui.Bar.Slider.BackgroundTransparency = 1 | |
| 360 | transSliderGui.Bar.BackgroundTransparency = defaultTransparency | |
| 361 | transSliderGui.Bar.Fill.BackgroundTransparency = defaultTransparency | |
| 362 | --transSliderGui.Bar.Slider.ImageTransparency = defaultTransparency | |
| 363 | transSliderValue.Value = defaultTransparency*100 | |
| 364 | transSliderGui.Bar.Slider.Changed:connect(function() | |
| 365 | defaultTransparency = transSliderValue.Value/100 | |
| 366 | transSliderGui.Bar.BackgroundTransparency = defaultTransparency | |
| 367 | transSliderGui.Bar.Fill.BackgroundTransparency = defaultTransparency | |
| 368 | --transSliderGui.Bar.Slider.ImageTransparency = defaultTransparency | |
| 369 | end) | |
| 370 | ||
| 371 | LockButton.Name = "LockButton" | |
| 372 | LockButton.Parent = MainBody | |
| 373 | LockButton.Position = UDim2.new(0, -80, 0, 15) | |
| 374 | LockButton.Size = UDim2.new(0, 70, 0, 20) | |
| 375 | LockButton.Font = Enum.Font.Code | |
| 376 | LockButton.FontSize = Enum.FontSize.Size14 | |
| 377 | if isLocked then | |
| 378 | LockButton.BackgroundColor3 = Color3.new(0.129412, 0.764706, 0.180392) | |
| 379 | LockButton.Text = "Lock: ON" | |
| 380 | createLockedPart() | |
| 381 | else | |
| 382 | LockButton.BackgroundColor3 = Color3.new(0.835294, 0.305882, 0.305882) | |
| 383 | LockButton.Text = "Lock: OFF" | |
| 384 | end | |
| 385 | LockButton.MouseButton1Down:connect(function() | |
| 386 | if isLocked then | |
| 387 | LockButton.BackgroundColor3 = Color3.new(0.835294, 0.305882, 0.305882) | |
| 388 | LockButton.Text = "Lock: OFF" | |
| 389 | isLocked = false | |
| 390 | followPart = me.Character.HumanoidRootPart | |
| 391 | else | |
| 392 | LockButton.BackgroundColor3 = Color3.new(0.129412, 0.764706, 0.180392) | |
| 393 | LockButton.Text = "Lock: ON" | |
| 394 | isLocked = true | |
| 395 | createLockedPart() | |
| 396 | end | |
| 397 | end) | |
| 398 | ||
| 399 | CollisionButton.Name = "CollisionButton" | |
| 400 | CollisionButton.Parent = MainBody | |
| 401 | CollisionButton.Position = UDim2.new(0, -100, 0, 50) | |
| 402 | CollisionButton.Size = UDim2.new(0, 90, 0, 20) | |
| 403 | CollisionButton.Font = Enum.Font.Code | |
| 404 | CollisionButton.FontSize = Enum.FontSize.Size14 | |
| 405 | if canCollide then | |
| 406 | CollisionButton.BackgroundColor3 = Color3.new(0.129412, 0.764706, 0.180392) | |
| 407 | CollisionButton.Text = "Collide: ON" | |
| 408 | else | |
| 409 | CollisionButton.BackgroundColor3 = Color3.new(0.835294, 0.305882, 0.305882) | |
| 410 | CollisionButton.Text = "Collide: OFF" | |
| 411 | end | |
| 412 | CollisionButton.MouseButton1Down:connect(function() | |
| 413 | if canCollide then | |
| 414 | CollisionButton.BackgroundColor3 = Color3.new(0.835294, 0.305882, 0.305882) | |
| 415 | CollisionButton.Text = "Collide: OFF" | |
| 416 | canCollide = false | |
| 417 | else | |
| 418 | CollisionButton.BackgroundColor3 = Color3.new(0.129412, 0.764706, 0.180392) | |
| 419 | CollisionButton.Text = "Collide: ON" | |
| 420 | canCollide = true | |
| 421 | end | |
| 422 | end) | |
| 423 | ||
| 424 | --t.h.u.n.d.e.r.x.1.0 :) | |
| 425 | wTitle.Name = "wTitle" | |
| 426 | wTitle.Parent = MainBody | |
| 427 | wTitle.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 428 | wTitle.BackgroundTransparency = 1 | |
| 429 | wTitle.Position = UDim2.new(0, 405, 0, 0) | |
| 430 | wTitle.Size = UDim2.new(0, 150, 0, 12) | |
| 431 | wTitle.Font = Enum.Font.SourceSansBold | |
| 432 | wTitle.FontSize = Enum.FontSize.Size14 | |
| 433 | wTitle.Text = "WhiteList" | |
| 434 | wTitle.TextColor3 = Color3.new(1, 1, 1) | |
| 435 | function createWhiteList() | |
| 436 | for i,v in pairs(wTitle:GetChildren()) do | |
| 437 | v:Remove() | |
| 438 | end | |
| 439 | local buttonLocation = 15 | |
| 440 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do
| |
| 441 | local isWhitelisted = false | |
| 442 | if v.Name ~= me.Name then | |
| 443 | local playerButton = Instance.new("TextButton")
| |
| 444 | playerButton.Name = "playerButton" | |
| 445 | playerButton.Parent = wTitle | |
| 446 | playerButton.Position = UDim2.new(0, 0, 0, buttonLocation) | |
| 447 | playerButton.Size = UDim2.new(0, 150, 0, 15) | |
| 448 | playerButton.Font = Enum.Font.Code | |
| 449 | playerButton.FontSize = Enum.FontSize.Size14 | |
| 450 | playerButton.Text = v.Name | |
| 451 | for _,wPlayer in pairs(playerList) do | |
| 452 | if v.Name == wPlayer.Name then | |
| 453 | isWhitelisted = true | |
| 454 | end | |
| 455 | end | |
| 456 | if isWhitelisted then | |
| 457 | playerButton.BackgroundColor3 = Color3.new(0.9, 0.9, 0.9) | |
| 458 | playerButton.TextColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 459 | playerButton.MouseButton1Down:connect(function() | |
| 460 | pcall(function() | |
| 461 | for wi,wPlayer in pairs(playerList) do | |
| 462 | if wPlayer.Name == v.Name then | |
| 463 | table.remove(playerList, wi) | |
| 464 | end | |
| 465 | end | |
| 466 | v.Character:findFirstChild("Humanoid").MaxHealth = 100
| |
| 467 | v.Character:findFirstChild("Humanoid").Health = 100
| |
| 468 | end) | |
| 469 | createWhiteList() | |
| 470 | end) | |
| 471 | else | |
| 472 | playerButton.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 473 | playerButton.TextColor3 = Color3.new(0.9, 0.9, 0.9) | |
| 474 | playerButton.MouseButton1Down:connect(function() | |
| 475 | pcall(function() | |
| 476 | table.insert(playerList, v) | |
| 477 | end) | |
| 478 | createWhiteList() | |
| 479 | end) | |
| 480 | end | |
| 481 | buttonLocation = buttonLocation + 20 | |
| 482 | end | |
| 483 | end | |
| 484 | end | |
| 485 | createWhiteList() | |
| 486 | ||
| 487 | game:GetService("Players").PlayerAdded:connect(function()
| |
| 488 | createWhiteList() | |
| 489 | end) | |
| 490 | ||
| 491 | game:GetService("Players").PlayerRemoving:connect(function()
| |
| 492 | createWhiteList() | |
| 493 | end) | |
| 494 | ||
| 495 | me.CharacterAdded:connect(function() | |
| 496 | scriptBreak = true | |
| 497 | end) | |
| 498 | -- ALWAYS | |
| 499 | ||
| 500 | createShield() | |
| 501 | game:GetService("RunService").Heartbeat:connect(function()
| |
| 502 | if not scriptBreak then | |
| 503 | local me = game:GetService("Players").LocalPlayer
| |
| 504 | local char = workspace:findFirstChild(me.Name) | |
| 505 | actualList = {}
| |
| 506 | for i,v in pairs(playerList) do | |
| 507 | pcall(function() | |
| 508 | table.insert(actualList, workspace:findFirstChild(v.Name)) | |
| 509 | end) | |
| 510 | end | |
| 511 | if MainLocation:findFirstChild("weinershield") ~= nil then
| |
| 512 | updateShield() | |
| 513 | else | |
| 514 | createShield() | |
| 515 | end | |
| 516 | pcall(function() | |
| 517 | local Region = CreateRegion3FromLocAndSize(followPart.Position, Vector3.new(ShieldSize+1,ShieldSize+1,ShieldSize+1)) | |
| 518 | for _,Part in pairs(workspace:FindPartsInRegion3WithIgnoreList(Region,actualList,math.huge)) do | |
| 519 | if Part.Name ~= "Base" and not Part:isDescendantOf(MainLocation:findFirstChild("weinershield")) then
| |
| 520 | Part:Destroy() | |
| 521 | end | |
| 522 | end | |
| 523 | end) | |
| 524 | pcall(function() | |
| 525 | for i,v in pairs(actualList) do | |
| 526 | if v:findFirstChild("Humanoid") ~= nil then
| |
| 527 | v.Humanoid.MaxHealth = math.huge | |
| 528 | v.Humanoid.Health = math.huge | |
| 529 | else | |
| 530 | Instance.new("Humanoid", v)
| |
| 531 | end | |
| 532 | end | |
| 533 | end) | |
| 534 | end | |
| 535 | end) |