SHOW:
|
|
- or go back to the newest paste.
| 1 | --[[ | |
| 2 | Island Dimension made by Fenrier. | |
| 3 | ]] | |
| 4 | it=Instance.new | |
| 5 | vt=Vector3.new | |
| 6 | cf=CFrame.new | |
| 7 | euler=CFrame.fromEulerAnglesXYZ | |
| 8 | angles=CFrame.Angles | |
| 9 | teledebounce=false | |
| 10 | teledebounce2=false | |
| 11 | ||
| 12 | if workspace.Base:findFirstChild("Tower Model",true) ~= nil then
| |
| 13 | workspace.Base:findFirstChild("Tower Model",true).Parent = nil
| |
| 14 | end | |
| 15 | ||
| 16 | ||
| 17 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size,cframe) | |
| 18 | local fp = it("Part")
| |
| 19 | fp.formFactor = formfactor | |
| 20 | fp.Parent = parent | |
| 21 | fp.Reflectance = reflectance | |
| 22 | fp.Transparency = transparency | |
| 23 | fp.CanCollide = true | |
| 24 | fp.Anchored = true | |
| 25 | fp.Locked=true | |
| 26 | fp.BrickColor = brickcolor | |
| 27 | fp.Name = name | |
| 28 | fp.Size = size | |
| 29 | fp.CFrame = cframe | |
| 30 | fp.BottomSurface="Smooth" | |
| 31 | fp.TopSurface="Smooth" | |
| 32 | fp:BreakJoints() | |
| 33 | return fp | |
| 34 | end | |
| 35 | ||
| 36 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 37 | local mesh = it(Mesh) | |
| 38 | mesh.Parent = part | |
| 39 | if Mesh=="SpecialMesh" then | |
| 40 | mesh.MeshType = meshtype | |
| 41 | mesh.MeshId = meshid | |
| 42 | end | |
| 43 | mesh.Offset=offset | |
| 44 | mesh.Scale=scale | |
| 45 | return mesh | |
| 46 | end | |
| 47 | ||
| 48 | function weld(parent,part0,part1,c0) | |
| 49 | local weld = it("Weld")
| |
| 50 | weld.Parent = parent | |
| 51 | weld.Part0 = part0 | |
| 52 | weld.Part1 = part1 | |
| 53 | weld.C0 = c0 | |
| 54 | return weld | |
| 55 | end | |
| 56 | ||
| 57 | local modelzorz = Instance.new("Model")
| |
| 58 | modelzorz.Parent = workspace.Base | |
| 59 | modelzorz.Name = "Tower Model" | |
| 60 | script.Parent=modelzorz | |
| 61 | ||
| 62 | local prt1=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part1",vt(2,100,20),cf(100,50,20))
| |
| 63 | local prt2=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part2",vt(2,100,20),cf(100,50,-20))
| |
| 64 | local prt3=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part3",vt(2,80,20),cf(100,60,0))
| |
| 65 | local prt4=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part4",vt(2,100,60),cf(130,50,29)*euler(0,1.57,0))
| |
| 66 | local prt5=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part5",vt(2,100,60),cf(130,50,-29)*euler(0,1.57,0))
| |
| 67 | local prt6=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part6",vt(2,100,60),cf(160,50,0))
| |
| 68 | local prt7=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part7",vt(80,2,80),cf(130,100,0))
| |
| 69 | local prt8=part(3,modelzorz,0,0,BrickColor.new("Br. yellowish green"),"Part8",vt(20,3,20),cf(150,100,0))
| |
| 70 | local prt9=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part9",vt(3,3,79.99),cf(91.51,101,0))
| |
| 71 | local prt10=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part10",vt(3,3,79.99),cf(168.49,101,0))
| |
| 72 | local prt11=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part11",vt(3,3,79.99),cf(130,101,38.48)*euler(0,1.57,0))
| |
| 73 | local prt12=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part12",vt(3,3,79.99),cf(130,101,-38.48)*euler(0,1.57,0))
| |
| 74 | local prt13=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part13",vt(2,20,20),cf(100,110,20))
| |
| 75 | local prt14=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part14",vt(2,20,20),cf(100,110,-20))
| |
| 76 | local prt15=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part15",vt(2,20,20),cf(110,110,29)*euler(0,1.57,0))
| |
| 77 | local prt16=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part16",vt(2,20,20),cf(150,110,29)*euler(0,1.57,0))
| |
| 78 | local prt17=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part17",vt(2,20,20),cf(160,110,20))
| |
| 79 | local prt18=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part18",vt(2,20,20),cf(160,110,-20))
| |
| 80 | local prt19=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part19",vt(2,20,20),cf(110,110,-29)*euler(0,1.57,0))
| |
| 81 | local prt20=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part20",vt(2,20,20),cf(150,110,-29)*euler(0,1.57,0))
| |
| 82 | local prt21=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part21",vt(61.9,2,60),cf(130,120,0))
| |
| 83 | local prt22=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part22",vt(60,2,60),cf(130,128,0))
| |
| 84 | local prt23=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part23",vt(60,2,60),cf(1500,1500,1500))
| |
| 85 | local prt24=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part24",vt(2,100,60),prt23.CFrame*cf(-30,50,0))
| |
| 86 | local prt25=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part25",vt(2,100,60),prt23.CFrame*cf(30,50,0))
| |
| 87 | local prt26=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part26",vt(2,100,60),prt23.CFrame*cf(0,50,30)*euler(0,1.57,0))
| |
| 88 | local prt27=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part27",vt(2,100,60),prt23.CFrame*cf(0,50,-30)*euler(0,1.57,0))
| |
| 89 | local prt28=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part28",vt(20,100,20),prt23.CFrame*cf(0,50,0))
| |
| 90 | BasicCFrame=prt28.CFrame*cf(0,50,0) | |
| 91 | local prt29=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part29",vt(199,2,62),BasicCFrame*cf(130.5,0,0))
| |
| 92 | prt29.Material="Grass" | |
| 93 | local prt30=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part30",vt(199,2,62),BasicCFrame*cf(-130.5,0,0))
| |
| 94 | prt30.Material="Grass" | |
| 95 | local prt31=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part31",vt(460,2,200),BasicCFrame*cf(0,0,131))
| |
| 96 | prt31.Material="Grass" | |
| 97 | local prt32=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part32",vt(460,2,200),BasicCFrame*cf(0,0,-131))
| |
| 98 | prt32.Material="Grass" | |
| 99 | local prt33=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part33",vt(50,2.2,200),BasicCFrame*cf(0,0,-131))
| |
| 100 | local prt34=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part34",vt(50,2.2,200),BasicCFrame*cf(0,0,131))
| |
| 101 | local prt35=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part35",vt(35,2.2,62),BasicCFrame*cf(-7.5,0,0))
| |
| 102 | local prt35b=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part35b",vt(15,2.2,31),BasicCFrame*cf(17.5,0,-15.5))
| |
| 103 | local prt36=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part36",vt(60,2,30),BasicCFrame*cf(0,-1,-15))
| |
| 104 | local prt37=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part37",vt(30,2,30),BasicCFrame*cf(-25,-1,15)*euler(0,1.57,0))
| |
| 105 | local prt38=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Part38",vt(220,100,62),BasicCFrame*cf(141,-51,0))
| |
| 106 | prt38.Material="Slate" | |
| 107 | local prt39=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Part39",vt(220,100,62),BasicCFrame*cf(-141,-51,0))
| |
| 108 | prt39.Material="Slate" | |
| 109 | local prt40=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Part40",vt(502,100,220),BasicCFrame*cf(0,-51,141))
| |
| 110 | prt40.Material="Slate" | |
| 111 | local prt41=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Part41",vt(502,100,220),BasicCFrame*cf(0,-51,-141))
| |
| 112 | prt41.Material="Slate" | |
| 113 | local prt42=part(3,modelzorz,0,0.5,BrickColor.new("Bright blue"),"Part42",vt(20,200,20),BasicCFrame*cf(0,100,225))
| |
| 114 | prt42.CanCollide=false | |
| 115 | local prt43=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part43",vt(80,5,80),BasicCFrame*cf(0,200,225))
| |
| 116 | prt43.Material="Wood" | |
| 117 | local prt44=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part44",vt(40,10,40),BasicCFrame*cf(0,200,225))
| |
| 118 | local prt45=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part45",vt(1,1,80),BasicCFrame*cf(39.5,208,225)*euler(math.rad(math.random(-2,1)+math.random()),math.rad(math.random(-2,1)+math.random()),math.rad(math.random(-2,1)+math.random())))
| |
| 119 | prt45.Material="Wood" | |
| 120 | local prt46=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part46",vt(1,1,80),BasicCFrame*cf(-39.5,208,225)*euler(math.rad(math.random(-2,1)+math.random()),math.rad(math.random(-2,1)+math.random()),math.rad(math.random(-2,1)+math.random())))
| |
| 121 | prt46.Material="Wood" | |
| 122 | local prt47=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part47",vt(1,80,1),BasicCFrame*cf(0,208,225-39.5)*euler(math.rad(math.random(-2,1)+math.random()),math.rad(math.random(-2,1)+math.random()),1.57+math.rad(math.random(-2,1)+math.random())))
| |
| 123 | prt47.Material="Wood" | |
| 124 | local prt48=part(3,modelzorz,0,0.5,BrickColor.new("Bright blue"),"Part48",vt(20,20,20),prt43.CFrame*cf(0,5,0))
| |
| 125 | prt48.CanCollide=false | |
| 126 | local prt49=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part49",vt(1,1,95),prt43.CFrame*cf(12,2,87))
| |
| 127 | prt49.Material="Wood" | |
| 128 | local prt50=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part49",vt(1,1,95),prt43.CFrame*cf(-12,2,87))
| |
| 129 | prt50.Material="Wood" | |
| 130 | ||
| 131 | local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
| |
| 132 | local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(1,1,1))
| |
| 133 | local msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(1,1,1))
| |
| 134 | local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(1,1,1))
| |
| 135 | local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(1,1,1))
| |
| 136 | local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(1,1,1))
| |
| 137 | local msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(1,1,1))
| |
| 138 | local msh8=mesh("BlockMesh",prt8,"","",vt(0,0,0),vt(1,1,1))
| |
| 139 | local msh9=mesh("BlockMesh",prt9,"","",vt(0,0,0),vt(1,1,1))
| |
| 140 | local msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(1,1,1))
| |
| 141 | local msh11=mesh("BlockMesh",prt11,"","",vt(0,0,0),vt(1,1,1))
| |
| 142 | local msh12=mesh("BlockMesh",prt12,"","",vt(0,0,0),vt(1,1,1))
| |
| 143 | local msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(1,1,1))
| |
| 144 | local msh14=mesh("BlockMesh",prt14,"","",vt(0,0,0),vt(1,1,1))
| |
| 145 | local msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(1,1,1))
| |
| 146 | local msh16=mesh("BlockMesh",prt16,"","",vt(0,0,0),vt(1,1,1))
| |
| 147 | local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(1,1,1))
| |
| 148 | local msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(1,1,1))
| |
| 149 | local msh19=mesh("BlockMesh",prt19,"","",vt(0,0,0),vt(1,1,1))
| |
| 150 | local msh20=mesh("BlockMesh",prt20,"","",vt(0,0,0),vt(1,1,1))
| |
| 151 | local msh21=mesh("BlockMesh",prt21,"","",vt(0,0,0),vt(1,1,1))
| |
| 152 | local msh22=mesh("SpecialMesh",prt22,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(45,10,45))
| |
| 153 | local msh23=mesh("BlockMesh",prt23,"","",vt(0,0,0),vt(1,1,1))
| |
| 154 | local msh24=mesh("BlockMesh",prt24,"","",vt(0,0,0),vt(1,1,1))
| |
| 155 | local msh25=mesh("BlockMesh",prt25,"","",vt(0,0,0),vt(1,1,1))
| |
| 156 | local msh26=mesh("BlockMesh",prt26,"","",vt(0,0,0),vt(1,1,1))
| |
| 157 | local msh27=mesh("BlockMesh",prt27,"","",vt(0,0,0),vt(1,1,1))
| |
| 158 | local msh28=mesh("CylinderMesh",prt28,"","",vt(0,0,0),vt(1,1,1))
| |
| 159 | local msh42=mesh("CylinderMesh",prt42,"","",vt(0,0,0),vt(1,1,1))
| |
| 160 | local msh48=mesh("SpecialMesh",prt48,"Sphere","",vt(0,0,0),vt(1,1,1))
| |
| 161 | ||
| 162 | local basestairprt=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Base Stair Part1",vt(61.9,2,60),cf(130,2,0))
| |
| 163 | local basestairmsh=mesh("BlockMesh",basestairprt,"","",vt(0,0,0),vt(1,1,1))
| |
| 164 | local basestairprt2=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Base Stair Part2",vt(20,100,20),cf(130,50,0))
| |
| 165 | local basestairmsh2=mesh("CylinderMesh",basestairprt2,"","",vt(0,0,0),vt(1,1,1))
| |
| 166 | ||
| 167 | local teleprt=part(3,modelzorz,0,1,BrickColor.new("Black"),"Teleport Part",vt(61,10,59),cf(130,95,0))
| |
| 168 | teleprt.CanCollide=false | |
| 169 | local teleprt2=part(3,modelzorz,0,1,BrickColor.new("Black"),"Teleport Part2",vt(61,10,59),prt23.CFrame*cf(0,6,0))
| |
| 170 | teleprt2.CanCollide=false | |
| 171 | local teleprt3=part(3,modelzorz,0,1,BrickColor.new("Bright blue"),"Teleport Part3",vt(1000,10,1000),BasicCFrame*cf(0,-300,0))
| |
| 172 | teleprt3.CanCollide=false | |
| 173 | ||
| 174 | local skyboxprt=part(3,modelzorz,0,0,BrickColor.new("Black"),"Skybox",vt(1,1,1),BasicCFrame)
| |
| 175 | local skyboxmsh=mesh("SpecialMesh",skyboxprt,"FileMesh","http://www.roblox.com/asset/?id=1527559",vt(0,0,0),vt(-1000,-1000,-1000))
| |
| 176 | skyboxmsh.TextureId="http://www.roblox.com/asset/?id=24824960" | |
| 177 | coroutine.resume(coroutine.create(function() | |
| 178 | while true do | |
| 179 | wait() | |
| 180 | skyboxprt.CFrame=skyboxprt.CFrame*angles(math.pi/math.random(4000,6000),math.pi/math.random(4000,6000),math.pi/math.random(4000,6000)) | |
| 181 | end | |
| 182 | end)) | |
| 183 | for i=1,8 do | |
| 184 | local tree1=part(3,modelzorz,0,0,BrickColor.new("Brown"),"Tree1",vt(3,20,3),BasicCFrame*cf(math.random(30,200),10,math.random(-200,200)))
| |
| 185 | local treemsh1=mesh("CylinderMesh",tree1,"","",vt(0,0,0),vt(1,1,1))
| |
| 186 | local tree2=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Tree2",vt(15,15,15),tree1.CFrame*cf(0,30,0))
| |
| 187 | tree2.Shape=0 | |
| 188 | tree2.Material="Grass" | |
| 189 | tree2.CFrame=tree1.CFrame*cf(0,10,0) | |
| 190 | local grass=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Grass",vt(1,1,1),BasicCFrame*cf(math.random(30,200),2.5,math.random(-200,200)))
| |
| 191 | local grassmsh=mesh("SpecialMesh",grass,"FileMesh","http://www.roblox.com/asset/?id=1091940",vt(0,0,0),vt(2,2,2))
| |
| 192 | grassmsh.TextureId="http://www.roblox.com/asset/?id=1091942" | |
| 193 | end | |
| 194 | for i=1,8 do | |
| 195 | local tree1=part(3,modelzorz,0,0,BrickColor.new("Brown"),"Tree1",vt(3,20,3),BasicCFrame*cf(math.random(-200,-30),10,math.random(-200,200)))
| |
| 196 | local treemsh1=mesh("CylinderMesh",tree1,"","",vt(0,0,0),vt(1,1,1))
| |
| 197 | local tree2=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Tree2",vt(15,15,15),tree1.CFrame*cf(0,30,0))
| |
| 198 | tree2.Shape=0 | |
| 199 | tree2.Material="Grass" | |
| 200 | tree2.CFrame=tree1.CFrame*cf(0,10,0) | |
| 201 | local grass=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Grass",vt(1,1,1),BasicCFrame*cf(math.random(-200,-30),2.5,math.random(-200,200)))
| |
| 202 | local grassmsh=mesh("SpecialMesh",grass,"FileMesh","http://www.roblox.com/asset/?id=1091940",vt(0,0,0),vt(2,2,2))
| |
| 203 | grassmsh.TextureId="http://www.roblox.com/asset/?id=1091942" | |
| 204 | end | |
| 205 | ||
| 206 | con1=teleprt.Touched:connect(function(hit) | |
| 207 | if hit.Parent:findFirstChild("Humanoid")~=nil and teledebounce==false and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 208 | print("Teleported")
| |
| 209 | teledebounce=true | |
| 210 | hit.Parent.Torso.CFrame=prt23.CFrame*cf(0,5,20) | |
| 211 | wait(2) | |
| 212 | teledebounce=false | |
| 213 | end | |
| 214 | end) | |
| 215 | con2=teleprt2.Touched:connect(function(hit) | |
| 216 | if hit.Parent:findFirstChild("Humanoid")~=nil and teledebounce==false and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 217 | print("Teleported")
| |
| 218 | teledebounce=true | |
| 219 | hit.Parent.Torso.CFrame=teleprt.CFrame*cf(0,-5,15) | |
| 220 | wait(2) | |
| 221 | teledebounce=false | |
| 222 | end | |
| 223 | end) | |
| 224 | con3=prt42.Touched:connect(function(hit) | |
| 225 | if hit.Parent:findFirstChild("Humanoid")~=nil and teledebounce2==false and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 226 | print("Teleported to Statue Island.")
| |
| 227 | teledebounce2=true | |
| 228 | Torso=hit.Parent.Torso | |
| 229 | Torso.Anchored=true | |
| 230 | Torso.CFrame=prt42.CFrame*cf(0,-95,0) | |
| 231 | wait(2) | |
| 232 | numb2=0 | |
| 233 | for i=0,20 do | |
| 234 | wait(0) | |
| 235 | Torso.CFrame=prt42.CFrame*cf(0,-95+numb2,0) | |
| 236 | numb2=numb2+10 | |
| 237 | end | |
| 238 | Torso.Anchored=false | |
| 239 | Torso.Velocity=vt(0,200,0) | |
| 240 | wait(2) | |
| 241 | teledebounce2=false | |
| 242 | end | |
| 243 | end) | |
| 244 | con4=prt48.Touched:connect(function(hit) | |
| 245 | if hit.Parent:findFirstChild("Humanoid")~=nil and teledebounce2==false and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 246 | print("Teleported out Statue Island.")
| |
| 247 | teledebounce2=true | |
| 248 | Torso=hit.Parent.Torso | |
| 249 | Torso.Anchored=true | |
| 250 | Torso.CFrame=prt48.CFrame*cf(0,3,0) | |
| 251 | wait(2) | |
| 252 | numb2=0 | |
| 253 | for i=0,20 do | |
| 254 | wait(0) | |
| 255 | Torso.CFrame=prt48.CFrame*cf(0,3-numb2,0) | |
| 256 | numb2=numb2+10 | |
| 257 | end | |
| 258 | Torso.Anchored=false | |
| 259 | wait(2) | |
| 260 | teledebounce2=false | |
| 261 | end | |
| 262 | end) | |
| 263 | con5=teleprt3.Touched:connect(function(hit) | |
| 264 | if hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 265 | print("Fallen Teleport")
| |
| 266 | hit.Parent.Torso.CFrame=teleprt3.CFrame*cf(-1500,-1000,-1500)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 267 | hit.Parent.Humanoid.PlatformStand=true | |
| 268 | end | |
| 269 | end) | |
| 270 | ||
| 271 | for i=0,50 do | |
| 272 | prtsize=math.random(1,20) | |
| 273 | local prt=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Brick",vt(prtsize,prtsize,prtsize),BasicCFrame*cf(math.random(-500,500),math.random(-500,500),math.random(-500,500))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)))
| |
| 274 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 275 | coroutine.resume(coroutine.create(function(Part) | |
| 276 | randomnumb=math.random(1,10)+math.random() | |
| 277 | wait(randomnumb) | |
| 278 | while Part.Parent~=nil do | |
| 279 | for i=0,1,0.005 do | |
| 280 | wait() | |
| 281 | Part.Position=Part.Position+vt(0,-0.2,0) | |
| 282 | end | |
| 283 | for i=0,1,0.005 do | |
| 284 | wait() | |
| 285 | Part.Position=Part.Position+vt(0,0.2,0) | |
| 286 | end | |
| 287 | end | |
| 288 | end),prt) | |
| 289 | end | |
| 290 | ||
| 291 | for i=0,15 do | |
| 292 | prtsize=math.random(0,3)+math.random() | |
| 293 | local prt=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Brick",vt(prtsize,prtsize,prtsize),BasicCFrame*cf(math.random(-50,50),math.random(5,170),math.random(200,250))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)))
| |
| 294 | prt.Material="Grass" | |
| 295 | coroutine.resume(coroutine.create(function(Part) | |
| 296 | randomnumb=math.random(1,10)+math.random() | |
| 297 | wait(randomnumb) | |
| 298 | while Part.Parent~=nil do | |
| 299 | for i=0,1,0.005 do | |
| 300 | wait() | |
| 301 | Part.Position=Part.Position+vt(0,-0.2,0) | |
| 302 | end | |
| 303 | for i=0,1,0.005 do | |
| 304 | wait() | |
| 305 | Part.Position=Part.Position+vt(0,0.2,0) | |
| 306 | end | |
| 307 | end | |
| 308 | end),prt) | |
| 309 | end | |
| 310 | ||
| 311 | count=0 | |
| 312 | for i=1,15 do | |
| 313 | local prt=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part",vt(1,3,1),BasicCFrame*cf(39.5-count,205,225-39.5)*euler(math.rad(math.random(-30,29)+math.random()),math.rad(math.random(-30,29)+math.random()),math.rad(math.random(-30,29)+math.random())))
| |
| 314 | prt.Material="Wood" | |
| 315 | local prt=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part",vt(1,3,1),BasicCFrame*cf(39.5,205,225-39.5+count)*euler(math.rad(math.random(-30,29)+math.random()),math.rad(math.random(-30,29)+math.random()),math.rad(math.random(-30,29)+math.random())))
| |
| 316 | prt.Material="Wood" | |
| 317 | local prt=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part",vt(1,3,1),BasicCFrame*cf(-39.5,205,225-39.5+count)*euler(math.rad(math.random(-30,29)+math.random()),math.rad(math.random(-30,29)+math.random()),math.rad(math.random(-30,29)+math.random())))
| |
| 318 | prt.Material="Wood" | |
| 319 | count=count+5.64 | |
| 320 | end | |
| 321 | ||
| 322 | count=0 | |
| 323 | for i=1,15 do | |
| 324 | local prt48=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part48",vt(20,1,5),prt43.CFrame*cf(0,2,42+count)*euler(math.rad(math.random(-10,9)+math.random()),math.rad(math.random(-10,9)+math.random()),math.rad(math.random(-10,9)+math.random())))
| |
| 325 | prt48.Material="Wood" | |
| 326 | count=count+6 | |
| 327 | end | |
| 328 | ||
| 329 | count=-0.25 | |
| 330 | for i=0,164 do | |
| 331 | local prt=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Stair",vt(2,3,20),basestairprt.CFrame*euler(0,count,0)*cf(0,0.5+(count*12),19))
| |
| 332 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 333 | light = Instance.new("PointLight")
| |
| 334 | light.Brightness = .8 | |
| 335 | light.Range = 100 | |
| 336 | light.Parent=prt | |
| 337 | count=count+0.05 | |
| 338 | end | |
| 339 | count=0 | |
| 340 | for i=0,160 do | |
| 341 | local prt=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Stair2",vt(2,3,20),prt23.CFrame*euler(0,count,0)*cf(0,0.5+(count*12),19))
| |
| 342 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 343 | light = Instance.new("PointLight")
| |
| 344 | light.Brightness = .8 | |
| 345 | light.Range = 100 | |
| 346 | light.Parent=prt | |
| 347 | count=count+0.05 | |
| 348 | end | |
| 349 | count=0 | |
| 350 | for i=0,15 do | |
| 351 | local prt=part(3,modelzorz,0,1-count,BrickColor.new("Black"),"Shade",vt(61,1,59),cf(130,70+(count*40),0))
| |
| 352 | prt.CanCollide=false | |
| 353 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 354 | count=count+0.05 | |
| 355 | end | |
| 356 | count=0 | |
| 357 | for i=0,15 do | |
| 358 | local prt=part(3,modelzorz,0,count,BrickColor.new("Black"),"Shade2",vt(61,1,59),prt23.CFrame*cf(0,count*40,0))
| |
| 359 | prt.CanCollide=false | |
| 360 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 361 | count=count+0.05 | |
| 362 | end | |
| 363 | count=0 | |
| 364 | for i=0,15 do | |
| 365 | local prt=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Stand",vt(2.99,3,3),cf(91.51,104,38.48-count))
| |
| 366 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 367 | count=count+5.13 | |
| 368 | end | |
| 369 | count=0 | |
| 370 | for i=0,15 do | |
| 371 | local prt=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Stand",vt(2.99,3,3),cf(168.49,104,38.48-count))
| |
| 372 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 373 | count=count+5.13 | |
| 374 | end | |
| 375 | count=5.13 | |
| 376 | for i=0,13 do | |
| 377 | local prt=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Stand",vt(2.99,3,3),cf(91.51+count,104,38.48))
| |
| 378 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 379 | count=count+5.13 | |
| 380 | end | |
| 381 | count=5.13 | |
| 382 | for i=0,13 do | |
| 383 | local prt=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Stand",vt(2.99,3,3),cf(91.51+count,104,-38.48))
| |
| 384 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 385 | count=count+5.13 | |
| 386 | end | |
| 387 | print("Fenrier's Tower Dimension loaded.")
| |
| 388 | --workspace.Fenrier.Torso.CFrame=teleprt2.CFrame*cf(0,150,0) | |
| 389 | -- mediafire | |
| 390 | --[[ | |
| 391 | Copyrighted (C) Fenrier 2013 | |
| 392 | ]] |