Advertisement
doryna2281337

Untitled

Aug 20th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.78 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,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. --Converted with ttyyuu12345's model to script plugin v4
  85. function sandbox(var,func)
  86. local env = getfenv(func)
  87. local newenv = setmetatable({},{
  88. __index = function(self,k)
  89. if k=="script" then
  90. return var
  91. else
  92. return env[k]
  93. end
  94. end,
  95. })
  96. setfenv(func,newenv)
  97. return func
  98. end
  99. cors = {}
  100. mas = Instance.new("Model",game:GetService("Lighting"))
  101. Sky0 = Instance.new("Sky")
  102. Sky0.Name = "Stardust Speedway (good future) Skybox"
  103. Sky0.Parent = mas
  104. Sky0.CelestialBodiesShown = false
  105. Sky0.SkyboxBk = "http://www.roblox.com/asset/?id=160314837"
  106. Sky0.SkyboxDn = "http://www.roblox.com/asset/?id=160328515"
  107. Sky0.SkyboxFt = "http://www.roblox.com/asset/?id=160314896"
  108. Sky0.SkyboxLf = "http://www.roblox.com/asset/?id=160314866"
  109. Sky0.SkyboxRt = "http://www.roblox.com/asset/?id=160314805"
  110. Sky0.SkyboxUp = "http://www.roblox.com/asset/?id=160314977"
  111. Sky0.StarCount = 0
  112. for i,v in pairs(mas:GetChildren()) do
  113. v.Parent = game:GetService("Lighting")
  114. pcall(function() v:MakeJoints() end)
  115. end
  116. mas:Destroy()
  117. for i,v in pairs(cors) do
  118. spawn(function()
  119. pcall(v)
  120. end)
  121. end
  122.  
  123. --Converted with ttyyuu12345's model to script plugin v4
  124. function sandbox(var,func)
  125. local env = getfenv(func)
  126. local newenv = setmetatable({},{
  127. __index = function(self,k)
  128. if k=="script" then
  129. return var
  130. else
  131. return env[k]
  132. end
  133. end,
  134. })
  135. setfenv(func,newenv)
  136. return func
  137. end
  138. cors = {}
  139. mas = Instance.new("Model",game:GetService("Lighting"))
  140. Model0 = Instance.new("Model")
  141. Model1 = Instance.new("Model")
  142. UnionOperation2 = Instance.new("UnionOperation")
  143. UnionOperation3 = Instance.new("UnionOperation")
  144. Decal4 = Instance.new("Decal")
  145. Decal5 = Instance.new("Decal")
  146. Decal6 = Instance.new("Decal")
  147. Decal7 = Instance.new("Decal")
  148. Decal8 = Instance.new("Decal")
  149. Decal9 = Instance.new("Decal")
  150. Decal10 = Instance.new("Decal")
  151. Decal11 = Instance.new("Decal")
  152. Decal12 = Instance.new("Decal")
  153. Decal13 = Instance.new("Decal")
  154. SpotLight14 = Instance.new("SpotLight")
  155. Script15 = Instance.new("Script")
  156. Camera16 = Instance.new("Camera")
  157. Part17 = Instance.new("Part")
  158. Model0.Parent = mas
  159. Model1.Name = "V A P O R W A V E"
  160. Model1.Parent = Model0
  161. UnionOperation2.Parent = Model1
  162. UnionOperation2.CFrame = CFrame.new(-329.258545, 186.240417, -2.00901389, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  163. UnionOperation2.Position = Vector3.new(-329.258545, 186.240417, -2.00901389)
  164. UnionOperation2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  165. UnionOperation2.Size = Vector3.new(10.9342766, 103.87542, 103.87545)
  166. UnionOperation2.Anchored = true
  167. UnionOperation2.BrickColor = BrickColor.new("Really black")
  168. UnionOperation2.Material = Enum.Material.Neon
  169. UnionOperation2.brickColor = BrickColor.new("Really black")
  170. UnionOperation2.UsePartColor = true
  171. UnionOperation3.Parent = Model1
  172. UnionOperation3.CFrame = CFrame.new(-328.137634, 191.789581, -7.12074614, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  173. UnionOperation3.Position = Vector3.new(-328.137634, 191.789581, -7.12074614)
  174. UnionOperation3.Color = Color3.new(0.854902, 0.521569, 0.254902)
  175. UnionOperation3.Size = Vector3.new(10.9342766, 103.87542, 103.87545)
  176. UnionOperation3.Anchored = true
  177. UnionOperation3.BrickColor = BrickColor.new("Bright orange")
  178. UnionOperation3.Material = Enum.Material.Neon
  179. UnionOperation3.brickColor = BrickColor.new("Bright orange")
  180. UnionOperation3.UsePartColor = true
  181. Decal4.Name = "White Fade Up"
  182. Decal4.Parent = UnionOperation3
  183. Decal4.Texture = "http://www.roblox.com/asset/?id=2288875354"
  184. Decal4.Transparency = 0.20000000298023
  185. Decal4.Face = Enum.NormalId.Right
  186. Decal4.Color3 = Color3.new(1, 0.333333, 1)
  187. Decal5.Name = "White Fade Up"
  188. Decal5.Parent = UnionOperation3
  189. Decal5.Texture = "http://www.roblox.com/asset/?id=2288875354"
  190. Decal5.Transparency = 0.20000000298023
  191. Decal5.Color3 = Color3.new(1, 0.333333, 1)
  192. Decal6.Name = "White Fade Up"
  193. Decal6.Parent = UnionOperation3
  194. Decal6.Texture = "http://www.roblox.com/asset/?id=2288875354"
  195. Decal6.Transparency = 0.20000000298023
  196. Decal6.Face = Enum.NormalId.Left
  197. Decal6.Color3 = Color3.new(1, 0.333333, 1)
  198. Decal7.Name = "White Fade Up"
  199. Decal7.Parent = UnionOperation3
  200. Decal7.Texture = "http://www.roblox.com/asset/?id=2288875354"
  201. Decal7.Transparency = 0.20000000298023
  202. Decal7.Face = Enum.NormalId.Back
  203. Decal7.Color3 = Color3.new(1, 0.333333, 1)
  204. Decal8.Name = "white_fade"
  205. Decal8.Parent = UnionOperation3
  206. Decal8.Texture = "http://www.roblox.com/asset/?id=2070896512"
  207. Decal8.Transparency = 0.20000000298023
  208. Decal8.Face = Enum.NormalId.Bottom
  209. Decal8.Color3 = Color3.new(0.333333, 0, 0.498039)
  210. Decal9.Name = "White Fade Up"
  211. Decal9.Parent = UnionOperation3
  212. Decal9.Texture = "http://www.roblox.com/asset/?id=2288875354"
  213. Decal9.Transparency = 0.20000000298023
  214. Decal9.Face = Enum.NormalId.Right
  215. Decal9.Color3 = Color3.new(1, 0.333333, 1)
  216. Decal10.Name = "White Fade Up"
  217. Decal10.Parent = UnionOperation3
  218. Decal10.Texture = "http://www.roblox.com/asset/?id=2288875354"
  219. Decal10.Transparency = 0.20000000298023
  220. Decal10.Face = Enum.NormalId.Left
  221. Decal10.Color3 = Color3.new(1, 0.333333, 1)
  222. Decal11.Name = "White Fade Up"
  223. Decal11.Parent = UnionOperation3
  224. Decal11.Texture = "http://www.roblox.com/asset/?id=2288875354"
  225. Decal11.Transparency = 0.20000000298023
  226. Decal11.Face = Enum.NormalId.Back
  227. Decal11.Color3 = Color3.new(1, 0.333333, 1)
  228. Decal12.Name = "White Fade Up"
  229. Decal12.Parent = UnionOperation3
  230. Decal12.Texture = "http://www.roblox.com/asset/?id=2288875354"
  231. Decal12.Transparency = 0.20000000298023
  232. Decal12.Color3 = Color3.new(1, 0.333333, 1)
  233. Decal13.Name = "white_fade"
  234. Decal13.Parent = UnionOperation3
  235. Decal13.Texture = "http://www.roblox.com/asset/?id=2070896512"
  236. Decal13.Transparency = 0.20000000298023
  237. Decal13.Face = Enum.NormalId.Top
  238. Decal13.Color3 = Color3.new(1, 0.333333, 1)
  239. SpotLight14.Parent = UnionOperation3
  240. SpotLight14.Color = Color3.new(0, 0, 1)
  241. SpotLight14.Face = Enum.NormalId.Bottom
  242. SpotLight14.Brightness = 40
  243. Script15.Parent = Model1
  244. table.insert(cors,sandbox(Script15,function()
  245. --This model was created by Dr_Kylak--
  246.  
  247. --https://www.roblox.com/users/51636134/profile--
  248.  
  249. -- (: --
  250. end))
  251. Camera16.Name = "ThumbnailCamera"
  252. Camera16.Parent = Model1
  253. Camera16.CFrame = CFrame.new(7.2665081, 66.8978577, 148.874191, 0.0179226417, 0.0313822776, 0.999346852, 1.16415308e-10, 0.999507427, -0.0313873179, -0.999839365, 0.000562543748, 0.0179138128)
  254. Camera16.CoordinateFrame = CFrame.new(7.2665081, 66.8978577, 148.874191, 0.0179226417, 0.0313822776, 0.999346852, 1.16415308e-10, 0.999507427, -0.0313873179, -0.999839365, 0.000562543748, 0.0179138128)
  255. Camera16.Focus = CFrame.new(5.26781368, 66.9606323, 148.838364, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  256. Camera16.focus = CFrame.new(5.26781368, 66.9606323, 148.838364, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  257. Part17.Parent = Model0
  258. Part17.CFrame = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  259. Part17.Position = Vector3.new(0, 0.5, 0)
  260. Part17.Color = Color3.new(0.419608, 0.196078, 0.486275)
  261. Part17.Size = Vector3.new(512, 1, 512)
  262. Part17.BottomSurface = Enum.SurfaceType.Smooth
  263. Part17.BrickColor = BrickColor.new("Bright violet")
  264. Part17.Material = Enum.Material.Neon
  265. Part17.TopSurface = Enum.SurfaceType.Smooth
  266. Part17.brickColor = BrickColor.new("Bright violet")
  267. for i,v in pairs(mas:GetChildren()) do
  268. v.Parent = workspace
  269. pcall(function() v:MakeJoints() end)
  270. end
  271. mas:Destroy()
  272. for i,v in pairs(cors) do
  273. spawn(function()
  274. pcall(v)
  275. end)
  276. end
  277.  
  278. --Converted with ttyyuu12345's model to script plugin v4
  279. function sandbox(var,func)
  280. local env = getfenv(func)
  281. local newenv = setmetatable({},{
  282. __index = function(self,k)
  283. if k=="script" then
  284. return var
  285. else
  286. return env[k]
  287. end
  288. end,
  289. })
  290. setfenv(func,newenv)
  291. return func
  292. end
  293. cors = {}
  294. mas = Instance.new("Model",game:GetService("Lighting"))
  295. Model0 = Instance.new("Model")
  296. Model1 = Instance.new("Model")
  297. UnionOperation2 = Instance.new("UnionOperation")
  298. UnionOperation3 = Instance.new("UnionOperation")
  299. Model4 = Instance.new("Model")
  300. UnionOperation5 = Instance.new("UnionOperation")
  301. UnionOperation6 = Instance.new("UnionOperation")
  302. Part7 = Instance.new("Part")
  303. Model0.Parent = mas
  304. Model1.Name = "Vaporwave Sun"
  305. Model1.Parent = Model0
  306. UnionOperation2.Parent = Model1
  307. UnionOperation2.CFrame = CFrame.new(527.850342, 33.2403488, 129.384979, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  308. UnionOperation2.Position = Vector3.new(527.850342, 33.2403488, 129.384979)
  309. UnionOperation2.Color = Color3.new(1, 0, 0.74902)
  310. UnionOperation2.Transparency = 0.20000000298023
  311. UnionOperation2.Size = Vector3.new(10.6293612, 20.4806557, 73.0733948)
  312. UnionOperation2.Anchored = true
  313. UnionOperation2.BrickColor = BrickColor.new("Hot pink")
  314. UnionOperation2.Material = Enum.Material.Glass
  315. UnionOperation2.brickColor = BrickColor.new("Hot pink")
  316. UnionOperation3.Parent = Model1
  317. UnionOperation3.CFrame = CFrame.new(527.980042, 78.0432434, 129.384979, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  318. UnionOperation3.Position = Vector3.new(527.980042, 78.0432434, 129.384979)
  319. UnionOperation3.Color = Color3.new(1, 0.690196, 0)
  320. UnionOperation3.Transparency = 0.10000000149012
  321. UnionOperation3.Size = Vector3.new(10.8886662, 62.5734863, 88.4358215)
  322. UnionOperation3.Anchored = true
  323. UnionOperation3.BrickColor = BrickColor.new("Deep orange")
  324. UnionOperation3.Material = Enum.Material.Glass
  325. UnionOperation3.brickColor = BrickColor.new("Deep orange")
  326. Model4.Name = "Vaporwave Sun"
  327. Model4.Parent = Model0
  328. UnionOperation5.Parent = Model4
  329. UnionOperation5.CFrame = CFrame.new(538.850342, 33.5703354, 129.384979, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  330. UnionOperation5.Position = Vector3.new(538.850342, 33.5703354, 129.384979)
  331. UnionOperation5.Color = Color3.new(1, 0, 0.74902)
  332. UnionOperation5.Size = Vector3.new(10.6293612, 20.4806557, 73.0733948)
  333. UnionOperation5.Anchored = true
  334. UnionOperation5.BrickColor = BrickColor.new("Hot pink")
  335. UnionOperation5.Material = Enum.Material.Neon
  336. UnionOperation5.brickColor = BrickColor.new("Hot pink")
  337. UnionOperation6.Parent = Model4
  338. UnionOperation6.CFrame = CFrame.new(538.980042, 78.3731995, 129.384979, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  339. UnionOperation6.Position = Vector3.new(538.980042, 78.3731995, 129.384979)
  340. UnionOperation6.Color = Color3.new(1, 0.690196, 0)
  341. UnionOperation6.Size = Vector3.new(10.8886662, 62.5734863, 88.4358215)
  342. UnionOperation6.Anchored = true
  343. UnionOperation6.BrickColor = BrickColor.new("Deep orange")
  344. UnionOperation6.Material = Enum.Material.Neon
  345. UnionOperation6.brickColor = BrickColor.new("Deep orange")
  346. Part7.Parent = Model0
  347. Part7.CFrame = CFrame.new(-39.5, 0.5, 54.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  348. Part7.Position = Vector3.new(-39.5, 0.5, 54.5)
  349. Part7.Color = Color3.new(0.419608, 0.196078, 0.486275)
  350. Part7.Size = Vector3.new(923, 1, 927)
  351. Part7.BottomSurface = Enum.SurfaceType.Smooth
  352. Part7.BrickColor = BrickColor.new("Bright violet")
  353. Part7.Material = Enum.Material.Neon
  354. Part7.TopSurface = Enum.SurfaceType.Smooth
  355. Part7.brickColor = BrickColor.new("Bright violet")
  356. for i,v in pairs(mas:GetChildren()) do
  357. v.Parent = workspace
  358. pcall(function() v:MakeJoints() end)
  359. end
  360. mas:Destroy()
  361. for i,v in pairs(cors) do
  362. spawn(function()
  363. pcall(v)
  364. end)
  365. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement