View difference between Paste ID: kVM1Q2D2 and AmDG0y3D
SHOW: | | - or go back to the newest paste.
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
end
151
wait(1/60)
152
153
local plr = game.Players.LocalPlayer
154
local char = plr.Character
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
Part5 = Instance.new("Part")
178
Part6 = Instance.new("Part")
179
Part7 = Instance.new("Part")
180
Part8 = Instance.new("Part")
181
Part9 = Instance.new("Part")
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
Part15 = Instance.new("Part")
188
Part16 = Instance.new("Part")
189
Part17 = Instance.new("Part")
190
Part18 = Instance.new("Part")
191
Part19 = Instance.new("Part")
192
Part20 = Instance.new("Part")
193
Script21 = Instance.new("Script")
194
Tool0.Name = "Explosion Staff"
195
Tool0.Parent = mas
196
Tool0.ToolTip = "EXPLOSIONNN!!!!"
197
Part1.Parent = Tool0
198
Part1.Material = Enum.Material.Wood
199
Part1.BrickColor = BrickColor.new("Burnt Sienna")
200
Part1.Rotation = Vector3.new(77.9599991, 0, -180)
201
Part1.Anchored = true
202
Part1.Size = Vector3.new(0.199999809, 0.199998945, 0.310000032)
203
Part1.CFrame = CFrame.new(72.6000061, 5.65559053, -50.4499931, -1, 0, 0, 0, -0.208563015, -0.978008986, 0, -0.978008986, 0.208563015)
204
Part1.BottomSurface = Enum.SurfaceType.Smooth
205
Part1.TopSurface = Enum.SurfaceType.Smooth
206
Part1.Color = Color3.new(0.415686, 0.223529, 0.0352941)
207
Part1.Position = Vector3.new(72.6000061, 5.65559053, -50.4499931)
208
Part1.Orientation = Vector3.new(77.9599991, 0, 180)
209
Part1.Color = Color3.new(0.415686, 0.223529, 0.0352941)
210
Part2.Parent = Tool0
211
Part2.Material = Enum.Material.Wood
212
Part2.BrickColor = BrickColor.new("Burnt Sienna")
213
Part2.Rotation = Vector3.new(106.119995, 0, -180)
214
Part2.Anchored = true
215
Part2.Size = Vector3.new(0.199999809, 0.199998945, 0.310000002)
216
Part2.CFrame = CFrame.new(72.6000061, 5.42558908, -50.4499855, -1, 0, 0, 0, 0.277650088, -0.960682333, 0, -0.960682333, -0.277650088)
217
Part2.BottomSurface = Enum.SurfaceType.Smooth
218
Part2.TopSurface = Enum.SurfaceType.Smooth
219
Part2.Color = Color3.new(0.415686, 0.223529, 0.0352941)
220
Part2.Position = Vector3.new(72.6000061, 5.42558908, -50.4499855)
221
Part2.Orientation = Vector3.new(73.8799973, 180, 0)
222
Part2.Color = Color3.new(0.415686, 0.223529, 0.0352941)
223
Part3.Parent = Tool0
224
Part3.Material = Enum.Material.Wood
225
Part3.BrickColor = BrickColor.new("Burnt Sienna")
226
Part3.Rotation = Vector3.new(10.1599998, 0, -180)
227
Part3.Anchored = true
228
Part3.Size = Vector3.new(0.179999813, 0.0700000003, 0.160000041)
229
Part3.CFrame = CFrame.new(72.5900116, 6.1364584, -50.8448219, -1, 0, 0, 0, -0.984318376, -0.176401064, 0, -0.176401064, 0.984318376)
230
Part3.BottomSurface = Enum.SurfaceType.Smooth
231
Part3.TopSurface = Enum.SurfaceType.Smooth
232
Part3.Color = Color3.new(0.415686, 0.223529, 0.0352941)
233
Part3.Position = Vector3.new(72.5900116, 6.1364584, -50.8448219)
234
Part3.Orientation = Vector3.new(10.1599998, 0, 180)
235
Part3.Color = Color3.new(0.415686, 0.223529, 0.0352941)
236
Part4.Parent = Tool0
237
Part4.Material = Enum.Material.Wood
238
Part4.BrickColor = BrickColor.new("Burnt Sienna")
239
Part4.Rotation = Vector3.new(116.209999, 0, -180)
240
Part4.Anchored = true
241
Part4.Size = Vector3.new(0.199999809, 0.259998947, 0.19999969)
242
Part4.CFrame = CFrame.new(72.6000061, 5.05251026, -50.9067726, -1, 0, 0, 0, 0.441644162, -0.897190273, 0, -0.897190273, -0.441644162)
243
Part4.BottomSurface = Enum.SurfaceType.Smooth
244
Part4.TopSurface = Enum.SurfaceType.Smooth
245
Part4.Color = Color3.new(0.415686, 0.223529, 0.0352941)
246
Part4.Position = Vector3.new(72.6000061, 5.05251026, -50.9067726)
247
Part4.Orientation = Vector3.new(63.7899971, 180, 0)
248
Part4.Color = Color3.new(0.415686, 0.223529, 0.0352941)
249
Part5.Parent = Tool0
250
Part5.Material = Enum.Material.Wood
251
Part5.BrickColor = BrickColor.new("Burnt Sienna")
252
Part5.Rotation = Vector3.new(125.860001, 0, -180)
253
Part5.Anchored = true
254
Part5.Size = Vector3.new(0.189999804, 0.269998908, 0.129999653)
255
Part5.CFrame = CFrame.new(72.5950089, 5.13980055, -51.0601616, -1, 0, 0, 0, 0.585875213, -0.81040132, 0, -0.81040132, -0.585875213)
256
Part5.BottomSurface = Enum.SurfaceType.Smooth
257
Part5.TopSurface = Enum.SurfaceType.Smooth
258
Part5.Color = Color3.new(0.415686, 0.223529, 0.0352941)
259
Part5.Position = Vector3.new(72.5950089, 5.13980055, -51.0601616)
260
Part5.Orientation = Vector3.new(54.1399994, 180, 0)
261
Part5.Color = Color3.new(0.415686, 0.223529, 0.0352941)
262
Part6.Parent = Tool0
263
Part6.Material = Enum.Material.Wood
264
Part6.BrickColor = BrickColor.new("Burnt Sienna")
265
Part6.Rotation = Vector3.new(45.7000008, 0, -180)
266
Part6.Anchored = true
267
Part6.Size = Vector3.new(0.199999809, 0.139998943, 0.499999881)
268
Part6.CFrame = CFrame.new(72.6000061, 5.95947552, -50.6225662, -1, 0, 0, 0, -0.698380172, -0.715727091, 0, -0.715727091, 0.698380172)
269
Part6.BottomSurface = Enum.SurfaceType.Smooth
270
Part6.TopSurface = Enum.SurfaceType.Smooth
271
Part6.Color = Color3.new(0.415686, 0.223529, 0.0352941)
272
Part6.Position = Vector3.new(72.6000061, 5.95947552, -50.6225662)
273
Part6.Orientation = Vector3.new(45.7000008, 0, 180)
274
Part6.Color = Color3.new(0.415686, 0.223529, 0.0352941)
275
Part7.Parent = Tool0
276
Part7.Material = Enum.Material.Wood
277
Part7.BrickColor = BrickColor.new("Burnt Sienna")
278
Part7.Rotation = Vector3.new(125.360001, 0, -180)
279
Part7.Anchored = true
280
Part7.Size = Vector3.new(0.199999809, 0.139999986, 0.669999599)
281
Part7.CFrame = CFrame.new(72.6000061, 5.22756338, -50.6340942, -1, 0, 0, 0, 0.578651071, -0.815575242, 0, -0.815575242, -0.578651071)
282
Part7.BottomSurface = Enum.SurfaceType.Smooth
283
Part7.TopSurface = Enum.SurfaceType.Smooth
284
Part7.Color = Color3.new(0.415686, 0.223529, 0.0352941)
285
Part7.Position = Vector3.new(72.6000061, 5.22756338, -50.6340942)
286
Part7.Orientation = Vector3.new(54.6399994, 180, 0)
287
Part7.Color = Color3.new(0.415686, 0.223529, 0.0352941)
288
Part8.Parent = Tool0
289
Part8.Material = Enum.Material.Wood
290
Part8.BrickColor = BrickColor.new("Burnt Sienna")
291
Part8.Rotation = Vector3.new(89.5599976, 0, -180)
292
Part8.Anchored = true
293
Part8.Size = Vector3.new(0.199999809, 0.149998948, 0.439999938)
294
Part8.CFrame = CFrame.new(72.6000061, 5.61545324, -50.4791603, -1, 0, 0, 0, -0.00771899521, -0.999970257, 0, -0.999970257, 0.00771899521)
295
Part8.BottomSurface = Enum.SurfaceType.Smooth
296
Part8.TopSurface = Enum.SurfaceType.Smooth
297
Part8.Color = Color3.new(0.415686, 0.223529, 0.0352941)
298
Part8.Position = Vector3.new(72.6000061, 5.61545324, -50.4791603)
299
Part8.Orientation = Vector3.new(89.5599976, 0, 180)
300
Part8.Color = Color3.new(0.415686, 0.223529, 0.0352941)
301
Part9.Parent = Tool0
302
Part9.Material = Enum.Material.Wood
303
Part9.BrickColor = BrickColor.new("Burnt Sienna")
304
Part9.Rotation = Vector3.new(133.660004, 0, -180)
305
Part9.Anchored = true
306
Part9.Size = Vector3.new(0.199999809, 0.199998945, 0.549999654)
307
Part9.CFrame = CFrame.new(72.6000061, 5.12030411, -50.6632805, -1, 0, 0, 0, 0.690404534, -0.723423481, 0, -0.723423481, -0.690404534)
308
Part9.BottomSurface = Enum.SurfaceType.Smooth
309
Part9.TopSurface = Enum.SurfaceType.Smooth
310
Part9.Color = Color3.new(0.415686, 0.223529, 0.0352941)
311
Part9.Position = Vector3.new(72.6000061, 5.12030411, -50.6632805)
312
Part9.Orientation = Vector3.new(46.3400002, 180, 0)
313
Part9.Color = Color3.new(0.415686, 0.223529, 0.0352941)
314
Part10.Parent = Tool0
315
Part10.Material = Enum.Material.Wood
316
Part10.BrickColor = BrickColor.new("Burnt Sienna")
317
Part10.Rotation = Vector3.new(160.440002, 0, -180)
318
Part10.Anchored = true
319
Part10.Size = Vector3.new(0.189999804, 0.289999992, 0.190000027)
320
Part10.CFrame = CFrame.new(72.5949936, 0.168441296, -50.7875595, -1, 0, 0, 0, 0.942295253, -0.334783107, 0, -0.334783077, -0.942295253)
321
Part10.BottomSurface = Enum.SurfaceType.Smooth
322
Part10.TopSurface = Enum.SurfaceType.Smooth
323
Part10.Color = Color3.new(0.415686, 0.223529, 0.0352941)
324
Part10.Position = Vector3.new(72.5949936, 0.168441296, -50.7875595)
325
Part10.Orientation = Vector3.new(19.5599995, 180, 0)
326
Part10.Color = Color3.new(0.415686, 0.223529, 0.0352941)
327
Part11.Parent = Tool0
328
Part11.BrickColor = BrickColor.new("Ghost grey")
329
Part11.Rotation = Vector3.new(-180, 0, -180)
330
Part11.Anchored = true
331
Part11.Size = Vector3.new(0.200571179, 0.569999278, 0.200571075)
332
Part11.CFrame = CFrame.new(72.6000061, 2.43656635, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
333
Part11.BottomSurface = Enum.SurfaceType.Smooth
334
Part11.TopSurface = Enum.SurfaceType.Smooth
335
Part11.Color = Color3.new(0.792157, 0.796079, 0.819608)
336
Part11.Position = Vector3.new(72.6000061, 2.43656635, -50.8356361)
337
Part11.Orientation = Vector3.new(0, 180, 0)
338
Part11.Color = Color3.new(0.792157, 0.796079, 0.819608)
339
Part12.Parent = Tool0
340
Part12.BrickColor = BrickColor.new("Ghost grey")
341
Part12.Rotation = Vector3.new(-180, 0, -180)
342
Part12.Anchored = true
343
Part12.Size = Vector3.new(0.200571179, 0.319999456, 0.200571075)
344
Part12.CFrame = CFrame.new(72.6000061, 4.21157122, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
345
Part12.BottomSurface = Enum.SurfaceType.Smooth
346
Part12.TopSurface = Enum.SurfaceType.Smooth
347
Part12.Color = Color3.new(0.792157, 0.796079, 0.819608)
348
Part12.Position = Vector3.new(72.6000061, 4.21157122, -50.8356361)
349
Part12.Orientation = Vector3.new(0, 180, 0)
350
Part12.Color = Color3.new(0.792157, 0.796079, 0.819608)
351
Part13.Parent = Tool0
352
Part13.BrickColor = BrickColor.new("Ghost grey")
353
Part13.Rotation = Vector3.new(-180, 0, -180)
354
Part13.Anchored = true
355
Part13.Size = Vector3.new(0.200571179, 0.499999523, 0.200571075)
356
Part13.CFrame = CFrame.new(72.6000061, 2.99156809, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
357
Part13.BottomSurface = Enum.SurfaceType.Smooth
358
Part13.TopSurface = Enum.SurfaceType.Smooth
359
Part13.Color = Color3.new(0.792157, 0.796079, 0.819608)
360
Part13.Position = Vector3.new(72.6000061, 2.99156809, -50.8356361)
361
Part13.Orientation = Vector3.new(0, 180, 0)
362
Part13.Color = Color3.new(0.792157, 0.796079, 0.819608)
363
Part14.Parent = Tool0
364
Part14.Material = Enum.Material.Wood
365
Part14.BrickColor = BrickColor.new("Burnt Sienna")
366
Part14.Rotation = Vector3.new(-180, 0, -180)
367
Part14.Anchored = true
368
Part14.Size = Vector3.new(0.199999809, 2.90999842, 0.19999969)
369
Part14.CFrame = CFrame.new(72.6000061, 3.5665679, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
370
Part14.BottomSurface = Enum.SurfaceType.Smooth
371
Part14.TopSurface = Enum.SurfaceType.Smooth
372
Part14.Color = Color3.new(0.415686, 0.223529, 0.0352941)
373
Part14.Position = Vector3.new(72.6000061, 3.5665679, -50.8356361)
374
Part14.Orientation = Vector3.new(0, 180, 0)
375
Part14.Color = Color3.new(0.415686, 0.223529, 0.0352941)
376
Part15.Parent = Tool0
377
Part15.BrickColor = BrickColor.new("Ghost grey")
378
Part15.Rotation = Vector3.new(-180, 0, -180)
379
Part15.Anchored = true
380
Part15.Size = Vector3.new(0.200571179, 0.409999192, 0.200571075)
381
Part15.CFrame = CFrame.new(72.6000061, 3.45656633, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
382
Part15.BottomSurface = Enum.SurfaceType.Smooth
383
Part15.TopSurface = Enum.SurfaceType.Smooth
384
Part15.Color = Color3.new(0.792157, 0.796079, 0.819608)
385
Part15.Position = Vector3.new(72.6000061, 3.45656633, -50.8356361)
386
Part15.Orientation = Vector3.new(0, 180, 0)
387
Part15.Color = Color3.new(0.792157, 0.796079, 0.819608)
388
Part16.Parent = Tool0
389
Part16.Material = Enum.Material.Wood
390
Part16.BrickColor = BrickColor.new("Burnt Sienna")
391
Part16.Rotation = Vector3.new(177.619995, 0, -180)
392
Part16.Anchored = true
393
Part16.Size = Vector3.new(0.199999809, 1.15999949, 0.19999969)
394
Part16.CFrame = CFrame.new(72.5999985, 0.803365231, -50.8432655, -1, 0, 0, 0, 0.999136627, -0.0415469855, 0, -0.0415469855, -0.999136627)
395
Part16.BottomSurface = Enum.SurfaceType.Smooth
396
Part16.TopSurface = Enum.SurfaceType.Smooth
397
Part16.Color = Color3.new(0.415686, 0.223529, 0.0352941)
398
Part16.Position = Vector3.new(72.5999985, 0.803365231, -50.8432655)
399
Part16.Orientation = Vector3.new(2.37999988, 180, 0)
400
Part16.Color = Color3.new(0.415686, 0.223529, 0.0352941)
401
Part17.Parent = Tool0
402
Part17.Material = Enum.Material.Wood
403
Part17.BrickColor = BrickColor.new("Burnt Sienna")
404
Part17.Rotation = Vector3.new(-177.099991, 0, -180)
405
Part17.Anchored = true
406
Part17.Size = Vector3.new(0.199999809, 0.919999719, 0.19999969)
407
Part17.CFrame = CFrame.new(72.5999985, 1.80297112, -50.8531914, -1, 0, 0, 0, 0.998716116, 0.0506570078, 0, 0.0506570078, -0.998716116)
408
Part17.BottomSurface = Enum.SurfaceType.Smooth
409
Part17.TopSurface = Enum.SurfaceType.Smooth
410
Part17.Color = Color3.new(0.415686, 0.223529, 0.0352941)
411
Part17.Position = Vector3.new(72.5999985, 1.80297112, -50.8531914)
412
Part17.Orientation = Vector3.new(-2.89999986, 180, 0)
413
Part17.Color = Color3.new(0.415686, 0.223529, 0.0352941)
414
Part18.Parent = Tool0
415
Part18.BrickColor = BrickColor.new("Ghost grey")
416
Part18.Rotation = Vector3.new(-180, 0, -180)
417
Part18.Anchored = true
418
Part18.Size = Vector3.new(0.200571179, 0.349999249, 0.200571075)
419
Part18.CFrame = CFrame.new(72.6000061, 3.85656738, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1)
420
Part18.BottomSurface = Enum.SurfaceType.Smooth
421
Part18.TopSurface = Enum.SurfaceType.Smooth
422
Part18.Color = Color3.new(0.792157, 0.796079, 0.819608)
423
Part18.Position = Vector3.new(72.6000061, 3.85656738, -50.8356361)
424
Part18.Orientation = Vector3.new(0, 180, 0)
425
Part18.Color = Color3.new(0.792157, 0.796079, 0.819608)
426
Part19.Parent = Tool0
427
Part19.Material = Enum.Material.Neon
428
Part19.BrickColor = BrickColor.new("Maroon")
429
Part19.Anchored = true
430
Part19.Shape = Enum.PartType.Ball
431
Part19.Size = Vector3.new(0.649999797, 0.649999797, 0.649999797)
432
Part19.CFrame = CFrame.new(72.5800018, 5.6065712, -50.8699837, 1, 0, -0, 0, 1, -8.94069672e-08, 0, 8.94069672e-08, 1)
433
Part19.BottomSurface = Enum.SurfaceType.Smooth
434
Part19.TopSurface = Enum.SurfaceType.Smooth
435
Part19.Color = Color3.new(0.458824, 0, 0)
436
Part19.Position = Vector3.new(72.5800018, 5.6065712, -50.8699837)
437
Part19.Color = Color3.new(0.458824, 0, 0)
438
Part20.Name = "Handle"
439
Part20.Parent = Tool0
440
Part20.Material = Enum.Material.Wood
441
Part20.BrickColor = BrickColor.new("Burnt Sienna")
442
Part20.Transparency = 1
443
Part20.Anchored = true
444
Part20.Size = Vector3.new(0.199999809, 0.749999762, 0.19999969)
445
Part20.CFrame = CFrame.new(72.6000061, 2.8165679, -50.8356361, 1, 0, 0, 0, 1, 0, 0, 0, 1)
446
Part20.BottomSurface = Enum.SurfaceType.Smooth
447
Part20.TopSurface = Enum.SurfaceType.Smooth
448
Part20.Color = Color3.new(0.415686, 0.223529, 0.0352941)
449
Part20.Position = Vector3.new(72.6000061, 2.8165679, -50.8356361)
450
Part20.Color = Color3.new(0.415686, 0.223529, 0.0352941)
451
Script21.Name = "weld"
452
Script21.Parent = Tool0
453
table.insert(cors,sandbox(Script21,function()
454
function weld()
455
	local parts,last = {}
456
	local function scan(parent)
457
		for _,v in pairs(parent:GetChildren()) do
458
			if (v:IsA("BasePart")) or (v:IsA("UnionOperation")) or (v:IsA("MeshPart")) then
459
				if (last) then
460
					local w = Instance.new("Weld")
461
					w.Name = ("%s_Weld"):format(v.Name)
462
					w.Part0,w.Part1 = last,v
463
					w.C0 = last.CFrame:inverse()
464
					w.C1 = v.CFrame:inverse()
465
					w.Parent = last
466
				end
467
				last = v
468
				table.insert(parts,v)
469
			end
470
			scan(v)
471
		end
472
	end
473
	scan(script.Parent)
474
	for _,v in pairs(parts) do
475
		v.Anchored = false
476
                v.CanCollide = false
477
	end
478
end
479
480
weld()
481
script:Remove()
482
end))
483
for i,v in pairs(mas:GetChildren()) do
484
	v.Parent = game:GetService("Players").LocalPlayer.Backpack
485
	pcall(function() v:MakeJoints() end)
486
end
487
mas:Destroy()
488
for i,v in pairs(cors) do
489
	spawn(function()
490
		pcall(v)
491
	end)
492
end
493
494
local tool = Tool0
495
496
local GF = Vector3.new(0, 0.447, -0.894)
497
local GR = Vector3.new(0.707, -0.707, 0)
498
local oringalGF = tool.GripForward
499
local oringalGR = tool.GripRight
500
501
local enabled = false
502
503
function boom(part)
504
	
505
	local mesh = Instance.new('SpecialMesh')
506
	mesh.MeshType = "FileMesh"
507
	mesh.MeshId = "rbxassetid://3270017"
508
	mesh.Scale = Vector3.new(10,10,15)
509
	
510
	local eff1 = Instance.new('Part',workspace)
511
	eff1.Position= part.Position
512
	eff1.Shape = "Ball"
513
	eff1.Anchored = true
514
	eff1.CanCollide = false
515
	eff1.Material = Enum.Material.Neon
516
	eff1.BrickColor = BrickColor.new('Gold')
517
	eff1.Transparency = 0
518
	eff1.Size = Vector3.new(5,5,5)
519
	eff1.Name = "eff1"
520
	
521
	local eff2 = Instance.new('Part',workspace)
522
	eff2.Position= part.Position
523
	eff2.Shape = "Ball"
524
	eff2.Anchored = true
525
	eff2.CanCollide = false
526
	eff2.Material = Enum.Material.Neon
527
	eff2.BrickColor = BrickColor.new('Really red')
528
	eff2.Transparency = 0
529
	eff2.Size = Vector3.new(10,10,10)
530
	eff2.Name = "eff2"
531
	
532
	local eff3 = Instance.new('Part',workspace)
533
	eff3.Position = part.Position
534
	eff3.Anchored = true
535
	eff3.CanCollide = false
536
	eff3.Orientation = Vector3.new(90,0,0)
537
	eff3.Name = "eff3"
538
	mesh.Parent = eff3
539
	
540
	for i=1,75 do
541
		workspace.beam.Size = workspace.beam.Size + Vector3.new(6,0,6)
542
		workspace.beam.Transparency = workspace.beam.Transparency + 0.025
543
		eff1.Size = eff1.Size + Vector3.new(6,6,6)
544
		eff1.Transparency = eff1.Transparency + 0.03
545
		eff2.Size = eff2.Size + Vector3.new(6,6,6)
546
		eff2.Transparency = eff2.Transparency + 0.03
547
		eff3.Mesh.Scale = eff3.Mesh.Scale + Vector3.new(8.7,8.7,0)
548
		wait()
549
	end
550
	
551
	eff1:Destroy()
552
	eff2:Destroy()
553
	eff3:Destroy()
554
end
555
556
function click(mouse)
557
if enabled == false then
558
	enabled = true
559
	
560
	local sound = Instance.new('Sound')
561
	sound.SoundId = "rbxassetid://762570073"
562
	sound.Volume = 1.5
563
	sound.Parent = char.Head
564
	sound.Name = "talk"
565
	
566
	tool.GripForward = GF
567
	tool.GripRight = GR
568
	
569
	local target = Instance.new('Part')
570
	target.Transparency = 1
571
	target.Anchored = true
572
	target.CanCollide = false
573
	target.Position = mouse.hit.p
574
	target.Parent = workspace
575
	target.Name = "target"
576
	
577
	local beam = Instance.new('Part')
578
	beam.Shape = "Cylinder"
579
	beam.Position = target.Position
580
	beam.BrickColor = BrickColor.new('Really red')
581
	beam.Material = Enum.Material.Neon
582
	beam.Anchored = true
583
	beam.CanCollide = false
584
	beam.Orientation = Vector3.new(0,0,90)
585
	beam.Size = Vector3.new(1000,1000,.2)
586
	beam.Parent = workspace
587
	beam.Name = "beam"
588
	
589
	game:GetService("Chat"):Chat(char.Head, "EXPLOSION!!!")
590
	sound:Play()
591
	
592
	wait(1.6)
593
	
594
	local exps = Instance.new('Sound')
595
	exps.SoundId = "rbxassetid://165970126"
596
	exps.Parent = target
597
	exps.Volume = 2
598
	exps.Name = "expSFX"
599
	
600
	local exp = Instance.new("Explosion")
601
	exp.Position = target.Position
602
	exp.Parent = game.Workspace
603
	exp.BlastRadius = 50
604
	
605
	exps:play()
606
	
607
	boom(target)
608
	
609
	beam:Destroy()
610
	target:Destroy()
611
	
612
	wait(1)
613
	sound:Destroy()
614
	exps:Destroy()
615
616
	tool.GripForward = oringalGF
617
	tool.GripRight = oringalGR
618
	
619
	enabled = false
620
end
621
end
622
623
function equipped(mouse)
624
	mouse.Button1Down:connect(function () click(mouse) end)
625
end
626
print('explosion loaded!!!!')
627
tool.Equipped:connect(equipped)