SHOW:
|
|
- or go back to the newest paste.
1 | ---------------------------------------- | |
2 | -- Originally made by Alfederate :D -- | |
3 | -- And Edited By Memo1332 So Fucks Given-- | |
4 | ---------------------------------------- | |
5 | ||
6 | -- there's no time to explain! -- | |
7 | ||
8 | local Mouse = game.Players.LocalPlayer:GetMouse() | |
9 | local Plr = game.Players.LocalPlayer | |
10 | local plr = game.Players.LocalPlayer | |
11 | local s = Instance.new("Sound") | |
12 | ||
13 | base = Instance.new("ScreenGui",plr.PlayerGui) | |
14 | bbg = Instance.new("BillboardGui",plr.Character.Head) | |
15 | bbg.Size = UDim2.new(0,200,0,50) | |
16 | bbg.StudsOffset = Vector3.new(0,3,0) | |
17 | bbgTl = Instance.new("TextLabel",bbg) | |
18 | bbgTl.BackgroundTransparency = 1 | |
19 | bbgTl.Size = UDim2.new(10,0,1,0) | |
20 | bbgTl.Position = UDim2.new(-4.5,0,0,0) | |
21 | bbgTl.Font = "Code" | |
22 | bbgTl.Text = " " | |
23 | bbgTl.TextSize = 25 | |
24 | bbgTl.TextStrokeColor3 = Color3.new(1,1,1) | |
25 | bbgTl.TextColor3 = Color3.new(0.07,0.54,0) | |
26 | bbgTl.TextStrokeTransparency = 0 | |
27 | - | snd='rbxassetid://306197164' |
27 | + | bbgTl.TextWrapped = true |
28 | plr.Chatted:connect(function(msg) | |
29 | bbgTl.Text = msg | |
30 | wait(5) | |
31 | if bbgTl.Text == msg then | |
32 | bbgTl.Text = " " | |
33 | end | |
34 | end) | |
35 | ||
36 | Mouse.KeyDown:connect(function(KeyDown) | |
37 | if KeyDown == "0" then | |
38 | - | rs.Size=Vector3.new(.5,.5,.5) |
38 | + | s.Name = "Sound" |
39 | s.SoundId = "http://www.roblox.com/asset/?id=410134997" | |
40 | s.Volume = 8 | |
41 | s.Looped = true | |
42 | s.Archivable = false | |
43 | s.Looped = true | |
44 | s.Parent = game.Workspace | |
45 | s:Play() | |
46 | Plr.Character.Humanoid.WalkSpeed = 135 | |
47 | end | |
48 | end) | |
49 | - | s1.Volume=1 |
49 | + | |
50 | - | s1.Pitch=1 |
50 | + | Mouse.KeyUp:connect(function(KeyUp) |
51 | if KeyUp == "0" then | |
52 | Plr.Character.Humanoid.WalkSpeed = 16 | |
53 | s:Stop() | |
54 | end | |
55 | end) | |
56 | ||
57 | local new=Instance.new | |
58 | local rad=math.rad | |
59 | - | wep.Size=v3(1,3,1) |
59 | + | |
60 | local v3=Vector3.new | |
61 | local ang=function(x,y,z) | |
62 | return CFrame.Angles(rad(x),rad(y),rad(z)) | |
63 | end | |
64 | local player=game:service'Players'.LocalPlayer | |
65 | local char=player.Character | |
66 | - | beam.BrickColor=BrickColor.new('Toothpaste') |
66 | + | |
67 | local mouse=player:GetMouse() | |
68 | local weld=function(a,b,c0,c1) | |
69 | m=Instance.new('Motor',a) | |
70 | m.Part0=a | |
71 | m.Part1=b | |
72 | m.C0=c0 | |
73 | m.C1=c1 | |
74 | - | inner.BrickColor=BrickColor.new('Navy blue') |
74 | + | |
75 | end | |
76 | ||
77 | snd='rbxassetid://152828706' | |
78 | beamm=Instance.new('Model',workspace) | |
79 | beamm.Name='beam' | |
80 | - | expl.BrickColor=BrickColor.new('Toothpaste') |
80 | + | |
81 | laser=false | |
82 | ||
83 | rs=Instance.new('Part',char) | |
84 | rs.Transparency=1 | |
85 | rs.CanCollide=false | |
86 | rs.BrickColor=BrickColor.new('Forest green') | |
87 | rs.TopSurface,rs.BottomSurface=0,0 | |
88 | rs.FormFactor=3 | |
89 | rs.Size=Vector3.new(.5,.5,2) | |
90 | ||
91 | ls=rs:Clone() | |
92 | ls.Parent=char | |
93 | ||
94 | rsw=weld(rs,char.Torso,cf(-1,-.5,0),cf()) | |
95 | lsw=weld(ls,char.Torso,cf(1,-.5,0),cf()) | |
96 | raw=weld(char['Right Arm'],rs,cf(-.5,.6,-.14),ang(90,0,-8)) | |
97 | law=weld(char['Left Arm'],ls,cf(-.3,1.5,-.14),ang(90,0,43)) | |
98 | ||
99 | s1=Instance.new('Sound',char) | |
100 | s1.Volume=20 | |
101 | s1.Pitch=1.3 | |
102 | s1.Looped=true | |
103 | s1.SoundId=snd | |
104 | ||
105 | particles={} | |
106 | ||
107 | local wep=new('Part',char) | |
108 | wep.FormFactor=3 | |
109 | - | s1.Volume=1 |
109 | + | |
110 | wep.Size=v3(1.3,6,1.3) | |
111 | wep.BrickColor=BrickColor.new('Earth green') | |
112 | wep.Material='Neon' | |
113 | wep.TopSurface,wep.BottomSurface=0,0 | |
114 | local wepw=weld(wep,char['Right Arm'],cf(.26,.4,.7),ang(0,0,8)) | |
115 | ||
116 | local beam=wep:Clone() | |
117 | beam:ClearAllChildren() | |
118 | beam.Material='Neon' | |
119 | beam.BrickColor=BrickColor.new('Parsley green') | |
120 | beam.Size=Vector3.new(3,3,1) | |
121 | beam.Transparency=.5 | |
122 | beam.Anchored=true | |
123 | local ms=Instance.new('BlockMesh',beam) | |
124 | local inner=beam:Clone() | |
125 | inner.Transparency=0 | |
126 | inner.Material='SmoothPlastic' | |
127 | inner.BrickColor=BrickColor.new('Parsley green') | |
128 | local ms2=inner.Mesh | |
129 | ||
130 | local expl=inner:Clone() | |
131 | expl.Mesh:Destroy() | |
132 | expl.Material='Neon' | |
133 | expl.BrickColor=BrickColor.new('Forest green') | |
134 | expl.Size=Vector3.new(11,11,11) | |
135 | expl.Transparency=.55 | |
136 | pl=Instance.new('PointLight',expl) | |
137 | pl.Color=expl.BrickColor.Color | |
138 | pl.Range=pl.Range*2 | |
139 | pl.Name='light' | |
140 | local br=pl.Range | |
141 | ||
142 | local exa=expl:Clone() | |
143 | exa.Size=Vector3.new(4,4,4) | |
144 | pl2=exa.light | |
145 | ||
146 | local part=exa:Clone() | |
147 | part.Size=Vector3.new(1.5,1.5,1.5) | |
148 | pl3=part.light | |
149 | - | s1.Volume=s1.Volume-.002 |
149 | + | |
150 | ||
151 | char.Humanoid.Died:connect(function() | |
152 | laser=false | |
153 | beam.Parent=nil | |
154 | inner.Parent=nil | |
155 | expl.Parent=nil | |
156 | exa.Parent=nil | |
157 | s1:stop() | |
158 | end) | |
159 | ||
160 | mouse.Button1Down:connect(function() if char.Humanoid.Health~=0 then | |
161 | laser=true | |
162 | s1.Volume=1.3 | |
163 | s1:play() | |
164 | end end) | |
165 | mouse.Button1Up:connect(function() | |
166 | laser=false | |
167 | beam.Parent=nil | |
168 | inner.Parent=nil | |
169 | expl.Parent=nil | |
170 | exa.Parent=nil | |
171 | s1:stop() | |
172 | end) | |
173 | ||
174 | parti=0 | |
175 | game:service'RunService'.Stepped:connect(function() | |
176 | parti=parti+1 | |
177 | for i,v in pairs(particles) do | |
178 | v.CFrame=v.CFrame*CFrame.new(0,0,-.3) | |
179 | v.Transparency=v.Transparency+.08 | |
180 | if v.Transparency >= 1 then | |
181 | v:Destroy() | |
182 | table.remove(particles,i) | |
183 | else | |
184 | v.Parent=beamm | |
185 | end | |
186 | end | |
187 | a=cam.CoordinateFrame.p | |
188 | b=mouse.Hit.p | |
189 | mhitr=Ray.new(a,(b-a).unit*999) | |
190 | - | end) |
190 | + | |
191 | raw.C1=ang(90+(mouse.Hit.lookVector.y*90),0,-8) | |
192 | law.C1=ang(90+(mouse.Hit.lookVector.y*90),0,43) | |
193 | if not char.Humanoid.Sit and not char.Humanoid.PlatformStand then | |
194 | char.Torso.CFrame=CFrame.new(char.Torso.CFrame.p,Vector3.new(ps.x,char.Torso.CFrame.p.y,ps.z)) | |
195 | end | |
196 | if laser then | |
197 | beamm.Parent=workspace | |
198 | beam.Parent=beamm | |
199 | inner.Parent=beamm | |
200 | expl.Parent=beamm | |
201 | exa.Parent=beamm | |
202 | s1.Volume=s1.Volume-0.0018 | |
203 | ||
204 | ray=Ray.new((wep.CFrame*cf(0,-1.5,0)).p,((wep.CFrame*cf(0,-10,0)).p-(wep.CFrame*cf(0,-1.5,0)).p).unit*999) | |
205 | hit,pos=workspace:FindPartOnRayWithIgnoreList(ray,{char,beamm}) | |
206 | ||
207 | if hit and hit.Parent:findFirstChild('Humanoid') and s1.Volume > .3 and parti/8==math.floor(parti/8) then | |
208 | Instance.new('Explosion',workspace).Position=pos | |
209 | end | |
210 | if hit and hit.Parent==workspace.Terrain or hit==workspace.Terrain and parti/8==math.floor(parti/8) then | |
211 | e=Instance.new('Explosion',workspace) | |
212 | e.Position=pos | |
213 | e.BlastRadius=14 | |
214 | e.BlastPressure=1e4 | |
215 | end | |
216 | if hit and not hit.Anchored and not (hit:GetMass()>1e4) then | |
217 | hit.Velocity=hit.Velocity+beam.CFrame.lookVector*(1*s1.Volume*hit:GetMass()) | |
218 | end | |
219 | ||
220 | if parti==math.floor(parti) then | |
221 | par=part:Clone() | |
222 | table.insert(particles,par) | |
223 | par.Parent=beamm | |
224 | par.Transparency=1-s1.Volume | |
225 | par.light.Range=br*s1.Volume | |
226 | par.CFrame=cf(pos)*ang(math.random(-180,180),math.random(-180,180),math.random(-180,180))*cf(0,0,-10) | |
227 | end | |
228 | ||
229 | mag=((wep.CFrame*cf(0,-1.5,0)).p-pos).magnitude | |
230 | ms.Scale=v3(s1.Volume,s1.Volume,mag) | |
231 | ms2.Scale=v3(ms.Scale.x/2,ms.Scale.y/2,mag-(.1/mag)) | |
232 | beam.CFrame=cf((wep.CFrame*cf(0,-1.5,0)).p,pos)*cf(0,0,-mag/2)*ang(0,0,math.random(0,180)) | |
233 | inner.CFrame=beam.CFrame | |
234 | pl.Range=br*s1.Volume | |
235 | pl2.Range=br*s1.Volume | |
236 | expl.Size=v3(math.random(9,13),math.random(9,13),math.random(9,13))*s1.Volume | |
237 | expl.Transparency=math.random(40,60)/100 | |
238 | expl.CFrame=cf(pos)*ang(math.random(0,180),math.random(0,180),math.random(0,180)) | |
239 | exa.Size=v3(4,4,4)*s1.Volume | |
240 | exa.CFrame=wep.CFrame*cf(0,-1.5,0)*ang(math.random(0,180),math.random(0,180),math.random(0,180)) | |
241 | char.Torso.Velocity=char.Torso.Velocity-beam.CFrame.lookVector*(7*s1.Volume) | |
242 | end | |
243 | end) | |
244 | ||
245 | local UserInputService = game:GetService("UserInputService") | |
246 | local localPlayer = game.Players.LocalPlayer | |
247 | local character | |
248 | local humanoid | |
249 | ||
250 | local canDoubleJump = false | |
251 | local hasDoubleJumped = false | |
252 | local oldPower | |
253 | local TIME_BETWEEN_JUMPS = 0.2 | |
254 | local DOUBLE_JUMP_POWER_MULTIPLIER = 2 | |
255 | local s = Instance.new("Sound",script.Parent) | |
256 | function onJumpRequest() | |
257 | if not character or not humanoid or not character:IsDescendantOf(workspace) or | |
258 | humanoid:GetState() == Enum.HumanoidStateType.Dead then | |
259 | return | |
260 | end | |
261 | ||
262 | if canDoubleJump and not hasDoubleJumped then | |
263 | hasDoubleJumped = true | |
264 | humanoid.JumpPower = oldPower * DOUBLE_JUMP_POWER_MULTIPLIER | |
265 | humanoid:ChangeState(Enum.HumanoidStateType.Jumping) | |
266 | s.Name = "Sound" | |
267 | s.SoundId = "rbxassetid://322832112" | |
268 | s.Volume = 50 | |
269 | s.Looped = false | |
270 | s.Pitch = 1.1+math.random()*.3 | |
271 | s.archivable = false | |
272 | wait() | |
273 | s:Play() | |
274 | end | |
275 | end | |
276 | ||
277 | local function characterAdded(newCharacter) | |
278 | character = newCharacter | |
279 | humanoid = newCharacter:WaitForChild("Humanoid") | |
280 | hasDoubleJumped = false | |
281 | canDoubleJump = false | |
282 | oldPower = humanoid.JumpPower | |
283 | ||
284 | humanoid.StateChanged:connect(function(old, new) | |
285 | if new == Enum.HumanoidStateType.Landed then | |
286 | canDoubleJump = false | |
287 | hasDoubleJumped = false | |
288 | humanoid.JumpPower = oldPower | |
289 | elseif new == Enum.HumanoidStateType.Freefall then | |
290 | wait(TIME_BETWEEN_JUMPS) | |
291 | canDoubleJump = true | |
292 | end | |
293 | end) | |
294 | end | |
295 | ||
296 | if localPlayer.Character then | |
297 | characterAdded(localPlayer.Character) | |
298 | end | |
299 | ||
300 | localPlayer.CharacterAdded:connect(characterAdded) | |
301 | UserInputService.JumpRequest:connect(onJumpRequest) |