SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("ARE U FUCKING DUMB ITS h/ dumbass") end | |
3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("the c00l sky never makes a bad look am i right?- coldas")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
6 | -----script By NewBleuguy On Youtube-------- | |
7 | function sandbox(var,func) | |
8 | local env = getfenv(func) | |
9 | local newenv = setmetatable({},{ | |
10 | __index = function(self,k) | |
11 | if k=="script" then | |
12 | return var | |
13 | else | |
14 | return env[k] | |
15 | end | |
16 | end, | |
17 | }) | |
18 | setfenv(func,newenv) | |
19 | return func | |
20 | end | |
21 | cors = {} | |
22 | mas = Instance.new("Model",game:GetService("Lighting")) | |
23 | Model0 = Instance.new("Model") | |
24 | Part1 = Instance.new("Part") | |
25 | SpecialMesh2 = Instance.new("SpecialMesh") | |
26 | Script3 = Instance.new("Script") | |
27 | Weld4 = Instance.new("Weld") | |
28 | Script5 = Instance.new("Script") | |
29 | Sound6 = Instance.new("Sound") | |
30 | Sound7 = Instance.new("Sound") | |
31 | Sound8 = Instance.new("Sound") | |
32 | Script9 = Instance.new("Script") | |
33 | Sound10 = Instance.new("Sound") | |
34 | Script11 = Instance.new("Script") | |
35 | Sound12 = Instance.new("Sound") | |
36 | Sound13 = Instance.new("Sound") | |
37 | Sound14 = Instance.new("Sound") | |
38 | Model0.Name = "Advanced Thunderstorm Simulator" | |
39 | Model0.Parent = mas | |
40 | Part1.Name = "Head" | |
41 | Part1.Parent = Model0 | |
42 | Part1.BrickColor = BrickColor.new("Dark stone grey") | |
43 | Part1.Rotation = Vector3.new(0, -90, 0) | |
44 | Part1.Anchored = true | |
45 | Part1.Locked = true | |
46 | Part1.Size = Vector3.new(2, 1.20000005, 2) | |
47 | Part1.CFrame = CFrame.new(-8, 0.600001991, -12, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
48 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
49 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
50 | Part1.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
51 | Part1.Position = Vector3.new(-8, 0.600001991, -12) | |
52 | Part1.Orientation = Vector3.new(0, -90, 0) | |
53 | Part1.Color = Color3.new(0.388235, 0.372549, 0.384314) | |
54 | SpecialMesh2.Parent = Part1 | |
55 | SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=1527559" | |
56 | SpecialMesh2.Scale = Vector3.new(-3500, -3500, -3500) | |
57 | SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=1529460" | |
58 | SpecialMesh2.MeshType = Enum.MeshType.FileMesh | |
59 | SpecialMesh2.Scale = Vector3.new(-3500, -3500, -3500) | |
60 | Script3.Name = "Spin" | |
61 | Script3.Parent = Part1 | |
62 | table.insert(cors,sandbox(Script3,function() | |
63 | -- This script rotates the storm meaning NO BREAKING like other stormclouds -Rayblon | |
64 | while true do --Infinite loop | |
65 | wait() --Needed or the game will crash! Put any number (in seconds) in between the ()'s | |
66 | script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) --Rotates the brick. Change the numbers for how fast/slow the brick rotates. | |
67 | --(continued from last line) The higher, the slower. The lower, the faster. Change the 0's to "math.pi/number." Make sure the number ISN'T 0! | |
68 | end --Ends the "while true do" | |
69 | ||
70 | end)) | |
71 | Weld4.Parent = Script3 | |
72 | Script5.Name = "Rayblons Rain Simulator" | |
73 | Script5.Parent = Model0 | |
74 | table.insert(cors,sandbox(Script5,function() | |
75 | while true do | |
76 | wait() -- Lets the computer know that it can take it's time. | |
77 | script.Rain1:Play() | |
78 | wait(4) | |
79 | script.Rain2:play() | |
80 | wait(3) | |
81 | script.Rain3:play() | |
82 | wait(3) | |
83 | ||
84 | ||
85 | end | |
86 | ||
87 | end)) | |
88 | Sound6.Name = "Rain3" | |
89 | Sound6.Parent = Script5 | |
90 | Sound6.Pitch = 0.5 | |
91 | Sound6.SoundId = "http://www.roblox.com/asset/?id=11387922" | |
92 | Sound6.Volume = 1 | |
93 | Sound7.Name = "Rain2" | |
94 | Sound7.Parent = Script5 | |
95 | Sound7.Pitch = 0.60000002384186 | |
96 | Sound7.SoundId = "http://www.roblox.com/asset/?id=11387922" | |
97 | Sound7.Volume = 1 | |
98 | Sound8.Name = "Rain1" | |
99 | Sound8.Parent = Script5 | |
100 | Sound8.Pitch = 0.64999997615814 | |
101 | Sound8.SoundId = "http://www.roblox.com/asset/?id=11387922" | |
102 | Sound8.Volume = 1 | |
103 | Script9.Name = "Lightning/Thunder" | |
104 | Script9.Parent = Model0 | |
105 | table.insert(cors,sandbox(Script9,function() | |
106 | while true do | |
107 | game.Lighting.Brightness = 0 | |
108 | wait(0) | |
109 | game.Lighting.Brightness = 9999999 -- This is the flash from the lightning. | |
110 | wait(0) | |
111 | game.Lighting.Brightness = 0 -- this makes it dark during the lightning flashes! | |
112 | wait(0) | |
113 | game.Lighting.Brightness = 9999999 | |
114 | wait(0) --this is the wait between the flashes and darkness. | |
115 | game.Lighting.Brightness = 0 | |
116 | wait(0) | |
117 | game.Lighting.Brightness = 9999999 | |
118 | wait(0) | |
119 | game.Lighting.Brightness = 0 | |
120 | wait(7) -- How long it takes for the thunder to sound. | |
121 | script.Sound:Play() | |
122 | print("BOOM!!") | |
123 | wait(5) -- The wait between the thunder and next lightning strike | |
124 | game.Lighting.Brightness = 0 | |
125 | wait(0) | |
126 | game.Lighting.Brightness = 9999999 | |
127 | wait(0) | |
128 | game.Lighting.Brightness = 0 | |
129 | wait(0) | |
130 | game.Lighting.Brightness = 9999999 | |
131 | wait(0) | |
132 | game.Lighting.Brightness = 0 | |
133 | wait(0) | |
134 | game.Lighting.Brightness = 9999999 | |
135 | wait(0) | |
136 | game.Lighting.Brightness = 0 | |
137 | wait(10) | |
138 | script.Sound:Play() | |
139 | print("BOOM!!") | |
140 | wait(20) | |
141 | game.Lighting.Brightness = 0 | |
142 | wait(0) | |
143 | game.Lighting.Brightness = 9999999 | |
144 | wait(0) | |
145 | game.Lighting.Brightness = 0 | |
146 | wait(0) | |
147 | game.Lighting.Brightness = 9999999 | |
148 | wait(0) | |
149 | game.Lighting.Brightness = 0 | |
150 | wait(0) | |
151 | game.Lighting.Brightness = 9999999 | |
152 | wait(0) | |
153 | game.Lighting.Brightness = 0 | |
154 | wait(7) | |
155 | script.Sound:Play() | |
156 | print("BOOM!!") | |
157 | wait(5) | |
158 | game.Lighting.Brightness = 0 | |
159 | wait(0) | |
160 | game.Lighting.Brightness = 9999999 | |
161 | wait(0) | |
162 | game.Lighting.Brightness = 0 | |
163 | wait(0) | |
164 | game.Lighting.Brightness = 9999999 | |
165 | wait(0) | |
166 | game.Lighting.Brightness = 0 | |
167 | wait(0) | |
168 | game.Lighting.Brightness = 9999999 | |
169 | wait(0) | |
170 | game.Lighting.Brightness = 0 | |
171 | wait(1) | |
172 | script.Sound:Play() | |
173 | print("BOOM!!") | |
174 | wait(0) | |
175 | game.Lighting.Brightness = 0 | |
176 | wait(0) | |
177 | game.Lighting.Brightness = 9999999 | |
178 | wait(0) | |
179 | game.Lighting.Brightness = 0 | |
180 | wait(0) | |
181 | game.Lighting.Brightness = 9999999 | |
182 | wait(0) | |
183 | game.Lighting.Brightness = 0 | |
184 | wait(0) | |
185 | game.Lighting.Brightness = 9999999 | |
186 | wait(0) | |
187 | game.Lighting.Brightness = 0 | |
188 | wait(1) | |
189 | script.Sound:Play() | |
190 | print("BOOM!!") | |
191 | wait(0) | |
192 | game.Lighting.Brightness = 0 | |
193 | wait(0) | |
194 | game.Lighting.Brightness = 9999999 | |
195 | wait(0) | |
196 | game.Lighting.Brightness = 0 | |
197 | wait(0) | |
198 | game.Lighting.Brightness = 9999999 | |
199 | wait(0) | |
200 | game.Lighting.Brightness = 0 | |
201 | wait(0) | |
202 | game.Lighting.Brightness = 9999999 | |
203 | wait(0) | |
204 | game.Lighting.Brightness = 0 | |
205 | wait(1) | |
206 | script.Sound:Play() | |
207 | print("BOOM!!") | |
208 | wait(0) | |
209 | game.Lighting.Brightness = 0 | |
210 | wait(0) | |
211 | game.Lighting.Brightness = 9999999 | |
212 | wait(0) | |
213 | game.Lighting.Brightness = 0 | |
214 | wait(0) | |
215 | game.Lighting.Brightness = 9999999 | |
216 | wait(0) | |
217 | game.Lighting.Brightness = 0 | |
218 | wait(0) | |
219 | game.Lighting.Brightness = 9999999 | |
220 | wait(0) | |
221 | game.Lighting.Brightness = 0 | |
222 | wait(7) | |
223 | script.Sound:Play() | |
224 | print("BOOM!!") | |
225 | wait(5) | |
226 | end -- This ends the script | |
227 | end)) | |
228 | Sound10.Parent = Script9 | |
229 | Sound10.Pitch = 0.5 | |
230 | Sound10.SoundId = "http://www.roblox.com/asset/?id=12222030" | |
231 | Sound10.Volume = 1 | |
232 | Script11.Name = "Rayblons Wind Simulator" | |
233 | Script11.Parent = Model0 | |
234 | table.insert(cors,sandbox(Script11,function() | |
235 | while true do | |
236 | wait() -- Lets the computer know that it can take it's time. | |
237 | script.Rain1:Play() | |
238 | wait(2) | |
239 | script.Rain2:play() | |
240 | wait(2) | |
241 | script.Rain3:play() | |
242 | wait(2) | |
243 | ||
244 | ||
245 | end | |
246 | ||
247 | end)) | |
248 | Sound12.Name = "Rain3" | |
249 | Sound12.Parent = Script11 | |
250 | Sound12.Pitch = 0.25 | |
251 | Sound12.SoundId = "http://www.roblox.com/asset/?id=18435238" | |
252 | Sound12.Volume = 0.30000001192093 | |
253 | Sound13.Name = "Rain2" | |
254 | Sound13.Parent = Script11 | |
255 | Sound13.Pitch = 0.40000000596046 | |
256 | Sound13.SoundId = "http://www.roblox.com/asset/?id=18435238" | |
257 | Sound13.Volume = 0.40000000596046 | |
258 | Sound14.Name = "Rain1" | |
259 | Sound14.Parent = Script11 | |
260 | Sound14.Pitch = 0.30000001192093 | |
261 | Sound14.SoundId = "http://www.roblox.com/asset/?id=18435238" | |
262 | Sound14.Volume = 0.20000000298023 | |
263 | for i,v in pairs(mas:GetChildren()) do | |
264 | v.Parent = workspace | |
265 | pcall(function() v:MakeJoints() end) | |
266 | end | |
267 | mas:Destroy() | |
268 | for i,v in pairs(cors) do | |
269 | spawn(function() | |
270 | pcall(v) | |
271 | end) | |
272 | end |