View difference between Paste ID: 7AWxynS2 and ngUy7sHp
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 print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
6
7
8
--wot
9
10
paly = game.Players.LocalPlayer
11
char = paly.Character
12
torso = char.Torso
13
neck = char.Torso.Neck
14
hum = char.Humanoid
15
Player = game:GetService("Players").LocalPlayer
16
local mouse = Player:GetMouse()
17
Character = Player.Character
18
tors = Character.Torso
19
lleg = Character["Left Leg"]
20
root = Character.HumanoidRootPart
21
hed = Character.Head
22
rleg = Character["Right Leg"]
23
rarm = Character["Right Arm"]
24
larm = Character["Left Arm"]
25
local Effects = {}
26
attack = false
27
local TColor = tors.BrickColor
28
vt = Vector3.new
29
bc = BrickColor.new
30
br = BrickColor.random
31
it = Instance.new
32
cf = CFrame.new
33
euler = CFrame.fromEulerAnglesXYZ
34
angles = CFrame.Angles
35
matr = math.random
36
37
local boll = Instance.new("Part",game.Lighting)
38
boll.Transparency = 0.5
39
boll.Material = "Neon"
40
boll.BrickColor = bc("Bright red")
41
boll.Anchored = true
42
boll.Size = vt(1,1,1)
43
boll.Shape = "Ball"
44
boll.CanCollide = false
45
46
local shur = Instance.new("Part",game.Lighting)
47
shur.Transparency = 0
48
shur.Material = "Neon"
49
shur.BrickColor = bc("Bright red")
50
shur.Anchored = true
51
shur.Size = vt(5,0.2,5)
52
shur.CanCollide = false
53
local Meshshur = Instance.new("CylinderMesh",shur)
54
55
Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
56
        if hit.Parent==nil then
57
                return
58
        end
59
        h=hit.Parent:FindFirstChild("Humanoid")
60
        for _,v in pairs(hit.Parent:children()) do
61
        if v:IsA("Humanoid") then
62
        h=v
63
        end
64
        end
65
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
66
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
67
        end
68
        if hit.Parent.className=="Hat" then
69
        hit=hit.Parent.Parent:findFirstChild("Head")
70
        end
71
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
72
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
73
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
74
                        return
75
                end]]
76
--                        hs(hit,1.2) 
77
                        c=Instance.new("ObjectValue")
78
                        c.Name="creator"
79
                        c.Value=game:service("Players").LocalPlayer
80
                        c.Parent=h
81
                        game:GetService("Debris"):AddItem(c,.5)
82
                Damage=math.random(minim,maxim)
83
--                h:TakeDamage(Damage)
84
                blocked=false
85
                block=hit.Parent:findFirstChild("Block")
86
                if block~=nil then
87
                print(block.className)
88
                if block.className=="NumberValue" then
89
                if block.Value>0 then
90
                blocked=true
91
                if decreaseblock==nil then
92
                block.Value=block.Value-1
93
                end
94
                end
95
                end
96
                if block.className=="IntValue" then
97
                if block.Value>0 then
98
                blocked=true
99
                if decreaseblock~=nil then
100
                block.Value=block.Value-1
101
                end
102
                end
103
                end
104
                end
105
                if blocked==false then
106
--                h:TakeDamage(Damage)
107
                h.Health=h.Health-Damage
108
                showDamage(hit.Parent,Damage,.5,TorsoColor)
109
                else
110
                h.Health=h.Health-(Damage/2)
111
                showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
112
                end
113
                if Type=="Knockdown" then
114
                hum=hit.Parent.Humanoid
115
hum.PlatformStand=true
116
coroutine.resume(coroutine.create(function(HHumanoid)
117
swait(1)
118
HHumanoid.PlatformStand=false
119
end),hum)
120
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
121
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
122
local bodvol=Instance.new("BodyVelocity")
123
bodvol.velocity=angle*knockback
124
bodvol.P=5000
125
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
126
bodvol.Parent=hit
127
rl=Instance.new("BodyAngularVelocity")
128
rl.P=3000
129
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
130
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
131
rl.Parent=hit
132
game:GetService("Debris"):AddItem(bodvol,.5)
133
game:GetService("Debris"):AddItem(rl,.5)
134
                elseif Type=="Normal" then
135
                vp=Instance.new("BodyVelocity")
136
                vp.P=500
137
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
138
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
139
                if KnockbackType==1 then
140
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
141
                elseif KnockbackType==2 then
142
                vp.velocity=Property.CFrame.lookVector*knockback
143
                end
144
                if knockback>0 then
145
                        vp.Parent=hit.Parent.Torso
146
                end
147
                game:GetService("Debris"):AddItem(vp,.5)
148
                elseif Type=="Up" then
149
                local bodyVelocity=Instance.new("BodyVelocity")
150
                bodyVelocity.velocity=vt(0,10,0)
151
                bodyVelocity.P=1000
152
                bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
153
                bodyVelocity.Parent=hit
154
                game:GetService("Debris"):AddItem(bodyVelocity,1)
155
                rl=Instance.new("BodyAngularVelocity")
156
                rl.P=3000
157
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
158
                rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
159
                rl.Parent=hit
160
                game:GetService("Debris"):AddItem(rl,.5)
161
                elseif Type=="Snare" then
162
                bp=Instance.new("BodyPosition")
163
                bp.P=2000
164
                bp.D=100
165
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
166
                bp.position=hit.Parent.Torso.Position
167
                bp.Parent=hit.Parent.Torso
168
                game:GetService("Debris"):AddItem(bp,1)
169
                elseif Type=="Target" then
170
                if Targetting==false then
171
                ZTarget=hit.Parent.Torso
172
                coroutine.resume(coroutine.create(function(Part) 
173
                swait(5)
174
                end),ZTarget)
175
                TargHum=ZTarget.Parent:findFirstChild("Humanoid")
176
                targetgui=Instance.new("BillboardGui")
177
                targetgui.Parent=ZTarget
178
                targetgui.Size=UDim2.new(10,100,10,100)
179
                targ=Instance.new("ImageLabel")
180
                targ.Parent=targetgui
181
                targ.BackgroundTransparency=1
182
                targ.Image="rbxassetid://4834067"
183
                targ.Size=UDim2.new(1,0,1,0)
184
                cam.CameraType="Scriptable"
185
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
186
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
187
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
188
                Targetting=true
189
                RocketTarget=ZTarget
190
                for i=1,Property do
191
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
192
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
193
                swait()
194
                end
195
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
196
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
197
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
198
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
199
                end
200
                Targetting=false
201
                RocketTarget=nil
202
                targetgui.Parent=nil
203
                cam.CameraType="Custom"
204
                end
205
                end
206
                        debounce=Instance.new("BoolValue")
207
                        debounce.Name="DebounceHit"
208
                        debounce.Parent=hit.Parent
209
                        debounce.Value=true
210
                        game:GetService("Debris"):AddItem(debounce,Delay)
211
                        c=Instance.new("ObjectValue")
212
                        c.Name="creator"
213
                        c.Value=Player
214
                        c.Parent=h
215
                        game:GetService("Debris"):AddItem(c,.5)
216
                CRIT=false
217
                hitDeb=true
218
                AttackPos=6
219
        end
220
end
221
 
222
showDamage=function(Char,Dealt,du,Color)
223
        m=Instance.new("Model")
224
        m.Name=""
225
        h=Instance.new("Humanoid")
226
        h.Health=0
227
        h.MaxHealth=0
228
        h.Parent=m
229
        c=Instance.new("Part")
230
        c.Transparency=0
231
        c.Material = "Neon"
232
        c.BrickColor=bc("Bright red")
233
        c.Name="Head"
234
        c.TopSurface=0
235
        c.BottomSurface=0
236
CV="Hot pink"
237
238
local txt = Instance.new("BillboardGui", c)
239
txt.Adornee = c
240
txt.Name = "_status"
241
txt.Size = UDim2.new(2, 0, 1.2, 0)
242
txt.StudsOffset = Vector3.new(-9, 8, 0)
243
local text = Instance.new("TextLabel", txt)
244
text.Size = UDim2.new(10, 0, 7, 0)
245
text.FontSize = "Size24"
246
text.TextScaled = true
247
text.TextTransparency = 0
248
text.BackgroundTransparency = 1 
249
text.TextTransparency = 0
250
text.TextStrokeTransparency = 0
251
text.Font = "Highway"
252
text.TextStrokeColor3 = BrickColor.new("Really black").Color
253
254
v=Instance.new("Part")
255
v.Name = "ColorBrick"
256
v.Parent=c
257
v.FormFactor="Symmetric"
258
v.Anchored=true
259
v.CanCollide=false
260
v.BottomSurface="Smooth"
261
v.TopSurface="Smooth"
262
v.Size=Vector3.new(10,5,3)
263
v.Transparency=1
264
v.CFrame=c.CFrame
265
v.BrickColor=BrickColor.new(CV)
266
v.Transparency=1
267
text.TextColor3 = BrickColor.new("Really red").Color
268
v.Shape="Block"
269
text.Text = tostring(Dealt)
270
  local tick = Instance.new("Sound",c)
271
  tick.SoundId = "rbxassetid://553325070"
272
  tick.Volume = 1.25
273
  tick.Pitch = 0.75
274
  tick:Play()
275
        c.formFactor="Plate"
276
c.Transparency = 0.99
277
        c.Size=Vector3.new(1,.4,1)
278
        ms=Instance.new("CylinderMesh")
279
        ms.Scale=Vector3.new(.8,.8,.8)
280
        if CRIT==true then
281
                ms.Scale=Vector3.new(1,1.25,1)
282
        end
283
        ms.Parent=c
284
        c.Reflectance=0
285
        Instance.new("BodyGyro").Parent=c
286
        c.Parent=m
287
        if Char:findFirstChild("Head")~=nil then
288
        c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
289
        elseif Char.Parent:findFirstChild("Head")~=nil then
290
        c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
291
        end
292
        f=Instance.new("BodyPosition")
293
        f.P=2000
294
        f.D=100
295
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
296
        f.position=c.Position+Vector3.new(0,3,0)
297
        f.Parent=c
298
        game:GetService("Debris"):AddItem(m,.5+du)
299
        c.CanCollide=false
300
        m.Parent=workspace
301
        c.CanCollide=false
302
end
303
304
function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
305
	for _, c in pairs(workspace:children()) do
306
		local hum = c:findFirstChild("Humanoid")
307
		if hum ~= nil then
308
			local head = c:findFirstChild("Torso")
309
			if head ~= nil then
310
				local targ = head.Position - Part.Position
311
				local mag = targ.magnitude
312
				if mag <= magni and c.Name ~= Player.Name then 
313
					Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3)
314
				end
315
			end
316
		end
317
	end
318
end
319
320
function Explode(rad,par)
321
	local expart = Instance.new("Part",script.Parent)
322
	local expart2 = Instance.new("Part",script.Parent)
323
	local partMesh = Instance.new("SpecialMesh",expart)
324
	partMesh.MeshType = "Sphere"
325
	local partMesh2 = Instance.new("SpecialMesh",expart2)
326
	partMesh2.MeshType = "Sphere"
327
	local expld = Instance.new("Explosion", script.Parent)
328
local plode = Instance.new("Sound",expart)
329
  plode.SoundId = "rbxassetid://165970126"
330
  plode.Volume = 2.5
331
  plode.Pitch = 1
332
  plode.Looped = false
333
  plode:Play()
334
	expld.BlastRadius = rad
335
	expld.Position = par.Position
336
	partMesh.Scale = vt(rad,rad,rad)
337
	expart.Size = vt(1,1,1)*1.5
338
	expart.Transparency = 0.5
339
	expart.Anchored = true
340
	expart.Material = "Neon"
341
	expart.BrickColor = bc("Deep orange")
342
	expart.CFrame = par.CFrame
343
	partMesh2.Scale = vt(rad,rad,rad)
344
	expart2.Size = vt(1.15,1.15,1.15)*1.5
345
	expart2.Transparency = 0.5
346
	expart2.Anchored = true
347
	expart2.Material = "Neon"
348
	expart2.BrickColor = bc("Bright orange")
349
	expart2.CFrame = par.CFrame
350
        local value = 5
351
        par:Destroy()
352
	for i = 0, 100 do
353
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
354
		expart.CFrame = expart.CFrame
355
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
356
		expart2.CFrame = expart.CFrame
357
                value = value - 0.225
358
                if value <= 0 then
359
		expart.Transparency = expart.Transparency + 0.0125
360
		expart2.Transparency = expart.Transparency + 0.0125
361
                value = 0
362
                end
363
		wait()
364
	end
365
  plode.Parent = nil
366
	expart.Parent = nil
367
	expart2.Parent = nil
368
	expld.Parent = nil
369
end
370
371
function SkyBeam()
372
  local s = Instance.new("Sound",hed)
373
  s.SoundId = "rbxassetid://163619849"
374
  s.Pitch = 0.5
375
  s.Volume = 2.5
376
  s.Looped = false
377
  s:Play()
378
  local spart = Instance.new("Part",workspace)
379
  spart.Size = vt(1,1,1)
380
  spart.BrickColor = TColor
381
  spart.Material = "Neon"
382
  spart.Transparency = 1
383
  spart.Anchored = true
384
  spart.CanCollide = false
385
  spart.CFrame = tors.CFrame + vt(0,0.01,0)
386
  local box = Instance.new("SelectionBox", spart)
387
  box.Adornee = box.Parent
388
  box.Transparency = 1
389
  box.Color = BrickColor.new("Really black")
390
  box.LineThickness = 0.1
391
local value = 0.1
392
local valuer = 0.1
393
  for i = 0, 50 do
394
  spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
395
  spart.Size = spart.Size + vt(0.1,0.1,0.1)
396
  box.Transparency = box.Transparency - 0.05
397
  spart.CFrame = tors.CFrame
398
  wait()
399
  end
400
  for i = 0, 10 do
401
  valuer = valuer - 0.01
402
  spart.Transparency = spart.Transparency - 0.1
403
  spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
404
  spart.Size = spart.Size + vt(valuer,10,valuer)
405
  box.Transparency = box.Transparency - 0.05
406
  spart.CFrame = tors.CFrame
407
  wait()
408
  end
409
  hithere=spart.Touched:connect(function(hit) Damagefunc(hit,35,47,0,"Normal",root,.2,1) end)
410
  for i = 0, 10 do
411
  spart.CFrame = tors.CFrame
412
  for e = 0, 10 do
413
  value = value + 0.05
414
  spart.Transparency = spart.Transparency + 0.065
415
  spart.Size = spart.Size + vt(value,value,value)
416
  spart.CFrame = tors.CFrame
417
  wait()
418
  end
419
  for e = 0, 10 do
420
  value = value - 0.05
421
  spart.Transparency = spart.Transparency - 0.065
422
  spart.Size = spart.Size + vt(value,value,value)
423
  spart.CFrame = tors.CFrame
424
  wait()
425
  end
426
  wait()
427
  end
428
  for i = 0, 50 do
429
  spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
430
  spart.Transparency = spart.Transparency + 0.065
431
  spart.Size = spart.Size - vt(1.5,-10,1.5)
432
  box.Transparency = box.Transparency + 0.075
433
  spart.CFrame = tors.CFrame
434
  wait()
435
  end
436
  spart:Destroy()
437
  s:Destroy()
438
end
439
440
function Block()
441
  local spart = Instance.new("Part",workspace)
442
  spart.Size = vt(5,8,5)
443
  spart.BrickColor = TColor
444
  spart.Material = "Neon"
445
  spart.Transparency = 1
446
  spart.Anchored = true
447
  spart.CanCollide = false
448
  spart.CFrame = tors.CFrame + vt(0,0.01,0)
449
  local box = Instance.new("SelectionBox", spart)
450
  box.Adornee = box.Parent
451
  box.Transparency = 1
452
  box.Color = BrickColor.new("Really black")
453
  box.LineThickness = 0.1
454
  for i = 0, 50 do
455
  spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
456
  spart.Size = spart.Size + vt(0.05,0.05,0.05)
457
  box.Transparency = box.Transparency - 0.05
458
  spart.CFrame = tors.CFrame
459
  wait()
460
  end
461
  for i = 0, 5 do
462
  spart.CFrame = tors.CFrame
463
  for z = 0, 25 do
464
  spart.CFrame = tors.CFrame
465
  spart.Transparency = spart.Transparency - 0.05
466
  spart.CFrame = tors.CFrame
467
  wait()
468
  end
469
  for z = 0, 25 do
470
  spart.CFrame = tors.CFrame
471
  spart.Transparency = spart.Transparency + 0.05
472
  spart.CFrame = tors.CFrame
473
  wait()
474
  end
475
  wait()
476
  spart.CFrame = tors.CFrame
477
  end
478
  for i = 0, 50 do
479
  spart.CFrame = spart.CFrame*CFrame.Angles(0.1,0.1,0.1)
480
  spart.Size = spart.Size - vt(0.05,0.05,0.05)
481
  box.Transparency = box.Transparency + 0.05
482
  spart.CFrame = tors.CFrame
483
  wait()
484
  end
485
  spart:Destroy()
486
end
487
488
function HyperShot()
489
  local s = Instance.new("Sound",hed)
490
  s.SoundId = "rbxassetid://200632561"
491
  s.Pitch = 0.5
492
  s.Volume = 1.5
493
  s.Looped = false
494
  s:Play()
495
  local spart = Instance.new("Part",workspace)
496
  spart.Size = vt(10,10,10)
497
  spart.BrickColor = TColor
498
  spart.Material = "Neon"
499
  spart.Transparency = 0.15
500
  spart.Anchored = true
501
  spart.CanCollide = false
502
  spart.CFrame = tors.CFrame + vt(0,0.01,0)
503
  spart.Anchored = false
504
  local box = Instance.new("SelectionBox", spart)
505
  box.Adornee = box.Parent
506
  box.Transparency = 0.15
507
  box.Color = BrickColor.new("Really black")
508
  box.LineThickness = 0.1
509
  local spart2 = Instance.new("Part",workspace)
510
  spart2.Size = vt(8.5,8.5,8.5)
511
  spart2.BrickColor = BrickColor.random()
512
  spart2.Material = "Neon"
513
  spart2.Transparency = 0
514
  spart2.Anchored = true
515
  spart2.CanCollide = false
516
  spart2.CFrame = tors.CFrame + vt(0,0.01,0)
517
  spart2.Anchored = false
518
  local box2 = Instance.new("SelectionBox", spart2)
519
  box2.Adornee = box2.Parent
520
  box2.Transparency = 0
521
  box2.Color = BrickColor.new("Really black")
522
  box2.LineThickness = 0.1
523
  local bv = Instance.new("BodyVelocity")
524
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
525
  bv.velocity = mouse.Hit.lookVector *35
526
  bv.Parent = spart
527
  local bv2 = Instance.new("BodyVelocity")
528
  bv2.maxForce = Vector3.new(1e9, 1e9, 1e9)
529
  bv2.velocity = mouse.Hit.lookVector *35
530
  bv2.Parent = spart2
531
  wait(0.1)
532
  hithere=spart.Touched:connect(function(hit) Damagefunc(hit,10,19,0,"Normal",root,.2,1) end)
533
  for i = 0, 25 do
534
  local bul = Instance.new("Part",workspace)
535
  local sphere = Instance.new("SpecialMesh",bul)
536
  sphere.MeshType = "Sphere"
537
  bul.Size = vt(1,1,1)
538
  bul.BrickColor = BrickColor.new("Really black")
539
  bul.Shape = "Ball"
540
  bul.Anchored = true
541
  bul.Material = "Neon"
542
  bul.Transparency = 0.5
543
  bul.CanCollide = false
544
  bul.CFrame = spart.CFrame
545
  for z = 0, 20 do
546
  sphere.Scale = sphere.Scale + vt(2.5,2.5,2.5)
547
  bul.Transparency = bul.Transparency + 0.025
548
  bul.BrickColor = BrickColor.random()
549
  bul.CFrame = spart.CFrame
550
  spart2.BrickColor = BrickColor.random()
551
  spart.CFrame = spart.CFrame*CFrame.Angles(0.05,0.05,0.05)
552
  spart2.CFrame = spart2.CFrame*CFrame.Angles(0.05,0.05,0.05)
553
  box.Transparency = box.Transparency + 0.0025
554
  spart.Transparency = spart.Transparency + 0.0025
555
  box2.Transparency = box2.Transparency + 0.0025
556
  spart2.Transparency = spart2.Transparency + 0.0025
557
  wait()
558
  end
559
  bul:Destroy()
560
  end
561
  spart:Destroy()
562
  spart2:Destroy()
563
s:Destroy()
564
end
565
566
function BasicShot()
567
  local s = Instance.new("Sound",hed)
568
  s.SoundId = "rbxassetid://200632561"
569
  s.Pitch = 1
570
  s.Volume = 1
571
  s.Looped = false
572
  s:Play()
573
  local bul = Instance.new("Part",workspace)
574
  bul.Size = vt(5,5,5)
575
  bul.BrickColor = BrickColor.new("Really black")
576
  bul.Shape = "Ball"
577
  bul.Material = "Neon"
578
  bul.Transparency = 0.5
579
  bul.CanCollide = false
580
  bul.CFrame = tors.CFrame + vt(0,0.01,0)
581
  local bul2 = Instance.new("Part",workspace)
582
  bul2.Size = vt(4.5,4.5,4.5)
583
  bul2.BrickColor = TColor
584
  bul2.Shape = "Ball"
585
  bul2.Material = "Neon"
586
  bul2.Transparency = 0
587
  bul2.CanCollide = false
588
  bul2.CFrame = bul.CFrame
589
local bv = Instance.new("BodyVelocity")
590
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
591
bv.velocity = mouse.Hit.lookVector * 50
592
bv.Parent = bul2
593
local bvr = Instance.new("BodyVelocity")
594
bvr.maxForce = Vector3.new(1e9, 1e9, 1e9)
595
bvr.velocity = mouse.Hit.lookVector * 50
596
bvr.Parent = bul
597
hithere=bul.Touched:connect(function(hit) Damagefunc(hit,8,13,0,"Normal",root,.2,1) end)
598
wait(5)
599
bul:Destroy()
600
bul2:Destroy()
601
s:Destroy()
602
end
603
 	
604
mouse.Button1Down:connect(function()
605
  BasicShot()
606
end)
607
mouse.KeyDown:connect(function(k)
608
  
609
k = k:lower()
610
if k == "r" then
611
  Block()
612
end
613
if k == "e" then
614
  HyperShot()
615
end
616
end)