Advertisement
Void_scripter0

island

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