reset234567890

Untitled

Sep 12th, 2020
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.35 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 meunomenaoereal!")
  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. --[[
  146. Island Dimension made by Fenrier.
  147. Edit by BonnieKunG1s
  148. ]]
  149. it=Instance.new
  150. vt=Vector3.new
  151. cf=CFrame.new
  152. euler=CFrame.fromEulerAnglesXYZ
  153. angles=CFrame.Angles
  154. teledebounce=false
  155. teledebounce2=false
  156.  
  157. if workspace.Base:findFirstChild("Tower Model",true) ~= nil then
  158. workspace.Base:findFirstChild("Tower Model",true).Parent = nil
  159. end
  160.  
  161.  
  162. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size,cframe)
  163. local fp = it("Part")
  164. fp.formFactor = formfactor
  165. fp.Parent = parent
  166. fp.Reflectance = reflectance
  167. fp.Transparency = transparency
  168. fp.CanCollide = true
  169. fp.Anchored = true
  170. fp.Locked=true
  171. fp.BrickColor = brickcolor
  172. fp.Name = name
  173. fp.Size = size
  174. fp.CFrame = cframe
  175. fp.BottomSurface="Smooth"
  176. fp.TopSurface="Smooth"
  177. fp:BreakJoints()
  178. return fp
  179. end
  180.  
  181. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  182. local mesh = it(Mesh)
  183. mesh.Parent = part
  184. if Mesh=="SpecialMesh" then
  185. mesh.MeshType = meshtype
  186. mesh.MeshId = meshid
  187. end
  188. mesh.Offset=offset
  189. mesh.Scale=scale
  190. return mesh
  191. end
  192.  
  193. function weld(parent,part0,part1,c0)
  194. local weld = it("Weld")
  195. weld.Parent = parent
  196. weld.Part0 = part0
  197. weld.Part1 = part1
  198. weld.C0 = c0
  199. return weld
  200. end
  201.  
  202. local modelzorz = Instance.new("Model")
  203. modelzorz.Parent = workspace.Base
  204. modelzorz.Name = "Tower Model"
  205. script.Parent=modelzorz
  206.  
  207. local prt1=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part1",vt(2,100,20),cf(100,50,20))
  208. local prt2=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part2",vt(2,100,20),cf(100,50,-20))
  209. local prt3=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part3",vt(2,80,20),cf(100,60,0))
  210. 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))
  211. 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))
  212. local prt6=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part6",vt(2,100,60),cf(160,50,0))
  213. local prt7=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part7",vt(80,2,80),cf(130,100,0))
  214. local prt8=part(3,modelzorz,0,0,BrickColor.new("Br. yellowish green"),"Part8",vt(20,3,20),cf(150,100,0))
  215. local prt9=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part9",vt(3,3,79.99),cf(91.51,101,0))
  216. local prt10=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part10",vt(3,3,79.99),cf(168.49,101,0))
  217. 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))
  218. 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))
  219. local prt13=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part13",vt(2,20,20),cf(100,110,20))
  220. local prt14=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part14",vt(2,20,20),cf(100,110,-20))
  221. 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))
  222. 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))
  223. local prt17=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part17",vt(2,20,20),cf(160,110,20))
  224. local prt18=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part18",vt(2,20,20),cf(160,110,-20))
  225. 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))
  226. 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))
  227. local prt21=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part21",vt(61.9,2,60),cf(130,120,0))
  228. local prt22=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part22",vt(60,2,60),cf(130,128,0))
  229. local prt23=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part23",vt(60,2,60),cf(1500,1500,1500))
  230. local prt24=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part24",vt(2,100,60),prt23.CFrame*cf(-30,50,0))
  231. local prt25=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part25",vt(2,100,60),prt23.CFrame*cf(30,50,0))
  232. 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))
  233. 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))
  234. local prt28=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part28",vt(20,100,20),prt23.CFrame*cf(0,50,0))
  235. BasicCFrame=prt28.CFrame*cf(0,50,0)
  236. local prt29=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part29",vt(199,2,62),BasicCFrame*cf(130.5,0,0))
  237. prt29.Material="Grass"
  238. local prt30=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part30",vt(199,2,62),BasicCFrame*cf(-130.5,0,0))
  239. prt30.Material="Grass"
  240. local prt31=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part31",vt(460,2,200),BasicCFrame*cf(0,0,131))
  241. prt31.Material="Grass"
  242. local prt32=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part32",vt(460,2,200),BasicCFrame*cf(0,0,-131))
  243. prt32.Material="Grass"
  244. local prt33=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part33",vt(50,2.2,200),BasicCFrame*cf(0,0,-131))
  245. local prt34=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part34",vt(50,2.2,200),BasicCFrame*cf(0,0,131))
  246. local prt35=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part35",vt(35,2.2,62),BasicCFrame*cf(-7.5,0,0))
  247. local prt35b=part(3,modelzorz,0,0,BrickColor.new("Reddish brown"),"Part35b",vt(15,2.2,31),BasicCFrame*cf(17.5,0,-15.5))
  248. local prt36=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part36",vt(60,2,30),BasicCFrame*cf(0,-1,-15))
  249. 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))
  250. local prt38=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Part38",vt(220,100,62),BasicCFrame*cf(141,-51,0))
  251. prt38.Material="Slate"
  252. local prt39=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Part39",vt(220,100,62),BasicCFrame*cf(-141,-51,0))
  253. prt39.Material="Slate"
  254. local prt40=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Part40",vt(502,100,220),BasicCFrame*cf(0,-51,141))
  255. prt40.Material="Slate"
  256. local prt41=part(3,modelzorz,0,0,BrickColor.new("Earth green"),"Part41",vt(502,100,220),BasicCFrame*cf(0,-51,-141))
  257. prt41.Material="Slate"
  258. local prt42=part(3,modelzorz,0,0.5,BrickColor.new("Bright blue"),"Part42",vt(20,200,20),BasicCFrame*cf(0,100,225))
  259. prt42.CanCollide=false
  260. local prt43=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part43",vt(80,5,80),BasicCFrame*cf(0,200,225))
  261. prt43.Material="Wood"
  262. local prt44=part(3,modelzorz,0,0,BrickColor.new("Medium stone grey"),"Part44",vt(40,10,40),BasicCFrame*cf(0,200,225))
  263. 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())))
  264. prt45.Material="Wood"
  265. 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())))
  266. prt46.Material="Wood"
  267. 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())))
  268. prt47.Material="Wood"
  269. local prt48=part(3,modelzorz,0,0.5,BrickColor.new("Bright blue"),"Part48",vt(20,20,20),prt43.CFrame*cf(0,5,0))
  270. prt48.CanCollide=false
  271. local prt49=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part49",vt(1,1,95),prt43.CFrame*cf(12,2,87))
  272. prt49.Material="Wood"
  273. local prt50=part(3,modelzorz,0,0,BrickColor.new("Dusty Rose"),"Part49",vt(1,1,95),prt43.CFrame*cf(-12,2,87))
  274. prt50.Material="Wood"
  275.  
  276. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  277. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(1,1,1))
  278. local msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(1,1,1))
  279. local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(1,1,1))
  280. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(1,1,1))
  281. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(1,1,1))
  282. local msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(1,1,1))
  283. local msh8=mesh("BlockMesh",prt8,"","",vt(0,0,0),vt(1,1,1))
  284. local msh9=mesh("BlockMesh",prt9,"","",vt(0,0,0),vt(1,1,1))
  285. local msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(1,1,1))
  286. local msh11=mesh("BlockMesh",prt11,"","",vt(0,0,0),vt(1,1,1))
  287. local msh12=mesh("BlockMesh",prt12,"","",vt(0,0,0),vt(1,1,1))
  288. local msh13=mesh("BlockMesh",prt13,"","",vt(0,0,0),vt(1,1,1))
  289. local msh14=mesh("BlockMesh",prt14,"","",vt(0,0,0),vt(1,1,1))
  290. local msh15=mesh("BlockMesh",prt15,"","",vt(0,0,0),vt(1,1,1))
  291. local msh16=mesh("BlockMesh",prt16,"","",vt(0,0,0),vt(1,1,1))
  292. local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(1,1,1))
  293. local msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(1,1,1))
  294. local msh19=mesh("BlockMesh",prt19,"","",vt(0,0,0),vt(1,1,1))
  295. local msh20=mesh("BlockMesh",prt20,"","",vt(0,0,0),vt(1,1,1))
  296. local msh21=mesh("BlockMesh",prt21,"","",vt(0,0,0),vt(1,1,1))
  297. local msh22=mesh("SpecialMesh",prt22,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(45,10,45))
  298. local msh23=mesh("BlockMesh",prt23,"","",vt(0,0,0),vt(1,1,1))
  299. local msh24=mesh("BlockMesh",prt24,"","",vt(0,0,0),vt(1,1,1))
  300. local msh25=mesh("BlockMesh",prt25,"","",vt(0,0,0),vt(1,1,1))
  301. local msh26=mesh("BlockMesh",prt26,"","",vt(0,0,0),vt(1,1,1))
  302. local msh27=mesh("BlockMesh",prt27,"","",vt(0,0,0),vt(1,1,1))
  303. local msh28=mesh("CylinderMesh",prt28,"","",vt(0,0,0),vt(1,1,1))
  304. local msh42=mesh("CylinderMesh",prt42,"","",vt(0,0,0),vt(1,1,1))
  305. local msh48=mesh("SpecialMesh",prt48,"Sphere","",vt(0,0,0),vt(1,1,1))
  306.  
  307. local basestairprt=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Base Stair Part1",vt(61.9,2,60),cf(130,2,0))
  308. local basestairmsh=mesh("BlockMesh",basestairprt,"","",vt(0,0,0),vt(1,1,1))
  309. local basestairprt2=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Base Stair Part2",vt(20,100,20),cf(130,50,0))
  310. local basestairmsh2=mesh("CylinderMesh",basestairprt2,"","",vt(0,0,0),vt(1,1,1))
  311.  
  312. local teleprt=part(3,modelzorz,0,1,BrickColor.new("Black"),"Teleport Part",vt(61,10,59),cf(130,95,0))
  313. teleprt.CanCollide=false
  314. local teleprt2=part(3,modelzorz,0,1,BrickColor.new("Black"),"Teleport Part2",vt(61,10,59),prt23.CFrame*cf(0,6,0))
  315. teleprt2.CanCollide=false
  316. local teleprt3=part(3,modelzorz,0,1,BrickColor.new("Bright blue"),"Teleport Part3",vt(1000,10,1000),BasicCFrame*cf(0,-300,0))
  317. teleprt3.CanCollide=false
  318.  
  319. local skyboxprt=part(3,modelzorz,0,0,BrickColor.new("Black"),"Skybox",vt(1,1,1),BasicCFrame)
  320. local skyboxmsh=mesh("SpecialMesh",skyboxprt,"FileMesh","http://www.roblox.com/asset/?id=1527559",vt(0,0,0),vt(-1000,-1000,-1000))
  321. skyboxmsh.TextureId="http://www.roblox.com/asset/?id=24824960"
  322. coroutine.resume(coroutine.create(function()
  323. while true do
  324. wait()
  325. skyboxprt.CFrame=skyboxprt.CFrame*angles(math.pi/math.random(4000,6000),math.pi/math.random(4000,6000),math.pi/math.random(4000,6000))
  326. end
  327. end))
  328. for i=1,8 do
  329. 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)))
  330. local treemsh1=mesh("CylinderMesh",tree1,"","",vt(0,0,0),vt(1,1,1))
  331. local tree2=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Tree2",vt(15,15,15),tree1.CFrame*cf(0,30,0))
  332. tree2.Shape=0
  333. tree2.Material="Grass"
  334. tree2.CFrame=tree1.CFrame*cf(0,10,0)
  335. 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)))
  336. local grassmsh=mesh("SpecialMesh",grass,"FileMesh","http://www.roblox.com/asset/?id=1091940",vt(0,0,0),vt(2,2,2))
  337. grassmsh.TextureId="http://www.roblox.com/asset/?id=1091942"
  338. end
  339. for i=1,8 do
  340. 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)))
  341. local treemsh1=mesh("CylinderMesh",tree1,"","",vt(0,0,0),vt(1,1,1))
  342. local tree2=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Tree2",vt(15,15,15),tree1.CFrame*cf(0,30,0))
  343. tree2.Shape=0
  344. tree2.Material="Grass"
  345. tree2.CFrame=tree1.CFrame*cf(0,10,0)
  346. 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)))
  347. local grassmsh=mesh("SpecialMesh",grass,"FileMesh","http://www.roblox.com/asset/?id=1091940",vt(0,0,0),vt(2,2,2))
  348. grassmsh.TextureId="http://www.roblox.com/asset/?id=1091942"
  349. end
  350.  
  351. con1=teleprt.Touched:connect(function(hit)
  352. if hit.Parent:findFirstChild("Humanoid")~=nil and teledebounce==false and hit.Parent:FindFirstChild("Torso")~=nil then
  353. print("Teleported")
  354. teledebounce=true
  355. hit.Parent.Torso.CFrame=prt23.CFrame*cf(0,5,20)
  356. wait(2)
  357. teledebounce=false
  358. end
  359. end)
  360. con2=teleprt2.Touched:connect(function(hit)
  361. if hit.Parent:findFirstChild("Humanoid")~=nil and teledebounce==false and hit.Parent:FindFirstChild("Torso")~=nil then
  362. print("Teleported")
  363. teledebounce=true
  364. hit.Parent.Torso.CFrame=teleprt.CFrame*cf(0,-5,15)
  365. wait(2)
  366. teledebounce=false
  367. end
  368. end)
  369. con3=prt42.Touched:connect(function(hit)
  370. if hit.Parent:findFirstChild("Humanoid")~=nil and teledebounce2==false and hit.Parent:FindFirstChild("Torso")~=nil then
  371. print("Teleported to Statue Island.")
  372. teledebounce2=true
  373. Torso=hit.Parent.Torso
  374. Torso.Anchored=true
  375. Torso.CFrame=prt42.CFrame*cf(0,-95,0)
  376. wait(2)
  377. numb2=0
  378. for i=0,20 do
  379. wait(0)
  380. Torso.CFrame=prt42.CFrame*cf(0,-95+numb2,0)
  381. numb2=numb2+10
  382. end
  383. Torso.Anchored=false
  384. Torso.Velocity=vt(0,200,0)
  385. wait(2)
  386. teledebounce2=false
  387. end
  388. end)
  389. con4=prt48.Touched:connect(function(hit)
  390. if hit.Parent:findFirstChild("Humanoid")~=nil and teledebounce2==false and hit.Parent:FindFirstChild("Torso")~=nil then
  391. print("Teleported out Statue Island.")
  392. teledebounce2=true
  393. Torso=hit.Parent.Torso
  394. Torso.Anchored=true
  395. Torso.CFrame=prt48.CFrame*cf(0,3,0)
  396. wait(2)
  397. numb2=0
  398. for i=0,20 do
  399. wait(0)
  400. Torso.CFrame=prt48.CFrame*cf(0,3-numb2,0)
  401. numb2=numb2+10
  402. end
  403. Torso.Anchored=false
  404. wait(2)
  405. teledebounce2=false
  406. end
  407. end)
  408. con5=teleprt3.Touched:connect(function(hit)
  409. if hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
  410. print("Fallen Teleport")
  411. hit.Parent.Torso.CFrame=teleprt3.CFrame*cf(-1500,-1000,-1500)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  412. hit.Parent.Humanoid.PlatformStand=true
  413. end
  414. end)
  415.  
  416. for i=0,50 do
  417. prtsize=math.random(1,20)
  418. 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)))
  419. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
  420. coroutine.resume(coroutine.create(function(Part)
  421. randomnumb=math.random(1,10)+math.random()
  422. wait(randomnumb)
  423. while Part.Parent~=nil do
  424. for i=0,1,0.005 do
  425. wait()
  426. Part.Position=Part.Position+vt(0,-0.2,0)
  427. end
  428. for i=0,1,0.005 do
  429. wait()
  430. Part.Position=Part.Position+vt(0,0.2,0)
  431. end
  432. end
  433. end),prt)
  434. end
  435.  
  436. for i=0,15 do
  437. prtsize=math.random(0,3)+math.random()
  438. 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)))
  439. prt.Material="Grass"
  440. coroutine.resume(coroutine.create(function(Part)
  441. randomnumb=math.random(1,10)+math.random()
  442. wait(randomnumb)
  443. while Part.Parent~=nil do
  444. for i=0,1,0.005 do
  445. wait()
  446. Part.Position=Part.Position+vt(0,-0.2,0)
  447. end
  448. for i=0,1,0.005 do
  449. wait()
  450. Part.Position=Part.Position+vt(0,0.2,0)
  451. end
  452. end
  453. end),prt)
  454. end
  455.  
  456. count=0
  457. for i=1,15 do
  458. 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())))
  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. 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())))
  463. prt.Material="Wood"
  464. count=count+5.64
  465. end
  466.  
  467. count=0
  468. for i=1,15 do
  469. 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())))
  470. prt48.Material="Wood"
  471. count=count+6
  472. end
  473.  
  474. count=-0.25
  475. for i=0,164 do
  476. 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))
  477. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
  478. light = Instance.new("PointLight")
  479. light.Brightness = .8
  480. light.Range = 100
  481. light.Parent=prt
  482. count=count+0.05
  483. end
  484. count=0
  485. for i=0,160 do
  486. 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))
  487. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
  488. light = Instance.new("PointLight")
  489. light.Brightness = .8
  490. light.Range = 100
  491. light.Parent=prt
  492. count=count+0.05
  493. end
  494. count=0
  495. for i=0,15 do
  496. local prt=part(3,modelzorz,0,1-count,BrickColor.new("Black"),"Shade",vt(61,1,59),cf(130,70+(count*40),0))
  497. prt.CanCollide=false
  498. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
  499. count=count+0.05
  500. end
  501. count=0
  502. for i=0,15 do
  503. local prt=part(3,modelzorz,0,count,BrickColor.new("Black"),"Shade2",vt(61,1,59),prt23.CFrame*cf(0,count*40,0))
  504. prt.CanCollide=false
  505. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
  506. count=count+0.05
  507. end
  508. count=0
  509. for i=0,15 do
  510. 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))
  511. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
  512. count=count+5.13
  513. end
  514. count=0
  515. for i=0,15 do
  516. 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))
  517. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
  518. count=count+5.13
  519. end
  520. count=5.13
  521. for i=0,13 do
  522. 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))
  523. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
  524. count=count+5.13
  525. end
  526. count=5.13
  527. for i=0,13 do
  528. 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))
  529. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(1,1,1))
  530. count=count+5.13
  531. end
  532. print("Fenrier's Tower Dimension loaded.")
  533. --workspace.Fenrier.Torso.CFrame=teleprt2.CFrame*cf(0,150,0)
  534. -- mediafire
  535. --[[
  536. Copyrighted (C) Fenrier 2013
  537. ]]
Add Comment
Please, Sign In to add comment