SHOW:
|
|
- or go back to the newest paste.
1 | - | wait(1/60) |
1 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do | |
6 | print("FE Compatibility code V2 by Mokiros") | |
7 | local RealPlayer = RealPlayer | |
8 | script.Parent = RealPlayer.Character | |
9 | ||
10 | --Fake event to make stuff like Mouse.KeyDown work | |
11 | local Disconnect_Function = function(this) | |
12 | this[1].Functions[this[2]] = nil | |
13 | end | |
14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}} | |
15 | local FakeEvent_Metatable = {__index={ | |
16 | Connect = function(this,f) | |
17 | local i = tostring(math.random(0,10000)) | |
18 | while this.Functions[i] do | |
19 | i = tostring(math.random(0,10000)) | |
20 | end | |
21 | this.Functions[i] = f | |
22 | return setmetatable({this,i},Disconnect_Metatable) | |
23 | end | |
24 | }} | |
25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
26 | local function fakeEvent() | |
27 | return setmetatable({Functions={}},FakeEvent_Metatable) | |
28 | end | |
29 | ||
30 | --Creating fake input objects with fake variables | |
31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
37 | end} | |
38 | --Merged 2 functions into one by checking amount of arguments | |
39 | CAS.UnbindAction = CAS.BindAction | |
40 | ||
41 | --This function will trigger the events that have been :Connect()'ed | |
42 | local function TriggerEvent(self,ev,...) | |
43 | for _,f in pairs(self[ev].Functions) do | |
44 | f(...) | |
45 | end | |
46 | end | |
47 | FakeMouse.TriggerEvent = TriggerEvent | |
48 | UIS.TriggerEvent = TriggerEvent | |
49 | ||
50 | --Client communication | |
51 | local Event = Instance.new("RemoteEvent") | |
52 | Event.Name = "UserInput_Event" | |
53 | Event.OnServerEvent:Connect(function(plr,io) | |
54 | if plr~=RealPlayer then return end | |
55 | FakeMouse.Target = io.Target | |
56 | FakeMouse.Hit = io.Hit | |
57 | if not io.isMouse then | |
58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
61 | end | |
62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
64 | end | |
65 | for _,t in pairs(CAS.Actions) do | |
66 | for _,k in pairs(t.Keys) do | |
67 | if k==io.KeyCode then | |
68 | t.Function(t.Name,io.UserInputState,io) | |
69 | end | |
70 | end | |
71 | end | |
72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
74 | end | |
75 | end) | |
76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event") | |
77 | local Mouse = owner:GetMouse() | |
78 | local UIS = game:GetService("UserInputService") | |
79 | local input = function(io,RobloxHandled) | |
80 | if RobloxHandled then return end | |
81 | --Since InputObject is a client-side instance, we create and pass table instead | |
82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
83 | end | |
84 | UIS.InputBegan:Connect(input) | |
85 | UIS.InputEnded:Connect(input) | |
86 | local h,t | |
87 | --Give the server mouse data every second frame, but only if the values changed | |
88 | --If player is not moving their mouse, client won't fire events | |
89 | local HB = game:GetService("RunService").Heartbeat | |
90 | while true do | |
91 | if h~=Mouse.Hit or t~=Mouse.Target then | |
92 | h,t=Mouse.Hit,Mouse.Target | |
93 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
94 | end | |
95 | --Wait 2 frames | |
96 | for i=1,2 do | |
97 | HB:Wait() | |
98 | end | |
99 | end]==],script) | |
100 | ||
101 | ----Sandboxed game object that allows the usage of client-side methods and services | |
102 | --Real game object | |
103 | local RealGame = game | |
104 | ||
105 | --Metatable for fake service | |
106 | local FakeService_Metatable = { | |
107 | __index = function(self,k) | |
108 | local s = rawget(self,"_RealService") | |
109 | if s then | |
110 | return typeof(s[k])=="function" | |
111 | and function(_,...)return s[k](s,...)end or s[k] | |
112 | end | |
113 | end, | |
114 | __newindex = function(self,k,v) | |
115 | local s = rawget(self,"_RealService") | |
116 | if s then s[k]=v end | |
117 | end | |
118 | } | |
119 | local function FakeService(t,RealService) | |
120 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
121 | return setmetatable(t,FakeService_Metatable) | |
122 | end | |
123 | ||
124 | --Fake game object | |
125 | local FakeGame = { | |
126 | GetService = function(self,s) | |
127 | return rawget(self,s) or RealGame:GetService(s) | |
128 | end, | |
129 | Players = FakeService({ | |
130 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player) | |
131 | },"Players"), | |
132 | UserInputService = FakeService(UIS,"UserInputService"), | |
133 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
134 | RunService = FakeService({ | |
135 | _btrs = {}, | |
136 | RenderStepped = RealGame:GetService("RunService").Heartbeat, | |
137 | BindToRenderStep = function(self,name,_,fun) | |
138 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
139 | end, | |
140 | UnbindFromRenderStep = function(self,name) | |
141 | self._btrs[name]:Disconnect() | |
142 | end, | |
143 | },"RunService") | |
144 | } | |
145 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
146 | FakeGame.service = FakeGame.GetService | |
147 | FakeService(FakeGame,game) | |
148 | --Changing owner to fake player object to support owner:GetMouse() | |
149 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
150 | endwait(1/60) | |
151 | local plr = game.Players.LocalPlayer | |
152 | local char = plr.Character | |
153 | ||
154 | local SpellTime = 100 | |
155 | ||
156 | function sandbox(var,func) | |
157 | local env = getfenv(func) | |
158 | local newenv = setmetatable({},{ | |
159 | __index = function(self,k) | |
160 | if k=="script" then | |
161 | return var | |
162 | else | |
163 | return env[k] | |
164 | end | |
165 | end, | |
166 | }) | |
167 | setfenv(func,newenv) | |
168 | return func | |
169 | end | |
170 | cors = {} | |
171 | mas = Instance.new("Model",game:GetService("Lighting")) | |
172 | Tool0 = Instance.new("Tool") | |
173 | Part1 = Instance.new("Part") | |
174 | Part2 = Instance.new("Part") | |
175 | Part3 = Instance.new("Part") | |
176 | Part4 = Instance.new("Part") | |
177 | ManualWeld5 = Instance.new("ManualWeld") | |
178 | Part6 = Instance.new("Part") | |
179 | Part7 = Instance.new("Part") | |
180 | Part8 = Instance.new("Part") | |
181 | ManualWeld9 = Instance.new("ManualWeld") | |
182 | Part10 = Instance.new("Part") | |
183 | Part11 = Instance.new("Part") | |
184 | Part12 = Instance.new("Part") | |
185 | Part13 = Instance.new("Part") | |
186 | Part14 = Instance.new("Part") | |
187 | Script15 = Instance.new("Script") | |
188 | LocalScript16 = Instance.new("LocalScript") | |
189 | Part17 = Instance.new("Part") | |
190 | Part18 = Instance.new("Part") | |
191 | Part19 = Instance.new("Part") | |
192 | Part20 = Instance.new("Part") | |
193 | Part21 = Instance.new("Part") | |
194 | Part22 = Instance.new("Part") | |
195 | Part23 = Instance.new("Part") | |
196 | Part24 = Instance.new("Part") | |
197 | Tool0.Name = "a cool staff" | |
198 | Tool0.Parent = mas | |
199 | Tool0.ToolTip = "warning high explosion" | |
200 | Part1.Parent = Tool0 | |
201 | Part1.Material = Enum.Material.Wood | |
202 | Part1.BrickColor = BrickColor.new("Burnt Sienna") | |
203 | Part1.Rotation = Vector3.new(116.209999, 0, -180) | |
204 | Part1.Anchored = true | |
205 | Part1.Size = Vector3.new(0.199999809, 0.259998947, 0.19999969) | |
206 | Part1.CFrame = CFrame.new(72.6000061, 5.05251026, -50.9067726, -1, 0, 0, 0, 0.441644162, -0.897190273, 0, -0.897190273, -0.441644162) | |
207 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
208 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
209 | Part1.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
210 | Part1.Position = Vector3.new(72.6000061, 5.05251026, -50.9067726) | |
211 | Part1.Orientation = Vector3.new(63.7899971, 180, 0) | |
212 | Part1.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
213 | Part2.Parent = Tool0 | |
214 | Part2.BrickColor = BrickColor.new("Ghost grey") | |
215 | Part2.Rotation = Vector3.new(-180, 0, -180) | |
216 | Part2.Anchored = true | |
217 | Part2.Size = Vector3.new(0.200571179, 0.499999523, 0.200571075) | |
218 | Part2.CFrame = CFrame.new(72.6000061, 2.99156809, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
219 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
220 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
221 | Part2.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
222 | Part2.Position = Vector3.new(72.6000061, 2.99156809, -50.8356361) | |
223 | Part2.Orientation = Vector3.new(0, 180, 0) | |
224 | Part2.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
225 | Part3.Parent = Tool0 | |
226 | Part3.BrickColor = BrickColor.new("Ghost grey") | |
227 | Part3.Rotation = Vector3.new(-180, 0, -180) | |
228 | Part3.Anchored = true | |
229 | Part3.Size = Vector3.new(0.200571179, 0.319999456, 0.200571075) | |
230 | Part3.CFrame = CFrame.new(72.6000061, 4.21157122, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
231 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
232 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
233 | Part3.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
234 | Part3.Position = Vector3.new(72.6000061, 4.21157122, -50.8356361) | |
235 | Part3.Orientation = Vector3.new(0, 180, 0) | |
236 | Part3.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
237 | Part4.Parent = Tool0 | |
238 | Part4.BrickColor = BrickColor.new("Ghost grey") | |
239 | Part4.Rotation = Vector3.new(-180, 0, -180) | |
240 | Part4.Anchored = true | |
241 | Part4.Size = Vector3.new(0.200571179, 0.409999192, 0.200571075) | |
242 | Part4.CFrame = CFrame.new(72.6000061, 3.45656633, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
243 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
244 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
245 | Part4.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
246 | Part4.Position = Vector3.new(72.6000061, 3.45656633, -50.8356361) | |
247 | Part4.Orientation = Vector3.new(0, 180, 0) | |
248 | Part4.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
249 | ManualWeld5.Name = "Part-to-Part Strong Joint" | |
250 | ManualWeld5.Parent = Part4 | |
251 | ManualWeld5.C0 = CFrame.new(0.10028559, -0.204999596, 0.100285538, 1, 0, 0, 0, 0, -1, 0, 1, 0) | |
252 | ManualWeld5.C1 = CFrame.new(0.100284576, 0.25999856, 0.100284576, 1, 0, 0, 0, 0, -1, 0, 1, 0) | |
253 | ManualWeld5.Part0 = Part4 | |
254 | ManualWeld5.Part1 = Part2 | |
255 | Part6.Parent = Tool0 | |
256 | Part6.Material = Enum.Material.Neon | |
257 | Part6.BrickColor = BrickColor.new("Maroon") | |
258 | Part6.Anchored = true | |
259 | Part6.Shape = Enum.PartType.Ball | |
260 | Part6.Size = Vector3.new(0.649999797, 0.649999797, 0.649999797) | |
261 | Part6.CFrame = CFrame.new(72.5800018, 5.6065712, -50.8699837, 1, 0, -0, 0, 1, -8.94069672e-08, 0, 8.94069672e-08, 1) | |
262 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
263 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
264 | Part6.Color = Color3.new(0.458824, 0, 0) | |
265 | Part6.Position = Vector3.new(72.5800018, 5.6065712, -50.8699837) | |
266 | Part6.Color = Color3.new(0.458824, 0, 0) | |
267 | Part7.Parent = Tool0 | |
268 | Part7.Material = Enum.Material.Wood | |
269 | Part7.BrickColor = BrickColor.new("Burnt Sienna") | |
270 | Part7.Rotation = Vector3.new(-180, 0, -180) | |
271 | Part7.Anchored = true | |
272 | Part7.Size = Vector3.new(0.199999809, 2.90999842, 0.19999969) | |
273 | Part7.CFrame = CFrame.new(72.6000061, 3.5665679, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
274 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
275 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
276 | Part7.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
277 | Part7.Position = Vector3.new(72.6000061, 3.5665679, -50.8356361) | |
278 | Part7.Orientation = Vector3.new(0, 180, 0) | |
279 | Part7.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
280 | Part8.Parent = Tool0 | |
281 | Part8.BrickColor = BrickColor.new("Ghost grey") | |
282 | Part8.Rotation = Vector3.new(-180, 0, -180) | |
283 | Part8.Anchored = true | |
284 | Part8.Size = Vector3.new(0.200571179, 0.349999249, 0.200571075) | |
285 | Part8.CFrame = CFrame.new(72.6000061, 3.85656738, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
286 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
287 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
288 | Part8.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
289 | Part8.Position = Vector3.new(72.6000061, 3.85656738, -50.8356361) | |
290 | Part8.Orientation = Vector3.new(0, 180, 0) | |
291 | Part8.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
292 | ManualWeld9.Name = "Part-to-Part Strong Joint" | |
293 | ManualWeld9.Parent = Part8 | |
294 | ManualWeld9.C0 = CFrame.new(-0.10028559, 0.174999624, 0.100285538, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
295 | ManualWeld9.C1 = CFrame.new(-0.100284576, -0.18000412, 0.100284576, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
296 | ManualWeld9.Part0 = Part8 | |
297 | ManualWeld9.Part1 = Part3 | |
298 | Part10.Parent = Tool0 | |
299 | Part10.BrickColor = BrickColor.new("Ghost grey") | |
300 | Part10.Rotation = Vector3.new(-180, 0, -180) | |
301 | Part10.Anchored = true | |
302 | Part10.Size = Vector3.new(0.200571179, 0.569999278, 0.200571075) | |
303 | Part10.CFrame = CFrame.new(72.6000061, 2.43656635, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
304 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
305 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
306 | Part10.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
307 | Part10.Position = Vector3.new(72.6000061, 2.43656635, -50.8356361) | |
308 | Part10.Orientation = Vector3.new(0, 180, 0) | |
309 | Part10.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
310 | Part11.Parent = Tool0 | |
311 | Part11.Material = Enum.Material.Wood | |
312 | Part11.BrickColor = BrickColor.new("Burnt Sienna") | |
313 | Part11.Rotation = Vector3.new(-177.099991, 0, -180) | |
314 | Part11.Anchored = true | |
315 | Part11.Size = Vector3.new(0.199999809, 0.919999719, 0.19999969) | |
316 | Part11.CFrame = CFrame.new(72.5999985, 1.80297112, -50.8531914, -1, 0, 0, 0, 0.998716116, 0.0506570078, 0, 0.0506570078, -0.998716116) | |
317 | Part11.BottomSurface = Enum.SurfaceType.Smooth | |
318 | Part11.TopSurface = Enum.SurfaceType.Smooth | |
319 | Part11.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
320 | Part11.Position = Vector3.new(72.5999985, 1.80297112, -50.8531914) | |
321 | Part11.Orientation = Vector3.new(-2.89999986, 180, 0) | |
322 | Part11.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
323 | Part12.Parent = Tool0 | |
324 | Part12.Material = Enum.Material.Wood | |
325 | Part12.BrickColor = BrickColor.new("Burnt Sienna") | |
326 | Part12.Rotation = Vector3.new(177.619995, 0, -180) | |
327 | Part12.Anchored = true | |
328 | Part12.Size = Vector3.new(0.199999809, 1.15999949, 0.19999969) | |
329 | Part12.CFrame = CFrame.new(72.5999985, 0.803365231, -50.8432655, -1, 0, 0, 0, 0.999136627, -0.0415469855, 0, -0.0415469855, -0.999136627) | |
330 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
331 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
332 | Part12.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
333 | Part12.Position = Vector3.new(72.5999985, 0.803365231, -50.8432655) | |
334 | Part12.Orientation = Vector3.new(2.37999988, 180, 0) | |
335 | Part12.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
336 | Part13.Parent = Tool0 | |
337 | Part13.Material = Enum.Material.Wood | |
338 | Part13.BrickColor = BrickColor.new("Burnt Sienna") | |
339 | Part13.Rotation = Vector3.new(160.440002, 0, -180) | |
340 | Part13.Anchored = true | |
341 | Part13.Size = Vector3.new(0.189999804, 0.289999992, 0.190000027) | |
342 | Part13.CFrame = CFrame.new(72.5949936, 0.168441296, -50.7875595, -1, 0, 0, 0, 0.942295253, -0.334783107, 0, -0.334783077, -0.942295253) | |
343 | Part13.BottomSurface = Enum.SurfaceType.Smooth | |
344 | Part13.TopSurface = Enum.SurfaceType.Smooth | |
345 | Part13.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
346 | Part13.Position = Vector3.new(72.5949936, 0.168441296, -50.7875595) | |
347 | Part13.Orientation = Vector3.new(19.5599995, 180, 0) | |
348 | Part13.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
349 | Part14.Name = "Handle" | |
350 | Part14.Parent = Tool0 | |
351 | Part14.Material = Enum.Material.Wood | |
352 | Part14.BrickColor = BrickColor.new("Burnt Sienna") | |
353 | Part14.Transparency = 1 | |
354 | Part14.Anchored = true | |
355 | Part14.Size = Vector3.new(0.199999809, 0.749999762, 0.19999969) | |
356 | Part14.CFrame = CFrame.new(72.6000061, 2.8165679, -50.8356361, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
357 | Part14.BottomSurface = Enum.SurfaceType.Smooth | |
358 | Part14.TopSurface = Enum.SurfaceType.Smooth | |
359 | Part14.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
360 | Part14.Position = Vector3.new(72.6000061, 2.8165679, -50.8356361) | |
361 | Part14.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
362 | Script15.Name = "weld" | |
363 | Script15.Parent = Tool0 | |
364 | table.insert(cors,sandbox(Script15,function() | |
365 | function weld() | |
366 | local parts,last = {} | |
367 | local function scan(parent) | |
368 | for _,v in pairs(parent:GetChildren()) do | |
369 | if (v:IsA("BasePart")) or (v:IsA("UnionOperation")) or (v:IsA("MeshPart")) then | |
370 | if (last) then | |
371 | local w = Instance.new("Weld") | |
372 | w.Name = ("%s_Weld"):format(v.Name) | |
373 | w.Part0,w.Part1 = last,v | |
374 | w.C0 = last.CFrame:inverse() | |
375 | w.C1 = v.CFrame:inverse() | |
376 | w.Parent = last | |
377 | end | |
378 | last = v | |
379 | table.insert(parts,v) | |
380 | end | |
381 | scan(v) | |
382 | end | |
383 | end | |
384 | scan(script.Parent) | |
385 | for _,v in pairs(parts) do | |
386 | v.Anchored = false | |
387 | end | |
388 | end | |
389 | ||
390 | weld() | |
391 | script:Remove() | |
392 | end)) | |
393 | LocalScript16.Parent = Tool0 | |
394 | table.insert(cors,sandbox(LocalScript16,function() | |
395 | ||
396 | local tool = Tool0 | |
397 | ||
398 | local GF = Vector3.new(0, 0.447, -0.894) | |
399 | local GR = Vector3.new(0.707, -0.707, 0) | |
400 | local oringalGF = tool.GripForward | |
401 | local oringalGR = tool.GripRight | |
402 | ||
403 | local enabled = false | |
404 | ||
405 | function chatfunc(text) | |
406 | local chat = coroutine.wrap(function() | |
407 | if char:FindFirstChild("TalkingBillBoard")~= nil then | |
408 | char:FindFirstChild("TalkingBillBoard"):Destroy() | |
409 | end | |
410 | local naeeym4 = Instance.new("BillboardGui",char) | |
411 | naeeym4.Size = UDim2.new(0,100,0,40) | |
412 | naeeym4.StudsOffset = Vector3.new(0,4,0) | |
413 | naeeym4.Adornee = char.Head | |
414 | naeeym4.Name = "TalkingBillBoard" | |
415 | local tecks4 = Instance.new("TextLabel",naeeym4) | |
416 | tecks4.BackgroundTransparency = 1 | |
417 | tecks4.BorderSizePixel = 0 | |
418 | tecks4.Text = "" | |
419 | tecks4.Font = Enum.Font.SourceSans | |
420 | tecks4.TextSize = 30 | |
421 | tecks4.TextStrokeTransparency = 0 | |
422 | tecks4.TextColor3 = Color3.fromRGB(255,255,255) | |
423 | tecks4.TextStrokeColor3 = Color3.new(0,0,0) | |
424 | tecks4.Size = UDim2.new(1,0,0.5,0) | |
425 | ||
426 | for i = 1,string.len(text),1 do | |
427 | tecks4.Text = string.sub(text,1,i) | |
428 | wait(0.01) | |
429 | end | |
430 | ||
431 | wait(2) | |
432 | for i = 1, 50 do | |
433 | wait() | |
434 | tecks4.Position = tecks4.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
435 | tecks4.Rotation = tecks4.Rotation - 1 | |
436 | tecks4.TextStrokeTransparency = tecks4.TextStrokeTransparency +.04 | |
437 | tecks4.TextTransparency = tecks4.TextTransparency + .04 | |
438 | ||
439 | end | |
440 | naeeym4:Destroy() | |
441 | end) | |
442 | chat() | |
443 | end | |
444 | ||
445 | function boom(part) | |
446 | ||
447 | local mesh = Instance.new('SpecialMesh') | |
448 | mesh.MeshType = "FileMesh" | |
449 | mesh.MeshId = "rbxassetid://3270017" | |
450 | mesh.Scale = Vector3.new(10,10,15) | |
451 | ||
452 | local eff1 = Instance.new('Part',workspace) | |
453 | eff1.Position= part.Position | |
454 | eff1.Shape = "Ball" | |
455 | eff1.Anchored = true | |
456 | eff1.CanCollide = false | |
457 | eff1.Material = Enum.Material.Neon | |
458 | eff1.BrickColor = BrickColor.new('Gold') | |
459 | eff1.Transparency = 0 | |
460 | eff1.Size = Vector3.new(15,15,15) | |
461 | eff1.Name = "eff1" | |
462 | ||
463 | local eff2 = Instance.new('Part',workspace) | |
464 | eff2.Position= part.Position | |
465 | eff2.Shape = "Ball" | |
466 | eff2.Anchored = true | |
467 | eff2.CanCollide = false | |
468 | eff2.Material = Enum.Material.Neon | |
469 | eff2.BrickColor = BrickColor.new('Really red') | |
470 | eff2.Transparency = 0 | |
471 | eff2.Size = Vector3.new(20,20,20) | |
472 | eff2.Name = "eff2" | |
473 | ||
474 | local eff3 = Instance.new('Part',workspace) | |
475 | eff3.Position = part.Position | |
476 | eff3.Anchored = true | |
477 | eff3.CanCollide = false | |
478 | eff3.Orientation = Vector3.new(90,0,0) | |
479 | eff3.Name = "eff3" | |
480 | mesh.Parent = eff3 | |
481 | ||
482 | for i=1,87 do | |
483 | workspace.beam.Size = workspace.beam.Size + Vector3.new(3,0,3) | |
484 | workspace.beam.Transparency = workspace.beam.Transparency + 0.01 | |
485 | eff1.Size = eff1.Size + Vector3.new(6,6,6) | |
486 | eff1.Transparency = eff1.Transparency + 0.02 | |
487 | eff2.Size = eff2.Size + Vector3.new(6,6,6) | |
488 | eff2.Transparency = eff2.Transparency + 0.02 | |
489 | eff3.Mesh.Scale = eff3.Mesh.Scale + Vector3.new(8.7,8.7,0) | |
490 | wait() | |
491 | end | |
492 | ||
493 | eff1:Destroy() | |
494 | eff2:Destroy() | |
495 | eff3:Destroy() | |
496 | end | |
497 | ||
498 | function effect(part) | |
499 | ||
500 | local id1 = "rbxassetid://154979644" | |
501 | local decal1 = Instance.new("Decal") | |
502 | decal1.Texture = id1 | |
503 | ||
504 | local id2 = "rbxassetid://939916520" | |
505 | ||
506 | local plrP = Instance.new("Part",workspace) | |
507 | plrP.Name = "pp" | |
508 | plrP.Size = Vector3.new(18.2, 0.1, 18.2) | |
509 | plrP.Position = char.Torso.Position - Vector3.new(0,3,0) | |
510 | plrP.CanCollide = false | |
511 | plrP.Anchored = true | |
512 | plrP.Transparency = 1 | |
513 | decal1.Parent = plrP | |
514 | decal1.Face = "Top" | |
515 | ||
516 | wait(2) | |
517 | ||
518 | local p1 = Instance.new("ParticleEmitter",plrP) | |
519 | p1.Color = ColorSequence.new(Color3.fromRGB(103,0,0),Color3.fromRGB(170,0,0)) | |
520 | p1.LightEmission = 1 | |
521 | p1.Size = NumberSequence.new(0,1) | |
522 | p1.Acceleration = Vector3.new(0,2,0) | |
523 | p1.Lifetime = NumberRange.new(2,2) | |
524 | p1.Rate = 10 | |
525 | p1.Speed = NumberRange.new(8.7,8.7) | |
526 | ||
527 | chatfunc("Darkness blacker than black and darker than dark") | |
528 | ||
529 | local c1 = Instance.new("Part",workspace) | |
530 | c1.Name = "c1" | |
531 | c1.Size = Vector3.new(109.2, 0.1, 109.2) | |
532 | c1.Position = part.Position | |
533 | c1.CanCollide = false | |
534 | c1.Anchored = true | |
535 | c1.Transparency = 1 | |
536 | local decal2 = Instance.new("Decal") | |
537 | decal2.Texture = id2 | |
538 | decal2.Parent = c1 | |
539 | decal2.Face = "Top" | |
540 | local decal3 = Instance.new("Decal") | |
541 | decal3.Texture = id2 | |
542 | decal3.Parent = c1 | |
543 | decal3.Face = "Bottom" | |
544 | ||
545 | local p2 = Instance.new("ParticleEmitter",c1) | |
546 | p2.Color = ColorSequence.new(Color3.fromRGB(103,0,0),Color3.fromRGB(170,0,0)) | |
547 | p2.LightEmission = 1 | |
548 | p2.Size = NumberSequence.new(1,1) | |
549 | p2.Acceleration = Vector3.new(0,2,0) | |
550 | p2.Lifetime = NumberRange.new(150,150) | |
551 | p2.Rate = 50 | |
552 | p2.Speed = NumberRange.new(8.7,8.7) | |
553 | ||
554 | for i=1 ,SpellTime do | |
555 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
556 | wait() | |
557 | end | |
558 | ||
559 | chatfunc("I beseech thee, combine with my deep crimson") | |
560 | ||
561 | local c2 = Instance.new("Part",workspace) | |
562 | c2.Name = "c2" | |
563 | c2.Size = Vector3.new(89.831, 0.1, 89.831) | |
564 | c2.Position = part.Position + Vector3.new(0,40,0) | |
565 | c2.CanCollide = false | |
566 | c2.Anchored = true | |
567 | c2.Transparency = 1 | |
568 | local decal4 = Instance.new("Decal") | |
569 | decal4.Texture = id2 | |
570 | local decal5 = Instance.new("Decal") | |
571 | decal5.Texture = id2 | |
572 | decal4.Parent = c2 | |
573 | decal4.Face = "Top" | |
574 | decal5.Parent = c2 | |
575 | decal5.Face = "Bottom" | |
576 | ||
577 | for i=1 ,SpellTime do | |
578 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
579 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
580 | wait() | |
581 | end | |
582 | ||
583 | chatfunc("The time of awakening cometh") | |
584 | ||
585 | local c3 = Instance.new("Part",workspace) | |
586 | c3.Name = "c3" | |
587 | c3.Size = Vector3.new(61.598, 0.1, 61.598) | |
588 | c3.Position = part.Position + Vector3.new(0,60,0) | |
589 | c3.CanCollide = false | |
590 | c3.Anchored = true | |
591 | c3.Transparency = 1 | |
592 | local decal6 = Instance.new("Decal") | |
593 | decal6.Texture = id2 | |
594 | local decal7 = Instance.new("Decal") | |
595 | decal7.Texture = id2 | |
596 | decal6.Parent = c3 | |
597 | decal6.Face = "Top" | |
598 | decal7.Parent = c3 | |
599 | decal7.Face = "Bottom" | |
600 | ||
601 | for i=1 ,SpellTime do | |
602 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
603 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
604 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
605 | wait() | |
606 | end | |
607 | ||
608 | chatfunc("Justice, fallen upon the infallible boundary") | |
609 | ||
610 | local c4 = Instance.new("Part",workspace) | |
611 | c4.Name = "c4" | |
612 | c4.Size = Vector3.new(163.328, 0.1, 163.328) | |
613 | c4.Position = part.Position + Vector3.new(0,90,0) | |
614 | c4.CanCollide = false | |
615 | c4.Anchored = true | |
616 | c4.Transparency = 1 | |
617 | local decal8 = Instance.new("Decal") | |
618 | decal8.Texture = id2 | |
619 | local decal9 = Instance.new("Decal") | |
620 | decal9.Texture = id2 | |
621 | decal8.Parent = c4 | |
622 | decal8.Face = "Top" | |
623 | decal9.Parent = c4 | |
624 | decal9.Face = "Bottom" | |
625 | ||
626 | for i=1 ,SpellTime do | |
627 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
628 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
629 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
630 | c4.CFrame = c4.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
631 | wait() | |
632 | end | |
633 | ||
634 | chatfunc("Appear now as an intangible distortions!") | |
635 | ||
636 | local c5 = Instance.new("Part",workspace) | |
637 | c5.Name = "c5" | |
638 | c5.Size = Vector3.new(226.147, 0.1, 226.147) | |
639 | c5.Position = part.Position + Vector3.new(0,110,0) | |
640 | c5.CanCollide = false | |
641 | c5.Anchored = true | |
642 | c5.Transparency = 1 | |
643 | local decal10 = Instance.new("Decal") | |
644 | decal10.Texture = id2 | |
645 | local decal11 = Instance.new("Decal") | |
646 | decal11.Texture = id2 | |
647 | decal10.Parent = c5 | |
648 | decal10.Face = "Top" | |
649 | decal11.Parent = c5 | |
650 | decal11.Face = "Bottom" | |
651 | ||
652 | for i=1 ,SpellTime do | |
653 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
654 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
655 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
656 | c4.CFrame = c4.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
657 | c5.CFrame = c5.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
658 | wait() | |
659 | end | |
660 | ||
661 | chatfunc("I desire for my torrent of power a destructive force") | |
662 | ||
663 | local c6 = Instance.new("Part",workspace) | |
664 | c6.Name = "c6" | |
665 | c6.Size = Vector3.new(163.328, 0.1, 163.328) | |
666 | c6.Position = part.Position + Vector3.new(0,130,0) | |
667 | c6.CanCollide = false | |
668 | c6.Anchored = true | |
669 | c6.Transparency = 1 | |
670 | local d1 = Instance.new("Decal") | |
671 | d1.Texture = id2 | |
672 | local d2 = Instance.new("Decal") | |
673 | d2.Texture = id2 | |
674 | d1.Parent = c6 | |
675 | d1.Face = "Top" | |
676 | d2.Parent = c6 | |
677 | d2.Face = "Bottom" | |
678 | ||
679 | for i=1 ,SpellTime do | |
680 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
681 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
682 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
683 | c4.CFrame = c4.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
684 | c5.CFrame = c5.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
685 | c6.CFrame = c6.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
686 | wait() | |
687 | end | |
688 | ||
689 | chatfunc("A destructive force without equal!") | |
690 | ||
691 | local c7 = Instance.new("Part",workspace) | |
692 | c7.Name = "c7" | |
693 | c7.Size = Vector3.new(133.082, 0.1, 133.082) | |
694 | c7.Position = part.Position + Vector3.new(0,150,0) | |
695 | c7.CanCollide = false | |
696 | c7.Anchored = true | |
697 | c7.Transparency = 1 | |
698 | local d3 = Instance.new("Decal") | |
699 | d3.Texture = id2 | |
700 | local d4 = Instance.new("Decal") | |
701 | d4.Texture = id2 | |
702 | d3.Parent = c7 | |
703 | d3.Face = "Top" | |
704 | d4.Parent = c7 | |
705 | d4.Face = "Bottom" | |
706 | ||
707 | for i=1 ,SpellTime do | |
708 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
709 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
710 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
711 | c4.CFrame = c4.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
712 | c5.CFrame = c5.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
713 | c6.CFrame = c6.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
714 | c7.CFrame = c7.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
715 | wait() | |
716 | end | |
717 | ||
718 | chatfunc("Return all creation to cinders") | |
719 | ||
720 | local c8 = Instance.new("Part",workspace) | |
721 | c8.Name = "c8" | |
722 | c8.Size = Vector3.new(89.831, 0.1, 89.831) | |
723 | c8.Position = part.Position + Vector3.new(0,170,0) | |
724 | c8.CanCollide = false | |
725 | c8.Anchored = true | |
726 | c8.Transparency = 1 | |
727 | local d5 = Instance.new("Decal") | |
728 | d5.Texture = id2 | |
729 | local d6 = Instance.new("Decal") | |
730 | d6.Texture = id2 | |
731 | d5.Parent = c8 | |
732 | d5.Face = "Top" | |
733 | d6.Parent = c8 | |
734 | d6.Face = "Bottom" | |
735 | ||
736 | for i=1 ,SpellTime do | |
737 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
738 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
739 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
740 | c4.CFrame = c4.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
741 | c5.CFrame = c5.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
742 | c6.CFrame = c6.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
743 | c7.CFrame = c7.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
744 | c8.CFrame = c8.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
745 | wait() | |
746 | end | |
747 | ||
748 | chatfunc("And come frome the abyss!") | |
749 | ||
750 | local c9 = Instance.new("Part",workspace) | |
751 | c9.Name = "c9" | |
752 | c9.Size = Vector3.new(61.598, 0.1, 61.598) | |
753 | c9.Position = part.Position + Vector3.new(0,190,0) | |
754 | c9.CanCollide = false | |
755 | c9.Anchored = true | |
756 | c9.Transparency = 1 | |
757 | local d7 = Instance.new("Decal") | |
758 | d7.Texture = id2 | |
759 | local d8 = Instance.new("Decal") | |
760 | d8.Texture = id2 | |
761 | d7.Parent = c9 | |
762 | d7.Face = "Top" | |
763 | d8.Parent = c9 | |
764 | d8.Face = "Bottom" | |
765 | ||
766 | for i=1 ,SpellTime do | |
767 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
768 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
769 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
770 | c4.CFrame = c4.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
771 | c5.CFrame = c5.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
772 | c6.CFrame = c6.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
773 | c7.CFrame = c7.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
774 | c8.CFrame = c8.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
775 | c9.CFrame = c9.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
776 | wait() | |
777 | end | |
778 | ||
779 | chatfunc("This is the mightiest means of attack known to man, the ultimate attack magic!") | |
780 | ||
781 | local c10 = Instance.new("Part",workspace) | |
782 | c10.Name = "c10" | |
783 | c10.Size = Vector3.new(363.777, 0.1, 363.777) | |
784 | c10.Position = part.Position + Vector3.new(0,210,0) | |
785 | c10.CanCollide = false | |
786 | c10.Anchored = true | |
787 | c10.Transparency = 1 | |
788 | local d9 = Instance.new("Decal") | |
789 | d9.Texture = id2 | |
790 | local d10 = Instance.new("Decal") | |
791 | d10.Texture = id2 | |
792 | d9.Parent = c10 | |
793 | d9.Face = "Top" | |
794 | d10.Parent = c10 | |
795 | d10.Face = "Bottom" | |
796 | ||
797 | for i=1 ,SpellTime do | |
798 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
799 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
800 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
801 | c4.CFrame = c4.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
802 | c5.CFrame = c5.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
803 | c6.CFrame = c6.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
804 | c7.CFrame = c7.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
805 | c8.CFrame = c8.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
806 | c9.CFrame = c9.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
807 | c10.CFrame = c10.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
808 | wait() | |
809 | end | |
810 | ||
811 | end | |
812 | ||
813 | function click(mouse) | |
814 | if enabled == false then | |
815 | enabled = true | |
816 | ||
817 | local ow = char.Humanoid.WalkSpeed | |
818 | local oj = char.Humanoid.JumpPower | |
819 | ||
820 | char.Humanoid.WalkSpeed = 0 | |
821 | ||
822 | tool.GripForward = GF | |
823 | tool.GripRight = GR | |
824 | ||
825 | local target = Instance.new('Part') | |
826 | target.Transparency = 1 | |
827 | target.Anchored = true | |
828 | target.CanCollide = false | |
829 | target.Position = mouse.hit.p | |
830 | target.Parent = workspace | |
831 | target.Name = "target" | |
832 | ||
833 | local beam = Instance.new('Part') | |
834 | beam.Shape = "Cylinder" | |
835 | beam.Position = target.Position | |
836 | beam.BrickColor = BrickColor.new('Really red') | |
837 | beam.Material = Enum.Material.Neon | |
838 | beam.Anchored = true | |
839 | beam.CanCollide = false | |
840 | beam.Orientation = Vector3.new(0,0,90) | |
841 | beam.Size = Vector3.new(500,500,.2) | |
842 | beam.Parent = workspace | |
843 | beam.Name = "beam" | |
844 | ||
845 | effect(target) | |
846 | ||
847 | local sound = Instance.new('Sound') | |
848 | sound.SoundId = "rbxassetid://762570073" | |
849 | sound.Volume = 5 | |
850 | sound.Parent = char.Head | |
851 | sound.Name = "talk" | |
852 | ||
853 | chatfunc("EXPLOSION!!!") | |
854 | sound:Play() | |
855 | ||
856 | wait(1.6) | |
857 | ||
858 | local exps = Instance.new('Sound') | |
859 | exps.SoundId = "rbxassetid://165970126" | |
860 | exps.Parent = target | |
861 | exps.Volume = 10 | |
862 | exps.Name = "expSFX" | |
863 | ||
864 | local exp = Instance.new("Explosion") | |
865 | exp.Position = target.Position | |
866 | exp.Parent = game.Workspace | |
867 | exp.BlastRadius = 150 | |
868 | ||
869 | exps:play() | |
870 | ||
871 | workspace.c1:Destroy() | |
872 | workspace.c2:Destroy() | |
873 | workspace.c3:Destroy() | |
874 | workspace.c4:Destroy() | |
875 | workspace.c5:Destroy() | |
876 | workspace.c6:Destroy() | |
877 | workspace.c7:Destroy() | |
878 | workspace.c8:Destroy() | |
879 | workspace.c9:Destroy() | |
880 | workspace.c10:Destroy() | |
881 | ||
882 | boom(target) | |
883 | ||
884 | workspace.pp:Destroy() | |
885 | ||
886 | beam:Destroy() | |
887 | target:Destroy() | |
888 | sound:Destroy() | |
889 | exps:Destroy() | |
890 | ||
891 | wait(1) | |
892 | ||
893 | tool.GripForward = oringalGF | |
894 | tool.GripRight = oringalGR | |
895 | ||
896 | for i=1 , 60 do | |
897 | char.Humanoid.PlatformStand = true | |
898 | char.Humanoid.WalkSpeed = 0 | |
899 | char.Humanoid.JumpPower = 0 | |
900 | wait(1) | |
901 | end | |
902 | ||
903 | char.Humanoid.PlatformStand = false | |
904 | char.Humanoid.WalkSpeed = ow | |
905 | char.Humanoid.JumpPower = oj | |
906 | enabled = false | |
907 | end | |
908 | end | |
909 | ||
910 | function equipped(mouse) | |
911 | mouse.Button1Down:connect(function () click(mouse) end) | |
912 | end | |
913 | ||
914 | tool.Equipped:connect(equipped) | |
915 | end)) | |
916 | Part17.Parent = Tool0 | |
917 | Part17.Material = Enum.Material.Wood | |
918 | Part17.BrickColor = BrickColor.new("Burnt Sienna") | |
919 | Part17.Rotation = Vector3.new(10.1599998, 0, -180) | |
920 | Part17.Anchored = true | |
921 | Part17.Size = Vector3.new(0.179999813, 0.0700000003, 0.160000041) | |
922 | Part17.CFrame = CFrame.new(72.5900116, 6.1364584, -50.8448219, -1, 0, 0, 0, -0.984318376, -0.176401064, 0, -0.176401064, 0.984318376) | |
923 | Part17.BottomSurface = Enum.SurfaceType.Smooth | |
924 | Part17.TopSurface = Enum.SurfaceType.Smooth | |
925 | Part17.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
926 | Part17.Position = Vector3.new(72.5900116, 6.1364584, -50.8448219) | |
927 | Part17.Orientation = Vector3.new(10.1599998, 0, 180) | |
928 | Part17.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
929 | Part18.Parent = Tool0 | |
930 | Part18.Material = Enum.Material.Wood | |
931 | Part18.BrickColor = BrickColor.new("Burnt Sienna") | |
932 | Part18.Rotation = Vector3.new(45.7000008, 0, -180) | |
933 | Part18.Anchored = true | |
934 | Part18.Size = Vector3.new(0.199999809, 0.139998943, 0.499999881) | |
935 | Part18.CFrame = CFrame.new(72.6000061, 5.95947552, -50.6225662, -1, 0, 0, 0, -0.698380172, -0.715727091, 0, -0.715727091, 0.698380172) | |
936 | Part18.BottomSurface = Enum.SurfaceType.Smooth | |
937 | Part18.TopSurface = Enum.SurfaceType.Smooth | |
938 | Part18.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
939 | Part18.Position = Vector3.new(72.6000061, 5.95947552, -50.6225662) | |
940 | Part18.Orientation = Vector3.new(45.7000008, 0, 180) | |
941 | Part18.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
942 | Part19.Parent = Tool0 | |
943 | Part19.Material = Enum.Material.Wood | |
944 | Part19.BrickColor = BrickColor.new("Burnt Sienna") | |
945 | Part19.Rotation = Vector3.new(77.9599991, 0, -180) | |
946 | Part19.Anchored = true | |
947 | Part19.Size = Vector3.new(0.199999809, 0.199998945, 0.310000032) | |
948 | Part19.CFrame = CFrame.new(72.6000061, 5.65559053, -50.4499931, -1, 0, 0, 0, -0.208563015, -0.978008986, 0, -0.978008986, 0.208563015) | |
949 | Part19.BottomSurface = Enum.SurfaceType.Smooth | |
950 | Part19.TopSurface = Enum.SurfaceType.Smooth | |
951 | Part19.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
952 | Part19.Position = Vector3.new(72.6000061, 5.65559053, -50.4499931) | |
953 | Part19.Orientation = Vector3.new(77.9599991, 0, 180) | |
954 | Part19.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
955 | Part20.Parent = Tool0 | |
956 | Part20.Material = Enum.Material.Wood | |
957 | Part20.BrickColor = BrickColor.new("Burnt Sienna") | |
958 | Part20.Rotation = Vector3.new(89.5599976, 0, -180) | |
959 | Part20.Anchored = true | |
960 | Part20.Size = Vector3.new(0.199999809, 0.149998948, 0.439999938) | |
961 | Part20.CFrame = CFrame.new(72.6000061, 5.61545324, -50.4791603, -1, 0, 0, 0, -0.00771899521, -0.999970257, 0, -0.999970257, 0.00771899521) | |
962 | Part20.BottomSurface = Enum.SurfaceType.Smooth | |
963 | Part20.TopSurface = Enum.SurfaceType.Smooth | |
964 | Part20.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
965 | Part20.Position = Vector3.new(72.6000061, 5.61545324, -50.4791603) | |
966 | Part20.Orientation = Vector3.new(89.5599976, 0, 180) | |
967 | Part20.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
968 | Part21.Parent = Tool0 | |
969 | Part21.Material = Enum.Material.Wood | |
970 | Part21.BrickColor = BrickColor.new("Burnt Sienna") | |
971 | Part21.Rotation = Vector3.new(106.119995, 0, -180) | |
972 | Part21.Anchored = true | |
973 | Part21.Size = Vector3.new(0.199999809, 0.199998945, 0.310000002) | |
974 | Part21.CFrame = CFrame.new(72.6000061, 5.42558908, -50.4499855, -1, 0, 0, 0, 0.277650088, -0.960682333, 0, -0.960682333, -0.277650088) | |
975 | Part21.BottomSurface = Enum.SurfaceType.Smooth | |
976 | Part21.TopSurface = Enum.SurfaceType.Smooth | |
977 | Part21.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
978 | Part21.Position = Vector3.new(72.6000061, 5.42558908, -50.4499855) | |
979 | Part21.Orientation = Vector3.new(73.8799973, 180, 0) | |
980 | Part21.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
981 | Part22.Parent = Tool0 | |
982 | Part22.Material = Enum.Material.Wood | |
983 | Part22.BrickColor = BrickColor.new("Burnt Sienna") | |
984 | Part22.Rotation = Vector3.new(133.660004, 0, -180) | |
985 | Part22.Anchored = true | |
986 | Part22.Size = Vector3.new(0.199999809, 0.199998945, 0.549999654) | |
987 | Part22.CFrame = CFrame.new(72.6000061, 5.12030411, -50.6632805, -1, 0, 0, 0, 0.690404534, -0.723423481, 0, -0.723423481, -0.690404534) | |
988 | Part22.BottomSurface = Enum.SurfaceType.Smooth | |
989 | Part22.TopSurface = Enum.SurfaceType.Smooth | |
990 | Part22.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
991 | Part22.Position = Vector3.new(72.6000061, 5.12030411, -50.6632805) | |
992 | Part22.Orientation = Vector3.new(46.3400002, 180, 0) | |
993 | Part22.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
994 | Part23.Parent = Tool0 | |
995 | Part23.Material = Enum.Material.Wood | |
996 | Part23.BrickColor = BrickColor.new("Burnt Sienna") | |
997 | Part23.Rotation = Vector3.new(125.360001, 0, -180) | |
998 | Part23.Anchored = true | |
999 | Part23.Size = Vector3.new(0.199999809, 0.139999986, 0.669999599) | |
1000 | Part23.CFrame = CFrame.new(72.6000061, 5.22756338, -50.6340942, -1, 0, 0, 0, 0.578651071, -0.815575242, 0, -0.815575242, -0.578651071) | |
1001 | Part23.BottomSurface = Enum.SurfaceType.Smooth | |
1002 | Part23.TopSurface = Enum.SurfaceType.Smooth | |
1003 | Part23.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
1004 | Part23.Position = Vector3.new(72.6000061, 5.22756338, -50.6340942) | |
1005 | Part23.Orientation = Vector3.new(54.6399994, 180, 0) | |
1006 | Part23.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
1007 | Part24.Parent = Tool0 | |
1008 | Part24.Material = Enum.Material.Wood | |
1009 | Part24.BrickColor = BrickColor.new("Burnt Sienna") | |
1010 | Part24.Rotation = Vector3.new(125.860001, 0, -180) | |
1011 | Part24.Anchored = true | |
1012 | Part24.Size = Vector3.new(0.189999804, 0.269998908, 0.129999653) | |
1013 | Part24.CFrame = CFrame.new(72.5950089, 5.13980055, -51.0601616, -1, 0, 0, 0, 0.585875213, -0.81040132, 0, -0.81040132, -0.585875213) | |
1014 | Part24.BottomSurface = Enum.SurfaceType.Smooth | |
1015 | Part24.TopSurface = Enum.SurfaceType.Smooth | |
1016 | Part24.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
1017 | Part24.Position = Vector3.new(72.5950089, 5.13980055, -51.0601616) | |
1018 | Part24.Orientation = Vector3.new(54.1399994, 180, 0) | |
1019 | Part24.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
1020 | for i,v in pairs(mas:GetChildren()) do | |
1021 | v.Parent = game:GetService("Players").LocalPlayer.Backpack | |
1022 | pcall(function() v:MakeJoints() end) | |
1023 | end | |
1024 | mas:Destroy() | |
1025 | for i,v in pairs(cors) do | |
1026 | spawn(function() | |
1027 | pcall(v) | |
1028 | end) | |
1029 | end |