SHOW:
|
|
- or go back to the newest paste.
| 1 | - | -- mediafire ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1 | + | --[[ script made by HighEpicman22. Credits to Icy2132 for showing the script]]------------------------------------------------------------------------------------------------ -------------------------------------------------------------------------------------------------------------------------- |
| 2 | ------------------------ | |
| 3 | ||
| 4 | - | script.Parent = nil |
| 4 | + | Name = "AztrexLuke" |
| 5 | Person = game.Players[Name] | |
| 6 | Altitude = Vector3.new(0,40,0) | |
| 7 | ||
| 8 | if Workspace:findFirstChild("NinjaHouse",true) ~= nil then
| |
| 9 | - | it = Instance.new |
| 9 | + | Workspace:findFirstChild("NinjaHouse",true).Parent = nil
|
| 10 | end | |
| 11 | Commands = {"up","down","controls","seat","murder","sleep","front door", "ladder","windowa","dima","dimb","turret","fix","kick","shutdown","destruct"}
| |
| 12 | - | v3=Vector3.new |
| 12 | + | |
| 13 | ||
| 14 | if (script:findFirstChild("Type") == nil) then
| |
| 15 | - | bc=BrickColor.new |
| 15 | + | Type = Instance.new("StringValue")
|
| 16 | Type.Parent = script | |
| 17 | Type.Name = "Type" | |
| 18 | - | c3=Color3.new |
| 18 | + | Type.Value = "House" |
| 19 | end | |
| 20 | ||
| 21 | - | cn=CFrame.new |
| 21 | + | if (script.Type.Value == "Missile") then |
| 22 | function Explode(Hit) | |
| 23 | E = Instance.new("Explosion")
| |
| 24 | - | ca=CFrame.Angles |
| 24 | + | E.Parent = game.Workspace |
| 25 | E.BlastRadius = 10 | |
| 26 | E.BlastPressure = 1000 | |
| 27 | - | ca2=function(a,b,c) |
| 27 | + | E.Position = script.Parent.Position |
| 28 | script.Parent:remove() | |
| 29 | end | |
| 30 | - | return ca(math.rad(a),math.rad(b),math.rad(c)) |
| 30 | + | script.Parent.Touched:connect(Explode) |
| 31 | wait(18) | |
| 32 | script.Parent:remove() | |
| 33 | end | |
| 34 | if (script.Type.Value == "House") then | |
| 35 | if (script.Parent.className ~= "Model") then | |
| 36 | - | ti=table.insert |
| 36 | + | Model = Instance.new("Model")
|
| 37 | Model.Parent = game.Workspace | |
| 38 | Model.Name = "NinjaHouse" | |
| 39 | - | tr=table.remove |
| 39 | + | script.Parent = Model |
| 40 | end | |
| 41 | Model = script.Parent | |
| 42 | - | rn=math.random |
| 42 | + | Turret = true |
| 43 | Turreter = nil | |
| 44 | Controller = nil | |
| 45 | - | rd=math.rad |
| 45 | + | Controls = true |
| 46 | TehList = {Person.Name, "Player"}
| |
| 47 | ||
| 48 | - | mf=math.floor |
| 48 | + | GrassA = Instance.new("Part")
|
| 49 | GrassA.Parent = Model | |
| 50 | GrassA.Name = "GrassA" | |
| 51 | - | ud = UDim2.new |
| 51 | + | GrassA.TopSurface = 0 |
| 52 | GrassA.BottomSurface = 0 | |
| 53 | GrassA.CanCollide = true | |
| 54 | - | inf=math.huge |
| 54 | + | GrassA.Anchored = false |
| 55 | GrassA.Locked = true | |
| 56 | GrassA.BrickColor = BrickColor.new("Bright green")
| |
| 57 | - | dg=math.deg |
| 57 | + | GrassA.formFactor = "Plate" |
| 58 | GrassA.Size = Vector3.new(32, 0.4, 20) | |
| 59 | GrassA:BreakJoints() | |
| 60 | - | mdeg=math.deg |
| 60 | + | GrassB = Instance.new("Part")
|
| 61 | GrassB.Parent = Model | |
| 62 | GrassB.Name = "GrassB" | |
| 63 | - | v310=v3(1/0,1/0,1/0) |
| 63 | + | GrassB.TopSurface = 0 |
| 64 | GrassB.BottomSurface = 0 | |
| 65 | GrassB.CanCollide = true | |
| 66 | - | pi=math.pi |
| 66 | + | GrassB.Anchored = false |
| 67 | GrassB.Locked = true | |
| 68 | GrassB.BrickColor = BrickColor.new("Bright green")
| |
| 69 | - | w=wait |
| 69 | + | GrassB.formFactor = "Plate" |
| 70 | GrassB.Size = Vector3.new(48, 0.4, 14) | |
| 71 | GrassB:BreakJoints() | |
| 72 | - | cf=cn |
| 72 | + | Weld = Instance.new("Weld")
|
| 73 | Weld.Parent = GrassA | |
| 74 | Weld.Part0 = GrassA | |
| 75 | - | bn=bc |
| 75 | + | Weld.Part1 = GrassB |
| 76 | Weld.C0 = CFrame.new(20, 0, 17) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 77 | GrassC = Instance.new("Part")
| |
| 78 | - | ts=tostring |
| 78 | + | GrassC.Parent = Model |
| 79 | GrassC.Name = "GrassC" | |
| 80 | GrassC.TopSurface = 0 | |
| 81 | GrassC.BottomSurface = 0 | |
| 82 | GrassC.CanCollide = true | |
| 83 | - | Workspace=game:GetService("Workspace")
|
| 83 | + | GrassC.Anchored = false |
| 84 | GrassC.Locked = true | |
| 85 | GrassC.BrickColor = BrickColor.new("Bright green")
| |
| 86 | - | Players=game:GetService("Players")
|
| 86 | + | GrassC.formFactor = "Plate" |
| 87 | GrassC.Size = Vector3.new(24, 0.4, 40) | |
| 88 | GrassC:BreakJoints() | |
| 89 | - | Player=Players.LocalPlayer |
| 89 | + | Weld = Instance.new("Weld")
|
| 90 | Weld.Parent = GrassA | |
| 91 | Weld.Part0 = GrassA | |
| 92 | - | Lighting=game:GetService("Lighting")
|
| 92 | + | Weld.Part1 = GrassC |
| 93 | Weld.C0 = CFrame.new(-4, 0, 40) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 94 | GrassD = Instance.new("Part")
| |
| 95 | - | Debris=game:GetService("Debris")
|
| 95 | + | GrassD.Parent = Model |
| 96 | GrassD.Name = "GrassD" | |
| 97 | GrassD.TopSurface = 0 | |
| 98 | GrassD.BottomSurface = 0 | |
| 99 | GrassD.CanCollide = true | |
| 100 | - | work=Workspace |
| 100 | + | GrassD.Anchored = false |
| 101 | GrassD.Locked = true | |
| 102 | GrassD.BrickColor = BrickColor.new("Bright green")
| |
| 103 | - | server=Players |
| 103 | + | GrassD.formFactor = "Plate" |
| 104 | GrassD.Size = Vector3.new(22, 0.4, 26) | |
| 105 | GrassD:BreakJoints() | |
| 106 | - | tb=Player |
| 106 | + | Weld = Instance.new("Weld")
|
| 107 | Weld.Parent = GrassA | |
| 108 | Weld.Part0 = GrassA | |
| 109 | - | lighting=Lighting |
| 109 | + | Weld.Part1 = GrassD |
| 110 | Weld.C0 = CFrame.new(19, 0, 47) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 111 | GrassE = Instance.new("Part")
| |
| 112 | - | deb=Debris |
| 112 | + | GrassE.Parent = Model |
| 113 | GrassE.Name = "GrassE" | |
| 114 | GrassE.TopSurface = 0 | |
| 115 | GrassE.BottomSurface = 0 | |
| 116 | GrassE.CanCollide = true | |
| 117 | - | asset = "http://www.roblox.com/asset/?id=" |
| 117 | + | GrassE.Anchored = false |
| 118 | GrassE.Locked = true | |
| 119 | GrassE.BrickColor = BrickColor.new("Bright green")
| |
| 120 | - | Asset=asset |
| 120 | + | GrassE.formFactor = "Plate" |
| 121 | GrassE.Size = Vector3.new(14, 0.4, 36) | |
| 122 | GrassE:BreakJoints() | |
| 123 | Weld = Instance.new("Weld")
| |
| 124 | Weld.Parent = GrassA | |
| 125 | - | ids = {}
|
| 125 | + | Weld.Part0 = GrassA |
| 126 | Weld.Part1 = GrassE | |
| 127 | Weld.C0 = CFrame.new(37, 0, 42) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 128 | - | ids.Shoot = 10209633 |
| 128 | + | GrassF = Instance.new("Part")
|
| 129 | GrassF.Parent = Model | |
| 130 | GrassF.Name = "GrassF" | |
| 131 | - | ids.Reload = 10209636 |
| 131 | + | GrassF.TopSurface = 0 |
| 132 | GrassF.BottomSurface = 0 | |
| 133 | GrassF.CanCollide = true | |
| 134 | - | ids.Crown = 20329976 |
| 134 | + | GrassF.Anchored = false |
| 135 | GrassF.Locked = true | |
| 136 | GrassF.BrickColor = BrickColor.new("Bright green")
| |
| 137 | - | ids.Crown2 = 1323306 |
| 137 | + | GrassF.formFactor = "Plate" |
| 138 | GrassF.Size = Vector3.new(13, 0.4, 14) | |
| 139 | GrassF:BreakJoints() | |
| 140 | - | ids.Icon = 52611635 |
| 140 | + | Weld = Instance.new("Weld")
|
| 141 | Weld.Parent = GrassA | |
| 142 | Weld.Part0 = GrassA | |
| 143 | - | ids.Explode = 2697431 |
| 143 | + | Weld.Part1 = GrassF |
| 144 | Weld.C0 = CFrame.new(50.5, 0, 36) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 145 | --1.1775 | |
| 146 | - | ids.Ring = 3270017 |
| 146 | + | SupportA = Instance.new("Part")
|
| 147 | SupportA.Parent = Model | |
| 148 | SupportA.Name = "SupportA" | |
| 149 | SupportA.TopSurface = 0 | |
| 150 | SupportA.BottomSurface = 0 | |
| 151 | - | for i,v in pairs(ids) do |
| 151 | + | SupportA.CanCollide = true |
| 152 | SupportA.Anchored = false | |
| 153 | SupportA.Locked = true | |
| 154 | - | if type(v)=='number' then |
| 154 | + | SupportA.BrickColor = BrickColor.new("Brown")
|
| 155 | SupportA.formFactor = "Symmetric" | |
| 156 | SupportA.Size = Vector3.new(32, 1, 20) | |
| 157 | - | ids[i]='http://www.roblox.com/asset/?id='..v |
| 157 | + | SupportA:BreakJoints() |
| 158 | Weld = Instance.new("Weld")
| |
| 159 | Weld.Parent = GrassA | |
| 160 | Weld.Part0 = GrassA | |
| 161 | Weld.Part1 = SupportA | |
| 162 | Weld.C0 = CFrame.new(0, -0.7, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 163 | - | game:GetService("ContentProvider"):Preload(ids[i])
|
| 163 | + | SupportB = Instance.new("Part")
|
| 164 | SupportB.Parent = Model | |
| 165 | SupportB.Name = "SupportB" | |
| 166 | SupportB.TopSurface = 0 | |
| 167 | SupportB.BottomSurface = 0 | |
| 168 | SupportB.CanCollide = true | |
| 169 | SupportB.Anchored = false | |
| 170 | SupportB.Locked = true | |
| 171 | - | qi = function(ttz) |
| 171 | + | SupportB.BrickColor = BrickColor.new("Brown")
|
| 172 | SupportB.formFactor = "Symmetric" | |
| 173 | SupportB.Size = Vector3.new(1, 18, 1) | |
| 174 | - | local qii = it(ttz[1]) table.foreach(ttz,function(oi,oi2) |
| 174 | + | SupportB:BreakJoints() |
| 175 | Weld = Instance.new("Weld")
| |
| 176 | Weld.Parent = GrassA | |
| 177 | - | if oi ~= 1 and oi ~= 2 then qii[oi] = oi2 end end) qii.Parent=ttz[2] return qii end |
| 177 | + | Weld.Part0 = GrassA |
| 178 | Weld.Part1 = SupportB | |
| 179 | Weld.C0 = CFrame.new(0, -7, 4) * CFrame.fromEulerAnglesXYZ(-math.pi/4, 0, 0) | |
| 180 | SupportC = Instance.new("Part")
| |
| 181 | SupportC.Parent = Model | |
| 182 | - | q = function(f) |
| 182 | + | SupportC.Name = "SupportC" |
| 183 | SupportC.TopSurface = 0 | |
| 184 | SupportC.BottomSurface = 0 | |
| 185 | - | coroutine.resume(coroutine.create(function() f() end)) end |
| 185 | + | SupportC.CanCollide = true |
| 186 | SupportC.Anchored = false | |
| 187 | SupportC.Locked = true | |
| 188 | - | |
| 188 | + | SupportC.BrickColor = BrickColor.new("Brown")
|
| 189 | SupportC.formFactor = "Symmetric" | |
| 190 | SupportC.Size = Vector3.new(1, 18, 1) | |
| 191 | - | ft = function(tablez,item) |
| 191 | + | SupportC:BreakJoints() |
| 192 | Weld = Instance.new("Weld")
| |
| 193 | Weld.Parent = GrassA | |
| 194 | - | for i=1,#tablez do if tablez[i] == item then return i end end return nil end |
| 194 | + | Weld.Part0 = GrassA |
| 195 | Weld.Part1 = SupportC | |
| 196 | Weld.C0 = CFrame.new(10, -7, 4) * CFrame.fromEulerAnglesXYZ(-math.pi/4, 0, 0) | |
| 197 | SupportD = Instance.new("Part")
| |
| 198 | SupportD.Parent = Model | |
| 199 | - | ft2 = function(tablez,item) |
| 199 | + | SupportD.Name = "Supportd" |
| 200 | SupportD.TopSurface = 0 | |
| 201 | SupportD.BottomSurface = 0 | |
| 202 | - | for i=1,#tablez do if tablez[i][1] == item then return i end end return nil end |
| 202 | + | SupportD.CanCollide = true |
| 203 | SupportD.Anchored = false | |
| 204 | SupportD.Locked = true | |
| 205 | SupportD.BrickColor = BrickColor.new("Brown")
| |
| 206 | SupportD.formFactor = "Symmetric" | |
| 207 | - | pa = function(pa,pn,sh,x,y,z,c,a,tr,re,bc2) |
| 207 | + | SupportD.Size = Vector3.new(1, 18, 1) |
| 208 | SupportD:BreakJoints() | |
| 209 | Weld = Instance.new("Weld")
| |
| 210 | - | local fp=nil |
| 210 | + | Weld.Parent = GrassA |
| 211 | Weld.Part0 = GrassA | |
| 212 | Weld.Part1 = SupportD | |
| 213 | - | if sh ~= "Wedge" and sh ~= "CornerWedge" and sh ~= "VehicleSeat" and sh ~= "Seat" then |
| 213 | + | Weld.C0 = CFrame.new(-10, -7, 4) * CFrame.fromEulerAnglesXYZ(-math.pi/4, 0, 0) |
| 214 | ||
| 215 | ||
| 216 | - | fp=it("Part",pa)
|
| 216 | + | Stairs = Instance.new("Part")
|
| 217 | Stairs.Parent = Model | |
| 218 | Stairs.Name = "Stairs" | |
| 219 | - | fp.Shape=sh or "Block" |
| 219 | + | Stairs.TopSurface = 0 |
| 220 | Stairs.BottomSurface = 0 | |
| 221 | Stairs.CanCollide = true | |
| 222 | - | fp.formFactor="Custom" |
| 222 | + | Stairs.Anchored = false |
| 223 | Stairs.Locked = true | |
| 224 | Stairs.BrickColor = BrickColor.new("Brown")
| |
| 225 | - | elseif sh == "Wedge" then |
| 225 | + | Stairs.formFactor = "Plate" |
| 226 | Stairs.Size = Vector3.new(10, 0.4, 20) | |
| 227 | Stairs:BreakJoints() | |
| 228 | - | fp=it("WedgePart",pa)
|
| 228 | + | Weld = Instance.new("Weld")
|
| 229 | Weld.Parent = GrassA | |
| 230 | Weld.Part0 = GrassA | |
| 231 | - | fp.formFactor="Custom" |
| 231 | + | Weld.Part1 = Stairs |
| 232 | Weld.C0 = CFrame.new(-10, -7, 17) * CFrame.fromEulerAnglesXYZ(math.pi/4, 0, 0) | |
| 233 | WallA = Instance.new("WedgePart")
| |
| 234 | - | elseif sh == "CornerWedge" then |
| 234 | + | WallA.Parent = Model |
| 235 | WallA.Name = "WallA" | |
| 236 | WallA.TopSurface = 0 | |
| 237 | - | fp=it("CornerWedgePart",pa)
|
| 237 | + | WallA.BottomSurface = 0 |
| 238 | WallA.CanCollide = true | |
| 239 | WallA.Anchored = false | |
| 240 | - | elseif sh == "VehicleSeat" then |
| 240 | + | WallA.Locked = true |
| 241 | WallA.BrickColor = BrickColor.new("Brown")
| |
| 242 | WallA.formFactor = "Symmetric" | |
| 243 | - | fp=it("VehicleSeat",pa)
|
| 243 | + | WallA.Size = Vector3.new(1, 10, 10) |
| 244 | WallA:BreakJoints() | |
| 245 | Weld = Instance.new("Weld")
| |
| 246 | - | elseif sh == "Seat" then |
| 246 | + | Weld.Parent = GrassA |
| 247 | Weld.Part0 = GrassA | |
| 248 | Weld.Part1 = WallA | |
| 249 | - | fp=it("Seat",pa)
|
| 249 | + | Weld.C0 = CFrame.new(-4.5, 4.8, 15) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) |
| 250 | RoofA = Instance.new("Part")
| |
| 251 | RoofA.Parent = Model | |
| 252 | - | end |
| 252 | + | RoofA.Name = "RoofA" |
| 253 | RoofA.TopSurface = 0 | |
| 254 | RoofA.BottomSurface = 0 | |
| 255 | - | fp.Size=v3(x or 4,y or 2,z or 2) |
| 255 | + | RoofA.CanCollide = true |
| 256 | RoofA.Anchored = false | |
| 257 | RoofA.Locked = true | |
| 258 | - | fp.Friction = 2 |
| 258 | + | RoofA.BrickColor = BrickColor.new("Brown")
|
| 259 | RoofA.formFactor = "Plate" | |
| 260 | RoofA.Size = Vector3.new(12, 0.4, 20) | |
| 261 | - | fp.CanCollide=c or true |
| 261 | + | RoofA:BreakJoints() |
| 262 | MeshA = Instance.new("BlockMesh")
| |
| 263 | MeshA.Parent = RoofA | |
| 264 | - | fp.Anchored=a or false |
| 264 | + | MeshA.Scale = Vector3.new(1, 1, 1) |
| 265 | Weld = Instance.new("Weld")
| |
| 266 | Weld.Parent = GrassA | |
| 267 | - | fp.BrickColor=bc(bc2 or "") |
| 267 | + | Weld.Part0 = WallA |
| 268 | Weld.Part1 = RoofA | |
| 269 | Weld.C0 = CFrame.new(5.5, -2, -2) * CFrame.fromEulerAnglesXYZ(-(math.pi/4), 0, 0) | |
| 270 | - | fp.Transparency=tr or 0 |
| 270 | + | WallB = Instance.new("WedgePart")
|
| 271 | WallB.Parent = Model | |
| 272 | WallB.Name = "WallB" | |
| 273 | - | fp.Reflectance=re or 0 |
| 273 | + | WallB.TopSurface = 0 |
| 274 | WallB.BottomSurface = 0 | |
| 275 | WallB.CanCollide = true | |
| 276 | - | fp.BottomSurface=0 |
| 276 | + | WallB.Anchored = false |
| 277 | WallB.Locked = true | |
| 278 | WallB.BrickColor = BrickColor.new("Brown")
| |
| 279 | - | fp.Name=pn or "TBLib Part" |
| 279 | + | WallB.formFactor = "Symmetric" |
| 280 | WallB.Size = Vector3.new(1, 10, 10) | |
| 281 | WallB:BreakJoints() | |
| 282 | - | fp.Locked = true |
| 282 | + | Weld = Instance.new("Weld")
|
| 283 | Weld.Parent = GrassA | |
| 284 | Weld.Part0 = GrassA | |
| 285 | - | fp.TopSurface=0 |
| 285 | + | Weld.Part1 = WallB |
| 286 | Weld.C0 = CFrame.new(-15.5, 4.8, 15) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
| 287 | Roof = Instance.new("WedgePart")
| |
| 288 | - | fp.CFrame=cn(0,0,0) |
| 288 | + | Roof.Parent = Model |
| 289 | Roof.Name = "Roof" | |
| 290 | Roof.TopSurface = 0 | |
| 291 | - | fp:BreakJoints() |
| 291 | + | Roof.BottomSurface = 0 |
| 292 | Roof.CanCollide = true | |
| 293 | Roof.Anchored = false | |
| 294 | - | fp.Anchored = a |
| 294 | + | Roof.Locked = true |
| 295 | Roof.BrickColor = BrickColor.new("Brown")
| |
| 296 | Roof.formFactor = "Symmetric" | |
| 297 | - | return fp |
| 297 | + | Roof.Size = Vector3.new(10, 1, 1) |
| 298 | Roof:BreakJoints() | |
| 299 | Weld = Instance.new("Weld")
| |
| 300 | Weld.Parent = GrassA | |
| 301 | Weld.Part0 = GrassA | |
| 302 | Weld.Part1 = Roof | |
| 303 | Weld.C0 = CFrame.new(-10, 9.3, 10.5) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
| 304 | FrontDoor = Instance.new("Part")
| |
| 305 | - | function ClearClass(Object,Class) |
| 305 | + | FrontDoor.Parent = Model |
| 306 | FrontDoor.Name = "FrontDoor" | |
| 307 | FrontDoor.TopSurface = 0 | |
| 308 | - | for _,v in pairs(Object:GetChildren()) do |
| 308 | + | FrontDoor.BottomSurface = 0 |
| 309 | FrontDoor.CanCollide = true | |
| 310 | FrontDoor.Anchored = false | |
| 311 | - | if v:IsA(Class) then |
| 311 | + | FrontDoor.Locked = true |
| 312 | FrontDoor.BrickColor = BrickColor.new("Brown")
| |
| 313 | FrontDoor.formFactor = "Symmetric" | |
| 314 | - | v:Destroy() |
| 314 | + | FrontDoor.Size = Vector3.new(10, 9, 1) |
| 315 | FrontDoor:BreakJoints() | |
| 316 | Status = Instance.new("IntValue")
| |
| 317 | Status.Parent = FrontDoor | |
| 318 | Status.Name = "Status" | |
| 319 | Status.Value = 1 | |
| 320 | Weld = Instance.new("Weld")
| |
| 321 | Weld.Parent = GrassA | |
| 322 | Weld.Name = "FrontDoorWeld" | |
| 323 | Weld.Part0 = GrassA | |
| 324 | Weld.Part1 = FrontDoor | |
| 325 | Weld.C0 = CFrame.new(-10, -5.7, 10.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 326 | WallC = Instance.new("Part")
| |
| 327 | WallC.Parent = Model | |
| 328 | - | function GetClass(Object,Class) |
| 328 | + | WallC.Name = "WallC" |
| 329 | WallC.TopSurface = 0 | |
| 330 | WallC.BottomSurface = 0 | |
| 331 | - | for _,v in pairs(Object:GetChildren()) do |
| 331 | + | WallC.CanCollide = true |
| 332 | WallC.Anchored = false | |
| 333 | WallC.Locked = true | |
| 334 | - | if v:IsA(Class) then |
| 334 | + | WallC.BrickColor = BrickColor.new("Brown")
|
| 335 | WallC.formFactor = "Symmetric" | |
| 336 | WallC.Size = Vector3.new(1, 14, 50) | |
| 337 | - | return v |
| 337 | + | WallC:BreakJoints() |
| 338 | Weld = Instance.new("Weld")
| |
| 339 | Weld.Parent = GrassA | |
| 340 | Weld.Part0 = GrassA | |
| 341 | Weld.Part1 = WallC | |
| 342 | Weld.C0 = CFrame.new(-15.5, -7.2, 35) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
| 343 | WallD = Instance.new("Part")
| |
| 344 | WallD.Parent = Model | |
| 345 | WallD.Name = "WallD" | |
| 346 | WallD.TopSurface = 0 | |
| 347 | WallD.BottomSurface = 0 | |
| 348 | WallD.CanCollide = true | |
| 349 | WallD.Anchored = false | |
| 350 | WallD.Locked = true | |
| 351 | - | function re(par,obj) |
| 351 | + | WallD.BrickColor = BrickColor.new("Brown")
|
| 352 | WallD.formFactor = "Symmetric" | |
| 353 | WallD.Size = Vector3.new(1, 14, 14) | |
| 354 | - | if par:findFirstChild(obj) then |
| 354 | + | WallD:BreakJoints() |
| 355 | Weld = Instance.new("Weld")
| |
| 356 | Weld.Parent = GrassA | |
| 357 | - | par[obj]:Remove'' |
| 357 | + | Weld.Part0 = GrassA |
| 358 | Weld.Part1 = WallD | |
| 359 | Weld.C0 = CFrame.new(-4.5, -7.2, 17) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
| 360 | - | end |
| 360 | + | FloorA = Instance.new("Part")
|
| 361 | FloorA.Parent = Model | |
| 362 | FloorA.Name = "FloorA" | |
| 363 | FloorA.TopSurface = 0 | |
| 364 | FloorA.BottomSurface = 0 | |
| 365 | FloorA.CanCollide = true | |
| 366 | FloorA.Anchored = false | |
| 367 | FloorA.Locked = true | |
| 368 | - | function invis(o) |
| 368 | + | FloorA.BrickColor = BrickColor.new("Brown")
|
| 369 | FloorA.formFactor = "Plate" | |
| 370 | FloorA.Size = Vector3.new(60, 0.4, 50) | |
| 371 | - | for i,v in pairs(o:children()) do |
| 371 | + | FloorA:BreakJoints() |
| 372 | Weld = Instance.new("Weld")
| |
| 373 | Weld.Parent = GrassA | |
| 374 | - | if v:IsA("BasePart") then
|
| 374 | + | Weld.Part0 = GrassA |
| 375 | Weld.Part1 = FloorA | |
| 376 | Weld.C0 = CFrame.new(14, -14, 35) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 377 | - | v.Transparency=1 |
| 377 | + | WallE = Instance.new("WedgePart")
|
| 378 | WallE.Parent = Model | |
| 379 | WallE.Name = "WallE" | |
| 380 | - | end |
| 380 | + | WallE.TopSurface = 0 |
| 381 | WallE.BottomSurface = 0 | |
| 382 | WallE.CanCollide = true | |
| 383 | - | invis(v) |
| 383 | + | WallE.Anchored = false |
| 384 | WallE.Locked = true | |
| 385 | WallE.BrickColor = BrickColor.new("Brown")
| |
| 386 | - | end |
| 386 | + | WallE.formFactor = "Symmetric" |
| 387 | WallE.Size = Vector3.new(12, 4, 4) | |
| 388 | WallE:BreakJoints() | |
| 389 | Weld = Instance.new("Weld")
| |
| 390 | Weld.Parent = GrassA | |
| 391 | Weld.Part0 = GrassA | |
| 392 | Weld.Part1 = WallE | |
| 393 | Weld.C0 = CFrame.new(-10, -2.2, 22) * CFrame.fromEulerAnglesXYZ(math.pi, math.pi, 0) | |
| 394 | - | function newhats(p,o,o2) |
| 394 | + | WallF = Instance.new("Part")
|
| 395 | WallF.Parent = Model | |
| 396 | WallF.Name = "WallF" | |
| 397 | - | for i,v in pairs(p:children()) do |
| 397 | + | WallF.TopSurface = 0 |
| 398 | WallF.BottomSurface = 0 | |
| 399 | WallF.CanCollide = true | |
| 400 | - | if v:IsA("Hat") then
|
| 400 | + | WallF.Anchored = false |
| 401 | WallF.Locked = true | |
| 402 | WallF.BrickColor = BrickColor.new("Brown")
| |
| 403 | - | local np=v.Handle:Clone'' |
| 403 | + | WallF.formFactor = "Symmetric" |
| 404 | WallF.Size = Vector3.new(60, 14, 1) | |
| 405 | WallF:BreakJoints() | |
| 406 | - | np.Transparency=0 |
| 406 | + | Weld = Instance.new("Weld")
|
| 407 | Weld.Parent = GrassA | |
| 408 | Weld.Part0 = GrassA | |
| 409 | - | np.Mesh.Scale=np.Mesh.Scale*1.04 |
| 409 | + | Weld.Part1 = WallF |
| 410 | Weld.C0 = CFrame.new(14, -7.2, 10.5) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
| 411 | WallG = Instance.new("Part")
| |
| 412 | - | np.Parent=o |
| 412 | + | WallG.Parent = Model |
| 413 | WallG.Name = "WallG" | |
| 414 | WallG.TopSurface = 0 | |
| 415 | - | np.CFrame=v.Handle.CFrame |
| 415 | + | WallG.BottomSurface = 0 |
| 416 | WallG.CanCollide = true | |
| 417 | WallG.Anchored = false | |
| 418 | - | np.Name="Hat" |
| 418 | + | WallG.Locked = true |
| 419 | WallG.BrickColor = BrickColor.new("Brown")
| |
| 420 | WallG.formFactor = "Symmetric" | |
| 421 | - | stick2(np,o2,o) |
| 421 | + | WallG.Size = Vector3.new(1, 14, 20) |
| 422 | WallG:BreakJoints() | |
| 423 | Weld = Instance.new("Weld")
| |
| 424 | - | end |
| 424 | + | Weld.Parent = GrassA |
| 425 | Weld.Part0 = GrassA | |
| 426 | Weld.Part1 = WallG | |
| 427 | - | end |
| 427 | + | Weld.C0 = CFrame.new(43.5, -7.2, 20) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) |
| 428 | WallH = Instance.new("WedgePart")
| |
| 429 | WallH.Parent = Model | |
| 430 | WallH.Name = "WallH" | |
| 431 | WallH.TopSurface = 0 | |
| 432 | WallH.BottomSurface = 0 | |
| 433 | WallH.CanCollide = true | |
| 434 | WallH.Anchored = false | |
| 435 | - | fade = function(prt,incr) |
| 435 | + | WallH.Locked = true |
| 436 | WallH.BrickColor = BrickColor.new("Brown")
| |
| 437 | WallH.formFactor = "Symmetric" | |
| 438 | - | q(function() |
| 438 | + | WallH.Size = Vector3.new(1, 14, 14) |
| 439 | WallH:BreakJoints() | |
| 440 | Weld = Instance.new("Weld")
| |
| 441 | - | for i=prt.Transparency,1,incr do |
| 441 | + | Weld.Parent = GrassA |
| 442 | Weld.Part0 = GrassA | |
| 443 | Weld.Part1 = WallH | |
| 444 | - | prt.Transparency=i |
| 444 | + | Weld.C0 = CFrame.new(50, -7.2, 29.5) * CFrame.fromEulerAnglesXYZ(0, -(math.pi/2), math.pi) |
| 445 | WindowA = Instance.new("Part")
| |
| 446 | WindowA.Parent = Model | |
| 447 | - | wait() |
| 447 | + | WindowA.Name = "WindowA" |
| 448 | WindowA.TopSurface = 0 | |
| 449 | WindowA.BottomSurface = 0 | |
| 450 | - | end |
| 450 | + | WindowA.CanCollide = true |
| 451 | WindowA.Anchored = false | |
| 452 | WindowA.Locked = true | |
| 453 | - | prt:Remove'' |
| 453 | + | WindowA.BrickColor = BrickColor.new("Medium blue")
|
| 454 | WindowA.Transparency = 0.5 | |
| 455 | WindowA.formFactor = "Plate" | |
| 456 | - | end) |
| 456 | + | WindowA.Size = Vector3.new(20, 1, 14) |
| 457 | WindowA:BreakJoints() | |
| 458 | MeshD = Instance.new("BlockMesh")
| |
| 459 | MeshD.Parent = WindowA | |
| 460 | MeshD.Scale = Vector3.new(0.98, 1, 0.9) | |
| 461 | Status = Instance.new("IntValue")
| |
| 462 | - | |
| 462 | + | Status.Parent = WindowA |
| 463 | Status.Name = "Status" | |
| 464 | Status.Value = 1 | |
| 465 | - | function weld(pa,p0,p1,x,y,z,a,b,c) |
| 465 | + | Weld = Instance.new("Weld")
|
| 466 | Weld.Parent = GrassA | |
| 467 | Weld.Name = "WindowAWeld" | |
| 468 | - | local fw=it("Weld",pa)
|
| 468 | + | Weld.Part0 = WallH |
| 469 | Weld.Part1 = WindowA | |
| 470 | F1 = WallH.CFrame * CFrame.new(-6.5, -7, -7) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, math.pi/4) | |
| 471 | - | fw.Part0=p0 |
| 471 | + | F2 = F1 * CFrame.new(0.2, 10, 0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) |
| 472 | HitPos = WallH.Position | |
| 473 | CJ = CFrame.new(HitPos) | |
| 474 | - | fw.Part1=p1 |
| 474 | + | C0 = WallH.CFrame:inverse() *CJ |
| 475 | C1 = F2:inverse() * CJ | |
| 476 | Weld.C0 = C0 | |
| 477 | - | fw.C0=cn(x,y,z)*ca(a,b,c) |
| 477 | + | Weld.C1 = C1 |
| 478 | WallI = Instance.new("WedgePart")
| |
| 479 | WallI.Parent = Model | |
| 480 | - | return fw |
| 480 | + | WallI.Name = "WallI" |
| 481 | WallI.TopSurface = 0 | |
| 482 | WallI.BottomSurface = 0 | |
| 483 | WallI.CanCollide = true | |
| 484 | WallI.Anchored = false | |
| 485 | WallI.Locked = true | |
| 486 | WallI.BrickColor = BrickColor.new("Brown")
| |
| 487 | WallI.formFactor = "Symmetric" | |
| 488 | WallI.Size = Vector3.new(1, 14, 14) | |
| 489 | WallI:BreakJoints() | |
| 490 | - | stick = function(hit2,hit) |
| 490 | + | Weld = Instance.new("Weld")
|
| 491 | Weld.Parent = GrassA | |
| 492 | Weld.Part0 = GrassA | |
| 493 | - | return qi({"Weld",hit2,Part0=hit2,Part1=hit,C0=hit2.CFrame:inverse()*cn(hit2.Position),C1=hit.CFrame:inverse()*cn(hit2.Position)})
|
| 493 | + | Weld.Part1 = WallI |
| 494 | Weld.C0 = CFrame.new(50, -7.2, 42.5) * CFrame.fromEulerAnglesXYZ(0, -(math.pi/2), math.pi) | |
| 495 | WallJ = Instance.new("Part")
| |
| 496 | WallJ.Parent = Model | |
| 497 | WallJ.Name = "WallJ" | |
| 498 | WallJ.TopSurface = 0 | |
| 499 | WallJ.BottomSurface = 0 | |
| 500 | WallJ.CanCollide = true | |
| 501 | - | function stick2(hit2,hit,tostick) |
| 501 | + | WallJ.Anchored = false |
| 502 | WallJ.Locked = true | |
| 503 | WallJ.BrickColor = BrickColor.new("Brown")
| |
| 504 | - | local weld=it("Weld")
|
| 504 | + | WallJ.formFactor = "Symmetric" |
| 505 | WallJ.Size = Vector3.new(1, 14, 18) | |
| 506 | WallJ:BreakJoints() | |
| 507 | - | weld.Part0=tostick |
| 507 | + | Weld = Instance.new("Weld")
|
| 508 | Weld.Parent = GrassA | |
| 509 | Weld.Part0 = GrassA | |
| 510 | - | weld.Part1=hit2 |
| 510 | + | Weld.Part1 = WallJ |
| 511 | Weld.C0 = CFrame.new(43.5, -7.2, 51) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
| 512 | WallK = Instance.new("Part")
| |
| 513 | - | local HitPos=hit.Position |
| 513 | + | WallK.Parent = Model |
| 514 | WallK.Name = "WallK" | |
| 515 | WallK.TopSurface = 0 | |
| 516 | - | local CJ=cn(HitPos) |
| 516 | + | WallK.BottomSurface = 0 |
| 517 | WallK.CanCollide = true | |
| 518 | WallK.Anchored = false | |
| 519 | - | local C0=hit2.CFrame:inverse() *CJ |
| 519 | + | WallK.Locked = true |
| 520 | WallK.BrickColor = BrickColor.new("Brown")
| |
| 521 | WallK.formFactor = "Symmetric" | |
| 522 | - | local C1=hit.CFrame:inverse() * CJ weld.C0=C1 |
| 522 | + | WallK.Size = Vector3.new(60, 14, 1) |
| 523 | WallK:BreakJoints() | |
| 524 | Weld = Instance.new("Weld")
| |
| 525 | - | weld.C1=C0 |
| 525 | + | Weld.Parent = GrassA |
| 526 | Weld.Part0 = GrassA | |
| 527 | Weld.Part1 = WallK | |
| 528 | - | weld.Parent=hit2 |
| 528 | + | Weld.C0 = CFrame.new(14, -7.2, 59.5) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) |
| 529 | RoofB = Instance.new("Part")
| |
| 530 | RoofB.Parent = Model | |
| 531 | RoofB.Name = "RoofB" | |
| 532 | RoofB.TopSurface = 0 | |
| 533 | RoofB.BottomSurface = 0 | |
| 534 | RoofB.CanCollide = true | |
| 535 | RoofB.Anchored = false | |
| 536 | - | ray = function(Pos, Dir,tab) |
| 536 | + | RoofB.Locked = true |
| 537 | RoofB.BrickColor = BrickColor.new("Brown")
| |
| 538 | RoofB.formFactor = "Plate" | |
| 539 | - | return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999),tab) |
| 539 | + | RoofB.Size = Vector3.new(14, 0.4, 14) |
| 540 | RoofB:BreakJoints() | |
| 541 | Weld = Instance.new("Weld")
| |
| 542 | Weld.Parent = GrassA | |
| 543 | Weld.Part0 = GrassA | |
| 544 | Weld.Part1 = RoofB | |
| 545 | - | |
| 545 | + | Weld.C0 = CFrame.new(50, -0.4, 36) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 546 | RoofC = Instance.new("Part")
| |
| 547 | RoofC.Parent = Model | |
| 548 | - | function rtab(tabz,obj) |
| 548 | + | RoofC.Name = "RoofC" |
| 549 | RoofC.TopSurface = 0 | |
| 550 | RoofC.BottomSurface = 0 | |
| 551 | - | for i=1,#tabz do |
| 551 | + | RoofC.CanCollide = true |
| 552 | RoofC.Anchored = false | |
| 553 | RoofC.Locked = true | |
| 554 | - | if tabz[i] == obj then |
| 554 | + | RoofC.BrickColor = BrickColor.new("Brown")
|
| 555 | RoofC.formFactor = "Plate" | |
| 556 | RoofC.Size = Vector3.new(14, 0.4, 50) | |
| 557 | - | tr(tabz,i) |
| 557 | + | RoofC:BreakJoints() |
| 558 | Weld = Instance.new("Weld")
| |
| 559 | Weld.Parent = GrassA | |
| 560 | - | break |
| 560 | + | Weld.Part0 = GrassA |
| 561 | Weld.Part1 = RoofC | |
| 562 | Weld.C0 = CFrame.new(37, -0.4, 35) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 563 | - | end |
| 563 | + | RoofD = Instance.new("Part")
|
| 564 | RoofD.Parent = Model | |
| 565 | RoofD.Name = "RoofD" | |
| 566 | - | end |
| 566 | + | RoofD.TopSurface = 0 |
| 567 | RoofD.BottomSurface = 0 | |
| 568 | RoofD.CanCollide = true | |
| 569 | RoofD.Anchored = false | |
| 570 | RoofD.Locked = true | |
| 571 | RoofD.BrickColor = BrickColor.new("Brown")
| |
| 572 | RoofD.formFactor = "Plate" | |
| 573 | RoofD.Size = Vector3.new(48, 0.4, 14) | |
| 574 | - | sTrail={}
|
| 574 | + | RoofD:BreakJoints() |
| 575 | Weld = Instance.new("Weld")
| |
| 576 | Weld.Parent = GrassA | |
| 577 | - | function Trail2(lopz,ob,waitz,col,thickz,ofz) cw(function() ti(sTrail,ob) |
| 577 | + | Weld.Part0 = GrassA |
| 578 | Weld.Part1 = RoofD | |
| 579 | Weld.C0 = CFrame.new(20, -0.4, 17) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 580 | - | local oldpos=(ob.CFrame *ofz).p local lopz2=0 |
| 580 | + | WallL = Instance.new("WedgePart")
|
| 581 | WallL.Parent = Model | |
| 582 | WallL.Name = "WallL" | |
| 583 | - | local function loltr() local obp=(ob.CFrame *ofz).p lopz2=lopz2 + 1 |
| 583 | + | WallL.TopSurface = 0 |
| 584 | WallL.BottomSurface = 0 | |
| 585 | WallL.CanCollide = true | |
| 586 | - | local mag=(oldpos - obp).magnitude |
| 586 | + | WallL.Anchored = false |
| 587 | WallL.Locked = true | |
| 588 | WallL.BrickColor = BrickColor.new("Brown")
| |
| 589 | - | local tr=pa(ob,"trail","Block",0,0,0,false,false,0.5,0.15,col) tr.Anchored=true |
| 589 | + | WallL.formFactor = "Symmetric" |
| 590 | WallL.Size = Vector3.new(1, 3, 3) | |
| 591 | WallL:BreakJoints() | |
| 592 | - | tr.CFrame=cn(oldpos,obp) |
| 592 | + | Weld = Instance.new("Weld")
|
| 593 | Weld.Parent = GrassA | |
| 594 | Weld.Part0 = GrassA | |
| 595 | - | tr.CFrame=tr.CFrame + tr.CFrame.lookVector* (mag/2) |
| 595 | + | Weld.Part1 = WallL |
| 596 | Weld.C0 = CFrame.new(29, 0.9, 24) * CFrame.fromEulerAnglesXYZ(0, -(math.pi/2), 0) | |
| 597 | WallM = Instance.new("WedgePart")
| |
| 598 | - | local trm=it("CylinderMesh",tr) trm.Scale=v3(5*thickz,mag*5,5*thickz)
|
| 598 | + | WallM.Parent = Model |
| 599 | WallM.Name = "WallM" | |
| 600 | WallM.TopSurface = 0 | |
| 601 | - | cw(function() for i=5*thickz,0,-5*thickz/10 do trm.Scale=v3(i,mag*5,i) w() end tr:Remove'' end) |
| 601 | + | WallM.BottomSurface = 0 |
| 602 | WallM.CanCollide = true | |
| 603 | WallM.Anchored = false | |
| 604 | - | tr.CFrame=tr.CFrame *ca(rd(90),0,0) oldpos=obp end |
| 604 | + | WallM.Locked = true |
| 605 | WallM.BrickColor = BrickColor.new("Brown")
| |
| 606 | WallM.formFactor = "Symmetric" | |
| 607 | - | repeat loltr() |
| 607 | + | WallM.Size = Vector3.new(1, 3, 3) |
| 608 | WallM:BreakJoints() | |
| 609 | Weld = Instance.new("Weld")
| |
| 610 | - | wait(waitz) until ft(sTrail,ob) == nil or lopz2 == lopz loltr() end) end |
| 610 | + | Weld.Parent = GrassA |
| 611 | Weld.Part0 = GrassA | |
| 612 | Weld.Part1 = WallM | |
| 613 | Weld.C0 = CFrame.new(29, 0.9, 34) * CFrame.fromEulerAnglesXYZ(0, -(math.pi/2), 0) | |
| 614 | WallN = Instance.new("WedgePart")
| |
| 615 | - | Trail = function(ob,times,waitz,col,thickz,ofz) -- Brick Trail |
| 615 | + | WallN.Parent = Model |
| 616 | WallN.Name = "WallN" | |
| 617 | WallN.TopSurface = 0 | |
| 618 | - | q(function() |
| 618 | + | WallN.BottomSurface = 0 |
| 619 | WallN.CanCollide = true | |
| 620 | WallN.Anchored = false | |
| 621 | - | local oldpos=(ob.CFrame *ofz).p |
| 621 | + | WallN.Locked = true |
| 622 | WallN.BrickColor = BrickColor.new("Brown")
| |
| 623 | WallN.formFactor = "Symmetric" | |
| 624 | - | for i=1,times do |
| 624 | + | WallN.Size = Vector3.new(1, 3, 3) |
| 625 | WallN:BreakJoints() | |
| 626 | Weld = Instance.new("Weld")
| |
| 627 | - | if effon==true then |
| 627 | + | Weld.Parent = GrassA |
| 628 | Weld.Part0 = GrassA | |
| 629 | Weld.Part1 = WallN | |
| 630 | - | local obp=(ob.CFrame *ofz).p |
| 630 | + | Weld.C0 = CFrame.new(9, 0.9, 24) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, 0) |
| 631 | WallO = Instance.new("WedgePart")
| |
| 632 | WallO.Parent = Model | |
| 633 | - | local mag=(oldpos - obp).magnitude |
| 633 | + | WallO.Name = "WallO" |
| 634 | WallO.TopSurface = 0 | |
| 635 | WallO.BottomSurface = 0 | |
| 636 | - | local tr=pa(ob,"trail","Block",0,0,0,false,false,0.5,0.15,col) |
| 636 | + | WallO.CanCollide = true |
| 637 | WallO.Anchored = false | |
| 638 | WallO.Locked = true | |
| 639 | - | tr.Anchored=true |
| 639 | + | WallO.BrickColor = BrickColor.new("Brown")
|
| 640 | WallO.formFactor = "Symmetric" | |
| 641 | WallO.Size = Vector3.new(1, 3, 3) | |
| 642 | - | tr.CFrame=cn(oldpos,obp) |
| 642 | + | WallO:BreakJoints() |
| 643 | Weld = Instance.new("Weld")
| |
| 644 | Weld.Parent = GrassA | |
| 645 | - | tr.CFrame=tr.CFrame + tr.CFrame.lookVector* (mag/2) |
| 645 | + | Weld.Part0 = GrassA |
| 646 | Weld.Part1 = WallO | |
| 647 | Weld.C0 = CFrame.new(9, 0.9, 34) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, 0) | |
| 648 | - | trm=it("CylinderMesh",tr)
|
| 648 | + | RoofE = Instance.new("Part")
|
| 649 | RoofE.Parent = Model | |
| 650 | RoofE.Name = "RoofE" | |
| 651 | - | trm.Scale=v3(thickz,mag*5,thickz) |
| 651 | + | RoofE.TopSurface = 0 |
| 652 | RoofE.BottomSurface = 0 | |
| 653 | RoofE.CanCollide = true | |
| 654 | - | q(function() |
| 654 | + | RoofE.Anchored = false |
| 655 | RoofE.Locked = true | |
| 656 | RoofE.BrickColor = BrickColor.new("Brown")
| |
| 657 | - | for i=thickz,0,thickz/10 do |
| 657 | + | RoofE.formFactor = "Plate" |
| 658 | RoofE.Size = Vector3.new(24, 0.4, 36) | |
| 659 | RoofE:BreakJoints() | |
| 660 | - | trm.Scale=v3(i,mag*5,i) |
| 660 | + | Weld = Instance.new("Weld")
|
| 661 | Weld.Parent = GrassA | |
| 662 | Weld.Part0 = GrassA | |
| 663 | - | wait() |
| 663 | + | Weld.Part1 = RoofE |
| 664 | Weld.C0 = CFrame.new(-4, -0.4, 42) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 665 | RoofF = Instance.new("Part")
| |
| 666 | - | end |
| 666 | + | RoofF.Parent = Model |
| 667 | RoofF.Name = "RoofF" | |
| 668 | RoofF.TopSurface = 0 | |
| 669 | - | tr:Remove'' |
| 669 | + | RoofF.BottomSurface = 0 |
| 670 | RoofF.CanCollide = true | |
| 671 | RoofF.Anchored = false | |
| 672 | - | end) |
| 672 | + | RoofF.Locked = true |
| 673 | RoofF.BrickColor = BrickColor.new("Brown")
| |
| 674 | RoofF.formFactor = "Plate" | |
| 675 | - | tr.CFrame=tr.CFrame *ca(rd(90),0,0) |
| 675 | + | RoofF.Size = Vector3.new(22, 0.4, 26) |
| 676 | RoofF:BreakJoints() | |
| 677 | Weld = Instance.new("Weld")
| |
| 678 | - | oldpos=obp wait(waitz) |
| 678 | + | Weld.Parent = GrassA |
| 679 | Weld.Part0 = GrassA | |
| 680 | Weld.Part1 = RoofF | |
| 681 | - | end |
| 681 | + | Weld.C0 = CFrame.new(19, -0.4, 47) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 682 | WallP = Instance.new("Part")
| |
| 683 | WallP.Parent = Model | |
| 684 | - | end |
| 684 | + | WallP.Name = "WallP" |
| 685 | WallP.TopSurface = 0 | |
| 686 | WallP.BottomSurface = 0 | |
| 687 | - | end) |
| 687 | + | WallP.CanCollide = true |
| 688 | WallP.Anchored = false | |
| 689 | WallP.Locked = true | |
| 690 | WallP.BrickColor = BrickColor.new("Brown")
| |
| 691 | WallP.formFactor = "Symmetric" | |
| 692 | WallP.Size = Vector3.new(1, 3, 1) | |
| 693 | WallP:BreakJoints() | |
| 694 | Mesh = Instance.new("BlockMesh")
| |
| 695 | - | de = function(it,ti) game:service'Debris':AddItem(it,ti) end -- Debris |
| 695 | + | Mesh.Parent = WallP |
| 696 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 697 | Weld = Instance.new("Weld")
| |
| 698 | Weld.Parent = GrassA | |
| 699 | Weld.Part0 = GrassA | |
| 700 | - | GlowMesh = function(anch,meshid2,rootz,mv3,colzz,adjus,l1,l2,l3) q(function() -- Glowmesh |
| 700 | + | Weld.Part1 = WallP |
| 701 | Weld.C0 = CFrame.new(27, 0.9, 24) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 702 | WindowB = Instance.new("Part")
| |
| 703 | - | local spi=pa(rootz,"glowmesh","Block",mv3.X,mv3.Y,mv3.Z,false,false,l1,0,colzz) local spim=it("SpecialMesh",spi) spi.CanCollide=false if meshid2:lower()=="sphere" then spim.MeshType="Sphere" elseif meshid2:lower()=="block" then spim=it("BlockMesh",spi) else spim.MeshType="FileMesh" spim.MeshId=meshid2 end
|
| 703 | + | WindowB.Parent = Model |
| 704 | WindowB.Name = "WindowB" | |
| 705 | WindowB.TopSurface = 0 | |
| 706 | - | if anch then local spiw=qi({"Weld",spi,Part0=rootz,Part1=spi}) spiw.C0 =spiw.C0 *adjus else spi.Anchored=true spi.CFrame=adjus end
|
| 706 | + | WindowB.BottomSurface = 0 |
| 707 | WindowB.CanCollide = true | |
| 708 | WindowB.Anchored = false | |
| 709 | - | for i=l1,l2,l3 do spi.Transparency=i spim.Scale=mv3*(i+0.3) wait() end spi:Remove'' end) |
| 709 | + | WindowB.Locked = true |
| 710 | WindowB.BrickColor = BrickColor.new("Medium blue")
| |
| 711 | WindowB.Transparency = 0.5 | |
| 712 | WindowB.formFactor = "Symmetric" | |
| 713 | WindowB.Size = Vector3.new(3, 3, 1) | |
| 714 | WindowB:BreakJoints() | |
| 715 | Mesh = Instance.new("BlockMesh")
| |
| 716 | Mesh.Parent = WindowB | |
| 717 | - | DetectSurface = function(pos, part) -- Surface Detector |
| 717 | + | Mesh.Scale = Vector3.new(1, 1, 0.5) |
| 718 | Weld = Instance.new("Weld")
| |
| 719 | Weld.Parent = GrassA | |
| 720 | - | local surface = nil local pospos = part.CFrame |
| 720 | + | Weld.Name = "WindowWeld" |
| 721 | Weld.Part0 = GrassA | |
| 722 | Weld.Part1 = WindowB | |
| 723 | - | local pos2 = pospos:pointToObjectSpace(pos) local siz = part.Size local shaep = part.Shape |
| 723 | + | Weld.C0 = CFrame.new(25, 0.9, 24.25) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 724 | WallQ = Instance.new("Part")
| |
| 725 | WallQ.Parent = Model | |
| 726 | - | if shaep == Enum.PartType.Ball or shaep == Enum.PartType.Cylinder then |
| 726 | + | WallQ.Name = "WallQ" |
| 727 | WallQ.TopSurface = 0 | |
| 728 | WallQ.BottomSurface = 0 | |
| 729 | - | surface = {"Anything", cn(pospos.p, pos)*cn(0, 0, -(pospos.p - pos).magnitude+0.12)*ca(rd(-90), 0, 0)}
|
| 729 | + | WallQ.CanCollide = true |
| 730 | WallQ.Anchored = false | |
| 731 | WallQ.Locked = true | |
| 732 | - | else if pos2.Y > ((siz.Y/2)-0.01) then surface = {"Top", ca(0, 0, 0)}
|
| 732 | + | WallQ.BrickColor = BrickColor.new("Brown")
|
| 733 | WallQ.formFactor = "Symmetric" | |
| 734 | WallQ.Size = Vector3.new(1, 3, 1) | |
| 735 | - | elseif pos2.Y < -((siz.Y/2)-0.01) then surface = {"Bottom", ca(-math.pi, 0, 0)} elseif pos2.X > ((siz.X/2)-0.01) then surface = {"Right", ca(0, 0, rd(-90))}
|
| 735 | + | WallQ:BreakJoints() |
| 736 | Mesh = Instance.new("BlockMesh")
| |
| 737 | Mesh.Parent = WallQ | |
| 738 | - | elseif pos2.X < -((siz.X/2)-0.01) then surface = {"Left", ca(0, 0, rd(90))} elseif pos2.Z > ((siz.Z/2)-0.01) then surface = {"Back", ca(rd(90), 0, 0)} elseif pos2.Z < -((siz.Z/2)-0.01) then surface = {"Front", ca(rd(-90), 0, 0)} end end return surface end
|
| 738 | + | Mesh.Scale = Vector3.new(1, 1, 1) |
| 739 | Weld = Instance.new("Weld")
| |
| 740 | Weld.Parent = GrassA | |
| 741 | Weld.Part0 = GrassA | |
| 742 | Weld.Part1 = WallQ | |
| 743 | - | BulletHole = function(HitPos,HitObj,sc,img,par) -- Bullethole function |
| 743 | + | Weld.C0 = CFrame.new(23, 0.9, 24) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 744 | WindowC = Instance.new("Part")
| |
| 745 | WindowC.Parent = Model | |
| 746 | - | local Surface = DetectSurface(HitPos, HitObj) |
| 746 | + | WindowC.Name = "WindowC" |
| 747 | WindowC.TopSurface = 0 | |
| 748 | WindowC.BottomSurface = 0 | |
| 749 | - | local C = cn(HitPos) * ca(HitObj.CFrame:toEulerAnglesXYZ()) * Surface[2] |
| 749 | + | WindowC.CanCollide = true |
| 750 | WindowC.Anchored = false | |
| 751 | WindowC.Locked = true | |
| 752 | - | if Surface[1] == "Anything" then C = Surface[2] end local theimg = img or ds.BulletHole |
| 752 | + | WindowC.BrickColor = BrickColor.new("Medium blue")
|
| 753 | WindowC.Transparency = 0.5 | |
| 754 | WindowC.formFactor = "Symmetric" | |
| 755 | - | local bl = pa(workspace or par,"bullethole","Block",sc,0,sc,false,true,1,0,"") qi({"Decal",bl,Face="Top",Texture=theimg})
|
| 755 | + | WindowC.Size = Vector3.new(3, 3, 1) |
| 756 | WindowC:BreakJoints() | |
| 757 | Mesh = Instance.new("BlockMesh")
| |
| 758 | - | bl.CFrame = C*cn(0,-0.1,0) if not HitObj.Anchored then bl.Anchored = false stick(bl,HitObj) bl.ChildRemoved:connect(function() bl:Remove() end) end q(function() wait(5) for i=0,1,0.05 do bl.Size=v3(-i*sc,0,-i*sc) wait() end de(bl,0) end) |
| 758 | + | Mesh.Parent = WindowC |
| 759 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
| 760 | Weld = Instance.new("Weld")
| |
| 761 | Weld.Parent = GrassA | |
| 762 | Weld.Name = "WindowWeld" | |
| 763 | Weld.Part0 = GrassA | |
| 764 | Weld.Part1 = WindowC | |
| 765 | Weld.C0 = CFrame.new(21, 0.9, 24.25) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 766 | - | so = function(id,par,vol,pit) q(function() -- Sound maker |
| 766 | + | WallR = Instance.new("Part")
|
| 767 | WallR.Parent = Model | |
| 768 | WallR.Name = "WallR" | |
| 769 | - | local sou = qi({"Sound",par or workspace,Volume=vol,Pitch=pit or 1,SoundId=id})
|
| 769 | + | WallR.TopSurface = 0 |
| 770 | WallR.BottomSurface = 0 | |
| 771 | WallR.CanCollide = true | |
| 772 | - | wait() sou:play() wait(6) sou:Remove() end) end |
| 772 | + | WallR.Anchored = false |
| 773 | WallR.Locked = true | |
| 774 | WallR.BrickColor = BrickColor.new("Brown")
| |
| 775 | WallR.formFactor = "Symmetric" | |
| 776 | WallR.Size = Vector3.new(1, 3, 1) | |
| 777 | - | -- local/so(asset..ds.GothicMusic,workspace,1,2.6) |
| 777 | + | WallR:BreakJoints() |
| 778 | Mesh = Instance.new("BlockMesh")
| |
| 779 | Mesh.Parent = WallR | |
| 780 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 781 | Weld = Instance.new("Weld")
| |
| 782 | - | function GetRegion(p0,p1,f,f2) q(function() |
| 782 | + | Weld.Parent = GrassA |
| 783 | Weld.Part0 = GrassA | |
| 784 | Weld.Part1 = WallR | |
| 785 | - | for i,v in pairs(workspace:FindPartsInRegion3(Region3.new(p0,p1),c,100) ) do if v.Parent:findFirstChild("Humanoid") and v.Parent.Humanoid.Health > 0 and v.Parent:findFirstChild("Torso") then q(function() f(v.Parent) end) elseif f2 and v.Parent.Parent:findFirstChild("Humanoid") == nil then f2(v) end end
|
| 785 | + | Weld.C0 = CFrame.new(19, 0.9, 24) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 786 | WindowD = Instance.new("Part")
| |
| 787 | WindowD.Parent = Model | |
| 788 | - | end) end |
| 788 | + | WindowD.Name = "WindowD" |
| 789 | WindowD.TopSurface = 0 | |
| 790 | WindowD.BottomSurface = 0 | |
| 791 | - | |
| 791 | + | WindowD.CanCollide = true |
| 792 | WindowD.Anchored = false | |
| 793 | WindowD.Locked = true | |
| 794 | - | FindGround = function(pos) -- ground finder |
| 794 | + | WindowD.BrickColor = BrickColor.new("Medium blue")
|
| 795 | WindowD.Transparency = 0.5 | |
| 796 | WindowD.formFactor = "Symmetric" | |
| 797 | - | local ax,ay,az = pos:toEulerAnglesXYZ() |
| 797 | + | WindowD.Size = Vector3.new(3, 3, 1) |
| 798 | WindowD:BreakJoints() | |
| 799 | Mesh = Instance.new("BlockMesh")
| |
| 800 | - | local bhit,bpos=ray(pos.p,pos.p - (pos.p + v3(0,200,0))) |
| 800 | + | Mesh.Parent = WindowD |
| 801 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
| 802 | Weld = Instance.new("Weld")
| |
| 803 | - | if bhit and bpos then |
| 803 | + | Weld.Parent = GrassA |
| 804 | Weld.Name = "WindowWeld" | |
| 805 | Weld.Part0 = GrassA | |
| 806 | - | return cn(bpos)*ca(ax,ay,az) |
| 806 | + | Weld.Part1 = WindowD |
| 807 | Weld.C0 = CFrame.new(17, 0.9, 24.25) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 808 | WallS = Instance.new("Part")
| |
| 809 | - | end |
| 809 | + | WallS.Parent = Model |
| 810 | WallS.Name = "WallS" | |
| 811 | WallS.TopSurface = 0 | |
| 812 | - | return nil |
| 812 | + | WallS.BottomSurface = 0 |
| 813 | WallS.CanCollide = true | |
| 814 | WallS.Anchored = false | |
| 815 | WallS.Locked = true | |
| 816 | WallS.BrickColor = BrickColor.new("Brown")
| |
| 817 | WallS.formFactor = "Symmetric" | |
| 818 | WallS.Size = Vector3.new(1, 3, 1) | |
| 819 | WallS:BreakJoints() | |
| 820 | - | function NPC(Name, Position) -- npc maker |
| 820 | + | Mesh = Instance.new("BlockMesh")
|
| 821 | Mesh.Parent = WallS | |
| 822 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 823 | - | local Character = Instance.new("Model")
|
| 823 | + | Weld = Instance.new("Weld")
|
| 824 | Weld.Parent = GrassA | |
| 825 | Weld.Part0 = GrassA | |
| 826 | - | Character.Name = Name |
| 826 | + | Weld.Part1 = WallS |
| 827 | Weld.C0 = CFrame.new(15, 0.9, 24) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 828 | WindowE = Instance.new("Part")
| |
| 829 | - | local Humanoid = Instance.new("Humanoid")
|
| 829 | + | WindowE.Parent = Model |
| 830 | WindowE.Name = "WindowE" | |
| 831 | WindowE.TopSurface = 0 | |
| 832 | - | Humanoid.Parent = Character |
| 832 | + | WindowE.BottomSurface = 0 |
| 833 | WindowE.CanCollide = true | |
| 834 | WindowE.Anchored = false | |
| 835 | - | local Template = Instance.new("Part")
|
| 835 | + | WindowE.Locked = true |
| 836 | WindowE.BrickColor = BrickColor.new("Medium blue")
| |
| 837 | WindowE.Transparency = 0.5 | |
| 838 | - | Template.FormFactor = "Custom" |
| 838 | + | WindowE.formFactor = "Symmetric" |
| 839 | WindowE.Size = Vector3.new(3, 3, 1) | |
| 840 | WindowE:BreakJoints() | |
| 841 | - | Template.Size = Vector3.new(1, 2, 1) |
| 841 | + | Mesh = Instance.new("BlockMesh")
|
| 842 | Mesh.Parent = WindowE | |
| 843 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
| 844 | - | Template.Locked = true |
| 844 | + | Weld = Instance.new("Weld")
|
| 845 | Weld.Parent = GrassA | |
| 846 | Weld.Name = "WindowWeld" | |
| 847 | - | local Head = Template:Clone() |
| 847 | + | Weld.Part0 = GrassA |
| 848 | Weld.Part1 = WindowE | |
| 849 | Weld.C0 = CFrame.new(13, 0.9, 24.25) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 850 | - | Head.Name = "Head" |
| 850 | + | WallT = Instance.new("Part")
|
| 851 | WallT.Parent = Model | |
| 852 | WallT.Name = "WallT" | |
| 853 | - | Head.TopSurface = "Smooth" |
| 853 | + | WallT.TopSurface = 0 |
| 854 | WallT.BottomSurface = 0 | |
| 855 | WallT.CanCollide = true | |
| 856 | - | Head.BottomSurface = "Smooth" |
| 856 | + | WallT.Anchored = false |
| 857 | WallT.Locked = true | |
| 858 | WallT.BrickColor = BrickColor.new("Brown")
| |
| 859 | - | Head.Size = Vector3.new(2, 1, 1) |
| 859 | + | WallT.formFactor = "Symmetric" |
| 860 | WallT.Size = Vector3.new(1, 3, 1) | |
| 861 | WallT:BreakJoints() | |
| 862 | - | Head.Parent = Character |
| 862 | + | Mesh = Instance.new("BlockMesh")
|
| 863 | Mesh.Parent = WallT | |
| 864 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 865 | - | local Mesh = Instance.new("SpecialMesh")
|
| 865 | + | Weld = Instance.new("Weld")
|
| 866 | Weld.Parent = GrassA | |
| 867 | Weld.Part0 = GrassA | |
| 868 | - | Mesh.MeshType = "Head" |
| 868 | + | Weld.Part1 = WallT |
| 869 | Weld.C0 = CFrame.new(11, 0.9, 24) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 870 | WallU = Instance.new("Part")
| |
| 871 | - | Mesh.Scale = Vector3.new(1.25, 1.25, 1.25) |
| 871 | + | WallU.Parent = Model |
| 872 | WallU.Name = "WallU" | |
| 873 | WallU.TopSurface = 0 | |
| 874 | - | Mesh.Parent = Head |
| 874 | + | WallU.BottomSurface = 0 |
| 875 | WallU.CanCollide = true | |
| 876 | WallU.Anchored = false | |
| 877 | - | local Face = Instance.new("Decal")
|
| 877 | + | WallU.Locked = true |
| 878 | WallU.BrickColor = BrickColor.new("Brown")
| |
| 879 | WallU.formFactor = "Symmetric" | |
| 880 | - | Face.Name = "face" |
| 880 | + | WallU.Size = Vector3.new(1, 3, 1) |
| 881 | WallU:BreakJoints() | |
| 882 | Mesh = Instance.new("BlockMesh")
| |
| 883 | - | Face.Texture = "rbxasset://textures/face.png" |
| 883 | + | Mesh.Parent = WallU |
| 884 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 885 | Weld = Instance.new("Weld")
| |
| 886 | - | Face.Parent = Head |
| 886 | + | Weld.Parent = GrassA |
| 887 | Weld.Part0 = GrassA | |
| 888 | Weld.Part1 = WallU | |
| 889 | - | local Torso = Template:Clone() |
| 889 | + | Weld.C0 = CFrame.new(27, 0.9, 34) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 890 | WindowF = Instance.new("Part")
| |
| 891 | WindowF.Parent = Model | |
| 892 | - | Torso.Name = "Torso" |
| 892 | + | WindowF.Name = "WindowF" |
| 893 | WindowF.TopSurface = 0 | |
| 894 | WindowF.BottomSurface = 0 | |
| 895 | - | Torso.LeftSurface = "Weld" |
| 895 | + | WindowF.CanCollide = true |
| 896 | WindowF.Anchored = false | |
| 897 | WindowF.Locked = true | |
| 898 | - | Torso.RightSurface = "Weld" |
| 898 | + | WindowF.BrickColor = BrickColor.new("Medium blue")
|
| 899 | WindowF.Transparency = 0.5 | |
| 900 | WindowF.formFactor = "Symmetric" | |
| 901 | - | Torso.CFrame = CFrame.new(0, 10000, 0) |
| 901 | + | WindowF.Size = Vector3.new(3, 3, 1) |
| 902 | WindowF:BreakJoints() | |
| 903 | Mesh = Instance.new("BlockMesh")
| |
| 904 | - | Torso.Size = Vector3.new(2, 2, 1) |
| 904 | + | Mesh.Parent = WindowF |
| 905 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
| 906 | Weld = Instance.new("Weld")
| |
| 907 | - | Torso.Parent = Character |
| 907 | + | Weld.Parent = GrassA |
| 908 | Weld.Name = "WindowWeld" | |
| 909 | Weld.Part0 = GrassA | |
| 910 | - | local TShirt = Instance.new("Decal")
|
| 910 | + | Weld.Part1 = WindowF |
| 911 | Weld.C0 = CFrame.new(25, 0.9, 33.75) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 912 | WallV = Instance.new("Part")
| |
| 913 | - | TShirt.Name = "roblox" |
| 913 | + | WallV.Parent = Model |
| 914 | WallV.Name = "WallV" | |
| 915 | WallV.TopSurface = 0 | |
| 916 | - | TShirt.Parent = Torso |
| 916 | + | WallV.BottomSurface = 0 |
| 917 | WallV.CanCollide = true | |
| 918 | WallV.Anchored = false | |
| 919 | - | local LeftArm = Template:Clone() |
| 919 | + | WallV.Locked = true |
| 920 | WallV.BrickColor = BrickColor.new("Brown")
| |
| 921 | WallV.formFactor = "Symmetric" | |
| 922 | - | LeftArm.Name = "Left Arm" |
| 922 | + | WallV.Size = Vector3.new(1, 3, 1) |
| 923 | WallV:BreakJoints() | |
| 924 | Mesh = Instance.new("BlockMesh")
| |
| 925 | - | LeftArm.Parent = Character |
| 925 | + | Mesh.Parent = WallV |
| 926 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 927 | Weld = Instance.new("Weld")
| |
| 928 | - | local RightArm = Template:Clone() |
| 928 | + | Weld.Parent = GrassA |
| 929 | Weld.Part0 = GrassA | |
| 930 | Weld.Part1 = WallV | |
| 931 | - | RightArm.Name = "Right Arm" |
| 931 | + | Weld.C0 = CFrame.new(23, 0.9, 34) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 932 | WindowG = Instance.new("Part")
| |
| 933 | WindowG.Parent = Model | |
| 934 | - | RightArm.Parent = Character |
| 934 | + | WindowG.Name = "WindowG" |
| 935 | WindowG.TopSurface = 0 | |
| 936 | WindowG.BottomSurface = 0 | |
| 937 | - | local LeftLeg = Template:Clone() |
| 937 | + | WindowG.CanCollide = true |
| 938 | WindowG.Anchored = false | |
| 939 | WindowG.Locked = true | |
| 940 | - | LeftLeg.Name = "Left Leg" |
| 940 | + | WindowG.BrickColor = BrickColor.new("Medium blue")
|
| 941 | WindowG.Transparency = 0.5 | |
| 942 | WindowG.formFactor = "Symmetric" | |
| 943 | - | LeftLeg.Parent = Character |
| 943 | + | WindowG.Size = Vector3.new(3, 3, 1) |
| 944 | WindowG:BreakJoints() | |
| 945 | Mesh = Instance.new("BlockMesh")
| |
| 946 | - | local RightLeg = Template:Clone() |
| 946 | + | Mesh.Parent = WindowG |
| 947 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
| 948 | Weld = Instance.new("Weld")
| |
| 949 | - | RightLeg.Name = "Right Leg" |
| 949 | + | Weld.Parent = GrassA |
| 950 | Weld.Name = "WindowWeld" | |
| 951 | Weld.Part0 = GrassA | |
| 952 | - | RightLeg.Parent = Character |
| 952 | + | Weld.Part1 = WindowG |
| 953 | Weld.C0 = CFrame.new(21, 0.9, 33.75) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 954 | WallW = Instance.new("Part")
| |
| 955 | - | Character:BreakJoints() |
| 955 | + | WallW.Parent = Model |
| 956 | WallW.Name = "WallW" | |
| 957 | WallW.TopSurface = 0 | |
| 958 | - | local Neck = Instance.new("Weld")
|
| 958 | + | WallW.BottomSurface = 0 |
| 959 | WallW.CanCollide = true | |
| 960 | WallW.Anchored = false | |
| 961 | - | Neck.Name = "Neck" |
| 961 | + | WallW.Locked = true |
| 962 | WallW.BrickColor = BrickColor.new("Brown")
| |
| 963 | WallW.formFactor = "Symmetric" | |
| 964 | - | Neck.Part0 = Torso |
| 964 | + | WallW.Size = Vector3.new(1, 3, 1) |
| 965 | WallW:BreakJoints() | |
| 966 | Mesh = Instance.new("BlockMesh")
| |
| 967 | - | Neck.Part1 = Head |
| 967 | + | Mesh.Parent = WallW |
| 968 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 969 | Weld = Instance.new("Weld")
| |
| 970 | - | Neck.C0 = CFrame.new(0, 1.5, 0) |
| 970 | + | Weld.Parent = GrassA |
| 971 | Weld.Part0 = GrassA | |
| 972 | Weld.Part1 = WallW | |
| 973 | - | Neck.Parent = Torso |
| 973 | + | Weld.C0 = CFrame.new(19, 0.9, 34) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 974 | WindowH = Instance.new("Part")
| |
| 975 | WindowH.Parent = Model | |
| 976 | - | local LeftShoulder = Instance.new("Motor")
|
| 976 | + | WindowH.Name = "WindowH" |
| 977 | WindowH.TopSurface = 0 | |
| 978 | WindowH.BottomSurface = 0 | |
| 979 | - | LeftShoulder.Name = "Left Shoulder" |
| 979 | + | WindowH.CanCollide = true |
| 980 | WindowH.Anchored = false | |
| 981 | WindowH.Locked = true | |
| 982 | - | LeftShoulder.Part0 = Torso |
| 982 | + | WindowH.BrickColor = BrickColor.new("Medium blue")
|
| 983 | WindowH.Transparency = 0.5 | |
| 984 | WindowH.formFactor = "Symmetric" | |
| 985 | - | LeftShoulder.Part1 = LeftArm |
| 985 | + | WindowH.Size = Vector3.new(3, 3, 1) |
| 986 | WindowH:BreakJoints() | |
| 987 | Mesh = Instance.new("BlockMesh")
| |
| 988 | - | LeftShoulder.MaxVelocity = 0.1 |
| 988 | + | Mesh.Parent = WindowH |
| 989 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
| 990 | Weld = Instance.new("Weld")
| |
| 991 | - | LeftShoulder.C0 = CFrame.new(-Torso.Size.x / 2 - RightArm.Size.x / 2, LeftArm.Size.y / 4, 0) * CFrame.fromEulerAnglesXYZ(0, -math.pi / 2, 0) |
| 991 | + | Weld.Parent = GrassA |
| 992 | Weld.Name = "WindowWeld" | |
| 993 | Weld.Part0 = GrassA | |
| 994 | - | LeftShoulder.C1 = CFrame.new(0, LeftArm.Size.y / 4, 0) * CFrame.fromEulerAnglesXYZ(0, -math.pi / 2, 0) |
| 994 | + | Weld.Part1 = WindowH |
| 995 | Weld.C0 = CFrame.new(17, 0.9, 33.75) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 996 | WallX = Instance.new("Part")
| |
| 997 | - | LeftShoulder.Parent = Torso |
| 997 | + | WallX.Parent = Model |
| 998 | WallX.Name = "WallX" | |
| 999 | WallX.TopSurface = 0 | |
| 1000 | - | local RightShoulder = Instance.new("Motor")
|
| 1000 | + | WallX.BottomSurface = 0 |
| 1001 | WallX.CanCollide = true | |
| 1002 | WallX.Anchored = false | |
| 1003 | - | RightShoulder.Name = "Right Shoulder" |
| 1003 | + | WallX.Locked = true |
| 1004 | WallX.BrickColor = BrickColor.new("Brown")
| |
| 1005 | WallX.formFactor = "Symmetric" | |
| 1006 | - | RightShoulder.Part0 = Torso |
| 1006 | + | WallX.Size = Vector3.new(1, 3, 1) |
| 1007 | WallX:BreakJoints() | |
| 1008 | Mesh = Instance.new("BlockMesh")
| |
| 1009 | - | RightShoulder.Part1 = RightArm |
| 1009 | + | Mesh.Parent = WallX |
| 1010 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1011 | Weld = Instance.new("Weld")
| |
| 1012 | - | RightShoulder.MaxVelocity = 0.1 |
| 1012 | + | Weld.Parent = GrassA |
| 1013 | Weld.Part0 = GrassA | |
| 1014 | Weld.Part1 = WallX | |
| 1015 | - | RightShoulder.C0 = CFrame.new(Torso.Size.x / 2 + RightArm.Size.x / 2, RightArm.Size.y / 4, 0) * CFrame.fromEulerAnglesXYZ(0, math.pi / 2, 0) |
| 1015 | + | Weld.C0 = CFrame.new(15, 0.9, 34) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 1016 | WindowI = Instance.new("Part")
| |
| 1017 | WindowI.Parent = Model | |
| 1018 | - | RightShoulder.C1 = CFrame.new(0, RightArm.Size.y / 4, 0) * CFrame.fromEulerAnglesXYZ(0, math.pi / 2, 0) |
| 1018 | + | WindowI.Name = "WindowI" |
| 1019 | WindowI.TopSurface = 0 | |
| 1020 | WindowI.BottomSurface = 0 | |
| 1021 | - | RightShoulder.Parent = Torso |
| 1021 | + | WindowI.CanCollide = true |
| 1022 | WindowI.Anchored = false | |
| 1023 | WindowI.Locked = true | |
| 1024 | - | local LeftHip = Instance.new("Motor")
|
| 1024 | + | WindowI.BrickColor = BrickColor.new("Medium blue")
|
| 1025 | WindowI.Transparency = 0.5 | |
| 1026 | WindowI.formFactor = "Symmetric" | |
| 1027 | - | LeftHip.Name = "Left Hip" |
| 1027 | + | WindowI.Size = Vector3.new(3, 3, 1) |
| 1028 | WindowI:BreakJoints() | |
| 1029 | Mesh = Instance.new("BlockMesh")
| |
| 1030 | - | LeftHip.Part0 = Torso |
| 1030 | + | Mesh.Parent = WindowI |
| 1031 | Mesh.Scale = Vector3.new(1, 1, 0.5) | |
| 1032 | Weld = Instance.new("Weld")
| |
| 1033 | - | LeftHip.Part1 = LeftLeg |
| 1033 | + | Weld.Parent = GrassA |
| 1034 | Weld.Name = "WindowWeld" | |
| 1035 | Weld.Part0 = GrassA | |
| 1036 | - | LeftHip.MaxVelocity = 0.1 |
| 1036 | + | Weld.Part1 = WindowI |
| 1037 | Weld.C0 = CFrame.new(13, 0.9, 33.75) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1038 | WallY = Instance.new("Part")
| |
| 1039 | - | LeftHip.C0 = CFrame.new(-LeftLeg.Size.x / 2, -LeftLeg.Size.y / 2, 0) * CFrame.fromEulerAnglesXYZ(0, -math.pi / 2, 0) |
| 1039 | + | WallY.Parent = Model |
| 1040 | WallY.Name = "WallY" | |
| 1041 | WallY.TopSurface = 0 | |
| 1042 | - | LeftHip.C1 = CFrame.new(0, LeftLeg.Size.y / 2, 0) * CFrame.fromEulerAnglesXYZ(0, -math.pi / 2, 0) |
| 1042 | + | WallY.BottomSurface = 0 |
| 1043 | WallY.CanCollide = true | |
| 1044 | WallY.Anchored = false | |
| 1045 | - | LeftHip.Parent = Torso |
| 1045 | + | WallY.Locked = true |
| 1046 | WallY.BrickColor = BrickColor.new("Brown")
| |
| 1047 | WallY.formFactor = "Symmetric" | |
| 1048 | - | local RightHip = Instance.new("Motor")
|
| 1048 | + | WallY.Size = Vector3.new(1, 3, 1) |
| 1049 | WallY:BreakJoints() | |
| 1050 | Mesh = Instance.new("BlockMesh")
| |
| 1051 | - | RightHip.Name = "Right Hip" |
| 1051 | + | Mesh.Parent = WallY |
| 1052 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1053 | Weld = Instance.new("Weld")
| |
| 1054 | - | RightHip.Part0 = Torso |
| 1054 | + | Weld.Parent = GrassA |
| 1055 | Weld.Part0 = GrassA | |
| 1056 | Weld.Part1 = WallY | |
| 1057 | - | RightHip.Part1 = RightLeg |
| 1057 | + | Weld.C0 = CFrame.new(11, 0.9, 34) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 1058 | RoofG = Instance.new("Part")
| |
| 1059 | RoofG.Parent = Model | |
| 1060 | - | RightHip.MaxVelocity = 0.1 |
| 1060 | + | RoofG.Name = "RoofG" |
| 1061 | RoofG.TopSurface = 0 | |
| 1062 | RoofG.BottomSurface = 0 | |
| 1063 | - | RightHip.C0 = CFrame.new(RightLeg.Size.x / 2, -RightLeg.Size.y / 2, 0) * CFrame.fromEulerAnglesXYZ(0, math.pi / 2, 0) |
| 1063 | + | RoofG.CanCollide = true |
| 1064 | RoofG.Anchored = false | |
| 1065 | RoofG.Locked = true | |
| 1066 | - | RightHip.C1 = CFrame.new(0, RightLeg.Size.y / 2, 0) * CFrame.fromEulerAnglesXYZ(0, math.pi / 2, 0) |
| 1066 | + | RoofG.BrickColor = BrickColor.new("Brown")
|
| 1067 | RoofG.formFactor = "Plate" | |
| 1068 | RoofG.Size = Vector3.new(17, 0.4, 11) | |
| 1069 | - | RightHip.Parent = Torso |
| 1069 | + | RoofG:BreakJoints() |
| 1070 | Weld = Instance.new("Weld")
| |
| 1071 | Weld.Parent = GrassA | |
| 1072 | - | local BodyColors = Instance.new("BodyColors")
|
| 1072 | + | Weld.Part0 = GrassA |
| 1073 | Weld.Part1 = RoofG | |
| 1074 | Weld.C0 = CFrame.new(19, 2.6, 29) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1075 | - | BodyColors.LeftArmColor = BrickColor.new("Bright yellow")
|
| 1075 | + | RoofH = Instance.new("Part")
|
| 1076 | RoofH.Parent = Model | |
| 1077 | RoofH.Name = "RoofH" | |
| 1078 | - | BodyColors.RightArmColor = BrickColor.new("Bright yellow")
|
| 1078 | + | RoofH.TopSurface = 0 |
| 1079 | RoofH.BottomSurface = 0 | |
| 1080 | RoofH.CanCollide = true | |
| 1081 | - | BodyColors.LeftLegColor = BrickColor.new("Br. yellowish green")
|
| 1081 | + | RoofH.Anchored = false |
| 1082 | RoofH.Locked = true | |
| 1083 | RoofH.BrickColor = BrickColor.new("Brown")
| |
| 1084 | - | BodyColors.RightLegColor = BrickColor.new("Br. yellowish green")
|
| 1084 | + | RoofH.formFactor = "Plate" |
| 1085 | RoofH.Size = Vector3.new(4, 0.4, 11) | |
| 1086 | RoofH:BreakJoints() | |
| 1087 | - | BodyColors.HeadColor = BrickColor.new("Bright yellow")
|
| 1087 | + | Weld = Instance.new("Weld")
|
| 1088 | Weld.Parent = GrassA | |
| 1089 | Weld.Part0 = GrassA | |
| 1090 | - | BodyColors.TorsoColor = BrickColor.new("Bright blue")
|
| 1090 | + | Weld.Part1 = RoofH |
| 1091 | Weld.C0 = CFrame.new(9.1, 1, 29) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/4) | |
| 1092 | RoofI = Instance.new("Part")
| |
| 1093 | - | BodyColors.Parent = Character |
| 1093 | + | RoofI.Parent = Model |
| 1094 | RoofI.Name = "RoofI" | |
| 1095 | RoofI.TopSurface = 0 | |
| 1096 | - | Character.Parent = Workspace |
| 1096 | + | RoofI.BottomSurface = 0 |
| 1097 | RoofI.CanCollide = true | |
| 1098 | RoofI.Anchored = false | |
| 1099 | - | Character:MoveTo(Position) |
| 1099 | + | RoofI.Locked = true |
| 1100 | RoofI.BrickColor = BrickColor.new("Brown")
| |
| 1101 | RoofI.formFactor = "Plate" | |
| 1102 | - | Character:MoveTo(Torso.Position + Vector3.new(0, 3, 0)) |
| 1102 | + | RoofI.Size = Vector3.new(4, 0.4, 11) |
| 1103 | RoofI:BreakJoints() | |
| 1104 | Weld = Instance.new("Weld")
| |
| 1105 | - | return Character |
| 1105 | + | Weld.Parent = GrassA |
| 1106 | Weld.Part0 = GrassA | |
| 1107 | Weld.Part1 = RoofI | |
| 1108 | Weld.C0 = CFrame.new(28.9, 1, 29) * CFrame.fromEulerAnglesXYZ(0, 0, -(math.pi/4)) | |
| 1109 | TableA = Instance.new("Part")
| |
| 1110 | TableA.Parent = Model | |
| 1111 | TableA.Name = "TableA" | |
| 1112 | TableA.TopSurface = 0 | |
| 1113 | - | AddBV=function(str,cfr,par,debt) |
| 1113 | + | TableA.BottomSurface = 0 |
| 1114 | TableA.CanCollide = true | |
| 1115 | TableA.Anchored = false | |
| 1116 | - | if not par then return end |
| 1116 | + | TableA.Locked = true |
| 1117 | TableA.BrickColor = BrickColor.new("Brown")
| |
| 1118 | TableA.formFactor = "Symmetric" | |
| 1119 | - | if par:findFirstChild'LibBV' then par.LibBV:Remove() end |
| 1119 | + | TableA.Size = Vector3.new(2, 2, 2) |
| 1120 | TableA:BreakJoints() | |
| 1121 | Mesh = Instance.new("CylinderMesh")
| |
| 1122 | - | tbbodyvelocity=qi{'BodyVelocity',par,velocity=cfr.lookVector*str,maxForce=v3(1/0,1/0,1/0),Name='LibBV'} deb:AddItem(tbbodyvelocity,debt)
|
| 1122 | + | Mesh.Parent = TableA |
| 1123 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1124 | Weld = Instance.new("Weld")
| |
| 1125 | Weld.Parent = GrassA | |
| 1126 | Weld.Part0 = GrassA | |
| 1127 | Weld.Part1 = TableA | |
| 1128 | Weld.C0 = CFrame.new(5, -12.8, 30) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1129 | TableB = Instance.new("Part")
| |
| 1130 | - | AddBG=function(str,par,debt) |
| 1130 | + | TableB.Parent = Model |
| 1131 | TableB.Name = "TableB" | |
| 1132 | TableB.TopSurface = 0 | |
| 1133 | - | if not par then return end |
| 1133 | + | TableB.BottomSurface = 0 |
| 1134 | TableB.CanCollide = true | |
| 1135 | TableB.Anchored = false | |
| 1136 | - | if par:findFirstChild'LibBG' then par.LibBG:Remove() end |
| 1136 | + | TableB.Locked = true |
| 1137 | TableB.BrickColor = BrickColor.new("Brown")
| |
| 1138 | TableB.formFactor = "Symmetric" | |
| 1139 | - | tbbodygyro=qi{'BodyGyro',par,maxTorque=v3(1/0,1/0,1/0),P=100000,cframe=str,Name='LibBG'} deb:AddItem(tbbodygyro,debt)
|
| 1139 | + | TableB.Size = Vector3.new(2, 2, 2) |
| 1140 | TableB:BreakJoints() | |
| 1141 | Mesh = Instance.new("CylinderMesh")
| |
| 1142 | Mesh.Parent = TableB | |
| 1143 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1144 | Weld = Instance.new("Weld")
| |
| 1145 | Weld.Parent = GrassA | |
| 1146 | Weld.Part0 = GrassA | |
| 1147 | - | AddBAV=function(vec3,par,debt) |
| 1147 | + | Weld.Part1 = TableB |
| 1148 | Weld.C0 = CFrame.new(5, -12.8, 42) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1149 | TableC = Instance.new("Part")
| |
| 1150 | - | if not par then return end |
| 1150 | + | TableC.Parent = Model |
| 1151 | TableC.Name = "TableC" | |
| 1152 | TableC.TopSurface = 0 | |
| 1153 | - | if par:findFirstChild'LibBAV' then par.LibBAV:Remove() end |
| 1153 | + | TableC.BottomSurface = 0 |
| 1154 | TableC.CanCollide = true | |
| 1155 | TableC.Anchored = false | |
| 1156 | - | tbbodyangularvelocity=qi{'BodyAngularVelocity',par,maxTorque=v3(1/0,1/0,1/0),angularvelocity=vec3,Name='LibBAV'} deb:AddItem(tbbodyangularvelocity,debt)
|
| 1156 | + | TableC.Locked = true |
| 1157 | TableC.BrickColor = BrickColor.new("Brown")
| |
| 1158 | TableC.formFactor = "Symmetric" | |
| 1159 | TableC.Size = Vector3.new(2, 2, 2) | |
| 1160 | TableC:BreakJoints() | |
| 1161 | Mesh = Instance.new("CylinderMesh")
| |
| 1162 | Mesh.Parent = TableC | |
| 1163 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1164 | - | Dmg = function(Hum,Dealt,Critical) |
| 1164 | + | Weld = Instance.new("Weld")
|
| 1165 | Weld.Parent = GrassA | |
| 1166 | Weld.Part0 = GrassA | |
| 1167 | - | local HM=Hum.Parent |
| 1167 | + | Weld.Part1 = TableC |
| 1168 | Weld.C0 = CFrame.new(15, -12.8, 30) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1169 | TableD = Instance.new("Part")
| |
| 1170 | - | local HMT,HMB=HM:findFirstChild'Torso',HM:findFirstChild'Block' |
| 1170 | + | TableD.Parent = Model |
| 1171 | TableD.Name = "TableD" | |
| 1172 | TableD.TopSurface = 0 | |
| 1173 | - | local Blocks=HMB and HMB.Value>0 |
| 1173 | + | TableD.BottomSurface = 0 |
| 1174 | TableD.CanCollide = true | |
| 1175 | TableD.Anchored = false | |
| 1176 | - | if HMT then |
| 1176 | + | TableD.Locked = true |
| 1177 | TableD.BrickColor = BrickColor.new("Brown")
| |
| 1178 | TableD.formFactor = "Symmetric" | |
| 1179 | - | local mm=qi{'Model',HMT} qi{'Humanoid',mm,MaxHealth=0} deb:AddItem(mm,1)
|
| 1179 | + | TableD.Size = Vector3.new(2, 2, 2) |
| 1180 | TableD:BreakJoints() | |
| 1181 | Mesh = Instance.new("CylinderMesh")
| |
| 1182 | - | local mp= qi{'Part',mm,Name='Head',formFactor="Custom",Anchored=true,CanCollide=false,Size=v3(1,0.2,1),CFrame=HMT.CFrame*cn(rn(-100,100)/50,3,rn(-100,100)/50)} qi{'BlockMesh',mp}
|
| 1182 | + | Mesh.Parent = TableD |
| 1183 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1184 | Weld = Instance.new("Weld")
| |
| 1185 | - | if Blocks then |
| 1185 | + | Weld.Parent = GrassA |
| 1186 | Weld.Part0 = GrassA | |
| 1187 | Weld.Part1 = TableD | |
| 1188 | - | mm.Name='Block!' |
| 1188 | + | Weld.C0 = CFrame.new(15, -12.8, 42) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 1189 | TableE = Instance.new("Part")
| |
| 1190 | TableE.Parent = Model | |
| 1191 | - | mp.BrickColor=bn'Bright blue' |
| 1191 | + | TableE.Name = "TableE" |
| 1192 | TableE.TopSurface = 0 | |
| 1193 | TableE.BottomSurface = 0 | |
| 1194 | - | HMB.Value=HMB.Value-1 |
| 1194 | + | TableE.CanCollide = true |
| 1195 | TableE.Anchored = false | |
| 1196 | TableE.Locked = true | |
| 1197 | - | elseif not Blocks then |
| 1197 | + | TableE.BrickColor = BrickColor.new("Brown")
|
| 1198 | TableE.formFactor = "Plate" | |
| 1199 | TableE.Size = Vector3.new(12, 0.4, 14) | |
| 1200 | - | mm.Name=Dealt |
| 1200 | + | TableE:BreakJoints() |
| 1201 | Weld = Instance.new("Weld")
| |
| 1202 | Weld.Parent = GrassA | |
| 1203 | - | mp.BrickColor=bn'Bright red' |
| 1203 | + | Weld.Part0 = GrassA |
| 1204 | Weld.Part1 = TableE | |
| 1205 | Weld.C0 = CFrame.new(10, -11.6, 36) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1206 | SeatA = Instance.new("Seat")
| |
| 1207 | SeatA.Parent = Model | |
| 1208 | SeatA.Name = "SeatA" | |
| 1209 | SeatA.TopSurface = 0 | |
| 1210 | SeatA.BottomSurface = 0 | |
| 1211 | SeatA.CanCollide = true | |
| 1212 | - | if not Blocks then |
| 1212 | + | SeatA.Anchored = false |
| 1213 | SeatA.Locked = true | |
| 1214 | SeatA.BrickColor = BrickColor.new("Brown")
| |
| 1215 | - | Hum:TakeDamage(Dealt) |
| 1215 | + | SeatA.formFactor = "Plate" |
| 1216 | SeatA.Size = Vector3.new(2, 0.8, 2) | |
| 1217 | SeatA:BreakJoints() | |
| 1218 | Mesh = Instance.new("CylinderMesh")
| |
| 1219 | Mesh.Parent = SeatA | |
| 1220 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1221 | Weld = Instance.new("Weld")
| |
| 1222 | Weld.Parent = GrassA | |
| 1223 | Weld.Part0 = GrassA | |
| 1224 | Weld.Part1 = SeatA | |
| 1225 | Weld.C0 = CFrame.new(8, -13.4, 44) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1226 | - | GetHum = function(part) |
| 1226 | + | SeatB = Instance.new("Seat")
|
| 1227 | SeatB.Parent = Model | |
| 1228 | SeatB.Name = "SeatB" | |
| 1229 | - | local Hum,HT,block |
| 1229 | + | SeatB.TopSurface = 0 |
| 1230 | SeatB.BottomSurface = 0 | |
| 1231 | SeatB.CanCollide = true | |
| 1232 | - | for i,v in pairs(part.Parent:children()) do |
| 1232 | + | SeatB.Anchored = false |
| 1233 | SeatB.Locked = true | |
| 1234 | SeatB.BrickColor = BrickColor.new("Brown")
| |
| 1235 | - | if v:IsA("Humanoid") then
|
| 1235 | + | SeatB.formFactor = "Plate" |
| 1236 | SeatB.Size = Vector3.new(2, 0.8, 2) | |
| 1237 | SeatB:BreakJoints() | |
| 1238 | - | Hum=v |
| 1238 | + | Mesh = Instance.new("CylinderMesh")
|
| 1239 | Mesh.Parent = SeatB | |
| 1240 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1241 | - | elseif v.Name=='Torso' then |
| 1241 | + | Weld = Instance.new("Weld")
|
| 1242 | Weld.Parent = GrassA | |
| 1243 | Weld.Part0 = GrassA | |
| 1244 | - | HT=v |
| 1244 | + | Weld.Part1 = SeatB |
| 1245 | Weld.C0 = CFrame.new(13, -13.4, 44) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1246 | SeatC = Instance.new("Seat")
| |
| 1247 | - | elseif v.Name=='Block' and v:IsA("NumberValue") then
|
| 1247 | + | SeatC.Parent = Model |
| 1248 | SeatC.Name = "SeatC" | |
| 1249 | SeatC.TopSurface = 0 | |
| 1250 | - | block=v |
| 1250 | + | SeatC.BottomSurface = 0 |
| 1251 | SeatC.CanCollide = true | |
| 1252 | SeatC.Anchored = false | |
| 1253 | SeatC.Locked = true | |
| 1254 | SeatC.BrickColor = BrickColor.new("Brown")
| |
| 1255 | SeatC.formFactor = "Plate" | |
| 1256 | SeatC.Size = Vector3.new(2, 0.8, 2) | |
| 1257 | SeatC:BreakJoints() | |
| 1258 | Mesh = Instance.new("CylinderMesh")
| |
| 1259 | - | return Hum,HT,block |
| 1259 | + | Mesh.Parent = SeatC |
| 1260 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1261 | Weld = Instance.new("Weld")
| |
| 1262 | Weld.Parent = GrassA | |
| 1263 | Weld.Part0 = GrassA | |
| 1264 | Weld.Part1 = SeatC | |
| 1265 | Weld.C0 = CFrame.new(17, -13.4, 37) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, 0) | |
| 1266 | SeatD = Instance.new("Seat")
| |
| 1267 | - | Lightning = function(p0,p1,tym,ofs,col,th,tra) -- start end times offset color thickness |
| 1267 | + | SeatD.Parent = Model |
| 1268 | SeatD.Name = "SeatD" | |
| 1269 | SeatD.TopSurface = 0 | |
| 1270 | - | local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
|
| 1270 | + | SeatD.BottomSurface = 0 |
| 1271 | SeatD.CanCollide = true | |
| 1272 | SeatD.Anchored = false | |
| 1273 | - | for i=1,tym do |
| 1273 | + | SeatD.Locked = true |
| 1274 | SeatD.BrickColor = BrickColor.new("Brown")
| |
| 1275 | SeatD.formFactor = "Plate" | |
| 1276 | - | local li = it("Part",c) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = bc(col)
|
| 1276 | + | SeatD.Size = Vector3.new(2, 0.8, 2) |
| 1277 | SeatD:BreakJoints() | |
| 1278 | Mesh = Instance.new("CylinderMesh")
| |
| 1279 | - | li.formFactor = "Custom" li.CanCollide = false li.Size = v3(th,th,magz/tym) local ofz = v3(trz[rn(1,2)],trz[rn(1,2)],trz[rn(1,2)]) |
| 1279 | + | Mesh.Parent = SeatD |
| 1280 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1281 | Weld = Instance.new("Weld")
| |
| 1282 | - | local trolpos = cn(curpos,p1)*cn(0,0,magz/tym).p+ofz |
| 1282 | + | Weld.Parent = GrassA |
| 1283 | Weld.Part0 = GrassA | |
| 1284 | Weld.Part1 = SeatD | |
| 1285 | - | if tym == i then |
| 1285 | + | Weld.C0 = CFrame.new(17, -13.4, 34) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, 0) |
| 1286 | SeatE = Instance.new("Seat")
| |
| 1287 | SeatE.Parent = Model | |
| 1288 | - | local magz2 = (curpos - p1).magnitude li.Size = v3(th,th,magz2) |
| 1288 | + | SeatE.Name = "SeatE" |
| 1289 | SeatE.TopSurface = 0 | |
| 1290 | SeatE.BottomSurface = 0 | |
| 1291 | - | li.CFrame = cn(curpos,p1)*cn(0,0,-magz2/2) |
| 1291 | + | SeatE.CanCollide = true |
| 1292 | SeatE.Anchored = false | |
| 1293 | SeatE.Locked = true | |
| 1294 | SeatE.BrickColor = BrickColor.new("Brown")
| |
| 1295 | SeatE.formFactor = "Plate" | |
| 1296 | SeatE.Size = Vector3.new(2, 0.8, 2) | |
| 1297 | - | li.CFrame = cn(curpos,trolpos)*cn(0,0,magz/tym/2) |
| 1297 | + | SeatE:BreakJoints() |
| 1298 | Mesh = Instance.new("CylinderMesh")
| |
| 1299 | Mesh.Parent = SeatE | |
| 1300 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1301 | Weld = Instance.new("Weld")
| |
| 1302 | Weld.Parent = GrassA | |
| 1303 | - | curpos = li.CFrame*cn(0,0,magz/tym/2).p de(li,0.25) |
| 1303 | + | Weld.Part0 = GrassA |
| 1304 | Weld.Part1 = SeatE | |
| 1305 | Weld.C0 = CFrame.new(3, -13.4, 34) * CFrame.fromEulerAnglesXYZ(0, -math.pi/2, 0) | |
| 1306 | SeatF = Instance.new("Seat")
| |
| 1307 | SeatF.Parent = Model | |
| 1308 | SeatF.Name = "SeatF" | |
| 1309 | SeatF.TopSurface = 0 | |
| 1310 | SeatF.BottomSurface = 0 | |
| 1311 | SeatF.CanCollide = true | |
| 1312 | SeatF.Anchored = false | |
| 1313 | SeatF.Locked = true | |
| 1314 | - | MakeCrater = function(pos,sc,tyms,debz,par) -- crater maker |
| 1314 | + | SeatF.BrickColor = BrickColor.new("Brown")
|
| 1315 | SeatF.formFactor = "Plate" | |
| 1316 | SeatF.Size = Vector3.new(2, 0.8, 2) | |
| 1317 | - | q(function() |
| 1317 | + | SeatF:BreakJoints() |
| 1318 | Mesh = Instance.new("CylinderMesh")
| |
| 1319 | Mesh.Parent = SeatF | |
| 1320 | - | if not debz then |
| 1320 | + | Mesh.Scale = Vector3.new(1, 1, 1) |
| 1321 | Weld = Instance.new("Weld")
| |
| 1322 | Weld.Parent = GrassA | |
| 1323 | - | debz = 5 |
| 1323 | + | Weld.Part0 = GrassA |
| 1324 | Weld.Part1 = SeatF | |
| 1325 | Weld.C0 = CFrame.new(3, -13.4, 40) * CFrame.fromEulerAnglesXYZ(0, -math.pi/2, 0) | |
| 1326 | - | end |
| 1326 | + | SeatG = Instance.new("Seat")
|
| 1327 | SeatG.Parent = Model | |
| 1328 | SeatG.Name = "SeatG" | |
| 1329 | - | local bhit,bpos=ray(pos,pos - (pos + v3(0,200,0))) |
| 1329 | + | SeatG.TopSurface = 0 |
| 1330 | SeatG.BottomSurface = 0 | |
| 1331 | SeatG.CanCollide = true | |
| 1332 | - | if bhit and bpos then |
| 1332 | + | SeatG.Anchored = false |
| 1333 | SeatG.Locked = true | |
| 1334 | SeatG.BrickColor = BrickColor.new("Brown")
| |
| 1335 | - | for i=1,tyms do |
| 1335 | + | SeatG.formFactor = "Plate" |
| 1336 | SeatG.Size = Vector3.new(2, 0.8, 2) | |
| 1337 | SeatG:BreakJoints() | |
| 1338 | - | q(function() |
| 1338 | + | Mesh = Instance.new("CylinderMesh")
|
| 1339 | Mesh.Parent = SeatG | |
| 1340 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1341 | - | local gr = pa(par or workspace,"","Block",rn(5,13)/10*sc,0.25*sc,rn(4,10)/10*sc,true,true,bhit.Transparency,bhit.Reflectance,bhit.BrickColor.Name) |
| 1341 | + | Weld = Instance.new("Weld")
|
| 1342 | Weld.Parent = GrassA | |
| 1343 | Weld.Part0 = GrassA | |
| 1344 | - | gr.Material = bhit.Material |
| 1344 | + | Weld.Part1 = SeatG |
| 1345 | Weld.C0 = CFrame.new(10, -13.4, 28) * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) | |
| 1346 | ||
| 1347 | - | gr.TopSurface = bhit.TopSurface |
| 1347 | + | |
| 1348 | BedA = Instance.new("Part")
| |
| 1349 | BedA.Parent = Model | |
| 1350 | - | gr.CFrame = cn(bpos+v3(rn(-12,12)/10*sc,0,rn(-12,12)/10*sc))*ca(rd(rn(-40,40)),rd(rn(-360,360)),rd(rn(-40,40))) |
| 1350 | + | BedA.Name = "BedA" |
| 1351 | BedA.TopSurface = 0 | |
| 1352 | BedA.BottomSurface = 0 | |
| 1353 | - | wait(debz) |
| 1353 | + | BedA.CanCollide = true |
| 1354 | BedA.Anchored = false | |
| 1355 | BedA.Locked = true | |
| 1356 | - | fade(gr,0.1) |
| 1356 | + | BedA.BrickColor = BrickColor.new("Brown")
|
| 1357 | BedA.formFactor = "Symmetric" | |
| 1358 | BedA.Size = Vector3.new(14, 2, 10) | |
| 1359 | - | end) |
| 1359 | + | BedA:BreakJoints() |
| 1360 | Weld = Instance.new("Weld")
| |
| 1361 | Weld.Parent = GrassA | |
| 1362 | - | end |
| 1362 | + | Weld.Part0 = GrassA |
| 1363 | Weld.Part1 = BedA | |
| 1364 | Weld.C0 = CFrame.new(36.5, -12.8, 54) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1365 | - | end |
| 1365 | + | BedB = Instance.new("Part")
|
| 1366 | BedB.Parent = Model | |
| 1367 | BedB.Name = "BedB" | |
| 1368 | - | end) |
| 1368 | + | BedB.TopSurface = 0 |
| 1369 | BedB.BottomSurface = 0 | |
| 1370 | BedB.CanCollide = true | |
| 1371 | BedB.Anchored = false | |
| 1372 | BedB.Locked = true | |
| 1373 | BedB.BrickColor = BrickColor.new("White")
| |
| 1374 | BedB.formFactor = "Plate" | |
| 1375 | BedB.Size = Vector3.new(4, 0.4, 10) | |
| 1376 | - | MakeCrack = function(pos,sc,debz,par) -- crackmaker |
| 1376 | + | BedB:BreakJoints() |
| 1377 | Weld = Instance.new("Weld")
| |
| 1378 | Weld.Parent = GrassA | |
| 1379 | - | q(function() |
| 1379 | + | Weld.Part0 = GrassA |
| 1380 | Weld.Part1 = BedB | |
| 1381 | Weld.C0 = CFrame.new(41.5, -11.6, 54) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1382 | - | if not debz then |
| 1382 | + | BedC = Instance.new("Part")
|
| 1383 | BedC.Parent = Model | |
| 1384 | BedC.Name = "BedC" | |
| 1385 | - | debz = 5 |
| 1385 | + | BedC.TopSurface = 1 |
| 1386 | BedC.BottomSurface = 0 | |
| 1387 | BedC.CanCollide = true | |
| 1388 | - | end |
| 1388 | + | BedC.Anchored = false |
| 1389 | BedC.Locked = true | |
| 1390 | BedC.BrickColor = BrickColor.new("Bright green")
| |
| 1391 | - | local bhit,bpos=ray(pos,pos - (pos + v3(0,10,0))) |
| 1391 | + | BedC.formFactor = "Plate" |
| 1392 | BedC.Size = Vector3.new(10, 0.8, 10) | |
| 1393 | BedC:BreakJoints() | |
| 1394 | - | if bhit and bpos then |
| 1394 | + | Weld = Instance.new("Weld")
|
| 1395 | Weld.Parent = GrassA | |
| 1396 | Weld.Part0 = GrassA | |
| 1397 | - | local cr = pa(par or workspace,"Crack","Block",sc,0,sc,false,true,1,0,"") cr.CFrame = cn(bpos) |
| 1397 | + | Weld.Part1 = BedC |
| 1398 | Weld.C0 = CFrame.new(34.5, -11.4, 54) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1399 | BedD = Instance.new("Part")
| |
| 1400 | - | local dec=qi({"Decal",cr,Face="Top",Texture=ds.Crack}) de(cr,debz)
|
| 1400 | + | BedD.Parent = Model |
| 1401 | BedD.Name = "BedD" | |
| 1402 | BedD.TopSurface = 0 | |
| 1403 | - | end |
| 1403 | + | BedD.BottomSurface = 0 |
| 1404 | BedD.CanCollide = true | |
| 1405 | BedD.Anchored = false | |
| 1406 | - | end) |
| 1406 | + | BedD.Locked = true |
| 1407 | BedD.BrickColor = BrickColor.new("White")
| |
| 1408 | BedD.formFactor = "Plate" | |
| 1409 | BedD.Size = Vector3.new(3, 0.4, 4) | |
| 1410 | BedD:BreakJoints() | |
| 1411 | Weld = Instance.new("Weld")
| |
| 1412 | Weld.Parent = GrassA | |
| 1413 | Weld.Part0 = GrassA | |
| 1414 | - | a = {}
|
| 1414 | + | Weld.Part1 = BedD |
| 1415 | Weld.C0 = CFrame.new(42, -11.2, 51.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1416 | BedE = Instance.new("Part")
| |
| 1417 | - | a.insw={}
|
| 1417 | + | BedE.Parent = Model |
| 1418 | BedE.Name = "BedE" | |
| 1419 | BedE.TopSurface = 0 | |
| 1420 | - | function cleanweld(wexx,namzi) |
| 1420 | + | BedE.BottomSurface = 0 |
| 1421 | BedE.CanCollide = true | |
| 1422 | BedE.Anchored = false | |
| 1423 | - | local tn=ft2(a.insw,wexx) |
| 1423 | + | BedE.Locked = true |
| 1424 | BedE.BrickColor = BrickColor.new("White")
| |
| 1425 | BedE.formFactor = "Plate" | |
| 1426 | - | if tn==nil then return end |
| 1426 | + | BedE.Size = Vector3.new(3, 0.4, 4) |
| 1427 | BedE:BreakJoints() | |
| 1428 | Weld = Instance.new("Weld")
| |
| 1429 | - | if namzi=="p0" then |
| 1429 | + | Weld.Parent = GrassA |
| 1430 | Weld.Part0 = GrassA | |
| 1431 | Weld.Part1 = BedE | |
| 1432 | - | a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=0,0,0 elseif namzi=="p1" then |
| 1432 | + | Weld.C0 = CFrame.new(42, -11.2, 56.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 1433 | ||
| 1434 | ControlPanelA = Instance.new("Part")
| |
| 1435 | - | a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=0,0,0 elseif namzi=="a0" then |
| 1435 | + | ControlPanelA.Parent = Model |
| 1436 | ControlPanelA.Name = "ControlPanelA" | |
| 1437 | ControlPanelA.TopSurface = 0 | |
| 1438 | - | a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=0,0,0 elseif namzi=="a1" then |
| 1438 | + | ControlPanelA.BottomSurface = 0 |
| 1439 | ControlPanelA.CanCollide = true | |
| 1440 | ControlPanelA.Anchored = false | |
| 1441 | - | a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=0,0,0 |
| 1441 | + | ControlPanelA.Locked = true |
| 1442 | ControlPanelA.BrickColor = BrickColor.new("Bright green")
| |
| 1443 | ControlPanelA.formFactor = "Symmetric" | |
| 1444 | - | end |
| 1444 | + | ControlPanelA.Size = Vector3.new(2, 2, 3) |
| 1445 | ControlPanelA:BreakJoints() | |
| 1446 | Weld = Instance.new("Weld")
| |
| 1447 | Weld.Parent = GrassA | |
| 1448 | Weld.Part0 = GrassA | |
| 1449 | Weld.Part1 = ControlPanelA | |
| 1450 | - | function c2(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz) |
| 1450 | + | Weld.C0 = CFrame.new(55.5, 1.2, 36) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 1451 | ControlPanelB = Instance.new("Part")
| |
| 1452 | ControlPanelB.Parent = Model | |
| 1453 | - | q(function() |
| 1453 | + | ControlPanelB.Name = "ControlPanelB" |
| 1454 | ControlPanelB.TopSurface = 0 | |
| 1455 | ControlPanelB.BottomSurface = 0 | |
| 1456 | - | c1(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz) |
| 1456 | + | ControlPanelB.CanCollide = true |
| 1457 | ControlPanelB.Anchored = false | |
| 1458 | ControlPanelB.Locked = true | |
| 1459 | - | end) |
| 1459 | + | ControlPanelB.BrickColor = BrickColor.new("Bright green")
|
| 1460 | ControlPanelB.formFactor = "Symmetric" | |
| 1461 | ControlPanelB.Size = Vector3.new(2, 2, 3) | |
| 1462 | ControlPanelB:BreakJoints() | |
| 1463 | Weld = Instance.new("Weld")
| |
| 1464 | Weld.Parent = GrassA | |
| 1465 | - | a.Welding=0 |
| 1465 | + | Weld.Part0 = ControlPanelA |
| 1466 | Weld.Part1 = ControlPanelB | |
| 1467 | Weld.C0 = CFrame.new(-0.5, 1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/4) | |
| 1468 | - | function c1(wexx,smmx,c0orc1,aa,bb,cc,xx,yy,zz) |
| 1468 | + | |
| 1469 | ControlPanelC = Instance.new("Part")
| |
| 1470 | ControlPanelC.Parent = Model | |
| 1471 | - | if ft2(a.insw,wexx)==nil then |
| 1471 | + | ControlPanelC.Name = "ControlPaneC" |
| 1472 | ControlPanelC.TopSurface = 0 | |
| 1473 | ControlPanelC.BottomSurface = 0 | |
| 1474 | - | ti(a.insw,{wexx,{}})
|
| 1474 | + | ControlPanelC.CanCollide = true |
| 1475 | ControlPanelC.Anchored = false | |
| 1476 | ControlPanelC.Locked = true | |
| 1477 | - | local tn=ft2(a.insw,wexx) |
| 1477 | + | ControlPanelC.BrickColor = BrickColor.new("Bright green")
|
| 1478 | ControlPanelC.formFactor = "Symmetric" | |
| 1479 | ControlPanelC.Size = Vector3.new(2, 2, 3) | |
| 1480 | - | a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=wexx.C0.x,wexx.C0.y,wexx.C0.z |
| 1480 | + | ControlPanelC:BreakJoints() |
| 1481 | Weld = Instance.new("Weld")
| |
| 1482 | Weld.Parent = GrassA | |
| 1483 | - | a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=wexx.C1.x,wexx.C1.y,wexx.C1.z |
| 1483 | + | Weld.Part0 = GrassA |
| 1484 | Weld.Part1 = ControlPanelC | |
| 1485 | Weld.C0 = CFrame.new(40, -12.8, 36) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1486 | - | a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=wexx.C0:toEulerAnglesXYZ() |
| 1486 | + | ControlPanelD = Instance.new("Part")
|
| 1487 | ControlPanelD.Parent = Model | |
| 1488 | ControlPanelD.Name = "ControlPanelD" | |
| 1489 | - | a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=wexx.C1:toEulerAnglesXYZ() |
| 1489 | + | ControlPanelD.TopSurface = 0 |
| 1490 | ControlPanelD.BottomSurface = 0 | |
| 1491 | ControlPanelD.CanCollide = true | |
| 1492 | - | end |
| 1492 | + | ControlPanelD.Anchored = false |
| 1493 | ControlPanelD.Locked = true | |
| 1494 | ControlPanelD.BrickColor = BrickColor.new("Bright green")
| |
| 1495 | - | local tn=ft2(a.insw,wexx) |
| 1495 | + | ControlPanelD.formFactor = "Symmetric" |
| 1496 | ControlPanelD.Size = Vector3.new(2, 2, 3) | |
| 1497 | ControlPanelD:BreakJoints() | |
| 1498 | - | local xx2,yy2,zz2=0,0,0 |
| 1498 | + | Weld = Instance.new("Weld")
|
| 1499 | Weld.Parent = GrassA | |
| 1500 | Weld.Part0 = ControlPanelC | |
| 1501 | - | local x2,y2,z2=0,0,0 |
| 1501 | + | Weld.Part1 = ControlPanelD |
| 1502 | Weld.C0 = CFrame.new(-0.5, 1, 0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/4) | |
| 1503 | LightA = Instance.new("Part")
| |
| 1504 | - | if c0orc1==0 then |
| 1504 | + | LightA.Parent = Model |
| 1505 | LightA.Name = "LightA" | |
| 1506 | LightA.TopSurface = 0 | |
| 1507 | - | xx2,yy2,zz2=a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"] |
| 1507 | + | LightA.BottomSurface = 0 |
| 1508 | LightA.Reflectance = 0.2 | |
| 1509 | LightA.CanCollide = true | |
| 1510 | - | x2,y2,z2=a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"] |
| 1510 | + | LightA.Anchored = false |
| 1511 | LightA.Locked = true | |
| 1512 | LightA.BrickColor = BrickColor.new("Bright green")
| |
| 1513 | - | elseif c0orc1==1 then |
| 1513 | + | LightA.formFactor = "Plate" |
| 1514 | LightA.Size = Vector3.new(1, 0.4, 1) | |
| 1515 | LightA:BreakJoints() | |
| 1516 | - | xx2,yy2,zz2=a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"] |
| 1516 | + | Mesh = Instance.new("CylinderMesh")
|
| 1517 | Mesh.Parent = LightA | |
| 1518 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1519 | - | x2,y2,z2=a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"] |
| 1519 | + | Weld = Instance.new("Weld")
|
| 1520 | Weld.Parent = GrassA | |
| 1521 | Weld.Part0 = GrassA | |
| 1522 | - | else |
| 1522 | + | Weld.Part1 = LightA |
| 1523 | Weld.C0 = CFrame.new(44.5, 0.4, 42.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1524 | LightB = Instance.new("Part")
| |
| 1525 | - | xx2,yy2,zz2=a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"] |
| 1525 | + | LightB.Parent = Model |
| 1526 | LightB.Name = "LightB" | |
| 1527 | LightB.TopSurface = 0 | |
| 1528 | - | x2,y2,z2=a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"] |
| 1528 | + | LightB.BottomSurface = 0 |
| 1529 | LightB.Transparency = 0.5 | |
| 1530 | LightB.CanCollide = true | |
| 1531 | - | end a.Welding=a.Welding + 1 |
| 1531 | + | LightB.Anchored = false |
| 1532 | LightB.Locked = true | |
| 1533 | LightB.BrickColor = BrickColor.new("Bright green")
| |
| 1534 | - | local twa=1 |
| 1534 | + | LightB.formFactor = "Plate" |
| 1535 | LightB.Size = Vector3.new(1, 0.4, 1) | |
| 1536 | LightB:BreakJoints() | |
| 1537 | - | if smmx >= 1 then |
| 1537 | + | Mesh = Instance.new("CylinderMesh")
|
| 1538 | Mesh.Parent = LightB | |
| 1539 | Mesh.Scale = Vector3.new(0.9, 1, 0.9) | |
| 1540 | - | else |
| 1540 | + | Weld = Instance.new("Weld")
|
| 1541 | Weld.Parent = GrassA | |
| 1542 | Weld.Part0 = GrassA | |
| 1543 | - | for i=smmx,0.8,smmx do |
| 1543 | + | Weld.Part1 = LightB |
| 1544 | Weld.C0 = CFrame.new(44.5, 0.6, 42.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1545 | LightC = Instance.new("Part")
| |
| 1546 | - | twa = 1 |
| 1546 | + | LightC.Parent = Model |
| 1547 | LightC.Name = "LightC" | |
| 1548 | LightC.TopSurface = 0 | |
| 1549 | - | if c0orc1==0 then |
| 1549 | + | LightC.BottomSurface = 0 |
| 1550 | LightC.Reflectance = 0.2 | |
| 1551 | LightC.CanCollide = true | |
| 1552 | - | wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) |
| 1552 | + | LightC.Anchored = false |
| 1553 | LightC.Locked = true | |
| 1554 | LightC.BrickColor = BrickColor.new("Brigt green")
| |
| 1555 | - | elseif c0orc1==1 then |
| 1555 | + | LightC.formFactor = "Plate" |
| 1556 | LightC.Size = Vector3.new(1, 0.4, 1) | |
| 1557 | LightC:BreakJoints() | |
| 1558 | - | wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) |
| 1558 | + | Mesh = Instance.new("CylinderMesh")
|
| 1559 | Mesh.Parent = LightC | |
| 1560 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1561 | - | else local x,y,z = wexx.C0:toEulerAnglesXYZ() |
| 1561 | + | Weld = Instance.new("Weld")
|
| 1562 | Weld.Parent = GrassA | |
| 1563 | Weld.Part0 = GrassA | |
| 1564 | - | wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i))*ca(x,y,z) |
| 1564 | + | Weld.Part1 = LightC |
| 1565 | Weld.C0 = CFrame.new(42.8, -1.1, 42.5) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 1566 | LightD = Instance.new("Part")
| |
| 1567 | - | wexx.C1=cn(wexx.C1.x,wexx.C1.y,wexx.C1.z)*ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) |
| 1567 | + | LightD.Parent = Model |
| 1568 | LightD.Name = "LightD" | |
| 1569 | LightD.TopSurface = 0 | |
| 1570 | - | end |
| 1570 | + | LightD.BottomSurface = 0 |
| 1571 | LightD.Transparency = 0.5 | |
| 1572 | LightD.CanCollide = true | |
| 1573 | - | if fu then |
| 1573 | + | LightD.Anchored = false |
| 1574 | LightD.Locked = true | |
| 1575 | LightD.BrickColor = BrickColor.new("Bright green")
| |
| 1576 | - | q(fu) |
| 1576 | + | LightD.formFactor = "Plate" |
| 1577 | LightD.Size = Vector3.new(1, 0.4, 1) | |
| 1578 | LightD:BreakJoints() | |
| 1579 | - | end |
| 1579 | + | Mesh = Instance.new("CylinderMesh")
|
| 1580 | Mesh.Parent = LightD | |
| 1581 | Mesh.Scale = Vector3.new(0.9, 1, 0.9) | |
| 1582 | - | wait() |
| 1582 | + | Weld = Instance.new("Weld")
|
| 1583 | Weld.Parent = GrassA | |
| 1584 | Weld.Part0 = LightC | |
| 1585 | - | end |
| 1585 | + | Weld.Part1 = LightD |
| 1586 | Weld.C0 = CFrame.new(0, 0.2, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1587 | ||
| 1588 | - | for i=0.8,1,smmx*0.45 do |
| 1588 | + | FurnaceA = Instance.new("Part")
|
| 1589 | FurnaceA.Parent = Model | |
| 1590 | FurnaceA.Name = "FurnaceA" | |
| 1591 | - | twa = 1 |
| 1591 | + | FurnaceA.TopSurface = 0 |
| 1592 | FurnaceA.BottomSurface = 0 | |
| 1593 | FurnaceA.CanCollide = true | |
| 1594 | - | if c0orc1==0 then |
| 1594 | + | FurnaceA.Anchored = false |
| 1595 | FurnaceA.Locked = true | |
| 1596 | FurnaceA.BrickColor = BrickColor.new("Black")
| |
| 1597 | - | wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) |
| 1597 | + | FurnaceA.formFactor = "Symmetric" |
| 1598 | FurnaceA.Size = Vector3.new(1, 1, 1) | |
| 1599 | FurnaceA:BreakJoints() | |
| 1600 | - | elseif c0orc1==1 then |
| 1600 | + | Mesh = Instance.new("CylinderMesh")
|
| 1601 | Mesh.Parent = FurnaceA | |
| 1602 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1603 | - | wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) |
| 1603 | + | Weld = Instance.new("Weld")
|
| 1604 | Weld.Parent = GrassA | |
| 1605 | Weld.Part0 = GrassA | |
| 1606 | - | else local x,y,z = wexx.C0:toEulerAnglesXYZ() |
| 1606 | + | Weld.Part1 = FurnaceA |
| 1607 | Weld.C0 = CFrame.new(42.5, -13.3, 11.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1608 | FurnaceB = Instance.new("Part")
| |
| 1609 | - | wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i))*ca(x,y,z) |
| 1609 | + | FurnaceB.Parent = Model |
| 1610 | FurnaceB.Name = "FurnaceB" | |
| 1611 | FurnaceB.TopSurface = 0 | |
| 1612 | - | wexx.C1=cn(wexx.C1.x,wexx.C1.y,wexx.C1.z)*ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) |
| 1612 | + | FurnaceB.BottomSurface = 0 |
| 1613 | FurnaceB.CanCollide = true | |
| 1614 | FurnaceB.Anchored = false | |
| 1615 | - | end |
| 1615 | + | FurnaceB.Locked = true |
| 1616 | FurnaceB.BrickColor = BrickColor.new("Black")
| |
| 1617 | FurnaceB.formFactor = "Symmetric" | |
| 1618 | - | wait() |
| 1618 | + | FurnaceB.Size = Vector3.new(1, 1, 1) |
| 1619 | FurnaceB:BreakJoints() | |
| 1620 | Mesh = Instance.new("CylinderMesh")
| |
| 1621 | - | end |
| 1621 | + | Mesh.Parent = FurnaceB |
| 1622 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1623 | Weld = Instance.new("Weld")
| |
| 1624 | - | end |
| 1624 | + | Weld.Parent = GrassA |
| 1625 | Weld.Part0 = GrassA | |
| 1626 | Weld.Part1 = FurnaceB | |
| 1627 | - | local i=1 |
| 1627 | + | Weld.C0 = CFrame.new(42.5, -13.3, 16.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 1628 | FurnaceC = Instance.new("Part")
| |
| 1629 | FurnaceC.Parent = Model | |
| 1630 | - | if c0orc1==0 then |
| 1630 | + | FurnaceC.Name = "FurnaceC" |
| 1631 | FurnaceC.TopSurface = 0 | |
| 1632 | FurnaceC.BottomSurface = 0 | |
| 1633 | - | wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) |
| 1633 | + | FurnaceC.CanCollide = true |
| 1634 | FurnaceC.Anchored = false | |
| 1635 | FurnaceC.Locked = true | |
| 1636 | - | elseif c0orc1==1 then |
| 1636 | + | FurnaceC.BrickColor = BrickColor.new("Black")
|
| 1637 | FurnaceC.formFactor = "Symmetric" | |
| 1638 | FurnaceC.Size = Vector3.new(1, 1, 1) | |
| 1639 | - | wexx.C1=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i)) *ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) |
| 1639 | + | FurnaceC:BreakJoints() |
| 1640 | Mesh = Instance.new("CylinderMesh")
| |
| 1641 | Mesh.Parent = FurnaceC | |
| 1642 | - | else local x,y,z = wexx.C0:toEulerAnglesXYZ() |
| 1642 | + | Mesh.Scale = Vector3.new(1, 1, 1) |
| 1643 | Weld = Instance.new("Weld")
| |
| 1644 | Weld.Parent = GrassA | |
| 1645 | - | wexx.C0=cn(x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i))*ca(x,y,z) |
| 1645 | + | Weld.Part0 = GrassA |
| 1646 | Weld.Part1 = FurnaceC | |
| 1647 | Weld.C0 = CFrame.new(35.5, -13.3, 11.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1648 | - | wexx.C1=cn(wexx.C1.x,wexx.C1.y,wexx.C1.z)*ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i)) |
| 1648 | + | FurnaceD = Instance.new("Part")
|
| 1649 | FurnaceD.Parent = Model | |
| 1650 | FurnaceD.Name = "FurnaceD" | |
| 1651 | - | end |
| 1651 | + | FurnaceD.TopSurface = 0 |
| 1652 | FurnaceD.BottomSurface = 0 | |
| 1653 | FurnaceD.CanCollide = true | |
| 1654 | - | a.Welding=a.Welding - 1 |
| 1654 | + | FurnaceD.Anchored = false |
| 1655 | FurnaceD.Locked = true | |
| 1656 | FurnaceD.BrickColor = BrickColor.new("Black")
| |
| 1657 | - | local tn=ft2(a.insw,wexx) |
| 1657 | + | FurnaceD.formFactor = "Symmetric" |
| 1658 | FurnaceD.Size = Vector3.new(1, 1, 1) | |
| 1659 | FurnaceD:BreakJoints() | |
| 1660 | - | if c0orc1==0 then |
| 1660 | + | Mesh = Instance.new("CylinderMesh")
|
| 1661 | Mesh.Parent = FurnaceD | |
| 1662 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1663 | - | a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i) |
| 1663 | + | Weld = Instance.new("Weld")
|
| 1664 | Weld.Parent = GrassA | |
| 1665 | Weld.Part0 = GrassA | |
| 1666 | - | a.insw[tn][2]["a0x"],a.insw[tn][2]["a0y"],a.insw[tn][2]["a0z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i) |
| 1666 | + | Weld.Part1 = FurnaceD |
| 1667 | Weld.C0 = CFrame.new(35.5, -13.3, 16.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1668 | FurnaceE = Instance.new("WedgePart")
| |
| 1669 | - | elseif c0orc1==1 then |
| 1669 | + | FurnaceE.Parent = Model |
| 1670 | FurnaceE.Name = "FurnaceE" | |
| 1671 | FurnaceE.TopSurface = 0 | |
| 1672 | - | a.insw[tn][2]["p1x"],a.insw[tn][2]["p1y"],a.insw[tn][2]["p1z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i) |
| 1672 | + | FurnaceE.BottomSurface = 0 |
| 1673 | FurnaceE.CanCollide = true | |
| 1674 | FurnaceE.Anchored = false | |
| 1675 | - | a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i) |
| 1675 | + | FurnaceE.Locked = true |
| 1676 | FurnaceE.BrickColor = BrickColor.new("Black")
| |
| 1677 | FurnaceE.formFactor = "Symmetric" | |
| 1678 | - | elseif c0orc1==3 then |
| 1678 | + | FurnaceE.Size = Vector3.new(6, 4, 4) |
| 1679 | FurnaceE:BreakJoints() | |
| 1680 | Weld = Instance.new("Weld")
| |
| 1681 | - | local x,y,z=wexx.C0.x,wexx.C0.y,wexx.C0.z |
| 1681 | + | Weld.Parent = GrassA |
| 1682 | Weld.Part0 = GrassA | |
| 1683 | Weld.Part1 = FurnaceE | |
| 1684 | - | a.insw[tn][2]["p0x"],a.insw[tn][2]["p0y"],a.insw[tn][2]["p0z"]=x2-(((x2-aa)/twa)*i),y2-(((y2-bb)/twa)*i),z2-(((z2-cc)/twa)*i) |
| 1684 | + | Weld.C0 = CFrame.new(41, -10.8, 14) * CFrame.fromEulerAnglesXYZ(0, -math.pi/2, 0) |
| 1685 | FurnaceF = Instance.new("WedgePart")
| |
| 1686 | FurnaceF.Parent = Model | |
| 1687 | - | local x,y,z=wexx.C1:toEulerAnglesXYZ() |
| 1687 | + | FurnaceF.Name = "FurnaceF" |
| 1688 | FurnaceF.TopSurface = 0 | |
| 1689 | FurnaceF.BottomSurface = 0 | |
| 1690 | - | a.insw[tn][2]["a1x"],a.insw[tn][2]["a1y"],a.insw[tn][2]["a1z"]=xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i) |
| 1690 | + | FurnaceF.CanCollide = true |
| 1691 | FurnaceF.Anchored = false | |
| 1692 | FurnaceF.Locked = true | |
| 1693 | - | end |
| 1693 | + | FurnaceF.BrickColor = BrickColor.new("Black")
|
| 1694 | FurnaceF.formFactor = "Symmetric" | |
| 1695 | FurnaceF.Size = Vector3.new(6, 4, 4) | |
| 1696 | FurnaceF:BreakJoints() | |
| 1697 | Weld = Instance.new("Weld")
| |
| 1698 | Weld.Parent = GrassA | |
| 1699 | Weld.Part0 = GrassA | |
| 1700 | Weld.Part1 = FurnaceF | |
| 1701 | - | Welds={}
|
| 1701 | + | Weld.C0 = CFrame.new(37, -10.8, 14) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, 0) |
| 1702 | FurnaceG = Instance.new("Part")
| |
| 1703 | FurnaceG.Parent = Model | |
| 1704 | - | Ani=function(w,a,b,c,d,e,f,ty,inc,sined) |
| 1704 | + | FurnaceG.Name = "FurnaceG" |
| 1705 | FurnaceG.TopSurface = 0 | |
| 1706 | FurnaceG.BottomSurface = 0 | |
| 1707 | - | if not Welds[w] then |
| 1707 | + | FurnaceG.CanCollide = true |
| 1708 | FurnaceG.Anchored = false | |
| 1709 | FurnaceG.Locked = true | |
| 1710 | - | local d0,e0,f0=w.C0:toEulerAnglesXYZ() local d1,e1,f1=w.C1:toEulerAnglesXYZ() |
| 1710 | + | FurnaceG.BrickColor = BrickColor.new("Bright orange")
|
| 1711 | FurnaceG.formFactor = "Symmetric" | |
| 1712 | FurnaceG.Size = Vector3.new(4, 1, 4) | |
| 1713 | - | local d0,e0,f0=mdeg(d0),mdeg(e0),mdeg(f0) local d1,e1,f1=mdeg(d1),mdeg(e1),mdeg(f1) |
| 1713 | + | FurnaceG:BreakJoints() |
| 1714 | Mesh = Instance.new("BlockMesh")
| |
| 1715 | Mesh.Parent = FurnaceG | |
| 1716 | - | Welds[w]={[0]={w.C0.x,w.C0.y,w.C0.z,d0,e0,f0},[1]={w.C1.x,w.C1.y,w.C1.z,d1,e1,f1}}
|
| 1716 | + | Mesh.Scale = Vector3.new(1, 0.02, 1) |
| 1717 | Weld = Instance.new("Weld")
| |
| 1718 | Weld.Parent = GrassA | |
| 1719 | Weld.Part0 = GrassA | |
| 1720 | Weld.Part1 = FurnaceG | |
| 1721 | Weld.C0 = CFrame.new(37, -10.8, 14) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/4) | |
| 1722 | - | local c0,c1=Welds[w][0],Welds[w][1] |
| 1722 | + | FurnaceH = Instance.new("Part")
|
| 1723 | FurnaceH.Parent = Model | |
| 1724 | FurnaceH.Name = "FurnaceH" | |
| 1725 | - | c0[1],c0[2],c0[3]=w.C0.x,w.C0.y,w.C0.z |
| 1725 | + | FurnaceH.TopSurface = 0 |
| 1726 | FurnaceH.BottomSurface = 0 | |
| 1727 | FurnaceH.CanCollide = true | |
| 1728 | - | c1[1],c1[2],c1[3]=w.C1.x,w.C1.y,w.C1.z |
| 1728 | + | FurnaceH.Anchored = false |
| 1729 | FurnaceH.Locked = true | |
| 1730 | FurnaceH.BrickColor = BrickColor.new("Black")
| |
| 1731 | - | local A0,B0,C0,D0,E0,F0 = unpack(c0) |
| 1731 | + | FurnaceH.formFactor = "Symmetric" |
| 1732 | FurnaceH.Size = Vector3.new(4, 1, 1) | |
| 1733 | FurnaceH:BreakJoints() | |
| 1734 | - | local A1,B1,C1,D1,E1,F1 = unpack(c1) |
| 1734 | + | Mesh = Instance.new("BlockMesh")
|
| 1735 | Mesh.Parent = FurnaceH | |
| 1736 | Mesh.Scale = Vector3.new(1, 0.03, 1) | |
| 1737 | - | local Do = function(i) |
| 1737 | + | Weld = Instance.new("Weld")
|
| 1738 | Weld.Parent = GrassA | |
| 1739 | Weld.Part0 = GrassA | |
| 1740 | - | if ty==0 then |
| 1740 | + | Weld.Part1 = FurnaceH |
| 1741 | Weld.C0 = CFrame.new(37, -10.8, 15) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/4) | |
| 1742 | FurnaceI = Instance.new("Part")
| |
| 1743 | - | w.C0=cn( A0-((A0-a)*i) , B0-((B0-b)*i) , C0-((C0-c)*i) ) * ca2( D0-((D0-d)*i) , E0-(((E0-e)/1)*i) , F0-((F0-f)*i) ) |
| 1743 | + | FurnaceI.Parent = Model |
| 1744 | FurnaceI.Name = "FurnaceI" | |
| 1745 | FurnaceI.TopSurface = 0 | |
| 1746 | - | elseif ty==1 then |
| 1746 | + | FurnaceI.BottomSurface = 0 |
| 1747 | FurnaceI.CanCollide = true | |
| 1748 | FurnaceI.Anchored = false | |
| 1749 | - | w.C1=cn( A1-((A1-a)*i) , B1-((B1-b)*i) , C1-((C1-c)*i) ) * ca2( D1-((D1-d)*i) , E1-(((E1-e)/1)*i) , F1-((F1-f)*i) ) |
| 1749 | + | FurnaceI.Locked = true |
| 1750 | FurnaceI.BrickColor = BrickColor.new("Black")
| |
| 1751 | FurnaceI.formFactor = "Symmetric" | |
| 1752 | FurnaceI.Size = Vector3.new(4, 1, 1) | |
| 1753 | FurnaceI:BreakJoints() | |
| 1754 | Mesh = Instance.new("BlockMesh")
| |
| 1755 | - | w.C0=cn( A0-((A0-a)*i) , B0-((B0-b)*i) , C0-((C0-c)*i) ) * ca2(D0,E0,F0) |
| 1755 | + | Mesh.Parent = FurnaceI |
| 1756 | Mesh.Scale = Vector3.new(1, 0.03, 1) | |
| 1757 | Weld = Instance.new("Weld")
| |
| 1758 | - | w.C1=cn(A1,B1,C1) * ca2( D1-((D1-d)*i) , E1-(((E1-e)/1)*i) , F1-((F1-f)*i) ) |
| 1758 | + | Weld.Parent = GrassA |
| 1759 | Weld.Part0 = GrassA | |
| 1760 | Weld.Part1 = FurnaceI | |
| 1761 | Weld.C0 = CFrame.new(37, -10.8, 13) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/4) | |
| 1762 | FurnaceJ = Instance.new("Part")
| |
| 1763 | FurnaceJ.Parent = Model | |
| 1764 | FurnaceJ.Name = "FurnaceJ" | |
| 1765 | FurnaceJ.TopSurface = 0 | |
| 1766 | FurnaceJ.BottomSurface = 0 | |
| 1767 | - | for i=inc,1,inc do |
| 1767 | + | FurnaceJ.CanCollide = true |
| 1768 | FurnaceJ.Anchored = false | |
| 1769 | FurnaceJ.Locked = true | |
| 1770 | - | Do(sined and math.sin(math.pi/2*i) or i) |
| 1770 | + | FurnaceJ.BrickColor = BrickColor.new("Black")
|
| 1771 | FurnaceJ.formFactor = "Symmetric" | |
| 1772 | FurnaceJ.Size = Vector3.new(2, 20, 2) | |
| 1773 | FurnaceJ:BreakJoints() | |
| 1774 | Mesh = Instance.new("CylinderMesh")
| |
| 1775 | Mesh.Parent = FurnaceJ | |
| 1776 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1777 | Weld = Instance.new("Weld")
| |
| 1778 | Weld.Parent = GrassA | |
| 1779 | - | Do(1) |
| 1779 | + | Weld.Part0 = GrassA |
| 1780 | Weld.Part1 = FurnaceJ | |
| 1781 | Weld.C0 = CFrame.new(41, -2.8, 14) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1782 | - | if ty==0 then |
| 1782 | + | FurnaceK = Instance.new("Part")
|
| 1783 | FurnaceK.Parent = Model | |
| 1784 | FurnaceK.Name = "FurnaceK" | |
| 1785 | - | c0[4],c0[5],c0[6]=d,e,f |
| 1785 | + | FurnaceK.TopSurface = 0 |
| 1786 | FurnaceK.BottomSurface = 0 | |
| 1787 | FurnaceK.CanCollide = true | |
| 1788 | FurnaceK.Anchored = false | |
| 1789 | FurnaceK.Locked = true | |
| 1790 | FurnaceK.Transparency = 1 | |
| 1791 | - | c1[4],c1[5],c1[6]=d,e,f |
| 1791 | + | FurnaceK.BrickColor = BrickColor.new("Black")
|
| 1792 | FurnaceK.formFactor = "Symmetric" | |
| 1793 | FurnaceK.Size = Vector3.new(1, 1, 1) | |
| 1794 | FurnaceK:BreakJoints() | |
| 1795 | Weld = Instance.new("Weld")
| |
| 1796 | Weld.Parent = GrassA | |
| 1797 | Weld.Part0 = FurnaceJ | |
| 1798 | Weld.Part1 = FurnaceK | |
| 1799 | Weld.C0 = CFrame.new(0, 10, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1800 | - | qAni=function(w,a,b,c,d,e,f,ty,inc,sined) q(function() Ani(w,a,b,c,d,e,f,ty,inc,sined) end) end |
| 1800 | + | Smoke = Instance.new("Smoke")
|
| 1801 | Smoke.Parent = FurnaceK | |
| 1802 | Smoke.Enabled = false | |
| 1803 | - | rAni=function(w) |
| 1803 | + | Smoke.Size = 10 |
| 1804 | Smoke.Opacity = 100 | |
| 1805 | ||
| 1806 | - | Welds[w]=nil |
| 1806 | + | DeskA = Instance.new("Part")
|
| 1807 | DeskA.Parent = Model | |
| 1808 | DeskA.Name = "DeskA" | |
| 1809 | DeskA.TopSurface = 0 | |
| 1810 | DeskA.BottomSurface = 0 | |
| 1811 | DeskA.CanCollide = true | |
| 1812 | DeskA.Anchored = false | |
| 1813 | DeskA.Locked = true | |
| 1814 | - | gunshot = function(speed,sc,dmg,cff) q(function() -- gunshot function |
| 1814 | + | DeskA.BrickColor = BrickColor.new("Brown")
|
| 1815 | DeskA.formFactor = "Symmetric" | |
| 1816 | DeskA.Size = Vector3.new(1, 2, 1) | |
| 1817 | - | local bb = pa(workspace,"bullet","Block",0.2*sc,0.3*sc,0.2*sc,true,true,0,0.1,"Black") qi({"CylinderMesh",bb})
|
| 1817 | + | DeskA:BreakJoints() |
| 1818 | Mesh = Instance.new("CylinderMesh")
| |
| 1819 | Mesh.Parent = DeskA | |
| 1820 | - | bb.CFrame = cff*ca(rd(rn(-1000,1000)/1500),rd(rn(-1000,1000)/1500),rd(rn(-1000,1000)/1500)) |
| 1820 | + | Mesh.Scale = Vector3.new(1, 1, 1) |
| 1821 | Weld = Instance.new("Weld")
| |
| 1822 | Weld.Parent = GrassA | |
| 1823 | - | so(ds.Fire,bb,0.3,1) wait() for i=1,50 do |
| 1823 | + | Weld.Part0 = GrassA |
| 1824 | Weld.Part1 = DeskA | |
| 1825 | Weld.C0 = CFrame.new(5, -12.8, 11.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1826 | - | bhit,bpos=ray(bb.Position,bb.Position - (bb.CFrame *cn(0,-1,0)).p) |
| 1826 | + | DeskB = Instance.new("Part")
|
| 1827 | DeskB.Parent = Model | |
| 1828 | DeskB.Name = "DeskB" | |
| 1829 | - | if bhit and bhit.Name ~= "bullet" and bhit.Name ~= "bullethole" and bpos and (bpos - bb.Position).magnitude < speed then break end |
| 1829 | + | DeskB.TopSurface = 0 |
| 1830 | DeskB.BottomSurface = 0 | |
| 1831 | DeskB.CanCollide = true | |
| 1832 | - | bb.CFrame=bb.CFrame*cn(0,speed,0)*ca(rd(-0.2),0,0) |
| 1832 | + | DeskB.Anchored = false |
| 1833 | DeskB.Locked = true | |
| 1834 | DeskB.BrickColor = BrickColor.new("Brown")
| |
| 1835 | DeskB.formFactor = "Symmetric" | |
| 1836 | DeskB.Size = Vector3.new(1, 2, 1) | |
| 1837 | DeskB:BreakJoints() | |
| 1838 | - | end bb.CFrame=bb.CFrame*cn(0,(bpos-bb.Position).magnitude,0) |
| 1838 | + | Mesh = Instance.new("CylinderMesh")
|
| 1839 | Mesh.Parent = DeskB | |
| 1840 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1841 | - | if not bhit.Anchored then |
| 1841 | + | Weld = Instance.new("Weld")
|
| 1842 | Weld.Parent = GrassA | |
| 1843 | Weld.Part0 = GrassA | |
| 1844 | - | if bhit.Parent:findFirstChild("Humanoid") then local h = bhit.Parent.Humanoid h.Health=h.Health-dmg so(ds.Hit,bhit,0.3,1) end
|
| 1844 | + | Weld.Part1 = DeskB |
| 1845 | Weld.C0 = CFrame.new(15, -12.8, 11.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1846 | DeskC = Instance.new("Part")
| |
| 1847 | - | else if bhit.Name~="Base" then bhit.Anchored=false bhit:BreakJoints() end end bb:Remove() |
| 1847 | + | DeskC.Parent = Model |
| 1848 | DeskC.Name = "DeskC" | |
| 1849 | DeskC.TopSurface = 0 | |
| 1850 | - | if bhit.Parent:findFirstChild("Humanoid") == nil then BulletHole(bpos,bhit,0.7*sc) end
|
| 1850 | + | DeskC.BottomSurface = 0 |
| 1851 | DeskC.CanCollide = true | |
| 1852 | DeskC.Anchored = false | |
| 1853 | - | end) end |
| 1853 | + | DeskC.Locked = true |
| 1854 | DeskC.BrickColor = BrickColor.new("Brown")
| |
| 1855 | DeskC.formFactor = "Symmetric" | |
| 1856 | DeskC.Size = Vector3.new(1, 2, 1) | |
| 1857 | DeskC:BreakJoints() | |
| 1858 | - | dive = function(ob2,pro,ite,stof) |
| 1858 | + | Mesh = Instance.new("CylinderMesh")
|
| 1859 | Mesh.Parent = DeskC | |
| 1860 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1861 | - | local function div(ob) for i,v in pairs(ob:children()) do if v[pro] == ite then |
| 1861 | + | Weld = Instance.new("Weld")
|
| 1862 | Weld.Parent = GrassA | |
| 1863 | Weld.Part0 = GrassA | |
| 1864 | - | for i=1,#stof do v[stof[i][1]] = stof[i][2] end else div(v) end end end |
| 1864 | + | Weld.Part1 = DeskC |
| 1865 | Weld.C0 = CFrame.new(15, -12.8, 16.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1866 | DeskD = Instance.new("Part")
| |
| 1867 | - | div(ob2) |
| 1867 | + | DeskD.Parent = Model |
| 1868 | DeskD.Name = "DeskD" | |
| 1869 | DeskD.TopSurface = 0 | |
| 1870 | DeskD.BottomSurface = 0 | |
| 1871 | DeskD.CanCollide = true | |
| 1872 | DeskD.Anchored = false | |
| 1873 | DeskD.Locked = true | |
| 1874 | DeskD.BrickColor = BrickColor.new("Brown")
| |
| 1875 | - | fc = function(ob,cl) |
| 1875 | + | DeskD.formFactor = "Symmetric" |
| 1876 | DeskD.Size = Vector3.new(1, 2, 1) | |
| 1877 | DeskD:BreakJoints() | |
| 1878 | - | for i,v in pairs(ob:children()) do if v.className:lower()==cl:lower() then return v end end |
| 1878 | + | Mesh = Instance.new("CylinderMesh")
|
| 1879 | Mesh.Parent = DeskD | |
| 1880 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1881 | Weld = Instance.new("Weld")
| |
| 1882 | Weld.Parent = GrassA | |
| 1883 | Weld.Part0 = GrassA | |
| 1884 | Weld.Part1 = DeskD | |
| 1885 | Weld.C0 = CFrame.new(5, -12.8, 16.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1886 | - | function se(Key,Text) |
| 1886 | + | DeskE = Instance.new("Part")
|
| 1887 | DeskE.Parent = Model | |
| 1888 | DeskE.Name = "DeskE" | |
| 1889 | - | local Values = {}
|
| 1889 | + | DeskE.TopSurface = 0 |
| 1890 | DeskE.BottomSurface = 0 | |
| 1891 | DeskE.CanCollide = true | |
| 1892 | - | for value in (Text..Key):gmatch("(.-)"..Key) do
|
| 1892 | + | DeskE.Anchored = false |
| 1893 | DeskE.Locked = true | |
| 1894 | DeskE.BrickColor = BrickColor.new("Brown")
| |
| 1895 | - | table.insert(Values,value) |
| 1895 | + | DeskE.formFactor = "Plate" |
| 1896 | DeskE.Size = Vector3.new(11, 0.4, 6) | |
| 1897 | DeskE:BreakJoints() | |
| 1898 | - | end return Values |
| 1898 | + | Weld = Instance.new("Weld")
|
| 1899 | Weld.Parent = GrassA | |
| 1900 | Weld.Part0 = GrassA | |
| 1901 | Weld.Part1 = DeskE | |
| 1902 | Weld.C0 = CFrame.new(10, -11.6, 14) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1903 | SeatH = Instance.new("Seat")
| |
| 1904 | SeatH.Parent = Model | |
| 1905 | SeatH.Name = "SeatH" | |
| 1906 | - | local thefenv = getfenv() |
| 1906 | + | SeatH.TopSurface = 0 |
| 1907 | SeatH.BottomSurface = 0 | |
| 1908 | SeatH.CanCollide = true | |
| 1909 | - | getfenv()["rmhelp"] = function() |
| 1909 | + | SeatH.Anchored = false |
| 1910 | SeatH.Locked = true | |
| 1911 | SeatH.BrickColor = BrickColor.new("Brown")
| |
| 1912 | - | local nus = 0 |
| 1912 | + | SeatH.formFactor = "Plate" |
| 1913 | SeatH.Size = Vector3.new(2, 0.8, 2) | |
| 1914 | SeatH:BreakJoints() | |
| 1915 | - | for i,v in pairs(thefenv) do if i ~= "wait" and i ~= "script" then nus = nus + 1 wait(0.05) |
| 1915 | + | Mesh = Instance.new("CylinderMesh")
|
| 1916 | Mesh.Parent = SeatH | |
| 1917 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1918 | - | print(string.rep(" ",3-#tostring(nus)) ..nus.. ") " ..i.. " (" ..type(v).. ")")
|
| 1918 | + | Weld = Instance.new("Weld")
|
| 1919 | Weld.Parent = GrassA | |
| 1920 | Weld.Part0 = GrassA | |
| 1921 | Weld.Part1 = SeatH | |
| 1922 | Weld.C0 = CFrame.new(10, -13.4, 18) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1923 | ||
| 1924 | LadderA = Instance.new("Part")
| |
| 1925 | LadderA.Parent = Model | |
| 1926 | LadderA.Name = "LadderA" | |
| 1927 | LadderA.TopSurface = 0 | |
| 1928 | LadderA.BottomSurface = 0 | |
| 1929 | LadderA.CanCollide = true | |
| 1930 | LadderA.Anchored = false | |
| 1931 | LadderA.Locked = true | |
| 1932 | - | for i,v in pairs(thefenv) do |
| 1932 | + | LadderA.BrickColor = BrickColor.new("Brown")
|
| 1933 | LadderA.formFactor = "Symmetric" | |
| 1934 | LadderA.Size = Vector3.new(1, 5, 1) | |
| 1935 | - | _G[i] = v |
| 1935 | + | LadderA:BreakJoints() |
| 1936 | Mesh = Instance.new("CylinderMesh")
| |
| 1937 | Mesh.Parent = LadderA | |
| 1938 | - | --print(i) |
| 1938 | + | Mesh.Scale = Vector3.new(1, 1, 1) |
| 1939 | Status = Instance.new("IntValue")
| |
| 1940 | Status.Parent = LadderA | |
| 1941 | Status.Name = "Status" | |
| 1942 | Status.Value = 1 | |
| 1943 | Weld = Instance.new("Weld")
| |
| 1944 | Weld.Parent = GrassA | |
| 1945 | Weld.Name = "LadderA" | |
| 1946 | - | _G[" r".."m".."d".."x "] = [[ |
| 1946 | + | Weld.Part0 = GrassA |
| 1947 | Weld.Part1 = LadderA | |
| 1948 | Weld.C0 = CFrame.new(44, -14, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 1949 | - | for i,v in pairs(_G) do |
| 1949 | + | LadderB = Instance.new("Part")
|
| 1950 | LadderB.Parent = Model | |
| 1951 | LadderB.Name = "LadderB" | |
| 1952 | - | if i ~= "wait" and i ~= "script" then |
| 1952 | + | LadderB.TopSurface = 0 |
| 1953 | LadderB.BottomSurface = 0 | |
| 1954 | LadderB.CanCollide = true | |
| 1955 | - | getfenv()[i] = v |
| 1955 | + | LadderB.Anchored = false |
| 1956 | LadderB.Locked = true | |
| 1957 | LadderB.BrickColor = BrickColor.new("Brown")
| |
| 1958 | LadderB.formFactor = "Symmetric" | |
| 1959 | LadderB.Size = Vector3.new(1, 5, 1) | |
| 1960 | LadderB:BreakJoints() | |
| 1961 | Mesh = Instance.new("CylinderMesh")
| |
| 1962 | Mesh.Parent = LadderB | |
| 1963 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 1964 | - | ]] |
| 1964 | + | Weld = Instance.new("Weld")
|
| 1965 | Weld.Parent = GrassA | |
| 1966 | - | script:ClearAllChildren() |
| 1966 | + | Weld.Name = "LadderB" |
| 1967 | - | loadstring(_G[" rmdx "])() |
| 1967 | + | Weld.Part0 = GrassA |
| 1968 | - | Player=game:GetService("Players").LocalPlayer
|
| 1968 | + | Weld.Part1 = LadderB |
| 1969 | - | Char=Player.Character |
| 1969 | + | Weld.C0 = CFrame.new(44, -14, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) |
| 1970 | - | Backpack=Player.Backpack |
| 1970 | + | LadderC = Instance.new("Part")
|
| 1971 | - | PlayerGui=Player.PlayerGui |
| 1971 | + | LadderC.Parent = Model |
| 1972 | - | Torso=Char.Torso |
| 1972 | + | LadderC.Name = "LadderC" |
| 1973 | - | Head=Char.Head |
| 1973 | + | LadderC.TopSurface = 0 |
| 1974 | - | Hum=Char.Humanoid |
| 1974 | + | LadderC.BottomSurface = 0 |
| 1975 | - | Cam=workspace.CurrentCamera |
| 1975 | + | LadderC.CanCollide = true |
| 1976 | - | Tn="Pipebomb Launcher" |
| 1976 | + | LadderC.Anchored = false |
| 1977 | - | pcall(function() Backpack[Tn]:Remove() end) |
| 1977 | + | LadderC.Locked = true |
| 1978 | - | pcall(function() Cam[Tn]:Remove() end) |
| 1978 | + | LadderC.BrickColor = BrickColor.new("Brown")
|
| 1979 | - | pcall(function() thesuit=Char[''] end) |
| 1979 | + | LadderC.formFactor = "Symmetric" |
| 1980 | - | pcall(function() thesuit[Tn]:Remove() end) |
| 1980 | + | LadderC.Size = Vector3.new(1, 5, 1) |
| 1981 | - | pcall(function() PlayerGui[Tn]:Remove() end) |
| 1981 | + | LadderC:BreakJoints() |
| 1982 | - | CModel=qi{'Model',Cam,Name=Tn}
|
| 1982 | + | Mesh = Instance.new("CylinderMesh")
|
| 1983 | - | Tool=qi{'HopperBin',Player.Backpack,Name=Tn}
|
| 1983 | + | Mesh.Parent = LadderC |
| 1984 | - | Suit=qi{'Model',Char,Name=''}
|
| 1984 | + | Mesh.Scale = Vector3.new(1, 1, 1) |
| 1985 | - | Weapon=qi{'Model',Suit,Name=Tn}
|
| 1985 | + | Weld = Instance.new("Weld")
|
| 1986 | - | Gui=qi{'ScreenGui',PlayerGui,Name=Tn}
|
| 1986 | + | Weld.Parent = GrassA |
| 1987 | - | equip="unequipped" |
| 1987 | + | Weld.Name = "LadderC" |
| 1988 | - | anim="" |
| 1988 | + | Weld.Part0 = GrassA |
| 1989 | - | keys={}
|
| 1989 | + | Weld.Part1 = LadderC |
| 1990 | - | fmouse=nil |
| 1990 | + | Weld.C0 = CFrame.new(44, -14, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) |
| 1991 | - | PipeRotate=0 |
| 1991 | + | LadderD = Instance.new("Part")
|
| 1992 | - | Clip=6 |
| 1992 | + | LadderD.Parent = Model |
| 1993 | - | LastShot=0 |
| 1993 | + | LadderD.Name = "LadderD" |
| 1994 | - | ids = {}
|
| 1994 | + | LadderD.TopSurface = 0 |
| 1995 | - | ids.Shoot = 10209633 |
| 1995 | + | LadderD.BottomSurface = 0 |
| 1996 | - | ids.Reload = 10209636 |
| 1996 | + | LadderD.CanCollide = true |
| 1997 | - | ids.Crown = 20329976 |
| 1997 | + | LadderD.Anchored = false |
| 1998 | - | ids.Crown2 = 1323306 |
| 1998 | + | LadderD.Locked = true |
| 1999 | - | ids.Icon = 52611635 |
| 1999 | + | LadderD.BrickColor = BrickColor.new("Brown")
|
| 2000 | - | ids.Explode = 2697431 |
| 2000 | + | LadderD.formFactor = "Symmetric" |
| 2001 | - | ids.Ring = 3270017 |
| 2001 | + | LadderD.Size = Vector3.new(1, 5, 1) |
| 2002 | - | for i,v in pairs(ids) do |
| 2002 | + | LadderD:BreakJoints() |
| 2003 | - | if type(v)=='number' then |
| 2003 | + | Mesh = Instance.new("CylinderMesh")
|
| 2004 | - | ids[i]='http://www.roblox.com/asset/?id='..v |
| 2004 | + | Mesh.Parent = LadderD |
| 2005 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 2006 | - | game:GetService("ContentProvider"):Preload(ids[i])
|
| 2006 | + | Weld = Instance.new("Weld")
|
| 2007 | Weld.Parent = GrassA | |
| 2008 | - | Limbs={LS=Torso:findFirstChild'Left Shoulder',RS=Torso:findFirstChild'Right Shoulder',LH=Torso:findFirstChild'Left Hip',RH=Torso:findFirstChild'Right Hip'}
|
| 2008 | + | Weld.Name = "LadderD" |
| 2009 | - | if _G.Limbz then |
| 2009 | + | Weld.Part0 = GrassA |
| 2010 | - | Limbs.LS=Limbs.LS or _G.Limbz.LS |
| 2010 | + | Weld.Part1 = LadderD |
| 2011 | - | Limbs.RS=Limbs.RS or _G.Limbz.RS |
| 2011 | + | Weld.C0 = CFrame.new(44, -14, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) |
| 2012 | - | Limbs.LH=Limbs.LH or _G.Limbz.LH |
| 2012 | + | LadderE = Instance.new("Part")
|
| 2013 | - | Limbs.RH=Limbs.RH or _G.Limbz.RH |
| 2013 | + | LadderE.Parent = Model |
| 2014 | LadderE.Name = "LadderE" | |
| 2015 | - | _G.Limbz=Limbs |
| 2015 | + | LadderE.TopSurface = 0 |
| 2016 | - | Torso.Neck.C0=cn(0,1.5,0) Torso.Neck.C1=cn(0,0,0) |
| 2016 | + | LadderE.BottomSurface = 0 |
| 2017 | - | c2(Torso.Neck,1,3,0,1.5,0,0,0,0) |
| 2017 | + | LadderE.CanCollide = true |
| 2018 | - | LS,RS,LH,RH=Limbs.LS,Limbs.RS,Limbs.LH,Limbs.RH |
| 2018 | + | LadderE.Anchored = false |
| 2019 | - | LA,RA,LL,RL=Char['Left Arm'],Char['Right Arm'],Char['Left Leg'],Char['Right Leg'] |
| 2019 | + | LadderE.Locked = true |
| 2020 | - | LS.Part0,RS.Part0,LH.Part0,RH.Part0=Torso,Torso,Torso,Torso |
| 2020 | + | LadderE.BrickColor = BrickColor.new("Brown")
|
| 2021 | - | LS.Part1,RS.Part1,LH.Part1,RH.Part1=LA,RA,LL,RL |
| 2021 | + | LadderE.formFactor = "Symmetric" |
| 2022 | - | pcall(function() thesuit:Remove() end) |
| 2022 | + | LadderE.Size = Vector3.new(1, 5, 1) |
| 2023 | - | Head.face.Transparency=0 |
| 2023 | + | LadderE:BreakJoints() |
| 2024 | - | Head.Transparency=1 Torso.Transparency=1 |
| 2024 | + | Mesh = Instance.new("CylinderMesh")
|
| 2025 | - | fTorso=pa(Suit,"FTorso","Block",2,2,1,false,false,0,0,Torso.BrickColor.Name) neck=Torso.Neck |
| 2025 | + | Mesh.Parent = LadderE |
| 2026 | - | tw=weld(fTorso,Torso,fTorso,0,0,0,0,0,0) qi{"BlockMesh",fTorso}
|
| 2026 | + | Mesh.Scale = Vector3.new(1, 1, 1) |
| 2027 | - | fHead=pa(Suit,"FHead","Block",2,1,1,false,false,0,0,Head.BrickColor.Name) |
| 2027 | + | Weld = Instance.new("Weld")
|
| 2028 | - | hw=weld(fHead,fTorso,fHead,0,1.5,0,0,0,0) qi{"SpecialMesh",fHead,Scale=v3(1.15,1.15,1.15)} Head.face:Clone().Parent=fHead Head.face.Transparency=1
|
| 2028 | + | Weld.Parent = GrassA |
| 2029 | - | la=qi{'Weld',fTorso,Part0=fTorso,C0=cn(-1.5,0.5,0),C1=cn(0,0.5,0)} ra=qi{'Weld',fTorso,Part0=fTorso,C0=cn(1.5,0.5,0),C1=cn(0,0.5,0)}
|
| 2029 | + | Weld.Name = "LadderE" |
| 2030 | - | ll=qi{'Weld',fTorso,Part0=fTorso,C0=cn(-0.5,-1,0),C1=cn(0,1,0)} rl=qi{'Weld',fTorso,Part0=fTorso,C0=cn(0.5,-1,0),C1=cn(0,1,0)}
|
| 2030 | + | Weld.Part0 = GrassA |
| 2031 | - | newhats(Char,fHead,Head) ClearClass(Char,"Hat") Hum.WalkSpeed=16 Hum.MaxHealth=175 |
| 2031 | + | Weld.Part1 = LadderE |
| 2032 | - | Armz=false |
| 2032 | + | Weld.C0 = CFrame.new(44, -14, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) |
| 2033 | - | Legz=false |
| 2033 | + | |
| 2034 | - | Arms = function(on) Armz=on |
| 2034 | + | TurretA = Instance.new("Part")
|
| 2035 | - | if on then |
| 2035 | + | TurretA.Parent = Model |
| 2036 | - | LS.Part1=nil RS.Part1=nil |
| 2036 | + | TurretA.Name = "TurretA" |
| 2037 | - | la.Part0=fTorso ra.Part0=fTorso |
| 2037 | + | TurretA.TopSurface = 0 |
| 2038 | - | la.Part1=LA ra.Part1=RA |
| 2038 | + | TurretA.BottomSurface = 0 |
| 2039 | - | la.C0,la.C1=cn(-1.5,0.5,0),cn(0,0.5,0) |
| 2039 | + | TurretA.CanCollide = true |
| 2040 | - | ra.C0,ra.C1=cn(1.5,0.5,0),cn(0,0.5,0) |
| 2040 | + | TurretA.Anchored = false |
| 2041 | TurretA.Locked = true | |
| 2042 | - | LS.Parent,RS.Parent=fTorso,fTorso LS.Part0=fTorso RS.Part0=fTorso LS.Part1=LA RS.Part1=RA |
| 2042 | + | TurretA.BrickColor = BrickColor.new("Dark orange")
|
| 2043 | - | la.Part1=nil ra.Part1=nil |
| 2043 | + | TurretA.Reflectance = 0.2 |
| 2044 | TurretA.formFactor = "Symmetric" | |
| 2045 | TurretA.Size = Vector3.new(5, 1, 5) | |
| 2046 | - | Legs = function(on) Legz=on |
| 2046 | + | TurretA:BreakJoints() |
| 2047 | - | if on then |
| 2047 | + | Mesh = Instance.new("CylinderMesh")
|
| 2048 | - | LH.Part1=nil RH.Part1=nil |
| 2048 | + | Mesh.Parent = TurretA |
| 2049 | - | ll.Part0=fTorso rl.Part0=fTorso |
| 2049 | + | Mesh.Scale = Vector3.new(1, 1, 1) |
| 2050 | - | ll.Part1=LL rl.Part1=RL |
| 2050 | + | Weld = Instance.new("Weld")
|
| 2051 | - | ll.C0,ll.C1=cn(-0.5,-1,0),cn(0,1,0) |
| 2051 | + | Weld.Parent = GrassA |
| 2052 | - | rl.C0,rl.C1=cn(0.5,-1,0),cn(0,1,0) |
| 2052 | + | Weld.Name = "TurretA" |
| 2053 | Weld.Part0 = GrassA | |
| 2054 | - | LH.Parent,RH.Parent=fTorso,fTorso LH.Part0=fTorso RH.Part0=fTorso LH.Part1=LL RH.Part1=RL |
| 2054 | + | Weld.Part1 = TurretA |
| 2055 | - | ll.Part1=nil rl.Part1=nil |
| 2055 | + | Weld.C0 = CFrame.new(20, 0.7, 55) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 2056 | TurretB = Instance.new("Part")
| |
| 2057 | TurretB.Parent = Model | |
| 2058 | - | Arms'' Legs'' |
| 2058 | + | TurretB.Name = "TurretB" |
| 2059 | - | WDesign=function(c) |
| 2059 | + | TurretB.TopSurface = 0 |
| 2060 | - | ha=pa(Weapon,"","Block",0.2,0.5,1,false,false,0,0,c[1]) haw=weld(ha,Torso,ha,0.5,2.5,1,rd(270),0,rd(90)) |
| 2060 | + | TurretB.BottomSurface = 0 |
| 2061 | - | gp=pa(Weapon,"","Block",0.2,1,0.2,false,false,0,0,c[1]) weld(gp,ha,gp,0,-0.35,0,rd(-90),0,0) qi{'SpecialMesh',gp,MeshType='Wedge'}
|
| 2061 | + | TurretB.CanCollide = true |
| 2062 | - | gp=pa(Weapon,"","Block",0.2,0.7,0.2,false,false,0,0,c[2]) weld(gp,ha,gp,0,-0.1,0.55,0,0,0) qi{'BlockMesh',gp,Scale=v3(1,1,0.5)}
|
| 2062 | + | TurretB.Anchored = false |
| 2063 | - | gp=pa(Weapon,"","Block",0.2,0.5,0.5,false,false,0,0,c[1]) weld(gp,ha,gp,0,-0.115,-0.5,rd(45),0,0) |
| 2063 | + | TurretB.Locked = true |
| 2064 | - | gp=pa(Weapon,"","Block",0.2,0.5,1,false,false,0,0,c[1]) weld(gp,ha,gp,0,-0.1,-0.95,rd(15),0,0) |
| 2064 | + | TurretB.BrickColor = BrickColor.new("Dark orange")
|
| 2065 | - | gpp=pa(Weapon,"","Block",0.21,0.6,0.3,false,false,0,0,c[3]) weld(gpp,ha,gpp,0,0,-1.5,0,0,0) |
| 2065 | + | TurretB.Reflectance = 0.2 |
| 2066 | - | gp=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[3]) weld(gp,gpp,gp,0,-0.4,0.05,0,rd(90),0) qi{'SpecialMesh',gp,MeshId=ids.Ring,Scale=v3(0.35,0.35,1)}
|
| 2066 | + | TurretB.formFactor = "Symmetric" |
| 2067 | - | gp=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[3]) weld(gp,gpp,gp,0,-0.4,0.05,rd(10),rd(90),0) qi{'BlockMesh',gp,Scale=v3(0.25,1,0.25)}
|
| 2067 | + | TurretB.Shape = "Ball" |
| 2068 | - | gp1=pa(Weapon,"","Block",1.2,0.2,1.2,false,false,0,0,c[3]) weld(gp1,gpp,gp1,0,-0.25,-0.2,rd(90),0,0) qi{'CylinderMesh',gp1}
|
| 2068 | + | TurretB.Size = Vector3.new(4, 4, 4) |
| 2069 | - | p1=pa(Weapon,"","Block",0.4,1.3,0.2,false,false,0,0,c[3]) weld(p1,gp1,p1,0,0,0.1,rd(90),0,0) |
| 2069 | + | TurretB:BreakJoints() |
| 2070 | - | p2=pa(Weapon,"","Block",0.2,0.4,0.2,false,false,0,0,c[3]) weld(p2,p1,p2,0,1.3/2,0,0,0,rd(90)) qi{'CylinderMesh',p2}
|
| 2070 | + | Reloading = Instance.new("BoolValue")
|
| 2071 | - | hinge=pa(Weapon,"","Block",0.2,0.4,0.2,false,false,0,0,c[4]) hingew=weld(hinge,p2,hinge,0,0,0,0,rd(0),0) qi{'CylinderMesh',hinge,Scale=v3(0.6,1.001,0.6)}
|
| 2071 | + | Reloading.Parent = TurretB |
| 2072 | - | p3=pa(Weapon,"","Block",0.4,0.3,0.2,false,false,0,0,c[3]) weld(p3,p1,p3,0,-1.3/2,0,0,0,0) qi{'BlockMesh',p3}
|
| 2072 | + | Reloading.Name = "Reload" |
| 2073 | - | p4=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[3]) weld(p4,p3,p4,0.15,-0.2,0,0,0,0) qi{'BlockMesh',p4,Scale=v3(0.5,1,1)}
|
| 2073 | + | Reloading.Value = false |
| 2074 | - | p5=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[3]) weld(p5,p3,p5,-0.15,-0.2,0,0,0,0) qi{'BlockMesh',p5,Scale=v3(0.5,1,1)}
|
| 2074 | + | VX = Instance.new("NumberValue")
|
| 2075 | - | p6=pa(Weapon,"","Block",0.4,0.2,0.7,false,false,0,0,c[3]) weld(p6,hinge,p6,0,0,0.35,0,0,rd(-90)) qi{'BlockMesh',p6,Scale=v3(1,0.5,1)}
|
| 2075 | + | VX .Parent = TurretB |
| 2076 | - | p7=pa(Weapon,"","Block",0.4,0.2,0.4,false,false,0,0,c[3]) weld(p7,p6,p7,0,0,0.55,rd(180),0,0) qi{'SpecialMesh',p7,Scale=v3(1,0.5,1),MeshType="Wedge"}
|
| 2076 | + | VX.Name = "VX" |
| 2077 | - | p8=pa(Weapon,"","Block",0.4,0.2,0.4,false,false,0,0,c[3]) weld(p8,p7,p8,0,-0.15,0,rd(180),0,0) qi{'SpecialMesh',p8,MeshType="Wedge"}
|
| 2077 | + | VX.Value = 0.3 |
| 2078 | - | p9=pa(Weapon,"","Block",0.4,0.2,0.3,false,false,0,0,c[3]) weld(p9,p8,p9,0,0,0.35,0,0,0) qi{'BlockMesh',p9}
|
| 2078 | + | VY = Instance.new("NumberValue")
|
| 2079 | - | p10=pa(Weapon,"","Block",0.4,0.2,0.3,false,false,0,0,c[3]) weld(p10,p9,p10,0,0,0.3,0,rd(180),0) qi{'SpecialMesh',p10,MeshType="Wedge"}
|
| 2079 | + | VY.Parent = TurretB |
| 2080 | - | p11=pa(Weapon,"","Block",0.4,0.2,0.3,false,false,0,0,c[3]) weld(p11,p10,p11,0,-0.2,0,0,0,0) qi{'BlockMesh',p11}
|
| 2080 | + | VY.Name = "VY" |
| 2081 | - | p12=pa(Weapon,"","Block",0.3,0.2,0.3,false,false,0,0,c[3]) weld(p12,p11,p12,0.35,0,0,0,rd(-90),0) qi{'SpecialMesh',p12,MeshType="Wedge"}
|
| 2081 | + | VY.Value = 0 |
| 2082 | - | p13=pa(Weapon,"","Block",0.3,0.2,0.3,false,false,0,0,c[3]) weld(p13,p11,p13,-0.35,0,0,0,rd(90),0) qi{'SpecialMesh',p13,MeshType="Wedge"}
|
| 2082 | + | Weld = Instance.new("Weld")
|
| 2083 | - | p14=pa(Weapon,"","Block",1.5,0.3,1.5,false,false,0,0,c[3]) weld(p14,p11,p14,0,-0.7,0,rd(90),0,0) qi{'CylinderMesh',p14}
|
| 2083 | + | Weld.Parent = GrassA |
| 2084 | - | p15=pa(Weapon,"","Block",1.3,0.2,1.3,false,false,0,0,c[2]) weld(p15,p14,p15,0,0.25,0,0,0,0) qi{'CylinderMesh',p15}
|
| 2084 | + | Weld.Name = "TurretB" |
| 2085 | - | p16=pa(Weapon,"","Block",0.2,1.4,0.2,false,false,0,0,c[2]) piperw=weld(p16,p15,p16,0,0.7,0,0,rd(30),0) qi{'CylinderMesh',p16}
|
| 2085 | + | Weld.Part0 = TurretA |
| 2086 | - | for i=0,360,360/6 do |
| 2086 | + | Weld.Part1 = TurretB |
| 2087 | - | p16p=pa(Weapon,"","Block",0.5,1.1,0.5,false,false,0,0,c[2]) p16pw=weld(p16p,p16,p16p,0,0,0,0,0,0) qi{'CylinderMesh',p16p} p16pw.C0=cn(0,-0.05,0)*ca(0,rd(i),0)*cn(0.4,0,0)
|
| 2087 | + | Weld.C0 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0.3, 0, 0) |
| 2088 | - | p16p=pa(Weapon,"","Block",0.3,0.2,0.3,false,false,0,0,c[5]) p16pw=weld(p16p,p16,p16p,0,0,0,0,0,0) qi{'CylinderMesh',p16p,Scale=v3(1,0.1,1)} p16pw.C0=cn(0,0.5,0)*ca(0,rd(i),0)*cn(0.4,0,0)
|
| 2088 | + | TurretD = Instance.new("Part")
|
| 2089 | - | p16p=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[2]) p16pw=weld(p16p,p16,p16p,0,0,0,0,0,0) qi{'CylinderMesh',p16p,Scale=v3(1,0.1,1)} p16pw.C0=cn(0,0.51,0)*ca(0,rd(i),0)*cn(0.4,0,0)
|
| 2089 | + | TurretD.Parent = Model |
| 2090 | TurretD.Name = "TurretD" | |
| 2091 | - | p17=pa(Weapon,"","Block",0.2,0.2,0.3,false,false,0,0,c[3]) weld(p17,p14,p17,0,0,0.75,rd(90),rd(180),0) qi{'SpecialMesh',p17,MeshType="Wedge",Scale=v3(1,1,1)}
|
| 2091 | + | TurretD.TopSurface = 0 |
| 2092 | - | p18=pa(Weapon,"","Block",0.2,0.2,1.5,false,false,0,0,c[3]) weld(p18,p17,p18,0,0.05,0.9,0,0,0) qi{'BlockMesh',p18,Scale=v3(1,0.5,1)}
|
| 2092 | + | TurretD.BottomSurface = 0 |
| 2093 | - | p19=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[3]) weld(p19,p18,p19,0,0.1,0,0,0,0) qi{'SpecialMesh',p19,Scale=v3(0.5,0.5,1),MeshType="Wedge"}
|
| 2093 | + | TurretD.CanCollide = true |
| 2094 | - | p20=pa(Weapon,"","Block",0.2,0.2,0.3,false,false,0,0,c[3]) weld(p20,p19,p20,0,0,0.25,0,0,0) qi{'BlockMesh',p20,Scale=v3(0.5,0.5,1)}
|
| 2094 | + | TurretD.Anchored = false |
| 2095 | - | p21=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[3]) weld(p21,p20,p21,0,0,0.175,0,rd(180),0) qi{'SpecialMesh',p21,Scale=v3(0.5,0.5,0.25),MeshType="Wedge"}
|
| 2095 | + | TurretD.Locked = true |
| 2096 | - | p22=pa(Weapon,"","Block",0.2,0.2,0.2,false,false,0,0,c[4]) weld(p22,p20,p22,0,0,0.05,0,0,rd(90)) qi{'CylinderMesh',p22,Scale=v3(0.25,0.51,0.25)}
|
| 2096 | + | TurretD.BrickColor = BrickColor.new("Dark orange")
|
| 2097 | - | p23=pa(Weapon,"","Block",0.75,0.8,0.75,false,false,0,0,c[2]) weld(p23,p14,p23,0,0.1,0.3,0,0,0) qi{'SpecialMesh',p23} -- start of barrel
|
| 2097 | + | TurretD.Reflectance = 0.2 |
| 2098 | - | p24=pa(Weapon,"","Block",0.6,1.8,0.6,false,false,0,0,c[2]) weld(p24,p23,p24,0,-0.9,0,0,0,0) qi{'CylinderMesh',p24}
|
| 2098 | + | TurretD.formFactor = "Symmetric" |
| 2099 | - | p25=pa(Weapon,"","Block",0.4,0.2,0.4,false,false,0,0,c[6]) weld(p25,p24,p25,0,-0.9,0,0,0,0) qi{'CylinderMesh',p25,Scale=v3(1,0.1,1)}
|
| 2099 | + | TurretD.Size = Vector3.new(1, 1, 1) |
| 2100 | - | p26=pa(Weapon,"","Block",0.65,0.2,0.65,false,false,0,0,c[3]) weld(p26,p24,p26,0,-0.4,0,0,0,0) qi{'CylinderMesh',p26,Scale=v3(1,1,1)}
|
| 2100 | + | TurretD:BreakJoints() |
| 2101 | - | p26=pa(Weapon,"","Block",0.6,0.4,0.8,false,false,0,0,c[1]) weld(p26,p24,p26,0,0.17,-0.4,rd(90),0,0) |
| 2101 | + | Mesh = Instance.new("CylinderMesh")
|
| 2102 | - | p27=pa(Weapon,"","Block",0.6,0.4,0.4,false,false,0,0,c[1]) weld(p27,p26,p27,0,0,0.6,rd(180),0,0) qi{'SpecialMesh',p27,MeshType="Wedge"}
|
| 2102 | + | Mesh.Parent = TurretD |
| 2103 | - | for i,v in pairs(Weapon:GetChildren()) do v.CanCollide=false end |
| 2103 | + | Mesh.Scale = Vector3.new(1.1, 1, 1.1) |
| 2104 | Weld = Instance.new("Weld")
| |
| 2105 | - | WDesign({"Reddish brown","Really black","Dark stone grey","White","Medium stone grey","Really black"}) Arms(false) Legs(false)
|
| 2105 | + | Weld.Parent = GrassA |
| 2106 | - | BBD,BBT=0,{}
|
| 2106 | + | Weld.Part0 = TurretB |
| 2107 | - | Dealt={20,40}
|
| 2107 | + | Weld.Part1 = TurretD |
| 2108 | - | function Destroy(Directory,Part,Distance) |
| 2108 | + | Weld.C0 = CFrame.new(0, 0, -1.7) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) |
| 2109 | - | for i,v in pairs(Directory:GetChildren()) do |
| 2109 | + | TurretE = Instance.new("Part")
|
| 2110 | - | if v:IsA("BasePart") and not GetHum(v) and v.Parent.Name~=Tn and v.Parent.Name~=Suit.Name and v.Name~="Ignore" and v.Name~="Base" then
|
| 2110 | + | TurretE.Parent = Model |
| 2111 | - | if (Part.Position-v.Position).magnitude<=Distance and v:GetMass()<=1000 then |
| 2111 | + | TurretE.Name = "TurretE" |
| 2112 | - | v.Anchored=false |
| 2112 | + | TurretE.TopSurface = 0 |
| 2113 | - | v:BreakJoints() |
| 2113 | + | TurretE.BottomSurface = 0 |
| 2114 | - | v.CFrame=cn(v.Position,Part.Position)*ca(0,rd(180),0) |
| 2114 | + | TurretE.CanCollide = true |
| 2115 | - | v.Velocity=cn(Part.Position,v.Position).lookVector*50 |
| 2115 | + | TurretE.Anchored = false |
| 2116 | TurretE.Locked = true | |
| 2117 | - | elseif v:IsA("Model") or v:IsA("Script") or v:IsA("BasePart") and v.Name=="Base" then
|
| 2117 | + | TurretE.BrickColor = BrickColor.new("Really black")
|
| 2118 | - | Destroy(v,Part,Distance) |
| 2118 | + | TurretE.formFactor = "Symmetric" |
| 2119 | TurretE.Size = Vector3.new(1, 1, 1) | |
| 2120 | TurretE:BreakJoints() | |
| 2121 | Mesh = Instance.new("CylinderMesh")
| |
| 2122 | - | SplashDmg=function(Part,Distance) |
| 2122 | + | Mesh.Parent = TurretE |
| 2123 | - | q(function() |
| 2123 | + | Mesh.Scale = Vector3.new(1, 1, 1) |
| 2124 | - | qi{"Explosion",workspace,Position=Part.Position,BlastPressure=0}
|
| 2124 | + | Smoke = Instance.new("Smoke")
|
| 2125 | - | for i,v in pairs(workspace:GetChildren()) do |
| 2125 | + | Smoke.Parent = TurretE |
| 2126 | - | if v:FindFirstChild("Torso",true) then
|
| 2126 | + | Smoke.Enabled = false |
| 2127 | - | local vTorso=v:FindFirstChild("Torso",true)
|
| 2127 | + | Smoke.Size = 1 |
| 2128 | - | if (vTorso.Position-Part.Position).magnitude<=Distance then |
| 2128 | + | Smoke.Opacity = 1 |
| 2129 | - | local vHum=GetHum(vTorso) |
| 2129 | + | Smoke.RiseVelocity = -25 |
| 2130 | - | if not vHum or BBD==0 or BBT[vHum.Parent] then return end |
| 2130 | + | Weld = Instance.new("Weld")
|
| 2131 | - | BBT[vHum.Parent]=1 |
| 2131 | + | Weld.Parent = GrassA |
| 2132 | - | if rn(1,20)==1 then |
| 2132 | + | Weld.Part0 = TurretD |
| 2133 | - | Dmg(vHum,rn(Dealt[1],Dealt[2])*3,true) |
| 2133 | + | Weld.Part1 = TurretE |
| 2134 | Weld.C0 = CFrame.new(0, -0.01, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 2135 | - | Dmg(vHum,rn(Dealt[1],Dealt[2]),false) |
| 2135 | + | TurretF = Instance.new("Part")
|
| 2136 | TurretF.Parent = Model | |
| 2137 | - | if BBD==2 and vTorso then |
| 2137 | + | TurretF.Name = "TurretF" |
| 2138 | - | vHum.PlatformStand=true |
| 2138 | + | TurretF.TopSurface = 0 |
| 2139 | - | if vHum.Jump then |
| 2139 | + | TurretF.BottomSurface = 0 |
| 2140 | - | AddBV(120,cn(Part.Position,vTorso.Position),vTorso,0.4) |
| 2140 | + | TurretF.CanCollide = false |
| 2141 | TurretF.Anchored = false | |
| 2142 | - | AddBV(100,cn(Part.Position,vTorso.Position),vTorso,0.4) |
| 2142 | + | TurretF.Locked = true |
| 2143 | TurretF.BrickColor = BrickColor.new("Dark orange")
| |
| 2144 | - | if vTorso.Parent~=Char then |
| 2144 | + | TurretF.Reflectance = 0.2 |
| 2145 | - | AddBAV(v3(rn(-50,50),rn(-50,50),rn(-50,50)),vTorso,0.4) |
| 2145 | + | TurretF.formFactor = "Symmetric" |
| 2146 | TurretF.Size = Vector3.new(1, 1, 1) | |
| 2147 | - | q(function() |
| 2147 | + | TurretF:BreakJoints() |
| 2148 | - | wait(0.6) |
| 2148 | + | Mesh = Instance.new("CylinderMesh")
|
| 2149 | - | vHum.PlatformStand=false |
| 2149 | + | Mesh.Parent = TurretF |
| 2150 | Mesh.Scale = Vector3.new(0.2, 1, 0.2) | |
| 2151 | Weld = Instance.new("Weld")
| |
| 2152 | - | so(ids.Hit,vTorso,1,1) |
| 2152 | + | Weld.Parent = GrassA |
| 2153 | - | BBT[vHum.Parent]=nil |
| 2153 | + | Weld.Part0 = TurretD |
| 2154 | Weld.Part1 = TurretF | |
| 2155 | Weld.C0 = CFrame.new(0.4, 0, -0.4) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 2156 | TurretG = Instance.new("Part")
| |
| 2157 | TurretG.Parent = Model | |
| 2158 | TurretG.Name = "TurretG" | |
| 2159 | - | Fire = function(speed,sc,cff,dest) |
| 2159 | + | TurretG.TopSurface = 0 |
| 2160 | - | q(function() |
| 2160 | + | TurretG.BottomSurface = 0 |
| 2161 | - | local bb = pa(workspace,"bullet","Block",0.4*sc,0.6*sc,0.4*sc,false,true,0,0,"Bright red") bb.CanCollide=false qi{"CylinderMesh",bb}
|
| 2161 | + | TurretG.CanCollide = false |
| 2162 | - | local pp0 = pa(bb,"bullet","Block",0.2*sc,0.2*sc,0.2*sc,false,true,0,0,"Bright red") pp0.CanCollide=false qi{"SpecialMesh",pp0,MeshType="Sphere",Scale=v3(2,2,2)}
|
| 2162 | + | TurretG.Anchored = false |
| 2163 | - | local pp1 = pa(bb,"bullet","Block",0.2*sc,0.2*sc,0.2*sc,false,true,0,0,"Really black") pp1.CanCollide=false qi{"CylinderMesh",pp1,Scale=v3(2.02,0.25,2.02)}
|
| 2163 | + | TurretG.Locked = true |
| 2164 | - | local pp2 = pa(bb,"bullet","Block",0.2*sc,0.2*sc,0.2*sc,false,true,0,0,"Really black") pp2.CanCollide=false qi{"CylinderMesh",pp2,Scale=v3(2.02,2,2.02)}
|
| 2164 | + | TurretG.BrickColor = BrickColor.new("Bright green")
|
| 2165 | - | bb.CFrame = cn(cff.p,dest)*ca(rd(-90),0,0) |
| 2165 | + | TurretG.Transparency = 0.5 |
| 2166 | - | local m=pa(Weapon,"muzzle","Block",1,1,1,false,false,0,0,"Bright orange") qi{"SpecialMesh",m,MeshId=ids.Crown,Scale=v3(0.5,0.5,0.5)} weld(m,p25,m,0,-0.6,0.05,rd(180),0,0) fade(m,0.2)
|
| 2166 | + | TurretG.formFactor = "Symmetric" |
| 2167 | - | local m=pa(Weapon,"muzzle","Block",1,1,1,false,false,0,0,"Bright orange") qi{"SpecialMesh",m,MeshId=ids.Crown2,Scale=v3(0.4,0.7,0.4)} weld(m,p25,m,0,-0.8,0,rd(180),0,0) fade(m,0.2)
|
| 2167 | + | TurretG.Size = Vector3.new(1, 1, 1) |
| 2168 | - | for i=1,100 do |
| 2168 | + | TurretG:BreakJoints() |
| 2169 | - | bhit,bpos=ray(bb.Position,bb.Position - (bb.CFrame *cn(0,-2,0)).p) |
| 2169 | + | Mesh = Instance.new("CylinderMesh")
|
| 2170 | - | bhit2,bpos2=ray(pp0.Position,pp0.Position - (pp0.CFrame *cn(0,-2,0)).p) |
| 2170 | + | Mesh.Parent = TurretG |
| 2171 | - | bhit3,bpos3=ray(pp1.Position,bb.Position - (pp1.CFrame *cn(0,-2,0)).p) |
| 2171 | + | Mesh.Scale = Vector3.new(0.18, 0.05, 0.18) |
| 2172 | - | bhit4,bpos4=ray(pp2.Position,pp0.Position - (pp2.CFrame *cn(0,-2,0)).p) |
| 2172 | + | Weld = Instance.new("Weld")
|
| 2173 | - | if bhit and bhit.Name ~= "bullet" and bhit.Name ~= "bullethole" and bhit.Name~="muzzle" and bpos and (bpos - bb.Position).magnitude < speed then break end |
| 2173 | + | Weld.Parent = GrassA |
| 2174 | - | if bhit2 and bhit2.Name ~= "bullet" and bhit2.Name ~= "bullethole" and bhit2.Name~="muzzle" and bpos2 and (bpos2 - bb.Position).magnitude < speed then break end |
| 2174 | + | Weld.Part0 = TurretF |
| 2175 | - | if bhit3 and bhit3.Name ~= "bullet" and bhit3.Name ~= "bullethole" and bhit3.Name~="muzzle" and bpos3 and (bpos3 - bb.Position).magnitude < speed then break end |
| 2175 | + | Weld.Part1 = TurretG |
| 2176 | - | if bhit4 and bhit4.Name ~= "bullet" and bhit4.Name ~= "bullethole" and bhit4.Name~="muzzle" and bpos4 and (bpos4 - bb.Position).magnitude < speed then break end |
| 2176 | + | Weld.C0 = CFrame.new(0, -0.525, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) |
| 2177 | - | bb.CFrame=bb.CFrame*cn(0,speed,0)*ca(rd(-0.3),0,0) |
| 2177 | + | |
| 2178 | - | pp0.CFrame=bb.CFrame*cn(0,0.3,0) |
| 2178 | + | |
| 2179 | - | pp1.CFrame=bb.CFrame*cn(0,-0.3,0) |
| 2179 | + | |
| 2180 | - | pp2.CFrame=bb.CFrame*cn(0,0.1,0) |
| 2180 | + | BP = Instance.new("BodyPosition")
|
| 2181 | BP.Parent = FloorA | |
| 2182 | BP.maxForce = Vector3.new(math.huge + math.huge, math.huge + math.huge, math.huge + math.huge) | |
| 2183 | - | GlowMesh(false,"sphere",Weapon,v3(3,3,3),"Bright red",cn(bpos),0.25,1,0.05) |
| 2183 | + | BP.position = Altitude |
| 2184 | - | BBD=2 |
| 2184 | + | BG = Instance.new("BodyGyro")
|
| 2185 | - | sopart=pa(workspace,"bullet","Block",0,0,0,true,true,1,0) |
| 2185 | + | BG.Parent = FloorA |
| 2186 | - | bb.CFrame=bb.CFrame*cn(0,(bpos-bb.Position).magnitude,0) |
| 2186 | + | BG.maxTorque = Vector3.new(math.huge + math.huge, math.huge + math.huge, math.huge + math.huge) |
| 2187 | - | pp0.CFrame=bb.CFrame*cn(0,0.3,0) |
| 2187 | + | |
| 2188 | - | pp1.CFrame=bb.CFrame*cn(0,-0.3,0) |
| 2188 | + | function Touch(Hit) |
| 2189 | - | pp2.CFrame=bb.CFrame*cn(0,0.1,0) |
| 2189 | + | if (Controls == true) then |
| 2190 | - | sopart.CFrame=bb.CFrame |
| 2190 | + | if (Controller == nil) then |
| 2191 | - | so(ids.Explode,sopart,1,0.4) |
| 2191 | + | if (Hit ~= nil) then |
| 2192 | - | SplashDmg(bb,11) |
| 2192 | + | if (Hit.Parent ~= nil) then |
| 2193 | - | Destroy(workspace,bb,13) |
| 2193 | + | if (game.Players:GetPlayerFromCharacter(Hit.Parent) ~= nil) then |
| 2194 | - | BBD=0 |
| 2194 | + | Player = game.Players:GetPlayerFromCharacter(Hit.Parent) |
| 2195 | - | deb:AddItem(bb,1) |
| 2195 | + | if (Player:findFirstChild("PlayerGui") == nil) then
|
| 2196 | - | deb:AddItem(sopart,1) |
| 2196 | + | Instance.new("PlayerGui").Parent = Player
|
| 2197 | - | end) |
| 2197 | + | |
| 2198 | if (Player.Character:findFirstChild("Humanoid") ~= nil) then
| |
| 2199 | - | function Stance(speed) |
| 2199 | + | if (Player.Character:findFirstChild("Torso") ~= nil) then
|
| 2200 | - | c2(ra,speed,3,1.25,0.5,-0.25,-75,-65,0) |
| 2200 | + | if (Player.Character.Humanoid.Health > 0) then |
| 2201 | - | c2(la,speed,3,-1.25,0.5,-0.25,-70,-20,0) |
| 2201 | + | Controller = Player |
| 2202 | - | c2(ll,speed,3,-0.5,-1,0,0,0,0) |
| 2202 | + | Button = nil |
| 2203 | - | c2(rl,speed,3,0.5,-1,0,0,0,0) |
| 2203 | + | X = 0 |
| 2204 | - | c2(hw,speed,3,0,1.5,0,0,-65,0) |
| 2204 | + | Y = 0 |
| 2205 | - | c2(tw,speed,3,0,0,0,0,65,0) |
| 2205 | + | LightB.BrickColor = BrickColor.new("Bright yellow")
|
| 2206 | - | c2(neck,speed,3,0,1.5,0,0,0,0) |
| 2206 | + | LightD.BrickColor = BrickColor.new("Bright yellow")
|
| 2207 | - | c2(hingew,speed,3,0,0,0,0,0,0) |
| 2207 | + | Player.Character.Humanoid.PlatformStand = true |
| 2208 | - | c2(piperw,speed,3,0,0.7,0,0,30+PipeRotate,0) |
| 2208 | + | Weld = Instance.new("Weld")
|
| 2209 | - | Ani(haw,0,0.5,0,-75,0,0,0,speed/2,1) |
| 2209 | + | Weld.Part0 = ControlPanelB |
| 2210 | Weld.Part1 = Player.Character.Torso | |
| 2211 | - | function Reset(speed) |
| 2211 | + | HitPos = ControlPanelB.Position |
| 2212 | - | c2(ra,speed,3,1.5,0.5,0,0,0,0) |
| 2212 | + | CJ = CFrame.new(HitPos) |
| 2213 | - | c2(la,speed,3,-1.5,0.5,0,0,0,0) |
| 2213 | + | C0 = ControlPanelB.CFrame:inverse() *CJ |
| 2214 | - | c2(ll,speed,3,-0.5,-1,0,0,0,0) |
| 2214 | + | C1 = Player.Character.Torso.CFrame:inverse() * CJ |
| 2215 | - | c2(rl,speed,3,0.5,-1,0,0,0,0) |
| 2215 | + | Weld.C0 = C0 |
| 2216 | - | c2(hw,speed,3,0,1.5,0,0,0,0) |
| 2216 | + | Weld.C1 = C1 |
| 2217 | - | c2(tw,speed,3,0,0,0,0,0,0) |
| 2217 | + | Weld.Parent = ControlPanelB |
| 2218 | - | c2(neck,speed,3,0,1.5,0,0,0,0) |
| 2218 | + | G = Instance.new("GuiMain")
|
| 2219 | - | c2(piperw,speed,3,0,0.7,0,0,30+PipeRotate,0) |
| 2219 | + | G.Parent = Player.PlayerGui |
| 2220 | - | c2(hingew,speed,3,0,0,0,0,0,0) |
| 2220 | + | G.Name = "MahGoey" |
| 2221 | - | Ani(haw,0.5,2.5,1,270,0,90,0,speed,1) |
| 2221 | + | F = Instance.new("Frame")
|
| 2222 | F.Parent = G | |
| 2223 | - | function Button1Down() |
| 2223 | + | F.Size = UDim2.new(0, 160, 0, 160) |
| 2224 | - | if Clip>0 and anim=="" and (tick()-LastShot)>=0.6 then |
| 2224 | + | F.Position = UDim2.new(0, 100, 0, 150) |
| 2225 | - | LastShot=tick() |
| 2225 | + | F.BorderSizePixel = 0 |
| 2226 | - | so(ids.Shoot,ha,1,1) |
| 2226 | + | F.BackgroundColor3 = Color3.new(0, 0, 0) |
| 2227 | - | Fire(3,1,p25.CFrame*cn(0,-1,0),fmouse.Hit.p) |
| 2227 | + | F.BackgroundTransparency = 0.3 |
| 2228 | - | Clip=Clip-1 |
| 2228 | + | Close = Instance.new("TextButton")
|
| 2229 | - | PipeRotate=PipeRotate+60 |
| 2229 | + | Close.Parent = F |
| 2230 | - | c2(piperw,0.4,3,0,0.7,0,0,30+PipeRotate,0) |
| 2230 | + | Close.Name = "Close" |
| 2231 | - | elseif Clip==0 and anim=="" and (tick()-LastShot)>=0.6 then |
| 2231 | + | Close.Text = "X" |
| 2232 | - | anim="Reloading" |
| 2232 | + | Close.Size = UDim2.new(0, 20, 0, 20) |
| 2233 | - | c2(ra,0.1,3,1.25,0.5,-0.25,-75,-65,0) |
| 2233 | + | Close.Position = UDim2.new(0, 0, 0, 160) |
| 2234 | - | c2(la,0.1,3,-1.25,0.5,-0.25,-70,-20,0) |
| 2234 | + | Close.BorderSizePixel = 0 |
| 2235 | - | c2(hw,0.1,3,0,1.5,0,0,-65,0) |
| 2235 | + | Close.BackgroundColor3 = Color3.new(0, 0, 0) |
| 2236 | - | c1(hingew,0.15,3,0,0,0,0,-90,0) |
| 2236 | + | Close.TextColor3 = Color3.new(1, 1, 1) |
| 2237 | - | for i=1,6 do |
| 2237 | + | Close.BackgroundTransparency = 0.3 |
| 2238 | - | PipeRotate=PipeRotate+60 |
| 2238 | + | Close.MouseButton1Click:connect(function() |
| 2239 | - | c1(la,0.13,3,-1.25,0.25,0.1,15,0,-15) |
| 2239 | + | Weld:remove() |
| 2240 | - | local pipe=pa(Weapon,"","Block",0.4,0.7,0.4,false,false,0,0,"Bright red") weld(pipe,LA,pipe,0,-1.1,0,rd(-90),0,0) qi{"CylinderMesh",pipe}
|
| 2240 | + | |
| 2241 | - | local pp=pa(pipe,"","Block",0.4,0.4,0.4,false,false,0,0,"Bright red") weld(pp,pipe,pp,0,-0.35,0,0,0,0) qi{"SpecialMesh",pp,MeshType="Sphere"}
|
| 2241 | + | T = Instance.new("TextButton")
|
| 2242 | - | local pp=pa(pipe,"","Block",0.41,0.2,0.41,false,false,0,0,"Really black") weld(pp,pipe,pp,0,0.35,0,0,0,0) qi{"CylinderMesh",pp,Scale=v3(1,0.25,1)}
|
| 2242 | + | T.Parent = F |
| 2243 | - | local pp=pa(pipe,"","Block",0.41,0.5,0.41,false,false,0,0,"Really black") weld(pp,pipe,pp,0,0,0,0,0,0) qi{"CylinderMesh",pp}
|
| 2243 | + | T.Name = "Label" |
| 2244 | - | c1(la,0.16,3,-1.25,0.4,-0.1,-100,0,-15) |
| 2244 | + | T.Text = "Controls" |
| 2245 | - | c1(la,0.2,3,-1.25,0.3,-0.25,-40,0,-15) |
| 2245 | + | T.AutoButtonColor = false |
| 2246 | - | so(ids.Reload,ha,1,1) |
| 2246 | + | T.Size = UDim2.new(0, 140, 0, 20) |
| 2247 | - | c1(piperw,0.4,3,0,0.7,0,0,30+PipeRotate,0) |
| 2247 | + | T.Position = UDim2.new(0, 20, 0, 160) |
| 2248 | - | Clip=i |
| 2248 | + | T.BorderSizePixel = 0 |
| 2249 | - | deb:AddItem(pipe,0.05) |
| 2249 | + | T.BackgroundColor3 = Color3.new(0, 0, 0) |
| 2250 | T.TextColor3 = Color3.new(1, 1, 1) | |
| 2251 | - | Stance(0.15) |
| 2251 | + | T.BackgroundTransparency = 0.3 |
| 2252 | - | anim="" |
| 2252 | + | T.MouseButton1Down:connect(function(IntX, IntY) |
| 2253 | Button = T | |
| 2254 | X = IntX | |
| 2255 | - | function KeyDown(key) |
| 2255 | + | Y = IntY |
| 2256 | - | key=key:lower() |
| 2256 | + | Yc = IntY - (160 + F.Position.Y.Offset) |
| 2257 | - | keys[key]=true |
| 2257 | + | Xc = IntX - (160 + F.Position.X.Offset) |
| 2258 | - | if key=="r" and anim=="" and equip=="equipped" and Clip==0 then |
| 2258 | + | while true do |
| 2259 | - | anim="Reloading" |
| 2259 | + | if (Button ~= T) then |
| 2260 | - | c2(ra,0.1,3,1.25,0.5,-0.25,-75,-65,0) |
| 2260 | + | break |
| 2261 | - | c2(la,0.1,3,-1.25,0.5,-0.25,-70,-20,0) |
| 2261 | + | |
| 2262 | - | c2(hw,0.1,3,0,1.5,0,0,-65,0) |
| 2262 | + | F.Position = UDim2.new(0, (X - 160) - Xc, 0, (Y - 160) - Yc) |
| 2263 | - | c1(hingew,0.15,3,0,0,0,0,-90,0) |
| 2263 | + | wait(0.0) |
| 2264 | - | for i=1,6 do |
| 2264 | + | |
| 2265 | - | PipeRotate=PipeRotate+60 |
| 2265 | + | |
| 2266 | - | c1(la,0.13,3,-1.25,0.25,0.1,15,0,-15) |
| 2266 | + | T.MouseButton1Up:connect(function() |
| 2267 | - | local pipe=pa(Weapon,"","Block",0.4,0.7,0.4,false,false,0,0,"Bright red") weld(pipe,LA,pipe,0,-1.1,0,rd(-90),0,0) qi{"CylinderMesh",pipe}
|
| 2267 | + | Button = nil |
| 2268 | - | local pp=pa(pipe,"","Block",0.4,0.4,0.4,false,false,0,0,"Bright red") weld(pp,pipe,pp,0,-0.35,0,0,0,0) qi{"SpecialMesh",pp,MeshType="Sphere"}
|
| 2268 | + | |
| 2269 | - | local pp=pa(pipe,"","Block",0.41,0.2,0.41,false,false,0,0,"Really black") weld(pp,pipe,pp,0,0.35,0,0,0,0) qi{"CylinderMesh",pp,Scale=v3(1,0.25,1)}
|
| 2269 | + | T.MouseLeave:connect(function() |
| 2270 | - | local pp=pa(pipe,"","Block",0.41,0.5,0.41,false,false,0,0,"Really black") weld(pp,pipe,pp,0,0,0,0,0,0) qi{"CylinderMesh",pp}
|
| 2270 | + | Button = nil |
| 2271 | - | c1(la,0.16,3,-1.25,0.4,-0.1,-100,0,-15) |
| 2271 | + | |
| 2272 | - | c1(la,0.2,3,-1.25,0.3,-0.25,-40,0,-15) |
| 2272 | + | T.MouseMoved:connect(function(IntX, IntY) |
| 2273 | - | so(ids.Reload,ha,1,1) |
| 2273 | + | X = IntX |
| 2274 | - | c1(piperw,0.4,3,0,0.7,0,0,30+PipeRotate,0) |
| 2274 | + | Y = IntY |
| 2275 | - | Clip=i |
| 2275 | + | |
| 2276 | - | deb:AddItem(pipe,0.05) |
| 2276 | + | Minus = Instance.new("TextButton")
|
| 2277 | Minus.Parent = F | |
| 2278 | - | Stance(0.15) |
| 2278 | + | Minus.Name = "Minus" |
| 2279 | - | anim="" |
| 2279 | + | Minus.Text = "-" |
| 2280 | Minus.Size = UDim2.new(0, 40, 0, 40) | |
| 2281 | Minus.Position = UDim2.new(0, 10, 0, 10) | |
| 2282 | - | Tool.Selected:connect(function(mouse) |
| 2282 | + | Minus.BorderSizePixel = 0 |
| 2283 | - | fmouse=mouse |
| 2283 | + | Minus.BackgroundColor3 = Color3.new(0, 0, 0) |
| 2284 | - | if equip=="unequipped" and anim=="" then |
| 2284 | + | Minus.TextColor3 = Color3.new(1, 1, 1) |
| 2285 | - | equip="equipping" Arms(true) c2(la,0.1,3,-1.5,0.5,0,0,0,20) c1(ra,0.1,3,1.5,0.5,0,120,0,-70) |
| 2285 | + | Minus.MouseButton1Down:connect(function() |
| 2286 | - | local ofs = RA.CFrame:toObjectSpace(ha.CFrame) |
| 2286 | + | Button = Minus |
| 2287 | - | haw.Part0=RA haw.C0=ofs haw.C1=cn(0,0,0) rAni(haw) |
| 2287 | + | LightB.BrickColor = BrickColor.new("Bright red")
|
| 2288 | - | Stance(0.2) equip="equipped" |
| 2288 | + | LightD.BrickColor = BrickColor.new("Bright red")
|
| 2289 | FurnaceK.Smoke.Enabled = true | |
| 2290 | - | mouse.Button1Down:connect(Button1Down) |
| 2290 | + | while true do |
| 2291 | - | mouse.KeyDown:connect(KeyDown) |
| 2291 | + | if (Button ~= Minus) then |
| 2292 | break | |
| 2293 | - | Tool.Deselected:connect(function() |
| 2293 | + | |
| 2294 | - | fmouse=nil |
| 2294 | + | FloorA.BodyPosition.position = Vector3.new(FloorA.BodyPosition.position.x, FloorA.BodyPosition.position.y - 1, FloorA.BodyPosition.position.z) |
| 2295 | - | if equip=="equipped" and anim=="" then |
| 2295 | + | wait(0.0) |
| 2296 | - | equip="unequipping" c2(la,0.1,3,-1.5,0.5,0,0,0,0) c1(ra,0.1,3,1.5,0.5,0,120,0,-70) |
| 2296 | + | |
| 2297 | - | local ofs = Torso.CFrame:toObjectSpace(ha.CFrame) |
| 2297 | + | FurnaceK.Smoke.Enabled = false |
| 2298 | - | haw.Part0=Torso haw.C0=ofs haw.C1=cn(0,0,0) rAni(haw) |
| 2298 | + | LightB.BrickColor = BrickColor.new("Bright yellow")
|
| 2299 | - | Reset(0.1) |
| 2299 | + | LightD.BrickColor = BrickColor.new("Bright yellow")
|
| 2300 | - | Arms(false) Legs(false) equip="unequipped" |
| 2300 | + | |
| 2301 | Minus.MouseButton1Up:connect(function() | |
| 2302 | Button = nil | |
| 2303 | - | Gyro=qi{"BodyGyro",Torso,D=50,P=1500}
|
| 2303 | + | |
| 2304 | - | game:GetService("RunService").Stepped:connect(function()
|
| 2304 | + | Minus.MouseLeave:connect(function() |
| 2305 | - | if fmouse~=nil then |
| 2305 | + | Button = nil |
| 2306 | - | Gyro.maxTorque=v3(1/0,1/0,1/0) |
| 2306 | + | |
| 2307 | - | Gyro.cframe = cn(Torso.Position,v3(fmouse.hit.p.x,Torso.Position.y,fmouse.hit.p.z)) |
| 2307 | + | Up = Instance.new("ImageButton")
|
| 2308 | Up.Parent = F | |
| 2309 | - | Gyro.maxTorque = v3(0,0,0) |
| 2309 | + | Up.Name = "Up" |
| 2310 | Up.Image = "http://www.roblox.com/asset/?id=30390203" | |
| 2311 | - | if equip=="equipped" and anim=="" and fmouse~=nil then |
| 2311 | + | Up.Size = UDim2.new(0, 40, 0, 40) |
| 2312 | - | c2(ra,1,3,1.25,0.5,-0.25,-75+math.deg((Torso.Position-fmouse.Hit.p).unit.y),-65,0) |
| 2312 | + | Up.Position = UDim2.new(0, 60, 0, 10) |
| 2313 | - | c2(la,1,3,-1.25,0.5,-0.25,-70+math.deg((Torso.Position-fmouse.Hit.p).unit.y),-20,0) |
| 2313 | + | Up.BorderSizePixel = 0 |
| 2314 | - | c2(hw,1,3,0,1.5,0,math.deg((Torso.Position-fmouse.Hit.p).unit.y),-65,0) |
| 2314 | + | Up.BackgroundColor3 = Color3.new(0, 0, 0) |
| 2315 | Up.MouseButton1Down:connect(function() | |
| 2316 | - | end) |
| 2316 | + | Button = Up |
| 2317 | LightB.BrickColor = BrickColor.new("Bright red")
| |
| 2318 | LightD.BrickColor = BrickColor.new("Bright red")
| |
| 2319 | FurnaceK.Smoke.Enabled = true | |
| 2320 | while true do | |
| 2321 | if (Button ~= Up) then | |
| 2322 | break | |
| 2323 | end | |
| 2324 | FloorA.BodyPosition.position = Vector3.new(FloorA.BodyPosition.position.x + 1, FloorA.BodyPosition.position.y, FloorA.BodyPosition.position.z) | |
| 2325 | wait(0.0) | |
| 2326 | end | |
| 2327 | FurnaceK.Smoke.Enabled = false | |
| 2328 | LightB.BrickColor = BrickColor.new("Bright yellow")
| |
| 2329 | LightD.BrickColor = BrickColor.new("Bright yellow")
| |
| 2330 | end) | |
| 2331 | Up.MouseButton1Up:connect(function() | |
| 2332 | Button = nil | |
| 2333 | end) | |
| 2334 | Up.MouseLeave:connect(function() | |
| 2335 | Button = nil | |
| 2336 | end) | |
| 2337 | Plus = Instance.new("TextButton")
| |
| 2338 | Plus.Parent = F | |
| 2339 | Plus.Name = "Plus" | |
| 2340 | Plus.Text = "+" | |
| 2341 | Plus.Size = UDim2.new(0, 40, 0, 40) | |
| 2342 | Plus.Position = UDim2.new(0, 110, 0, 10) | |
| 2343 | Plus.BorderSizePixel = 0 | |
| 2344 | Plus.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2345 | Plus.TextColor3 = Color3.new(1, 1, 1) | |
| 2346 | Plus.MouseButton1Down:connect(function() | |
| 2347 | Button = Plus | |
| 2348 | LightB.BrickColor = BrickColor.new("Bright red")
| |
| 2349 | LightD.BrickColor = BrickColor.new("Bright red")
| |
| 2350 | FurnaceK.Smoke.Enabled = true | |
| 2351 | while true do | |
| 2352 | if (Button ~= Plus) then | |
| 2353 | break | |
| 2354 | end | |
| 2355 | FloorA.BodyPosition.position = Vector3.new(FloorA.BodyPosition.position.x, FloorA.BodyPosition.position.y + 1, FloorA.BodyPosition.position.z) | |
| 2356 | wait(0.0) | |
| 2357 | end | |
| 2358 | FurnaceK.Smoke.Enabled = false | |
| 2359 | LightB.BrickColor = BrickColor.new("Bright yellow")
| |
| 2360 | LightD.BrickColor = BrickColor.new("Bright yellow")
| |
| 2361 | end) | |
| 2362 | Plus.MouseButton1Up:connect(function() | |
| 2363 | Button = nil | |
| 2364 | end) | |
| 2365 | Plus.MouseLeave:connect(function() | |
| 2366 | Button = nil | |
| 2367 | end) | |
| 2368 | Left = Instance.new("ImageButton")
| |
| 2369 | Left.Parent = F | |
| 2370 | Left.Name = "Left" | |
| 2371 | Left.Image = "http://www.roblox.com/asset/?id=30390075" | |
| 2372 | Left.Size = UDim2.new(0, 40, 0, 40) | |
| 2373 | Left.Position = UDim2.new(0, 10, 0, 60) | |
| 2374 | Left.BorderSizePixel = 0 | |
| 2375 | Left.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2376 | Left.MouseButton1Down:connect(function() | |
| 2377 | Button = Left | |
| 2378 | LightB.BrickColor = BrickColor.new("Bright red")
| |
| 2379 | LightD.BrickColor = BrickColor.new("Bright red")
| |
| 2380 | FurnaceK.Smoke.Enabled = true | |
| 2381 | while true do | |
| 2382 | if (Button ~= Left) then | |
| 2383 | break | |
| 2384 | end | |
| 2385 | FloorA.BodyPosition.position = Vector3.new(FloorA.BodyPosition.position.x, FloorA.BodyPosition.position.y, FloorA.BodyPosition.position.z - 1) | |
| 2386 | wait(0.0) | |
| 2387 | end | |
| 2388 | FurnaceK.Smoke.Enabled = false | |
| 2389 | LightB.BrickColor = BrickColor.new("Bright yellow")
| |
| 2390 | LightD.BrickColor = BrickColor.new("Bright yellow")
| |
| 2391 | end) | |
| 2392 | Left.MouseButton1Up:connect(function() | |
| 2393 | Button = nil | |
| 2394 | end) | |
| 2395 | Left.MouseLeave:connect(function() | |
| 2396 | Button = nil | |
| 2397 | end) | |
| 2398 | Right = Instance.new("ImageButton")
| |
| 2399 | Right.Parent = F | |
| 2400 | Right.Name = "Right" | |
| 2401 | Right.Image = "http://www.roblox.com/asset/?id=30390056" | |
| 2402 | Right.Size = UDim2.new(0, 40, 0, 40) | |
| 2403 | Right.Position = UDim2.new(0, 110, 0, 60) | |
| 2404 | Right.BorderSizePixel = 0 | |
| 2405 | Right.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2406 | Right.MouseButton1Down:connect(function() | |
| 2407 | Button = Right | |
| 2408 | LightB.BrickColor = BrickColor.new("Bright red")
| |
| 2409 | LightD.BrickColor = BrickColor.new("Bright red")
| |
| 2410 | FurnaceK.Smoke.Enabled = true | |
| 2411 | while true do | |
| 2412 | if (Button ~= Right) then | |
| 2413 | break | |
| 2414 | end | |
| 2415 | FloorA.BodyPosition.position = Vector3.new(FloorA.BodyPosition.position.x, FloorA.BodyPosition.position.y, FloorA.BodyPosition.position.z + 1) | |
| 2416 | wait(0.0) | |
| 2417 | end | |
| 2418 | FurnaceK.Smoke.Enabled = false | |
| 2419 | LightB.BrickColor = BrickColor.new("Bright yellow")
| |
| 2420 | LightD.BrickColor = BrickColor.new("Bright yellow")
| |
| 2421 | end) | |
| 2422 | Right.MouseButton1Up:connect(function() | |
| 2423 | Button = nil | |
| 2424 | end) | |
| 2425 | Right.MouseLeave:connect(function() | |
| 2426 | Button = nil | |
| 2427 | end) | |
| 2428 | Down = Instance.new("ImageButton")
| |
| 2429 | Down.Parent = F | |
| 2430 | Down.Name = "Down" | |
| 2431 | Down.Image = "http://www.roblox.com/asset/?id=30390064" | |
| 2432 | Down.Size = UDim2.new(0, 40, 0, 40) | |
| 2433 | Down.Position = UDim2.new(0, 60, 0, 110) | |
| 2434 | Down.BorderSizePixel = 0 | |
| 2435 | Down.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2436 | Down.MouseButton1Down:connect(function() | |
| 2437 | Button = Down | |
| 2438 | LightB.BrickColor = BrickColor.new("Bright red")
| |
| 2439 | LightD.BrickColor = BrickColor.new("Bright red")
| |
| 2440 | FurnaceK.Smoke.Enabled = true | |
| 2441 | while true do | |
| 2442 | if (Button ~= Down) then | |
| 2443 | break | |
| 2444 | end | |
| 2445 | FloorA.BodyPosition.position = Vector3.new(FloorA.BodyPosition.position.x - 1, FloorA.BodyPosition.position.y, FloorA.BodyPosition.position.z) | |
| 2446 | wait(0.0) | |
| 2447 | end | |
| 2448 | FurnaceK.Smoke.Enabled = false | |
| 2449 | LightB.BrickColor = BrickColor.new("Bright yellow")
| |
| 2450 | LightD.BrickColor = BrickColor.new("Bright yellow")
| |
| 2451 | end) | |
| 2452 | Down.MouseButton1Up:connect(function() | |
| 2453 | Button = nil | |
| 2454 | end) | |
| 2455 | Down.MouseLeave:connect(function() | |
| 2456 | Button = nil | |
| 2457 | end) | |
| 2458 | while true do | |
| 2459 | if (Player == nil) then | |
| 2460 | break | |
| 2461 | end | |
| 2462 | if (Player.Parent == nil) then | |
| 2463 | break | |
| 2464 | end | |
| 2465 | if (Player.Character == nil) then | |
| 2466 | break | |
| 2467 | end | |
| 2468 | if (Player.Character.Parent == nil) then | |
| 2469 | break | |
| 2470 | end | |
| 2471 | if (Player.Character:findFirstChild("Humanoid") == nil) then
| |
| 2472 | break | |
| 2473 | end | |
| 2474 | if (Player.Character:findFirstChild("Torso") == nil) then
| |
| 2475 | break | |
| 2476 | end | |
| 2477 | if (Player.Character.Humanoid.Health < 0.01) then | |
| 2478 | break | |
| 2479 | end | |
| 2480 | if (Weld == nil) then | |
| 2481 | break | |
| 2482 | end | |
| 2483 | if (Weld.Parent == nil) then | |
| 2484 | break | |
| 2485 | end | |
| 2486 | if (Controls == false) then | |
| 2487 | break | |
| 2488 | end | |
| 2489 | Player.Character.Humanoid.PlatformStand = true | |
| 2490 | wait() | |
| 2491 | end | |
| 2492 | if (Player ~= nil) then | |
| 2493 | if (Player.Parent ~= nil) then | |
| 2494 | if (Player.Character ~= nil) then | |
| 2495 | if (Player.Character.Parent ~= nil) then | |
| 2496 | if (Player.Character:findFirstChild("Humanoid") ~= nil) then
| |
| 2497 | Player.Character.Humanoid.PlatformStand = false | |
| 2498 | end | |
| 2499 | end | |
| 2500 | end | |
| 2501 | end | |
| 2502 | end | |
| 2503 | if (Weld ~= nil) then | |
| 2504 | Weld:remove() | |
| 2505 | end | |
| 2506 | Button = nil | |
| 2507 | G:remove() | |
| 2508 | LightB.BrickColor = BrickColor.new("Bright green")
| |
| 2509 | LightD.BrickColor = BrickColor.new("Bright green")
| |
| 2510 | wait(2) | |
| 2511 | Controller = nil | |
| 2512 | ||
| 2513 | end | |
| 2514 | end | |
| 2515 | end | |
| 2516 | end | |
| 2517 | end | |
| 2518 | end | |
| 2519 | end | |
| 2520 | end | |
| 2521 | end | |
| 2522 | ControlPanelB.Touched:connect(Touch) | |
| 2523 | ControlPanelC.Touched:connect(Touch) | |
| 2524 | function TurretControl(Hit) | |
| 2525 | if (Turret == true) then | |
| 2526 | if (Turreter == nil) then | |
| 2527 | if (Hit ~= nil) then | |
| 2528 | if (Hit.Parent ~= nil) then | |
| 2529 | if (game.Players:GetPlayerFromCharacter(Hit.Parent) ~= nil) then | |
| 2530 | PlayerB = game.Players:GetPlayerFromCharacter(Hit.Parent) | |
| 2531 | if (PlayerB:findFirstChild("PlayerGui") == nil) then
| |
| 2532 | Instance.new("PlayerGui").Parent = PlayerB
| |
| 2533 | end | |
| 2534 | if (PlayerB.Character:findFirstChild("Humanoid") ~= nil) then
| |
| 2535 | if (PlayerB.Character:findFirstChild("Torso") ~= nil) then
| |
| 2536 | if (PlayerB.Character.Humanoid.Health > 0) then | |
| 2537 | Turreter = PlayerB | |
| 2538 | ButtonB = nil | |
| 2539 | CloseBool = false | |
| 2540 | XB = 0 | |
| 2541 | YB = 0 | |
| 2542 | TurretG.BrickColor = BrickColor.new("Bright yellow")
| |
| 2543 | GB = Instance.new("GuiMain")
| |
| 2544 | GB.Parent = PlayerB.PlayerGui | |
| 2545 | GB.Name = "MahGoey" | |
| 2546 | Fram = Instance.new("Frame")
| |
| 2547 | Fram.Parent = GB | |
| 2548 | Fram.Size = UDim2.new(0, 160, 0, 160) | |
| 2549 | Fram.Position = UDim2.new(0, 100, 0, 150) | |
| 2550 | Fram.BorderSizePixel = 0 | |
| 2551 | Fram.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2552 | Fram.BackgroundTransparency = 0.3 | |
| 2553 | CloseB = Instance.new("TextButton")
| |
| 2554 | CloseB.Parent = Fram | |
| 2555 | CloseB.Name = "Close" | |
| 2556 | CloseB.Text = "X" | |
| 2557 | CloseB.Size = UDim2.new(0, 20, 0, 20) | |
| 2558 | CloseB.Position = UDim2.new(0, 0, 0, 160) | |
| 2559 | CloseB.BorderSizePixel = 0 | |
| 2560 | CloseB.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2561 | CloseB.TextColor3 = Color3.new(1, 1, 1) | |
| 2562 | CloseB.BackgroundTransparency = 0.3 | |
| 2563 | CloseB.MouseButton1Click:connect(function() | |
| 2564 | CloseBool = true | |
| 2565 | end) | |
| 2566 | TitleTurret = Instance.new("TextButton")
| |
| 2567 | TitleTurret.Parent = Fram | |
| 2568 | TitleTurret.Name = "Label" | |
| 2569 | TitleTurret.Text = "Turret" | |
| 2570 | TitleTurret.AutoButtonColor = false | |
| 2571 | TitleTurret.Size = UDim2.new(0, 140, 0, 20) | |
| 2572 | TitleTurret.Position = UDim2.new(0, 20, 0, 160) | |
| 2573 | TitleTurret.BorderSizePixel = 0 | |
| 2574 | TitleTurret.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2575 | TitleTurret.TextColor3 = Color3.new(1, 1, 1) | |
| 2576 | TitleTurret.BackgroundTransparency = 0.3 | |
| 2577 | TitleTurret.MouseButton1Down:connect(function(IntXB, IntYB) | |
| 2578 | ButtonB = TitleTurret | |
| 2579 | XB = IntXB | |
| 2580 | YB = IntYB | |
| 2581 | YcB = IntYB - (160 + Fram.Position.Y.Offset) | |
| 2582 | XcB = IntXB - (160 + Fram.Position.X.Offset) | |
| 2583 | while true do | |
| 2584 | if (ButtonB ~= TitleTurret) then | |
| 2585 | break | |
| 2586 | end | |
| 2587 | Fram.Position = UDim2.new(0, (XB - 160) - XcB, 0, (YB - 160) - YcB) | |
| 2588 | wait(0.0) | |
| 2589 | end | |
| 2590 | end) | |
| 2591 | TitleTurret.MouseButton1Up:connect(function() | |
| 2592 | ButtonB = nil | |
| 2593 | end) | |
| 2594 | TitleTurret.MouseLeave:connect(function() | |
| 2595 | ButtonB = nil | |
| 2596 | end) | |
| 2597 | TitleTurret.MouseMoved:connect(function(IntXB, IntYB) | |
| 2598 | XB = IntXB | |
| 2599 | YB = IntYB | |
| 2600 | end) | |
| 2601 | MoveUp = Instance.new("ImageButton")
| |
| 2602 | MoveUp.Parent = Fram | |
| 2603 | MoveUp.Name = "Up" | |
| 2604 | MoveUp.Image = "http://www.roblox.com/asset/?id=30390203" | |
| 2605 | MoveUp.Size = UDim2.new(0, 40, 0, 40) | |
| 2606 | MoveUp.Position = UDim2.new(0, 60, 0, 10) | |
| 2607 | MoveUp.BorderSizePixel = 0 | |
| 2608 | MoveUp.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2609 | MoveUp.MouseButton1Down:connect(function() | |
| 2610 | ButtonB = MoveUp | |
| 2611 | while true do | |
| 2612 | if (ButtonB ~= MoveUp) then | |
| 2613 | break | |
| 2614 | end | |
| 2615 | TurretB.VX.Value = TurretB.VX.Value + 0.1 | |
| 2616 | if (TurretB.VX.Value > 1.5) then | |
| 2617 | TurretB.VX.Value = 1.5 | |
| 2618 | end | |
| 2619 | GrassA.TurretB.C0 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(TurretB.VX.Value, 0, 0) | |
| 2620 | wait(0.0) | |
| 2621 | end | |
| 2622 | end) | |
| 2623 | MoveUp.MouseButton1Up:connect(function() | |
| 2624 | ButtonB = nil | |
| 2625 | end) | |
| 2626 | MoveUp.MouseLeave:connect(function() | |
| 2627 | ButtonB = nil | |
| 2628 | end) | |
| 2629 | TurnLeft = Instance.new("ImageButton")
| |
| 2630 | TurnLeft.Parent = Fram | |
| 2631 | TurnLeft.Name = "Left" | |
| 2632 | TurnLeft.Image = "http://www.roblox.com/asset/?id=30390075" | |
| 2633 | TurnLeft.Size = UDim2.new(0, 40, 0, 40) | |
| 2634 | TurnLeft.Position = UDim2.new(0, 10, 0, 60) | |
| 2635 | TurnLeft.BorderSizePixel = 0 | |
| 2636 | TurnLeft.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2637 | TurnLeft.MouseButton1Down:connect(function() | |
| 2638 | ButtonB = TurnLeft | |
| 2639 | while true do | |
| 2640 | if (ButtonB ~= TurnLeft) then | |
| 2641 | break | |
| 2642 | end | |
| 2643 | TurretB.VY.Value = TurretB.VY.Value + 0.1 | |
| 2644 | GrassA.TurretA.C0 = CFrame.new(20, 0.7, 55) * CFrame.fromEulerAnglesXYZ(0, TurretB.VY.Value, 0) | |
| 2645 | wait(0.0) | |
| 2646 | end | |
| 2647 | end) | |
| 2648 | TurnLeft.MouseButton1Up:connect(function() | |
| 2649 | ButtonB = nil | |
| 2650 | end) | |
| 2651 | TurnLeft.MouseLeave:connect(function() | |
| 2652 | ButtonB = nil | |
| 2653 | end) | |
| 2654 | Fire = Instance.new("TextButton")
| |
| 2655 | Fire.Parent = Fram | |
| 2656 | Fire.Name = "Fire" | |
| 2657 | Fire.Text = "Fire" | |
| 2658 | Fire.Size = UDim2.new(0, 40, 0, 40) | |
| 2659 | Fire.Position = UDim2.new(0, 60, 0, 60) | |
| 2660 | Fire.BorderSizePixel = 0 | |
| 2661 | Fire.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2662 | Fire.TextColor3 = Color3.new(1, 1, 1) | |
| 2663 | Fire.MouseButton1Click:connect(function() | |
| 2664 | if (TurretB.Reload.Value == false) then | |
| 2665 | TurretB.Reload.Value = true | |
| 2666 | TurretG.BrickColor = BrickColor.new("Bright red")
| |
| 2667 | Missile = Instance.new("Part")
| |
| 2668 | Missile.Parent = game.Workspace | |
| 2669 | Missile.Name = "Missile" | |
| 2670 | Missile.TopSurface = 0 | |
| 2671 | Missile.BottomSurface = 0 | |
| 2672 | Missile.CanCollide = true | |
| 2673 | Missile.Anchored = false | |
| 2674 | Missile.Locked = true | |
| 2675 | Missile.BrickColor = BrickColor.new("Black")
| |
| 2676 | Missile.formFactor = "Symmetric" | |
| 2677 | Missile.Size = Vector3.new(1, 2, 1) | |
| 2678 | Missile:BreakJoints() | |
| 2679 | Mesh = Instance.new("CylinderMesh")
| |
| 2680 | Mesh.Parent = Missile | |
| 2681 | Mesh.Scale = Vector3.new(1, 1, 1) | |
| 2682 | Missile.CFrame = TurretG.CFrame * CFrame.new(0, -2, 0) | |
| 2683 | BV = Instance.new("BodyVelocity")
| |
| 2684 | BV.Parent = Missile | |
| 2685 | BV.maxForce = Vector3.new(1e+999, 1e+999, 1e+999) | |
| 2686 | Frame = Missile.CFrame * CFrame.fromEulerAnglesXYZ(-math.pi/2, 0, 0) | |
| 2687 | BV.velocity = Frame.lookVector * 100 | |
| 2688 | MissileScript = script:clone() | |
| 2689 | MissileScript.Type.Value = "Missile" | |
| 2690 | MissileScript.Parent = Missile | |
| 2691 | TurretE.Smoke.Enabled = true | |
| 2692 | wait(0.1) | |
| 2693 | TurretE.Smoke.Enabled = false | |
| 2694 | wait(7.9) | |
| 2695 | TurretB.Reload.Value = false | |
| 2696 | if (Turreter ~= nil) then | |
| 2697 | TurretG.BrickColor = BrickColor.new("Bright yellow")
| |
| 2698 | end | |
| 2699 | end | |
| 2700 | end) | |
| 2701 | ||
| 2702 | TurnRight = Instance.new("ImageButton")
| |
| 2703 | TurnRight.Parent = Fram | |
| 2704 | TurnRight.Name = "Right" | |
| 2705 | TurnRight.Image = "http://www.roblox.com/asset/?id=30390056" | |
| 2706 | TurnRight.Size = UDim2.new(0, 40, 0, 40) | |
| 2707 | TurnRight.Position = UDim2.new(0, 110, 0, 60) | |
| 2708 | TurnRight.BorderSizePixel = 0 | |
| 2709 | TurnRight.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2710 | TurnRight.MouseButton1Down:connect(function() | |
| 2711 | ButtonB = TurnRight | |
| 2712 | while true do | |
| 2713 | if (ButtonB ~= TurnRight) then | |
| 2714 | break | |
| 2715 | end | |
| 2716 | TurretB.VY.Value = TurretB.VY.Value - 0.1 | |
| 2717 | GrassA.TurretA.C0 = CFrame.new(20, 0.7, 55) * CFrame.fromEulerAnglesXYZ(0, TurretB.VY.Value, 0) | |
| 2718 | wait(0.0) | |
| 2719 | end | |
| 2720 | end) | |
| 2721 | TurnRight.MouseButton1Up:connect(function() | |
| 2722 | ButtonB = nil | |
| 2723 | end) | |
| 2724 | TurnRight.MouseLeave:connect(function() | |
| 2725 | ButtonB = nil | |
| 2726 | end) | |
| 2727 | MoveDown = Instance.new("ImageButton")
| |
| 2728 | MoveDown.Parent = Fram | |
| 2729 | MoveDown.Name = "Down" | |
| 2730 | MoveDown.Image = "http://www.roblox.com/asset/?id=30390064" | |
| 2731 | MoveDown.Size = UDim2.new(0, 40, 0, 40) | |
| 2732 | MoveDown.Position = UDim2.new(0, 60, 0, 110) | |
| 2733 | MoveDown.BorderSizePixel = 0 | |
| 2734 | MoveDown.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 2735 | MoveDown.MouseButton1Down:connect(function() | |
| 2736 | ButtonB = MoveDown | |
| 2737 | while true do | |
| 2738 | if (ButtonB ~= MoveDown) then | |
| 2739 | break | |
| 2740 | end | |
| 2741 | TurretB.VX.Value = TurretB.VX.Value - 0.1 | |
| 2742 | if (TurretB.VX.Value < 0.3) then | |
| 2743 | TurretB.VX.Value = 0.3 | |
| 2744 | end | |
| 2745 | GrassA.TurretB.C0 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(TurretB.VX.Value, 0, 0) | |
| 2746 | wait(0.0) | |
| 2747 | end | |
| 2748 | end) | |
| 2749 | MoveDown.MouseButton1Up:connect(function() | |
| 2750 | ButtonB = nil | |
| 2751 | end) | |
| 2752 | MoveDown.MouseLeave:connect(function() | |
| 2753 | ButtonB = nil | |
| 2754 | end) | |
| 2755 | while true do | |
| 2756 | if (PlayerB == nil) then | |
| 2757 | break | |
| 2758 | end | |
| 2759 | if (PlayerB.Parent == nil) then | |
| 2760 | break | |
| 2761 | end | |
| 2762 | if (PlayerB.Character == nil) then | |
| 2763 | break | |
| 2764 | end | |
| 2765 | if (PlayerB.Character.Parent == nil) then | |
| 2766 | break | |
| 2767 | end | |
| 2768 | if (PlayerB.Character:findFirstChild("Humanoid") == nil) then
| |
| 2769 | break | |
| 2770 | end | |
| 2771 | if (PlayerB.Character:findFirstChild("Torso") == nil) then
| |
| 2772 | break | |
| 2773 | end | |
| 2774 | if (Turreter.Character.Humanoid.Health < 0.01) then | |
| 2775 | break | |
| 2776 | end | |
| 2777 | if ((Turreter.Character.Torso.Position - TurretB.Position).magnitude > 50) then | |
| 2778 | break | |
| 2779 | end | |
| 2780 | if (CloseBool == true) then | |
| 2781 | break | |
| 2782 | end | |
| 2783 | if (Turret == false) then | |
| 2784 | break | |
| 2785 | end | |
| 2786 | wait() | |
| 2787 | end | |
| 2788 | ButtonB = nil | |
| 2789 | GB:remove() | |
| 2790 | TurretG.BrickColor = BrickColor.new("Bright green")
| |
| 2791 | wait(2) | |
| 2792 | Turreter = nil | |
| 2793 | end | |
| 2794 | end | |
| 2795 | end | |
| 2796 | end | |
| 2797 | end | |
| 2798 | end | |
| 2799 | end | |
| 2800 | end | |
| 2801 | end | |
| 2802 | TurretB.Touched:connect(TurretControl) | |
| 2803 | function SeatManagement(Char, Seat) | |
| 2804 | while true do | |
| 2805 | if (Char == nil) then | |
| 2806 | break | |
| 2807 | end | |
| 2808 | if (Seat == nil) then | |
| 2809 | break | |
| 2810 | end | |
| 2811 | if (Char.Parent == nil) then | |
| 2812 | break | |
| 2813 | end | |
| 2814 | if (Seat.Parent == nil) then | |
| 2815 | break | |
| 2816 | end | |
| 2817 | if (Seat:findFirstChild("SeatWeld") == nil) then
| |
| 2818 | break | |
| 2819 | end | |
| 2820 | if (Char:findFirstChild("Humanoid") == nil) then
| |
| 2821 | break | |
| 2822 | end | |
| 2823 | if (Char:findFirstChild("Torso") == nil) then
| |
| 2824 | break | |
| 2825 | end | |
| 2826 | if (Char.Humanoid.Health < 0.01) then | |
| 2827 | break | |
| 2828 | end | |
| 2829 | if (Char.Humanoid.Jump == true) then | |
| 2830 | break | |
| 2831 | end | |
| 2832 | if (Char.Humanoid.Sit == false) then | |
| 2833 | --break | |
| 2834 | end | |
| 2835 | if (Char.Humanoid.PlatformStand == false) then | |
| 2836 | --break | |
| 2837 | end | |
| 2838 | wait() | |
| 2839 | end | |
| 2840 | if (Seat ~= nil) then | |
| 2841 | if (Seat.Parent ~= nil) then | |
| 2842 | if (Seat:findFirstChild("SeatWeld") ~= nil) then
| |
| 2843 | Seat.SeatWeld:remove() | |
| 2844 | end | |
| 2845 | end | |
| 2846 | end | |
| 2847 | ||
| 2848 | ||
| 2849 | ||
| 2850 | end | |
| 2851 | ||
| 2852 | ||
| 2853 | ||
| 2854 | ||
| 2855 | ||
| 2856 | ||
| 2857 | ||
| 2858 | ||
| 2859 | ||
| 2860 | ||
| 2861 | ||
| 2862 | ||
| 2863 | ||
| 2864 | ||
| 2865 | ----Begin chat---- | |
| 2866 | ||
| 2867 | ||
| 2868 | ||
| 2869 | ||
| 2870 | ||
| 2871 | ||
| 2872 | function Chat(Words, Player) | |
| 2873 | OrigWords = Words | |
| 2874 | Words = Words:lower() | |
| 2875 | if (Player.Name == Person.Name) then | |
| 2876 | if (Words == "destruct") then | |
| 2877 | Model:remove() | |
| 2878 | script:remove() | |
| 2879 | end | |
| 2880 | end | |
| 2881 | ||
| 2882 | if (string.find(Words, "cmds") ~= nil) then | |
| 2883 | for i = 1, #Commands do | |
| 2884 | if not game:service("Workspace"):findFirstChild("CMDmsg") then
| |
| 2885 | cmd = Instance.new("Hint", Workspace)
| |
| 2886 | cmd.Name = "CMDmsg" | |
| 2887 | cmd.Text = Commands[i].."" | |
| 2888 | wait(1) | |
| 2889 | cmd:remove() | |
| 2890 | end | |
| 2891 | end | |
| 2892 | end | |
| 2893 | ||
| 2894 | if (string.find(Words, "turret") ~= nil) then | |
| 2895 | Turret = not Turret | |
| 2896 | end | |
| 2897 | ||
| 2898 | if (string.find(Words, "windowa") ~= nil) then | |
| 2899 | if (WindowA.Status.Value == 1) then | |
| 2900 | WindowA.Status.Value = 0 | |
| 2901 | F1 = WallH.CFrame * CFrame.new(-6.5, -7, -7) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, math.pi/4) | |
| 2902 | J = (math.pi/4)/50 | |
| 2903 | for I = 1, 50 do | |
| 2904 | F1 = F1 * CFrame.fromEulerAnglesXYZ(0, 0, J) | |
| 2905 | F2 = F1 * CFrame.new(0.2, 10, 0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 2906 | HitPos = WallH.Position | |
| 2907 | CJ = CFrame.new(HitPos) | |
| 2908 | C0 = WallH.CFrame:inverse() *CJ | |
| 2909 | C1 = F2:inverse() * CJ | |
| 2910 | GrassA.WindowAWeld.Part0 = WallH | |
| 2911 | GrassA.WindowAWeld.C0 = C0 | |
| 2912 | GrassA.WindowAWeld.C1 = C1 | |
| 2913 | wait(0.01) | |
| 2914 | end | |
| 2915 | WindowA.Status.Value = 2 | |
| 2916 | elseif (WindowA.Status.Value == 2) then | |
| 2917 | WindowA.Status.Value = 0 | |
| 2918 | F1 = WallH.CFrame * CFrame.new(-6.5, -7, -7) * CFrame.fromEulerAnglesXYZ(0, math.pi/2, (math.pi/4) * 2) | |
| 2919 | J = (math.pi/4)/50 | |
| 2920 | for I = 1, 50 do | |
| 2921 | F1 = F1 * CFrame.fromEulerAnglesXYZ(0, 0, -J) | |
| 2922 | F2 = F1 * CFrame.new(0.2, 10, 0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
| 2923 | HitPos = WallH.Position | |
| 2924 | CJ = CFrame.new(HitPos) | |
| 2925 | C0 = WallH.CFrame:inverse() *CJ | |
| 2926 | C1 = F2:inverse() * CJ | |
| 2927 | GrassA.WindowAWeld.Part0 = WallH | |
| 2928 | GrassA.WindowAWeld.C0 = C0 | |
| 2929 | GrassA.WindowAWeld.C1 = C1 | |
| 2930 | wait(0.01) | |
| 2931 | end | |
| 2932 | WindowA.Status.Value = 1 | |
| 2933 | end | |
| 2934 | end | |
| 2935 | ||
| 2936 | if (string.find(Words, "ladder") ~= nil) then | |
| 2937 | if (LadderA.Status.Value == 1) then | |
| 2938 | LadderA.Status.Value = 0 | |
| 2939 | for I = 1, 20 do | |
| 2940 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y - 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 2941 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
| 2942 | GrassA.LadderC.C0 = GrassA.LadderA.C0 | |
| 2943 | GrassA.LadderD.C0 = GrassA.LadderA.C0 | |
| 2944 | GrassA.LadderE.C0 = GrassA.LadderA.C0 | |
| 2945 | wait(0.01) | |
| 2946 | end | |
| 2947 | for I = 1, 20 do | |
| 2948 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y - 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 2949 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
| 2950 | GrassA.LadderC.C0 = GrassA.LadderA.C0 | |
| 2951 | GrassA.LadderD.C0 = GrassA.LadderA.C0 | |
| 2952 | wait(0.01) | |
| 2953 | end | |
| 2954 | for I = 1, 20 do | |
| 2955 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y - 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 2956 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
| 2957 | GrassA.LadderC.C0 = GrassA.LadderA.C0 | |
| 2958 | wait(0.01) | |
| 2959 | end | |
| 2960 | for I = 1, 20 do | |
| 2961 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y - 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 2962 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
| 2963 | wait(0.01) | |
| 2964 | end | |
| 2965 | for I = 1, 20 do | |
| 2966 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y - 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 2967 | wait(0.01) | |
| 2968 | end | |
| 2969 | LadderA.Status.Value = 2 | |
| 2970 | elseif (LadderA.Status.Value == 2) then | |
| 2971 | LadderA.Status.Value = 0 | |
| 2972 | for I = 1, 20 do | |
| 2973 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y + 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 2974 | wait(0.01) | |
| 2975 | end | |
| 2976 | for I = 1, 20 do | |
| 2977 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y + 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 2978 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
| 2979 | wait(0.01) | |
| 2980 | end | |
| 2981 | for I = 1, 20 do | |
| 2982 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y + 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 2983 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
| 2984 | GrassA.LadderC.C0 = GrassA.LadderA.C0 | |
| 2985 | wait(0.01) | |
| 2986 | end | |
| 2987 | for I = 1, 20 do | |
| 2988 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y + 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 2989 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
| 2990 | GrassA.LadderC.C0 = GrassA.LadderA.C0 | |
| 2991 | GrassA.LadderD.C0 = GrassA.LadderA.C0 | |
| 2992 | wait(0.01) | |
| 2993 | end | |
| 2994 | for I = 1, 20 do | |
| 2995 | GrassA.LadderA.C0 = CFrame.new(44, GrassA.LadderA.C0.y + 0.1, 36) * CFrame.fromEulerAnglesXYZ(math.pi/2, 0, 0) | |
| 2996 | GrassA.LadderB.C0 = GrassA.LadderA.C0 | |
| 2997 | GrassA.LadderC.C0 = GrassA.LadderA.C0 | |
| 2998 | GrassA.LadderD.C0 = GrassA.LadderA.C0 | |
| 2999 | GrassA.LadderE.C0 = GrassA.LadderA.C0 | |
| 3000 | wait(0.01) | |
| 3001 | end | |
| 3002 | LadderA.Status.Value = 1 | |
| 3003 | end | |
| 3004 | end | |
| 3005 | ||
| 3006 | if (string.find(Words, "front door") ~= nil) then | |
| 3007 | if (FrontDoor.Status.Value == 1) then | |
| 3008 | FrontDoor.Status.Value = 0 | |
| 3009 | for I = 1, 100 do | |
| 3010 | GrassA.FrontDoorWeld.C0 = CFrame.new(-10, (-5.7) + (0.1 * I), 10.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 3011 | wait(0.01) | |
| 3012 | end | |
| 3013 | FrontDoor.Status.Value = 2 | |
| 3014 | elseif (FrontDoor.Status.Value == 2) then | |
| 3015 | FrontDoor.Status.Value = 0 | |
| 3016 | for I = 1, 120 do | |
| 3017 | GrassA.FrontDoorWeld.C0 = CFrame.new(-10, 4.3 - (0.1 * I), 10.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 3018 | wait(0.01) | |
| 3019 | end | |
| 3020 | FrontDoor.Status.Value = 1 | |
| 3021 | end | |
| 3022 | end | |
| 3023 | ||
| 3024 | if (string.find(Words, "controls") ~= nil) then | |
| 3025 | if (Controls == true) then | |
| 3026 | Controls = false | |
| 3027 | ControlPanelA.Transparency = 1 | |
| 3028 | ControlPanelA.CanCollide = false | |
| 3029 | ControlPanelB.Transparency = 1 | |
| 3030 | ControlPanelB.CanCollide = false | |
| 3031 | ControlPanelC.Transparency = 1 | |
| 3032 | ControlPanelC.CanCollide = false | |
| 3033 | ControlPanelD.Transparency = 1 | |
| 3034 | ControlPanelD.CanCollide = false | |
| 3035 | else | |
| 3036 | Controls = true | |
| 3037 | ControlPanelA.Transparency = 0 | |
| 3038 | ControlPanelA.CanCollide = true | |
| 3039 | ControlPanelB.Transparency = 0 | |
| 3040 | ControlPanelB.CanCollide = true | |
| 3041 | ControlPanelC.Transparency = 0 | |
| 3042 | ControlPanelC.CanCollide = true | |
| 3043 | ControlPanelD.Transparency = 0 | |
| 3044 | ControlPanelD.CanCollide = true | |
| 3045 | end | |
| 3046 | end | |
| 3047 | ||
| 3048 | if (string.sub(Words, 1, 2) == "up") then | |
| 3049 | Mess = string.sub(Words, 4) | |
| 3050 | V = game.Players:GetChildren() | |
| 3051 | for I, E in pairs(V) do | |
| 3052 | if (string.sub(E.Name:lower(), 1, string.len(Mess)) == Mess) then | |
| 3053 | if (E.Character ~= nil) then | |
| 3054 | if (E.Character:findFirstChild("Torso") ~= nil) then
| |
| 3055 | E.Character.Torso.CFrame = FloorA.CFrame * CFrame.new(-20, 5, 0) | |
| 3056 | end | |
| 3057 | end | |
| 3058 | end | |
| 3059 | end | |
| 3060 | end | |
| 3061 | ||
| 3062 | if (string.sub(Words,1,4) == "kick") then | |
| 3063 | Mess = string.sub(Words, 6) | |
| 3064 | V = game.Players:GetChildren() | |
| 3065 | for I, E in pairs(V) do | |
| 3066 | if (string.sub(E.Name:lower(), 1, string.len(Mess)) == Mess) then | |
| 3067 | pcall(function() | |
| 3068 | E:Remove() | |
| 3069 | end) | |
| 3070 | S = Instance.new("Hint", Workspace)
| |
| 3071 | S.Text = "[Kick] "..v.Name.." Removed." | |
| 3072 | wait(3) | |
| 3073 | S:remove() | |
| 3074 | end | |
| 3075 | end | |
| 3076 | ||
| 3077 | if (string.find(Words, "shutdown") ~= nil) then | |
| 3078 | for i = 5, 0, -1 do | |
| 3079 | x = Instance.new("Hint", Workspace)
| |
| 3080 | x.Text = "Shutting Down:" ..i wait(1) | |
| 3081 | x:remove() | |
| 3082 | end | |
| 3083 | for _,v in pairs(game.Players:GetPlayers()) do | |
| 3084 | v:remove() | |
| 3085 | end | |
| 3086 | end | |
| 3087 | end | |
| 3088 | ||
| 3089 | if (string.find(Words, "infuse") ~= nil) then | |
| 3090 | Tab = {string.find(Words, "infuse")}
| |
| 3091 | print(Tab[2]) | |
| 3092 | Name1 = string.sub(Words, 1, Tab[1] - 2) | |
| 3093 | Name2 = string.sub(Words, Tab[2] + 2, string.len(Words)) | |
| 3094 | Player1 = nil | |
| 3095 | Player2 = nil | |
| 3096 | L = game.Players:GetChildren() | |
| 3097 | for Q, A in pairs(L) do | |
| 3098 | if (string.sub(A.Name:lower(), 1, string.len(Name1)) == Name1) then | |
| 3099 | Player1 = A | |
| 3100 | end | |
| 3101 | if (string.sub(A.Name:lower(), 1, string.len(Name2)) == Name2) then | |
| 3102 | Player2 = A | |
| 3103 | end | |
| 3104 | end | |
| 3105 | if (Player1 ~= nil) then | |
| 3106 | if (Player2 ~= nil) then | |
| 3107 | if (Player2.Character ~= nil) then | |
| 3108 | Player1.Character = Player2.Character | |
| 3109 | end | |
| 3110 | end | |
| 3111 | end | |
| 3112 | end | |
| 3113 | ||
| 3114 | if (string.sub(Words, 1, 4) == "seat") then | |
| 3115 | Mess = string.sub(Words, 6) | |
| 3116 | V = game.Players:GetChildren() | |
| 3117 | for I, E in pairs(V) do | |
| 3118 | if (string.sub(E.Name:lower(), 1, string.len(Mess)) == Mess) then | |
| 3119 | if (E.Character ~= nil) then | |
| 3120 | if (E.Character:findFirstChild("Humanoid") ~= nil) then
| |
| 3121 | if (E.Character:findFirstChild("Torso") ~= nil) then
| |
| 3122 | Seats = {SeatA, SeatB, SeatC, SeatD, SeatE, SeatF, SeatG, SeatH}
| |
| 3123 | for F, D in pairs(Seats) do | |
| 3124 | if (D:findFirstChild("SeatWeld") == nil) then
| |
| 3125 | E.Character.Torso.CFrame = D.CFrame * CFrame.new(0, 5, 0) | |
| 3126 | E.Character.Humanoid.Sit = true | |
| 3127 | SeatWeld = Instance.new("Weld")
| |
| 3128 | SeatWeld.Parent = D | |
| 3129 | SeatWeld.Name = "SeatWeld" | |
| 3130 | SeatWeld.Part0 = D | |
| 3131 | SeatWeld.Part1 = E.Character.Torso | |
| 3132 | SeatWeld.C0 = CFrame.new(0, 0.4, 0) | |
| 3133 | SeatWeld.C1 = CFrame.new(0, -1.5, 0) | |
| 3134 | coroutine.resume(coroutine.create(SeatManagement), E.Character, D) | |
| 3135 | break | |
| 3136 | end | |
| 3137 | end | |
| 3138 | ||
| 3139 | end | |
| 3140 | end | |
| 3141 | end | |
| 3142 | end | |
| 3143 | end | |
| 3144 | end | |
| 3145 | if (string.sub(Words, 1, 6) == "murder") then | |
| 3146 | Mess = string.sub(Words, 8) | |
| 3147 | V = game.Players:GetChildren() | |
| 3148 | for I, E in pairs(V) do | |
| 3149 | if (string.sub(E.Name:lower(), 1, string.len(Mess)) == Mess) then | |
| 3150 | if (E.Character ~= nil) then | |
| 3151 | E.Character:BreakJoints() | |
| 3152 | end | |
| 3153 | end | |
| 3154 | end | |
| 3155 | end | |
| 3156 | if (string.sub(Words, 1, 4) == "down") then | |
| 3157 | Mess = string.sub(Words, 6) | |
| 3158 | V = game.Players:GetChildren() | |
| 3159 | for I, E in pairs(V) do | |
| 3160 | if (string.sub(E.Name:lower(), 1, string.len(Mess)) == Mess) then | |
| 3161 | if (E.Character ~= nil) then | |
| 3162 | if (E.Character:findFirstChild("Torso") ~= nil) then
| |
| 3163 | E.Character.Torso.CFrame = CFrame.new(0, 5, 0) | |
| 3164 | end | |
| 3165 | end | |
| 3166 | end | |
| 3167 | end | |
| 3168 | end | |
| 3169 | ||
| 3170 | if (string.find(Words, "sleep") ~= nil) then | |
| 3171 | Player.Character.Humanoid.PlatformStand = not Player.Character.Humanoid.PlatformStand | |
| 3172 | end | |
| 3173 | if (string.find(Words, "dima") ~= nil) then | |
| 3174 | if (WindowA.Transparency == 0.5) then | |
| 3175 | for I = 1, 3 do | |
| 3176 | wait(0.1) | |
| 3177 | WindowA.Transparency = WindowA.Transparency - 0.1 | |
| 3178 | end | |
| 3179 | WindowA.BrickColor = BrickColor.new("Brown")
| |
| 3180 | for I = 1, 2 do | |
| 3181 | wait(0.1) | |
| 3182 | WindowA.Transparency = WindowA.Transparency - 0.1 | |
| 3183 | end | |
| 3184 | else | |
| 3185 | for I = 1, 3 do | |
| 3186 | wait(0.1) | |
| 3187 | WindowA.Transparency = WindowA.Transparency + 0.1 | |
| 3188 | end | |
| 3189 | WindowA.BrickColor = BrickColor.new("Medium blue")
| |
| 3190 | for I = 1, 2 do | |
| 3191 | wait(0.1) | |
| 3192 | WindowA.Transparency = WindowA.Transparency + 0.1 | |
| 3193 | end | |
| 3194 | end | |
| 3195 | end | |
| 3196 | ||
| 3197 | ||
| 3198 | if (string.find(Words, "dimb") ~= nil) then | |
| 3199 | if (WindowB.Transparency == 0.5) then | |
| 3200 | for I = 1, 3 do | |
| 3201 | wait(0.1) | |
| 3202 | WindowB.Transparency = WindowB.Transparency - 0.1 | |
| 3203 | WindowC.Transparency = WindowC.Transparency - 0.1 | |
| 3204 | WindowD.Transparency = WindowD.Transparency - 0.1 | |
| 3205 | WindowE.Transparency = WindowE.Transparency - 0.1 | |
| 3206 | WindowF.Transparency = WindowF.Transparency - 0.1 | |
| 3207 | WindowG.Transparency = WindowG.Transparency - 0.1 | |
| 3208 | WindowH.Transparency = WindowH.Transparency - 0.1 | |
| 3209 | WindowI.Transparency = WindowI.Transparency - 0.1 | |
| 3210 | end | |
| 3211 | WindowB.BrickColor = BrickColor.new("Brown")
| |
| 3212 | WindowC.BrickColor = BrickColor.new("Brown")
| |
| 3213 | WindowD.BrickColor = BrickColor.new("Brown")
| |
| 3214 | WindowE.BrickColor = BrickColor.new("Brown")
| |
| 3215 | WindowF.BrickColor = BrickColor.new("Brown")
| |
| 3216 | WindowG.BrickColor = BrickColor.new("Brown")
| |
| 3217 | WindowH.BrickColor = BrickColor.new("Brown")
| |
| 3218 | WindowI.BrickColor = BrickColor.new("Brown")
| |
| 3219 | for I = 1, 2 do | |
| 3220 | wait(0.1) | |
| 3221 | WindowB.Transparency = WindowB.Transparency - 0.1 | |
| 3222 | WindowC.Transparency = WindowC.Transparency - 0.1 | |
| 3223 | WindowD.Transparency = WindowD.Transparency - 0.1 | |
| 3224 | WindowE.Transparency = WindowE.Transparency - 0.1 | |
| 3225 | WindowF.Transparency = WindowF.Transparency - 0.1 | |
| 3226 | WindowG.Transparency = WindowG.Transparency - 0.1 | |
| 3227 | WindowH.Transparency = WindowH.Transparency - 0.1 | |
| 3228 | WindowI.Transparency = WindowI.Transparency - 0.1 | |
| 3229 | end | |
| 3230 | else | |
| 3231 | for I = 1, 3 do | |
| 3232 | wait(0.1) | |
| 3233 | WindowB.Transparency = WindowB.Transparency + 0.1 | |
| 3234 | WindowC.Transparency = WindowC.Transparency + 0.1 | |
| 3235 | WindowD.Transparency = WindowD.Transparency + 0.1 | |
| 3236 | WindowE.Transparency = WindowE.Transparency + 0.1 | |
| 3237 | WindowF.Transparency = WindowF.Transparency + 0.1 | |
| 3238 | WindowG.Transparency = WindowG.Transparency + 0.1 | |
| 3239 | WindowH.Transparency = WindowH.Transparency + 0.1 | |
| 3240 | WindowI.Transparency = WindowI.Transparency + 0.1 | |
| 3241 | end | |
| 3242 | WindowB.BrickColor = BrickColor.new("Medium blue")
| |
| 3243 | WindowC.BrickColor = BrickColor.new("Medium blue")
| |
| 3244 | WindowD.BrickColor = BrickColor.new("Medium blue")
| |
| 3245 | WindowE.BrickColor = BrickColor.new("Medium blue")
| |
| 3246 | WindowF.BrickColor = BrickColor.new("Medium blue")
| |
| 3247 | WindowG.BrickColor = BrickColor.new("Medium blue")
| |
| 3248 | WindowH.BrickColor = BrickColor.new("Medium blue")
| |
| 3249 | WindowI.BrickColor = BrickColor.new("Medium blue")
| |
| 3250 | for I = 1, 2 do | |
| 3251 | wait(0.1) | |
| 3252 | WindowB.Transparency = WindowB.Transparency + 0.1 | |
| 3253 | WindowC.Transparency = WindowC.Transparency + 0.1 | |
| 3254 | WindowD.Transparency = WindowD.Transparency + 0.1 | |
| 3255 | WindowE.Transparency = WindowE.Transparency + 0.1 | |
| 3256 | WindowF.Transparency = WindowF.Transparency + 0.1 | |
| 3257 | WindowG.Transparency = WindowG.Transparency + 0.1 | |
| 3258 | WindowH.Transparency = WindowH.Transparency + 0.1 | |
| 3259 | WindowI.Transparency = WindowI.Transparency + 0.1 | |
| 3260 | end | |
| 3261 | end | |
| 3262 | end | |
| 3263 | ||
| 3264 | if (Words == "fix") then | |
| 3265 | Model.Parent = game.Workspace | |
| 3266 | for I, E in pairs(Parts) do | |
| 3267 | E.Parent = Model | |
| 3268 | end | |
| 3269 | for V, C in pairs(Welds) do | |
| 3270 | C.Parent = GrassA | |
| 3271 | end | |
| 3272 | end | |
| 3273 | end | |
| 3274 | ||
| 3275 | function Check(Property, Player) | |
| 3276 | if (Property == "Character") then | |
| 3277 | if (Player.Character ~= nil) then | |
| 3278 | Spawn(Player) | |
| 3279 | end | |
| 3280 | end | |
| 3281 | end | |
| 3282 | ||
| 3283 | function Spawn(Player) | |
| 3284 | wait(0.1) | |
| 3285 | Player.Character.Torso.CFrame = FloorA.CFrame * CFrame.new(-20, 5, 0) | |
| 3286 | end | |
| 3287 | ||
| 3288 | function List(Table, Value) | |
| 3289 | Results = false | |
| 3290 | for I, E in pairs(Table) do | |
| 3291 | if (E:lower() == Value:lower()) then | |
| 3292 | Results = true | |
| 3293 | end | |
| 3294 | end | |
| 3295 | return Results | |
| 3296 | end | |
| 3297 | ||
| 3298 | function Ban() | |
| 3299 | local L = game.Players:GetChildren() | |
| 3300 | for I, E in pairs(L) do | |
| 3301 | if (List(Banned, E.Name) == true) then | |
| 3302 | E:remove() | |
| 3303 | local Hint = Instance.new("Hint")
| |
| 3304 | Hint.Parent = game.Workspace | |
| 3305 | Hint.Text = "Removed "..E | |
| 3306 | wait(2) | |
| 3307 | Hint:remove() | |
| 3308 | end | |
| 3309 | end | |
| 3310 | end | |
| 3311 | end | |
| 3312 | ||
| 3313 | function Enter(Player) | |
| 3314 | if (List(TehList, Player.Name) == true) then | |
| 3315 | Player.Chatted:connect(function(msg) Chat(msg, Player) end) | |
| 3316 | Player.Changed:connect(function(Property) Check(Property, Player) end) | |
| 3317 | end | |
| 3318 | end | |
| 3319 | ||
| 3320 | game.Players.PlayerAdded:connect(function(v) | |
| 3321 | Enter(v) | |
| 3322 | end) | |
| 3323 | ||
| 3324 | ||
| 3325 | for i,v in pairs(Game.Players:GetPlayers()) do | |
| 3326 | Enter(v) | |
| 3327 | end |