SHOW:
|
|
- or go back to the newest paste.
| 1 | --[[ | |
| 2 | Island Dimension made by Fenrier. | |
| 3 | ]] | |
| 4 | ||
| 5 | ||
| 6 | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
| |
| 7 | do | |
| 8 | script.Parent = owner.Character | |
| 9 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
| |
| 10 | local function NewFakeEvent() | |
| 11 | local Bind = Instance.new("BindableEvent")
| |
| 12 | local Fake;Fake = {Connections = {},
| |
| 13 | fakeEvent=true; | |
| 14 | Connect=function(self,Func) | |
| 15 | Bind.Event:connect(Func) | |
| 16 | self.Connections[Bind] = true | |
| 17 | return setmetatable({Connected = true},{
| |
| 18 | __index = function (self,Index) | |
| 19 | if Index:lower() == "disconnect" then | |
| 20 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
| 21 | end | |
| 22 | return Fake[Index] | |
| 23 | end; | |
| 24 | __tostring = function() return "Connection" end; | |
| 25 | }) | |
| 26 | end} | |
| 27 | Fake.connect = Fake.Connect;return Fake; | |
| 28 | end | |
| 29 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 30 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 31 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 32 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 33 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 34 | local function TriggerEvent(self,Event,...) | |
| 35 | local Trigger = Mouse[Event] | |
| 36 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
| 37 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
| 38 | end | |
| 39 | end | |
| 40 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
| 41 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 42 | if FiredBy.Name ~= owner.Name then return end | |
| 43 | if Input.MouseEvent then | |
| 44 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
| 45 | else | |
| 46 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 47 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
| 48 | for _,Action in pairs(ContextActionService.Actions) do | |
| 49 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
| 50 | end | |
| 51 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 52 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 53 | end | |
| 54 | end) | |
| 55 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
| 56 | Event.Parent = NLS([[ | |
| 57 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
| |
| 58 | local Input = function(Input,gameProcessedEvent) | |
| 59 | if gameProcessedEvent then return end | |
| 60 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 61 | end | |
| 62 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
| 63 | local Hit,Target | |
| 64 | while wait(1/30) do | |
| 65 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 66 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 67 | end | |
| 68 | end | |
| 69 | ]],owner.Character) | |
| 70 | end | |
| 71 | RealGame = game;game = setmetatable({},{
| |
| 72 | __index = function (self,Index) | |
| 73 | local Sandbox = function (Thing) | |
| 74 | if Thing:IsA("Player") then
| |
| 75 | local RealPlayer = Thing | |
| 76 | return setmetatable({},{
| |
| 77 | __index = function (self,Index) | |
| 78 | local Type = type(RealPlayer[Index]) | |
| 79 | if Type == "function" then | |
| 80 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 81 | return function (self)return InternalData["Mouse"] end | |
| 82 | end | |
| 83 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
| 84 | end | |
| 85 | return RealPlayer[Index] | |
| 86 | end; | |
| 87 | __tostring = function(self) return RealPlayer.Name end | |
| 88 | }) | |
| 89 | end | |
| 90 | end | |
| 91 | if RealGame[Index] then | |
| 92 | local Type = type(RealGame[Index]) | |
| 93 | if Type == "function" then | |
| 94 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 95 | return function (self,Service) | |
| 96 | local FakeServices = {
| |
| 97 | ["players"] = function() | |
| 98 | return setmetatable({},{
| |
| 99 | __index = function (self2,Index2) | |
| 100 | local RealService = RealGame:GetService(Service) | |
| 101 | local Type2 = type(Index2) | |
| 102 | if Type2 == "function" then | |
| 103 | return function (self,...) return RealService[Index2](RealService,...)end | |
| 104 | else | |
| 105 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
| 106 | return RealService[Index2] | |
| 107 | end | |
| 108 | end; | |
| 109 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
| 110 | }) | |
| 111 | end; | |
| 112 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
| 113 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
| 114 | ["runservice"] = function() | |
| 115 | return setmetatable({},{
| |
| 116 | __index = function(self2,Index2) | |
| 117 | local RealService = RealGame:GetService(Service) | |
| 118 | local Type2 = type(Index2) | |
| 119 | if Type2 == "function" then | |
| 120 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 121 | else | |
| 122 | local RunServices = {
| |
| 123 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
| |
| 124 | ["renderstepped"] = function() return RealService["Stepped"] end | |
| 125 | } | |
| 126 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
| 127 | return RealService[Index2] | |
| 128 | end | |
| 129 | end | |
| 130 | }) | |
| 131 | end | |
| 132 | } | |
| 133 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
| 134 | return RealGame:GetService(Service) | |
| 135 | end | |
| 136 | end | |
| 137 | return function (self,...) return RealGame[Index](RealGame,...) end | |
| 138 | else | |
| 139 | if game:GetService(Index) then return game:GetService(Index) end | |
| 140 | return RealGame[Index] | |
| 141 | end | |
| 142 | end | |
| 143 | return nil | |
| 144 | end | |
| 145 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
| |
| 146 | ||
| 147 | ||
| 148 | it=Instance.new | |
| 149 | vt=Vector3.new | |
| 150 | cf=CFrame.new | |
| 151 | euler=CFrame.fromEulerAnglesXYZ | |
| 152 | angles=CFrame.Angles | |
| 153 | teledebounce=false | |
| 154 | teledebounce2=false | |
| 155 | ||
| 156 | if workspace.Base:findFirstChild("Tower Model",true) ~= nil then
| |
| 157 | workspace.Base:findFirstChild("Tower Model",true).Parent = nil
| |
| 158 | end | |
| 159 | ||
| 160 | ||
| 161 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size,cframe) | |
| 162 | local fp = it("Part")
| |
| 163 | fp.formFactor = formfactor | |
| 164 | fp.Parent = parent | |
| 165 | fp.Reflectance = reflectance | |
| 166 | fp.Transparency = transparency | |
| 167 | fp.CanCollide = true | |
| 168 | fp.Anchored = true | |
| 169 | fp.Locked=true | |
| 170 | fp.BrickColor = brickcolor | |
| 171 | fp.Name = name | |
| 172 | fp.Size = size | |
| 173 | fp.CFrame = cframe | |
| 174 | fp.BottomSurface="Smooth" | |
| 175 | fp.TopSurface="Smooth" | |
| 176 | fp:BreakJoints() | |
| 177 | return fp | |
| 178 | end | |
| 179 | ||
| 180 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 181 | local mesh = it(Mesh) | |
| 182 | mesh.Parent = part | |
| 183 | if Mesh=="SpecialMesh" then | |
| 184 | mesh.MeshType = meshtype | |
| 185 | mesh.MeshId = meshid | |
| 186 | end | |
| 187 | mesh.Offset=offset | |
| 188 | mesh.Scale=scale | |
| 189 | return mesh | |
| 190 | end | |
| 191 | ||
| 192 | function weld(parent,part0,part1,c0) | |
| 193 | local weld = it("Weld")
| |
| 194 | weld.Parent = parent | |
| 195 | weld.Part0 = part0 | |
| 196 | weld.Part1 = part1 | |
| 197 | weld.C0 = c0 | |
| 198 | return weld | |
| 199 | end | |
| 200 | ||
| 201 | local modelzorz = Instance.new("Model")
| |
| 202 | modelzorz.Parent = workspace.Base | |
| 203 | modelzorz.Name = "Tower Model" | |
| 204 | script.Parent=modelzorz | |
| 205 | ||
| 206 | local prt1=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part1",vt(2,100,20),cf(100,50,20))
| |
| 207 | local prt2=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part2",vt(2,100,20),cf(100,50,-20))
| |
| 208 | local prt3=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part3",vt(2,80,20),cf(100,60,0))
| |
| 209 | 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))
| |
| 210 | 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))
| |
| 211 | local prt6=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part6",vt(2,100,60),cf(160,50,0))
| |
| 212 | local prt7=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part7",vt(80,2,80),cf(130,100,0))
| |
| 213 | local prt8=part(3,modelzorz,0,0,BrickColor.new("Br. yellowish green"),"Part8",vt(20,3,20),cf(150,100,0))
| |
| 214 | local prt9=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part9",vt(3,3,79.99),cf(91.51,101,0))
| |
| 215 | local prt10=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part10",vt(3,3,79.99),cf(168.49,101,0))
| |
| 216 | 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))
| |
| 217 | 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))
| |
| 218 | local prt13=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part13",vt(2,20,20),cf(100,110,20))
| |
| 219 | local prt14=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part14",vt(2,20,20),cf(100,110,-20))
| |
| 220 | 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))
| |
| 221 | 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))
| |
| 222 | local prt17=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part17",vt(2,20,20),cf(160,110,20))
| |
| 223 | local prt18=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part18",vt(2,20,20),cf(160,110,-20))
| |
| 224 | 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))
| |
| 225 | 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))
| |
| 226 | local prt21=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part21",vt(61.9,2,60),cf(130,120,0))
| |
| 227 | local prt22=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part22",vt(60,2,60),cf(130,128,0))
| |
| 228 | local prt23=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part23",vt(60,2,60),cf(1500,1500,1500))
| |
| 229 | local prt24=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part24",vt(2,100,60),prt23.CFrame*cf(-30,50,0))
| |
| 230 | local prt25=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part25",vt(2,100,60),prt23.CFrame*cf(30,50,0))
| |
| 231 | 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))
| |
| 232 | 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))
| |
| 233 | local prt28=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part28",vt(20,100,20),prt23.CFrame*cf(0,50,0))
| |
| 234 | BasicCFrame=prt28.CFrame*cf(0,50,0) | |
| 235 | local prt29=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part29",vt(199,2,62),BasicCFrame*cf(130.5,0,0))
| |
| 236 | prt29.Material="Grass" | |
| 237 | local prt30=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part30",vt(199,2,62),BasicCFrame*cf(-130.5,0,0))
| |
| 238 | prt30.Material="Grass" | |
| 239 | local prt31=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part31",vt(460,2,200),BasicCFrame*cf(0,0,131))
| |
| 240 | prt31.Material="Grass" | |
| 241 | local prt32=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part32",vt(460,2,200),BasicCFrame*cf(0,0,-131))
| |
| 242 | prt32.Material="Grass" | |
| 243 | local prt33=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part33",vt(50,2.2,200),BasicCFrame*cf(0,0,-131))
| |
| 244 | local prt34=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part34",vt(50,2.2,200),BasicCFrame*cf(0,0,131))
| |
| 245 | local prt35=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part35",vt(35,2.2,62),BasicCFrame*cf(-7.5,0,0))
| |
| 246 | local prt35b=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part35b",vt(15,2.2,31),BasicCFrame*cf(17.5,0,-15.5))
| |
| 247 | local prt36=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part36",vt(60,2,30),BasicCFrame*cf(0,-1,-15))
| |
| 248 | 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))
| |
| 249 | local prt38=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Part38",vt(220,100,62),BasicCFrame*cf(141,-51,0))
| |
| 250 | prt38.Material="Slate" | |
| 251 | local prt39=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Part39",vt(220,100,62),BasicCFrame*cf(-141,-51,0))
| |
| 252 | prt39.Material="Slate" | |
| 253 | local prt40=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Part40",vt(502,100,220),BasicCFrame*cf(0,-51,141))
| |
| 254 | prt40.Material="Slate" | |
| 255 | local prt41=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Part41",vt(502,100,220),BasicCFrame*cf(0,-51,-141))
| |
| 256 | prt41.Material="Slate" | |
| 257 | local prt42=part(3,modelzorz,0,0.5,BrickColor.new("Bright blue"),"Part42",vt(20,200,20),BasicCFrame*cf(0,100,225))
| |
| 258 | prt42.CanCollide=false | |
| 259 | local prt43=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part43",vt(80,5,80),BasicCFrame*cf(0,200,225))
| |
| 260 | prt43.Material="Wood" | |
| 261 | local prt44=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part44",vt(40,10,40),BasicCFrame*cf(0,200,225))
| |
| 262 | 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())))
| |
| 263 | prt45.Material="Wood" | |
| 264 | 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())))
| |
| 265 | prt46.Material="Wood" | |
| 266 | 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())))
| |
| 267 | prt47.Material="Wood" | |
| 268 | local prt48=part(3,modelzorz,0,0.5,BrickColor.new("Bright blue"),"Part48",vt(20,20,20),prt43.CFrame*cf(0,5,0))
| |
| 269 | prt48.CanCollide=false | |
| 270 | local prt49=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part49",vt(1,1,95),prt43.CFrame*cf(12,2,87))
| |
| 271 | prt49.Material="Wood" | |
| 272 | local prt50=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part49",vt(1,1,95),prt43.CFrame*cf(-12,2,87))
| |
| 273 | prt50.Material="Wood" | |
| 274 | ||
| 275 | local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
| |
| 276 | local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(1,1,1))
| |
| 277 | local msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(1,1,1))
| |
| 278 | local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(1,1,1))
| |
| 279 | local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(1,1,1))
| |
| 280 | local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(1,1,1))
| |
| 281 | local msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(1,1,1))
| |
| 282 | local msh8=mesh("BlockMesh",prt8,"","",vt(0,0,0),vt(1,1,1))
| |
| 283 | local msh9=mesh("BlockMesh",prt9,"","",vt(0,0,0),vt(1,1,1))
| |
| 284 | local msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(1,1,1))
| |
| 285 | local msh11=mesh("BlockMesh",prt11,"","",vt(0,0,0),vt(1,1,1))
| |
| 286 | local msh12=mesh("BlockMesh",prt12,"","",vt(0,0,0),vt(1,1,1))
| |
| 287 | local msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(1,1,1))
| |
| 288 | local msh14=mesh("BlockMesh",prt14,"","",vt(0,0,0),vt(1,1,1))
| |
| 289 | local msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(1,1,1))
| |
| 290 | local msh16=mesh("BlockMesh",prt16,"","",vt(0,0,0),vt(1,1,1))
| |
| 291 | local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(1,1,1))
| |
| 292 | local msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(1,1,1))
| |
| 293 | local msh19=mesh("BlockMesh",prt19,"","",vt(0,0,0),vt(1,1,1))
| |
| 294 | local msh20=mesh("BlockMesh",prt20,"","",vt(0,0,0),vt(1,1,1))
| |
| 295 | local msh21=mesh("BlockMesh",prt21,"","",vt(0,0,0),vt(1,1,1))
| |
| 296 | local msh22=mesh("SpecialMesh",prt22,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(45,10,45))
| |
| 297 | local msh23=mesh("BlockMesh",prt23,"","",vt(0,0,0),vt(1,1,1))
| |
| 298 | local msh24=mesh("BlockMesh",prt24,"","",vt(0,0,0),vt(1,1,1))
| |
| 299 | local msh25=mesh("BlockMesh",prt25,"","",vt(0,0,0),vt(1,1,1))
| |
| 300 | local msh26=mesh("BlockMesh",prt26,"","",vt(0,0,0),vt(1,1,1))
| |
| 301 | local msh27=mesh("BlockMesh",prt27,"","",vt(0,0,0),vt(1,1,1))
| |
| 302 | local msh28=mesh("CylinderMesh",prt28,"","",vt(0,0,0),vt(1,1,1))
| |
| 303 | local msh42=mesh("CylinderMesh",prt42,"","",vt(0,0,0),vt(1,1,1))
| |
| 304 | local msh48=mesh("SpecialMesh",prt48,"Sphere","",vt(0,0,0),vt(1,1,1))
| |
| 305 | ||
| 306 | local basestairprt=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Base Stair Part1",vt(61.9,2,60),cf(130,2,0))
| |
| 307 | local basestairmsh=mesh("BlockMesh",basestairprt,"","",vt(0,0,0),vt(1,1,1))
| |
| 308 | local basestairprt2=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Base Stair Part2",vt(20,100,20),cf(130,50,0))
| |
| 309 | local basestairmsh2=mesh("CylinderMesh",basestairprt2,"","",vt(0,0,0),vt(1,1,1))
| |
| 310 | ||
| 311 | local teleprt=part(3,modelzorz,0,1,BrickColor.new("Black"),"Teleport Part",vt(61,10,59),cf(130,95,0))
| |
| 312 | teleprt.CanCollide=false | |
| 313 | local teleprt2=part(3,modelzorz,0,1,BrickColor.new("Black"),"Teleport Part2",vt(61,10,59),prt23.CFrame*cf(0,6,0))
| |
| 314 | teleprt2.CanCollide=false | |
| 315 | local teleprt3=part(3,modelzorz,0,1,BrickColor.new("Bright blue"),"Teleport Part3",vt(1000,10,1000),BasicCFrame*cf(0,-300,0))
| |
| 316 | teleprt3.CanCollide=false | |
| 317 | ||
| 318 | local skyboxprt=part(3,modelzorz,0,0,BrickColor.new("Black"),"Skybox",vt(1,1,1),BasicCFrame)
| |
| 319 | local skyboxmsh=mesh("SpecialMesh",skyboxprt,"FileMesh","http://www.roblox.com/asset/?id=1527559",vt(0,0,0),vt(-1000,-1000,-1000))
| |
| 320 | skyboxmsh.TextureId="http://www.roblox.com/asset/?id=24824960" | |
| 321 | coroutine.resume(coroutine.create(function() | |
| 322 | while true do | |
| 323 | wait() | |
| 324 | skyboxprt.CFrame=skyboxprt.CFrame*angles(math.pi/math.random(4000,6000),math.pi/math.random(4000,6000),math.pi/math.random(4000,6000)) | |
| 325 | end | |
| 326 | end)) | |
| 327 | for i=1,8 do | |
| 328 | 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)))
| |
| 329 | local treemsh1=mesh("CylinderMesh",tree1,"","",vt(0,0,0),vt(1,1,1))
| |
| 330 | local tree2=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Tree2",vt(15,15,15),tree1.CFrame*cf(0,30,0))
| |
| 331 | tree2.Shape=0 | |
| 332 | tree2.Material="Grass" | |
| 333 | tree2.CFrame=tree1.CFrame*cf(0,10,0) | |
| 334 | 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)))
| |
| 335 | local grassmsh=mesh("SpecialMesh",grass,"FileMesh","http://www.roblox.com/asset/?id=1091940",vt(0,0,0),vt(2,2,2))
| |
| 336 | grassmsh.TextureId="http://www.roblox.com/asset/?id=1091942" | |
| 337 | end | |
| 338 | for i=1,8 do | |
| 339 | 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)))
| |
| 340 | local treemsh1=mesh("CylinderMesh",tree1,"","",vt(0,0,0),vt(1,1,1))
| |
| 341 | local tree2=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Tree2",vt(15,15,15),tree1.CFrame*cf(0,30,0))
| |
| 342 | tree2.Shape=0 | |
| 343 | tree2.Material="Grass" | |
| 344 | tree2.CFrame=tree1.CFrame*cf(0,10,0) | |
| 345 | 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)))
| |
| 346 | local grassmsh=mesh("SpecialMesh",grass,"FileMesh","http://www.roblox.com/asset/?id=1091940",vt(0,0,0),vt(2,2,2))
| |
| 347 | grassmsh.TextureId="http://www.roblox.com/asset/?id=1091942" | |
| 348 | end | |
| 349 | ||
| 350 | con1=teleprt.Touched:connect(function(hit) | |
| 351 | if hit.Parent:findFirstChild("Humanoid")~=nil and teledebounce==false and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 352 | print("Teleported")
| |
| 353 | teledebounce=true | |
| 354 | hit.Parent.Torso.CFrame=prt23.CFrame*cf(0,5,20) | |
| 355 | wait(2) | |
| 356 | teledebounce=false | |
| 357 | end | |
| 358 | end) | |
| 359 | con2=teleprt2.Touched:connect(function(hit) | |
| 360 | if hit.Parent:findFirstChild("Humanoid")~=nil and teledebounce==false and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 361 | print("Teleported")
| |
| 362 | teledebounce=true | |
| 363 | hit.Parent.Torso.CFrame=teleprt.CFrame*cf(0,-5,15) | |
| 364 | wait(2) | |
| 365 | teledebounce=false | |
| 366 | end | |
| 367 | end) | |
| 368 | con3=prt42.Touched:connect(function(hit) | |
| 369 | if hit.Parent:findFirstChild("Humanoid")~=nil and teledebounce2==false and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 370 | print("Teleported to Statue Island.")
| |
| 371 | teledebounce2=true | |
| 372 | Torso=hit.Parent.Torso | |
| 373 | Torso.Anchored=true | |
| 374 | Torso.CFrame=prt42.CFrame*cf(0,-95,0) | |
| 375 | wait(2) | |
| 376 | numb2=0 | |
| 377 | for i=0,20 do | |
| 378 | wait(0) | |
| 379 | Torso.CFrame=prt42.CFrame*cf(0,-95+numb2,0) | |
| 380 | numb2=numb2+10 | |
| 381 | end | |
| 382 | Torso.Anchored=false | |
| 383 | Torso.Velocity=vt(0,200,0) | |
| 384 | wait(2) | |
| 385 | teledebounce2=false | |
| 386 | end | |
| 387 | end) | |
| 388 | con4=prt48.Touched:connect(function(hit) | |
| 389 | if hit.Parent:findFirstChild("Humanoid")~=nil and teledebounce2==false and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 390 | print("Teleported out Statue Island.")
| |
| 391 | teledebounce2=true | |
| 392 | Torso=hit.Parent.Torso | |
| 393 | Torso.Anchored=true | |
| 394 | Torso.CFrame=prt48.CFrame*cf(0,3,0) | |
| 395 | wait(2) | |
| 396 | numb2=0 | |
| 397 | for i=0,20 do | |
| 398 | wait(0) | |
| 399 | Torso.CFrame=prt48.CFrame*cf(0,3-numb2,0) | |
| 400 | numb2=numb2+10 | |
| 401 | end | |
| 402 | Torso.Anchored=false | |
| 403 | wait(2) | |
| 404 | teledebounce2=false | |
| 405 | end | |
| 406 | end) | |
| 407 | con5=teleprt3.Touched:connect(function(hit) | |
| 408 | if hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 409 | print("Fallen Teleport")
| |
| 410 | hit.Parent.Torso.CFrame=teleprt3.CFrame*cf(-1500,-1000,-1500)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 411 | hit.Parent.Humanoid.PlatformStand=true | |
| 412 | end | |
| 413 | end) | |
| 414 | ||
| 415 | for i=0,50 do | |
| 416 | prtsize=math.random(1,20) | |
| 417 | 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)))
| |
| 418 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 419 | coroutine.resume(coroutine.create(function(Part) | |
| 420 | randomnumb=math.random(1,10)+math.random() | |
| 421 | wait(randomnumb) | |
| 422 | while Part.Parent~=nil do | |
| 423 | for i=0,1,0.005 do | |
| 424 | wait() | |
| 425 | Part.Position=Part.Position+vt(0,-0.2,0) | |
| 426 | end | |
| 427 | for i=0,1,0.005 do | |
| 428 | wait() | |
| 429 | Part.Position=Part.Position+vt(0,0.2,0) | |
| 430 | end | |
| 431 | end | |
| 432 | end),prt) | |
| 433 | end | |
| 434 | ||
| 435 | for i=0,15 do | |
| 436 | prtsize=math.random(0,3)+math.random() | |
| 437 | 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)))
| |
| 438 | prt.Material="Grass" | |
| 439 | coroutine.resume(coroutine.create(function(Part) | |
| 440 | randomnumb=math.random(1,10)+math.random() | |
| 441 | wait(randomnumb) | |
| 442 | while Part.Parent~=nil do | |
| 443 | for i=0,1,0.005 do | |
| 444 | wait() | |
| 445 | Part.Position=Part.Position+vt(0,-0.2,0) | |
| 446 | end | |
| 447 | for i=0,1,0.005 do | |
| 448 | wait() | |
| 449 | Part.Position=Part.Position+vt(0,0.2,0) | |
| 450 | end | |
| 451 | end | |
| 452 | end),prt) | |
| 453 | end | |
| 454 | ||
| 455 | count=0 | |
| 456 | for i=1,15 do | |
| 457 | 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())))
| |
| 458 | prt.Material="Wood" | |
| 459 | 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())))
| |
| 460 | prt.Material="Wood" | |
| 461 | 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())))
| |
| 462 | prt.Material="Wood" | |
| 463 | count=count+5.64 | |
| 464 | end | |
| 465 | ||
| 466 | count=0 | |
| 467 | for i=1,15 do | |
| 468 | 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())))
| |
| 469 | prt48.Material="Wood" | |
| 470 | count=count+6 | |
| 471 | end | |
| 472 | ||
| 473 | count=-0.25 | |
| 474 | for i=0,164 do | |
| 475 | 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))
| |
| 476 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 477 | light = Instance.new("PointLight")
| |
| 478 | light.Brightness = .8 | |
| 479 | light.Range = 100 | |
| 480 | light.Parent=prt | |
| 481 | count=count+0.05 | |
| 482 | end | |
| 483 | count=0 | |
| 484 | for i=0,160 do | |
| 485 | 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))
| |
| 486 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 487 | light = Instance.new("PointLight")
| |
| 488 | light.Brightness = .8 | |
| 489 | light.Range = 100 | |
| 490 | light.Parent=prt | |
| 491 | count=count+0.05 | |
| 492 | end | |
| 493 | count=0 | |
| 494 | for i=0,15 do | |
| 495 | local prt=part(3,modelzorz,0,1-count,BrickColor.new("Black"),"Shade",vt(61,1,59),cf(130,70+(count*40),0))
| |
| 496 | prt.CanCollide=false | |
| 497 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 498 | count=count+0.05 | |
| 499 | end | |
| 500 | count=0 | |
| 501 | for i=0,15 do | |
| 502 | local prt=part(3,modelzorz,0,count,BrickColor.new("Black"),"Shade2",vt(61,1,59),prt23.CFrame*cf(0,count*40,0))
| |
| 503 | prt.CanCollide=false | |
| 504 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 505 | count=count+0.05 | |
| 506 | end | |
| 507 | count=0 | |
| 508 | for i=0,15 do | |
| 509 | 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))
| |
| 510 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 511 | count=count+5.13 | |
| 512 | end | |
| 513 | count=0 | |
| 514 | for i=0,15 do | |
| 515 | 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))
| |
| 516 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 517 | count=count+5.13 | |
| 518 | end | |
| 519 | count=5.13 | |
| 520 | for i=0,13 do | |
| 521 | 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))
| |
| 522 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 523 | count=count+5.13 | |
| 524 | end | |
| 525 | count=5.13 | |
| 526 | for i=0,13 do | |
| 527 | 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))
| |
| 528 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
| |
| 529 | count=count+5.13 | |
| 530 | end | |
| 531 | print("Fenrier's Tower Dimension loaded.")
| |
| 532 | --workspace.Fenrier.Torso.CFrame=teleprt2.CFrame*cf(0,150,0) | |
| 533 | -- mediafire | |
| 534 | --[[ | |
| 535 | Copyrighted (C) Fenrier 2013 | |
| 536 | ]] |