SHOW:
|
|
- or go back to the newest paste.
1 | -- a shotgun gun used to edit velocity and use vectors and working freezeing c02 | |
2 | - | lp=game.Players.UsernameHere |
2 | + | lp=game.Players.rickyro26 |
3 | pl=lp.Character | |
4 | tol=Instance.new("HopperBin",lp.Backpack) | |
5 | tol.Name="L_Shotgun"--ContentDownloader | |
6 | Part = function(x,y,z,color,tr,cc,an,parent) | |
7 | local p = Instance.new('Part',parent or Weapon) | |
8 | p.formFactor = 'Custom' | |
9 | p.Size = Vector3.new(x,y,z) | |
10 | p.BrickColor = BrickColor.new(color) | |
11 | p.CanCollide = cc | |
12 | p.Transparency = tr | |
13 | p.Anchored = an | |
14 | p.TopSurface,p.BottomSurface = 0,0 | |
15 | return p | |
16 | end | |
17 | s = Instance.new("Sound")s.Name = "Sound" | |
18 | s.SoundId = "http://www.roblox.com/asset?id=131632972"s.Volume = 1 | |
19 | s.Pitch = 1 s.Looped = false s.PlayOnRemove = false s.archivable = false | |
20 | s.Parent = pl.Torso | |
21 | s2 = Instance.new("Sound")s.Name = "Sound" | |
22 | s2.SoundId = "http://roblox.com/asset/?id=131072992"s2.Volume = 1 | |
23 | s2.Pitch = 1 s2.Looped = false s2.PlayOnRemove = false s2.archivable = false | |
24 | s2.Parent = pl.Torso | |
25 | s3 = Instance.new("Sound")s.Name = "Sound" | |
26 | s3.SoundId = "http://www.roblox.com/asset/?id=30624262"s3.Volume = 1 | |
27 | s3.Pitch = .225 s3.Looped = false s3.PlayOnRemove = false s3.archivable = false | |
28 | s3.Parent = pl.Torso | |
29 | Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency) | |
30 | local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset} | |
31 | for i=1,Times do | |
32 | local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = Transparency or 0.4 li.BrickColor = BrickColor.new(Color) | |
33 | li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(Thickness,Thickness,magz/Times) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
34 | function touch(hit) | |
35 | if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent ~=pl then | |
36 | hit.Parent:BreakJoints() | |
37 | end end li.Touched:connect(touch) | |
38 | local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz | |
39 | if Times == i then | |
40 | local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2) | |
41 | li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2) | |
42 | else | |
43 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
44 | end | |
45 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25) | |
46 | end | |
47 | end | |
48 | Weld = function(p0,p1,x,y,z,rx,ry,rz,par) | |
49 | p0.Position = p1.Position | |
50 | local w = Instance.new('Motor',par or p0) | |
51 | w.Part0 = p0 | |
52 | w.Part1 = p1 | |
53 | w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz) | |
54 | return w | |
55 | end | |
56 | Mesh = function(par,num,x,y,z) | |
57 | local msh = _ | |
58 | if num == 1 then msh = Instance.new("CylinderMesh",par) | |
59 | elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3 | |
60 | elseif num == 3 then msh = Instance.new("BlockMesh",par) | |
61 | elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num | |
62 | end | |
63 | msh.Scale = Vector3.new(x,y,z) | |
64 | return msh | |
65 | end | |
66 | shotval=0 | |
67 | function onClicked(mouse) | |
68 | Debounce = true | |
69 | if shotval==2 then print("out") return end | |
70 | if shotval==0 then print("1") | |
71 | lod.BrickColor=BrickColor.new("")s:play() | |
72 | for i=1,5 do | |
73 | Lightning(shot1.Position,mouse.Hit.p,math.random(5,10),math.random(-2.5,2.5),"Royal purple",0.05,0.35)end end | |
74 | if shotval==1 then print("2") | |
75 | lod2.BrickColor=BrickColor.new("")s:play() | |
76 | for i=1,5 do | |
77 | Lightning(shot2.Position,mouse.Hit.p,math.random(5,10),math.random(-2.5,2.5),"Royal purple",0.05,0.35)end end | |
78 | shotval=shotval+1 | |
79 | end | |
80 | function onKeyDown(key) | |
81 | key = key:lower() | |
82 | if key == "r" then | |
83 | if shotval>=2 then | |
84 | shotval=-10900 | |
85 | lod.BrickColor=BrickColor.new("Really red")s2:play() | |
86 | wait(.75) | |
87 | lod2.BrickColor=BrickColor.new("Really red")s2:play() | |
88 | wait(1) | |
89 | smoke.Enabled=true | |
90 | s3:play() | |
91 | wait(1.5) | |
92 | smoke.Enabled=false | |
93 | shotval=0 | |
94 | end end end | |
95 | tol.Selected:connect(function(mouse) | |
96 | mouse.Button1Down:connect(function() onClicked(mouse) end) | |
97 | mouse.KeyDown:connect(onKeyDown) | |
98 | mo=Instance.new("Model",pl) | |
99 | pa1= Part(.3,.3,1,'Really black',0,false,false,mo) | |
100 | wl1= Weld(pa1,pl['Right Arm'],0,-1,0,0,0,0,mo) | |
101 | pa1= Part(.3,.3,.4,'Really black',0,false,false,mo) | |
102 | wl1= Weld(pa1,pl['Right Arm'],0,-1.2,-.5,-math.pi/5,0,0,mo) | |
103 | pa1= Part(.3,2,.3,'Really black',0,false,false,mo) | |
104 | wl1= Weld(pa1,pl['Right Arm'],0,-1.75,-.6,0,0,0,mo) | |
105 | pa1= Part(.4,2,.4,'Dark stone grey',0,false,false,mo)--pa1.Material="Neon" | |
106 | wl1= Weld(pa1,pl['Right Arm'],0.2,-2.25,-.6,0,0,0,mo) | |
107 | m1= Mesh(pa1,1,1,1,1) | |
108 | pa1= Part(.4,2,.4,'Dark stone grey',0,false,false,mo)--pa1.Material="Neon" | |
109 | wl1= Weld(pa1,pl['Right Arm'],-0.2,-2.25,-.6,0,0,0,mo) | |
110 | m1= Mesh(pa1,1,1,1,1) | |
111 | shot2= Part(.3,2,.3,'Really black',0,false,false,mo) | |
112 | wl1= Weld(shot2,pl['Right Arm'],0.2,-2.26,-.6,0,0,0,mo) | |
113 | m1= Mesh(shot2,1,1,1,1) | |
114 | shot1= Part(.3,2,.3,'Really black',0,false,false,mo) | |
115 | wl1= Weld(shot1,pl['Right Arm'],-0.2,-2.26,-.6,0,0,0,mo) | |
116 | m1= Mesh(shot1,1,1,1,1) | |
117 | pa1= Part(.2,.5,.2,'Really black',0,false,false,mo) | |
118 | wl1= Weld(pa1,pl['Right Arm'],-0.2,-1.25,-.6,0,0,-math.pi/5,mo) | |
119 | pa1= Part(.2,.5,.2,'Really black',0,false,false,mo) | |
120 | wl1= Weld(pa1,pl['Right Arm'],0.2,-1.25,-.6,0,0,math.pi/5,mo) | |
121 | pa1= Part(.3,.5,.3,'Really black',0,false,false,mo) | |
122 | wl1= Weld(pa1,pl['Right Arm'],0.2,-1.2,-.7,-math.pi/5,0,0,mo) | |
123 | m1= Mesh(pa1,1,1,1,1) | |
124 | pa1= Part(.3,.5,.3,'Really black',0,false,false,mo) | |
125 | wl1= Weld(pa1,pl['Right Arm'],-0.2,-1.2,-.7,-math.pi/5,0,0,mo) | |
126 | m1= Mesh(pa1,1,1,1,1) | |
127 | lod2= Part(.2,.5,.2,'Really red',0,false,false,mo) | |
128 | wl1= Weld(lod2,pl['Right Arm'],0.2,-1.15,-.75,-math.pi/5,0,0,mo) | |
129 | m1= Mesh(lod2,1,1,1,1) | |
130 | lod= Part(.2,.5,.2,'Really red',0,false,false,mo) | |
131 | wl1= Weld(lod,pl['Right Arm'],-0.2,-1.15,-.75,-math.pi/5,0,0,mo) | |
132 | m1= Mesh(lod,1,1,1,1) | |
133 | pa1= Part(.4,.5,.5,'',0,false,false,mo) | |
134 | wl1= Weld(pa1,pl['Right Arm'],0,-2.75,-.3,0,0,0,mo) | |
135 | pa1= Part(.3,.5,.3,'Really black',0,false,false,mo) | |
136 | wl1= Weld(pa1,pl['Right Arm'],0,-2.8,0,0,0,0,mo) | |
137 | m1= Mesh(pa1,1,1,1,1) | |
138 | pa1= Part(.1,.1,.1,'Really red',0.75,false,false,mo) | |
139 | wl1= Weld(pa1,pl['Right Arm'],0,-5.55,0,0,0,0,mo) | |
140 | m1= Mesh(pa1,1,.3,30,.3) | |
141 | bb= Part(.1,.1,.1,'Bright red',0,false,false,mo) | |
142 | wl1= Weld(bb,pl['Right Arm'],0,-2,0,-math.pi/3,0,0,mo) | |
143 | m1= Mesh(bb,2,2.5,2.5,2.5) | |
144 | pa1= Part(.5,1,.5,'Bright red',0,false,false,mo) | |
145 | wl1= Weld(pa1,bb,0,-.5,0,0,0,0,mo) | |
146 | m1= Mesh(pa1,1,1,1,1) | |
147 | pa1= Part(.3,.65,.3,'',0,false,false,mo) | |
148 | wl1= Weld(pa1,bb,0,.25,0,0,0,0,mo) | |
149 | m1= Mesh(pa1,1,1,1,1) | |
150 | pa1= Part(.3,.5,.3,'Dark stone grey',0,false,false,mo) | |
151 | wl1= Weld(pa1,bb,0.1,-.74,0,0,0,0,mo) | |
152 | pa1= Part(.1,.1,.1,'Really black',0,false,false,mo) | |
153 | wl1= Weld(pa1,bb,0.25,-.74,0,0,0,0,mo) | |
154 | m1= Mesh(pa1,3,.1,2,.1) | |
155 | pa1= Part(.1,.1,.1,'Really black',0,false,false,mo) | |
156 | wl1= Weld(pa1,bb,0.25,-.74,.05,0,0,0,mo) | |
157 | m1= Mesh(pa1,3,.1,2,.1) | |
158 | pa1= Part(.1,.1,.1,'Really black',0,false,false,mo) | |
159 | wl1= Weld(pa1,bb,0.25,-.74,-.05,0,0,0,mo) | |
160 | m1= Mesh(pa1,3,.1,2,.1) | |
161 | pa1= Part(.1,.1,.1,'Really black',0,false,false,mo) | |
162 | wl1= Weld(pa1,bb,0.25,-.74,.1,0,0,0,mo) | |
163 | m1= Mesh(pa1,3,.1,2,.1) | |
164 | pa1= Part(.1,.1,.1,'Really black',0,false,false,mo) | |
165 | wl1= Weld(pa1,bb,0.25,-.74,-.1,0,0,0,mo) | |
166 | m1= Mesh(pa1,3,.1,2,.1) | |
167 | pa1= Part(.2,.6,.2,'Really black',0,false,false,mo) | |
168 | wl1= Weld(pa1,pl['Right Arm'],0,-2.5,0,0,0,0,mo) | |
169 | pa1= Part(.3,.3,1,'Really black',0,false,false,mo) | |
170 | wl1= Weld(pa1,pl['Right Arm'],0,-1.2,0,math.pi/8,0,0,mo) | |
171 | m1= Mesh(pa1,3,1,.1,1) | |
172 | smo= Part(.1,.1,.1,'Dark stone grey',1,false,false,mo) | |
173 | wl1= Weld(smo,bb,0.1,-.74,0,0,0,-math.pi/2,mo) | |
174 | smoke=Instance.new("Smoke",smo) | |
175 | smoke.Color=Color3.new(.85,0,2.55) | |
176 | smoke.RiseVelocity=100 | |
177 | smoke.Enabled=false | |
178 | ||
179 | ||
180 | ||
181 | ||
182 | -- | |
183 | bas = Part(1,1,1,'',1,false,false,mo) | |
184 | bas:BreakJoints() | |
185 | fakel = Instance.new("Weld",mo) | |
186 | fakel.Part0 = pl.Torso | |
187 | fakel.Part1 = bas | |
188 | coroutine.wrap(function() | |
189 | for angle = 0, 95, 10 do | |
190 | fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle),math.rad(angle/8),0) | |
191 | wait() | |
192 | end | |
193 | end)() | |
194 | welditbro = Instance.new("Weld", mo) | |
195 | welditbro.C0 = CFrame.new(0, 0.5, 0) | |
196 | welditbro.Part0 = pl['Right Arm'] | |
197 | welditbro.Part1 = bas | |
198 | bas2 = Part(1,1,1,'',1,false,false,mo) | |
199 | bas2:BreakJoints() | |
200 | fakel2 = Instance.new("Weld",mo) | |
201 | fakel2.Part0 = pl.Torso | |
202 | fakel2.Part1 = bas2 | |
203 | coroutine.wrap(function() | |
204 | for angle = 0, 30, 5 do | |
205 | fakel2.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-angle),math.rad(-angle/5),math.rad(-angle/5)) | |
206 | wait() | |
207 | end | |
208 | end)() | |
209 | welditbro2 = Instance.new("Weld", mo) | |
210 | welditbro2.C0 = CFrame.new(0, 0.5, 0) | |
211 | welditbro2.Part0 = pl['Left Arm'] | |
212 | welditbro2.Part1 = bas2 | |
213 | end) | |
214 | tol.Deselected:connect(function(mouse) | |
215 | loop=true | |
216 | mo:remove() | |
217 | end) |