SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has been converted to FE by iPxter | |
2 | ||
3 | ||
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | ||
87 | plr = owner | |
88 | char = plr.Character | |
89 | hrp = plr.Character.HumanoidRootPart | |
90 | mode = false | |
91 | tors = char.Torso | |
92 | m = plr:GetMouse() | |
93 | hum = char.Humanoid | |
94 | ||
95 | char.Head.face.Texture = "http://www.roblox.com/asset/?id=988802990" | |
96 | ||
97 | function sp() | |
98 | local S = Instance.new("Sound",game.Soundscape) | |
99 | S.SoundId = "rbxassetid://532798812" | |
100 | S.Volume = 0.6 | |
101 | S.Looped = true | |
102 | S:Play() | |
103 | end | |
104 | ||
105 | sp() | |
106 | ||
107 | local acos = math.acos | |
108 | local sqrt = math.sqrt | |
109 | local Vec3 = Vector3.new | |
110 | local fromAxisAngle = CFrame.fromAxisAngle | |
111 | ||
112 | local function toAxisAngle(CFr) | |
113 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
114 | local Angle = math.acos((R00+R11+R22-1)/2) | |
115 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
116 | A = A == 0 and 0.00001 or A | |
117 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
118 | B = B == 0 and 0.00001 or B | |
119 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
120 | C = C == 0 and 0.00001 or C | |
121 | local x = (R21-R12)/sqrt(A) | |
122 | local y = (R02-R20)/sqrt(B) | |
123 | local z = (R10-R01)/sqrt(C) | |
124 | return Vec3(x,y,z),Angle | |
125 | end | |
126 | ||
127 | function ApplyTrig(Num,Func) | |
128 | local Min,Max = Func(0),Func(1) | |
129 | local i = Func(Num) | |
130 | return (i-Min)/(Max-Min) | |
131 | --[[if Func == "sin" then | |
132 | return (math.sin((1-Num)*math.pi)+1)/2 | |
133 | elseif Func == "cos" then | |
134 | return (math.cos((1-Num)*math.pi)+1)/2 | |
135 | end]] | |
136 | end | |
137 | ||
138 | function LerpCFrame(CFrame1,CFrame2,Num) | |
139 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
140 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
141 | end | |
142 | ||
143 | function Crater(Torso,Radius) | |
144 | spawn(function() | |
145 | local Ray = Ray.new(char.Torso.Position,Vector3.new(0,-1,0)*10) | |
146 | local Ignore = {} | |
147 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
148 | if v.Character ~= nil then | |
149 | Ignore[#Ignore+1] = v.Character | |
150 | end | |
151 | end | |
152 | local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
153 | if Hit == nil then return end | |
154 | local Parts = {} | |
155 | for i = 1,360,10 do | |
156 | local P = Instance.new("Part",char.Torso.Parent) | |
157 | P.Anchored = true | |
158 | P.FormFactor = "Custom" | |
159 | P.BrickColor = Hit.BrickColor | |
160 | P.Material = Hit.Material | |
161 | P.TopSurface = "Smooth" | |
162 | P.BottomSurface = "Smooth" | |
163 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
164 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
165 | Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-45)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size} | |
166 | if math.random(0,5) == 0 then -- rubble | |
167 | local P = Instance.new("Part",char.Torso.Parent) | |
168 | P.Anchored = true | |
169 | P.CanCollide = false | |
170 | P.FormFactor = "Custom" | |
171 | P.BrickColor = Hit.BrickColor | |
172 | P.Material = Hit.Material | |
173 | P.TopSurface = "Smooth" | |
174 | P.BottomSurface = "Smooth" | |
175 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
176 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
177 | P.CanCollide = true | |
178 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-50)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size} | |
179 | end | |
180 | end | |
181 | for i = 0,1,0.05 do | |
182 | for i2,v in pairs(Parts) do | |
183 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
184 | end | |
185 | wait(0.02) | |
186 | end | |
187 | for i,v in pairs(Parts) do | |
188 | if v[1].Size.X > 2.1 then | |
189 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
190 | end | |
191 | v[1].Anchored = false | |
192 | end | |
193 | for i = 0,1,0.05 do | |
194 | for i2,v in pairs(Parts) do | |
195 | v[1].Transparency = i | |
196 | if i == 1 then | |
197 | v[1]:Destroy() | |
198 | elseif i >= 0.25 then | |
199 | v[1].CanCollide = false | |
200 | end | |
201 | end | |
202 | wait(0.02) | |
203 | end | |
204 | Parts = nil | |
205 | end) | |
206 | end | |
207 | ||
208 | ||
209 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
210 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
211 | local List = {} | |
212 | for i,v in pairs(workspace:GetChildren())do | |
213 | if v:IsA("Model")then | |
214 | if v:findFirstChild("Torso")then | |
215 | if v ~= char then | |
216 | if(v.char.Torso.Position -Position).magnitude <= Distance then | |
217 | table.insert(List,v) | |
218 | end | |
219 | end | |
220 | end | |
221 | end | |
222 | end | |
223 | return List | |
224 | end | |
225 | ||
226 | ||
227 | ||
228 | ||
229 | function hito(partoz, magn, dmg, debtim) | |
230 | for _, guy in pairs(workspace:GetChildren()) do | |
231 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("Head") and guy ~= plr.Character and magn > (guy:FindFirstChild("Head").Position - partoz.Position).magnitude and guy:FindFirstChild("Head"):FindFirstChild("alabo") == nil then | |
232 | do | |
233 | local humz = guy:FindFirstChild("Humanoid") | |
234 | local hed = guy:FindFirstChild("Head") | |
235 | humz:TakeDamage(dmg) | |
236 | local db = Instance.new("StringValue") | |
237 | db.Name = "alabo" | |
238 | db.Parent = hed | |
239 | delay(debtim, function() | |
240 | db:Destroy() | |
241 | end) | |
242 | end | |
243 | end | |
244 | end | |
245 | end | |
246 | ||
247 | ||
248 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
249 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
250 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
251 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
252 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
253 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
254 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
255 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
256 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
257 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
258 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
259 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
260 | RS = tors:FindFirstChild("Right Shoulder") | |
261 | LS = tors:FindFirstChild("Left Shoulder") | |
262 | RH = tors:FindFirstChild("Right Hip") | |
263 | LH = tors:FindFirstChild("Left Hip") | |
264 | RJ = hrp:FindFirstChild("RootJoint") | |
265 | N = tors:FindFirstChild("Neck") | |
266 | cf = CFrame.new | |
267 | ang = CFrame.Angles | |
268 | rd = math.rad | |
269 | rd2 = math.random | |
270 | LOADED = 1 | |
271 | ||
272 | Heartbeat = Instance.new("BindableEvent") | |
273 | Heartbeat.Name = "Heartbeat" | |
274 | Heartbeat.Parent = script | |
275 | frame = 0.03333333333333333 | |
276 | tf = 0 | |
277 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
278 | tf = tf + s | |
279 | if tf >= frame then | |
280 | for i = 1, math.floor(tf / frame) do | |
281 | Heartbeat:Fire() | |
282 | end | |
283 | tf = tf - frame * math.floor(tf / frame) | |
284 | end | |
285 | end) | |
286 | function swait(num) | |
287 | if num == 0 or num == nil then | |
288 | Heartbeat.Event:wait() | |
289 | else | |
290 | for i = 1, num do | |
291 | Heartbeat.Event:wait() | |
292 | end | |
293 | end | |
294 | end | |
295 | ||
296 | function makeweld(parent, p0, p1, c0, c1) | |
297 | local wel = Instance.new("Weld") | |
298 | wel.Part0 = p0 | |
299 | wel.Part1 = p1 | |
300 | wel.C0 = c0 | |
301 | if c1 ~= nil then | |
302 | wel.C1 = c1 | |
303 | end | |
304 | wel.Parent = parent | |
305 | return wel | |
306 | end | |
307 | ||
308 | function smash() | |
309 | hum.WalkSpeed = 2 | |
310 | hum.JumpPower = 1 | |
311 | local S = Instance.new("Sound",game.Soundscape) | |
312 | S.SoundId = "rbxassetid://938838122" | |
313 | S.Volume = 1.5 | |
314 | local S4 = Instance.new("Sound",game.Soundscape) | |
315 | S4.SoundId = "rbxassetid://991726501" | |
316 | S4.Volume = 1.5 | |
317 | local S3 = Instance.new("Sound",game.Soundscape) | |
318 | S3.SoundId = "rbxassetid://610327604" | |
319 | S3.Volume = 0.3 | |
320 | S3.PlaybackSpeed = 0.85 | |
321 | local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Arm")) | |
322 | pe.Texture = "rbxassetid://272050333" | |
323 | pe.Size = NumberSequence.new(1) | |
324 | pe.LightEmission = 1 | |
325 | pe.LightInfluence = 1 | |
326 | pe.Rate = 1000000.000 | |
327 | pe.Rotation = NumberRange.new(0, 360) | |
328 | pe.Speed = NumberRange.new(10) | |
329 | pe.Color = ColorSequence.new(Color3.new(0,170,0)) | |
330 | pe.Lifetime = NumberRange.new(0.06) | |
331 | pe.LockedToPart = true | |
332 | local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Arm")) | |
333 | pe2.Texture = "http://www.roblox.com/asset/?id=243098098" | |
334 | pe2.Size = NumberSequence.new(3) | |
335 | pe2.LightEmission = 1 | |
336 | pe2.LightInfluence = 1 | |
337 | pe2.Rate = 1000 | |
338 | pe2.Color = ColorSequence.new(Color3.new(0,170,0)) | |
339 | pe2.Rotation = NumberRange.new(0, 360) | |
340 | pe2.RotSpeed = NumberRange.new(2) | |
341 | pe2.Speed = NumberRange.new(15) | |
342 | pe2.SpreadAngle = Vector2.new(360,306) | |
343 | pe2.Lifetime = NumberRange.new(0.06) | |
344 | pe2.ZOffset = 1 | |
345 | pe2.LockedToPart = true | |
346 | pe2.Name = "ParticleEmitter2" | |
347 | ||
348 | S:Play() | |
349 | for _ = 1, 45 do | |
350 | swait() | |
351 | lerpz(RJ, "C0", RJC0 * cf(0, 0.8, -0.2) * ang(rd(10), rd(0), rd(-70)), 0.2) | |
352 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(6), rd(2), rd(68)), 0.2) | |
353 | lerpz(RS, "C0", RSC0 * cf(rd2(-1, 1) / 10, rd2(-1, 1) / 10, rd2(-1, 1) / 10) * ang(rd(rd2(25, 35)), rd(rd2(-15, -5)), rd(rd2(80, 90))), 0.2) | |
354 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
355 | lerpz(LS, "C0", LSC0 * cf(-0.15, -0.4, 0.5) * ang(rd(-10), rd(60), rd(-86)), 0.2) | |
356 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(80), rd(0)), 0.2) | |
357 | lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-29), rd(-2)), 0.2) | |
358 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
359 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2) | |
360 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
361 | end | |
362 | for _ = 1, 30 do | |
363 | swait() | |
364 | lerpz(RJ, "C0", RJC0 * cf(0, 1.2, -0.2) * ang(rd(5), rd(6), rd(-109)), 0.2) | |
365 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(-6), rd(96)), 0.2) | |
366 | lerpz(RS, "C0", RSC0 * cf(rd2(-1, 1) / 10, rd2(-1, 1) / 10, rd2(-1, 1) / 10) * ang(rd(rd2(10, 20)), rd(rd2(-25, -15)), rd(rd2(100, 110))), 0.2) | |
367 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-46)), 0.2) | |
368 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.2) | |
369 | lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.2) | |
370 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2) | |
371 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.2) | |
372 | ||
373 | end | |
374 | for l = 1, 3 do | |
375 | swait() | |
376 | lerpz(RJ, "C0", RJC0 * cf(0.4, -1.6, -0.2) * ang(rd(5), rd(6), rd(60)), 0.3 + l / 4) | |
377 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-4), rd(-35)), 0.3 + l / 4) | |
378 | lerpz(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(-58), rd(95)), 0.3 + l / 4) | |
379 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.3 + l / 4) | |
380 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-66)), 0.3 + l / 4) | |
381 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.3 + l / 4) | |
382 | lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.3 + l / 4) | |
383 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.3 + l / 4) | |
384 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.3 + l / 4) | |
385 | end | |
386 | local woosh = Instance.new("Part",workspace) | |
387 | woosh.Size = Vector3.new(12, 12, 20) | |
388 | woosh.BrickColor = BrickColor.new("Institutional white") | |
389 | local me = Instance.new("FileMesh",woosh) | |
390 | me.MeshId = "rbxassetid://437347603" | |
391 | me.Scale = Vector3.new(1.3, 1.3, 1) | |
392 | woosh.CanCollide = false | |
393 | woosh.Anchored = false | |
394 | woosh.CFrame = woosh.CFrame:lerp(woosh.CFrame * CFrame.new(0, 0, -22), 0.4) | |
395 | woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
396 | woosh.CFrame = char:FindFirstChild("Right Arm").CFrame | |
397 | woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
398 | local woosh2 = Instance.new("Part",workspace) | |
399 | woosh2.Size = Vector3.new(12, 12, 20) | |
400 | woosh2.BrickColor = BrickColor.new("Institutional white") | |
401 | local me2 = Instance.new("FileMesh",woosh2) | |
402 | me2.MeshId = "rbxassetid://3270017" | |
403 | me2.Scale = Vector3.new(1.3, 1.3, 0.4) | |
404 | woosh2.CanCollide = false | |
405 | woosh2.Anchored = true | |
406 | woosh2.CFrame = woosh2.CFrame:lerp(woosh2.CFrame * CFrame.new(0, 0, -22), 0.4) | |
407 | woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
408 | woosh2.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-3,0) | |
409 | woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
410 | local woosh3 = Instance.new("Part",workspace) | |
411 | woosh3.Size = Vector3.new(12, 12, 20) | |
412 | woosh3.BrickColor = BrickColor.new("Institutional white") | |
413 | local me3 = Instance.new("FileMesh",woosh3) | |
414 | me3.MeshId = "rbxassetid://3270017" | |
415 | me3.Scale = Vector3.new(1, 1, 0.4) | |
416 | woosh3.CanCollide = false | |
417 | woosh3.Anchored = true | |
418 | woosh3.CFrame = woosh3.CFrame:lerp(woosh3.CFrame * CFrame.new(0, 0, -22), 0.4) | |
419 | woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
420 | woosh3.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0) | |
421 | woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
422 | local woosh1 = Instance.new("Part",workspace) | |
423 | woosh1.Size = Vector3.new(12, 12, 20) | |
424 | woosh1.BrickColor = BrickColor.new("Institutional white") | |
425 | local me1 = Instance.new("FileMesh",woosh1) | |
426 | me1.MeshId = "rbxassetid://489415447" | |
427 | me1.Scale = Vector3.new(1, 1, 0.4) | |
428 | woosh1.CanCollide = false | |
429 | woosh1.Anchored = true | |
430 | woosh1.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0) | |
431 | local woosh4 = Instance.new("Part",workspace) | |
432 | woosh4.Size = Vector3.new(12, 12, 20) | |
433 | woosh4.BrickColor = BrickColor.new("Institutional white") | |
434 | local me4 = Instance.new("FileMesh",woosh4) | |
435 | me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557" | |
436 | me4.Scale = Vector3.new(1.3,0.1,1) | |
437 | woosh4.CanCollide = false | |
438 | woosh4.Anchored = true | |
439 | woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame | |
440 | local woosh4 = Instance.new("Part",workspace) | |
441 | woosh4.Size = Vector3.new(12, 12, 20) | |
442 | woosh4.BrickColor = BrickColor.new("Institutional white") | |
443 | local me4 = Instance.new("FileMesh",woosh4) | |
444 | me4.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
445 | me4.Scale = Vector3.new(2,3.3,2) | |
446 | woosh4.CanCollide = false | |
447 | woosh4.Anchored = true | |
448 | woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame | |
449 | local v = Instance.new("BodyVelocity", woosh) | |
450 | v.velocity = woosh.CFrame.lookVector *100 | |
451 | v.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
452 | S3:Play() | |
453 | pe:remove() | |
454 | pe2:remove() | |
455 | Crater() | |
456 | for i = 0.14,1,0.015 do | |
457 | wait() | |
458 | hito(woosh, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
459 | woosh.CFrame = woosh.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.1) | |
460 | woosh1.CFrame = woosh1.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0) | |
461 | woosh.Transparency = woosh.Transparency + 0.04 | |
462 | woosh2.CFrame = woosh2.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2) | |
463 | woosh2.Transparency = woosh2.Transparency + 0.03 | |
464 | me2.Scale = me2.Scale + Vector3.new(2,2,1.8) | |
465 | woosh3.CFrame = woosh3.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2) | |
466 | woosh3.Transparency = woosh3.Transparency + 0.035 | |
467 | me3.Scale = me3.Scale + Vector3.new(1.3,1.3,1) | |
468 | me1.Scale = me1.Scale + Vector3.new(2,1,2) | |
469 | woosh1.Transparency = woosh1.Transparency + 0.04 | |
470 | woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0) | |
471 | woosh4.Transparency = woosh4.Transparency + 0.02 | |
472 | me4.Scale = me4.Scale + Vector3.new(2,4,2) | |
473 | end | |
474 | woosh3:remove() | |
475 | woosh2:remove() | |
476 | woosh1:remove() | |
477 | woosh4:remove() | |
478 | woosh:remove() | |
479 | ||
480 | for _ = 1, 24 do | |
481 | swait() | |
482 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
483 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
484 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
485 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
486 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
487 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
488 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
489 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
490 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
491 | end | |
492 | S:remove() | |
493 | hum.WalkSpeed = 16 | |
494 | hum.JumpPower = 50 | |
495 | wait(2.3) | |
496 | S4:remove() | |
497 | S3:remove() | |
498 | end | |
499 | ||
500 | function ring() | |
501 | local S4 = Instance.new("Sound",game.Soundscape) | |
502 | S4.SoundId = "rbxassetid://991726501" | |
503 | S4.Volume = 1.5 | |
504 | local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg")) | |
505 | pe.Texture = "rbxassetid://272050333" | |
506 | pe.Size = NumberSequence.new(1) | |
507 | pe.LightEmission = 1 | |
508 | pe.LightInfluence = 1 | |
509 | pe.Rate = 1000000.000 | |
510 | pe.Rotation = NumberRange.new(0, 360) | |
511 | pe.Speed = NumberRange.new(10) | |
512 | pe.Color = ColorSequence.new(Color3.new(0,170,0)) | |
513 | pe.Lifetime = NumberRange.new(0.06) | |
514 | pe.LockedToPart = true | |
515 | local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg")) | |
516 | pe2.Texture = "http://www.roblox.com/asset/?id=243098098" | |
517 | pe2.Size = NumberSequence.new(3) | |
518 | pe2.LightEmission = 1 | |
519 | pe2.LightInfluence = 1 | |
520 | pe2.Rate = 1000 | |
521 | pe2.Color = ColorSequence.new(Color3.new(0,170,0)) | |
522 | pe2.Rotation = NumberRange.new(0, 360) | |
523 | pe2.RotSpeed = NumberRange.new(2) | |
524 | pe2.Speed = NumberRange.new(15) | |
525 | pe2.SpreadAngle = Vector2.new(360,306) | |
526 | pe2.Lifetime = NumberRange.new(0.06) | |
527 | pe2.ZOffset = 1 | |
528 | pe2.LockedToPart = true | |
529 | pe2.Name = "ParticleEmitter2" | |
530 | wait(0.3) | |
531 | local me = Instance.new("Part",workspace) | |
532 | local mesh = Instance.new("SpecialMesh") | |
533 | mesh.MeshType = "FileMesh" | |
534 | mesh.MeshId = "rbxassetid://3270017" | |
535 | mesh.Scale = Vector3.new(12, 12, 0.05) | |
536 | mesh.Parent = me | |
537 | me.Anchored = true | |
538 | me.CanCollide = false | |
539 | me.BrickColor = BrickColor.new("Institutional white") | |
540 | me.CFrame = me.CFrame:lerp(me.CFrame * CFrame.new(0, 0, -22), 0.4) | |
541 | me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
542 | me.CFrame = hrp.CFrame * CFrame.new(0,-2.5,0) | |
543 | me.CFrame = me.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
544 | me.Anchored = false | |
545 | local me2 = Instance.new("Part",workspace) | |
546 | local mesh2 = Instance.new("SpecialMesh") | |
547 | mesh2.MeshType = "FileMesh" | |
548 | mesh2.MeshId = "rbxassetid://3270017" | |
549 | mesh2.Scale = Vector3.new(12, 12, 0.05) | |
550 | mesh2.Parent = me2 | |
551 | me2.Anchored = true | |
552 | me2.CanCollide = false | |
553 | me2.BrickColor = BrickColor.new("Institutional white") | |
554 | me2.CFrame = me2.CFrame:lerp(me2.CFrame * CFrame.new(0, 0, -22), 0.4) | |
555 | me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
556 | me2.CFrame = hrp.CFrame | |
557 | me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
558 | local bfor = Instance.new("BodyPosition") | |
559 | bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
560 | bfor.P = 2500 | |
561 | bfor.Position = me.Position + Vector3.new(0, 50, 0) | |
562 | bfor.Parent = me | |
563 | me.Velocity = me.CFrame.lookVector *65 | |
564 | local sound2 = Instance.new("Sound",game.Soundscape) | |
565 | sound2.SoundId = "rbxassetid://157878578" | |
566 | sound2.MaxDistance = 300 | |
567 | sound2.EmitterSize = 20 | |
568 | sound2.Volume = 2 | |
569 | sound2.Pitch = 0.9 | |
570 | local sound3 = Instance.new("Sound",game.Soundscape) | |
571 | sound3.SoundId = "rbxassetid://138250406" | |
572 | sound2.MaxDistance = 400 | |
573 | sound2.EmitterSize = 30 | |
574 | sound2.Volume = 1.5 | |
575 | sound2.Pitch = 0.6 | |
576 | sound2:Play() | |
577 | sound3:Play() | |
578 | wait(0.4) | |
579 | local bfor = Instance.new("BodyPosition") | |
580 | bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
581 | bfor.P = 2500 | |
582 | bfor.Position = plr.Character.HumanoidRootPart.Position + Vector3.new(0, 500, 0) | |
583 | bfor.Parent = plr.Character.HumanoidRootPart | |
584 | plr.Character.HumanoidRootPart.Velocity=plr.Character.HumanoidRootPart.CFrame.lookVector *200 | |
585 | S4:Play() | |
586 | local part = Instance.new("Part",workspace) | |
587 | part.Transparency = 1 | |
588 | part.CanCollide = false | |
589 | part.Anchored = true | |
590 | part.CFrame = char:FindFirstChild("Right Leg").CFrame | |
591 | local smok = Instance.new("Smoke",part) | |
592 | smok.Opacity = 1 | |
593 | smok.Size = 20 | |
594 | for e = 1, 30 do | |
595 | wait() | |
596 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 1) | |
597 | me.Transparency = me.Transparency + 0.04 | |
598 | me.CFrame = me.CFrame:lerp( me.CFrame * CFrame.new(0, 0, -1), 0.4) | |
599 | me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
600 | mesh2.Scale = mesh2.Scale + Vector3.new(8, 8, 3) | |
601 | me2.Transparency = me2.Transparency + 0.04 | |
602 | me2.CFrame = me2.CFrame:lerp( me2.CFrame * CFrame.new(0, 0, -1), 0.4) | |
603 | me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
604 | smok.Size = smok.Size + 10 | |
605 | wait() | |
606 | end | |
607 | S4:remove() | |
608 | pe:remove() | |
609 | pe2:remove() | |
610 | bfor:remove() | |
611 | me2:remove() | |
612 | me:remove() | |
613 | for i = 0,1,0.01 do | |
614 | wait() | |
615 | smok.Opacity = smok.Opacity - 0.01 | |
616 | end | |
617 | part:remove() | |
618 | sound2:remove() | |
619 | sound3:remove() | |
620 | end | |
621 | ||
622 | function ring2() | |
623 | hum.WalkSpeed = 0 | |
624 | hum.JumpPower = 0 | |
625 | local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg")) | |
626 | pe.Texture = "rbxassetid://272050333" | |
627 | pe.Size = NumberSequence.new(1) | |
628 | pe.LightEmission = 1 | |
629 | pe.LightInfluence = 1 | |
630 | pe.Rate = 1000000.000 | |
631 | pe.Rotation = NumberRange.new(0, 360) | |
632 | pe.Speed = NumberRange.new(10) | |
633 | pe.Color = ColorSequence.new(Color3.new(0,170,0)) | |
634 | pe.Lifetime = NumberRange.new(0.06) | |
635 | pe.LockedToPart = true | |
636 | local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg")) | |
637 | pe2.Texture = "http://www.roblox.com/asset/?id=243098098" | |
638 | pe2.Size = NumberSequence.new(3) | |
639 | pe2.LightEmission = 1 | |
640 | pe2.LightInfluence = 1 | |
641 | pe2.Rate = 1000 | |
642 | pe2.Color = ColorSequence.new(Color3.new(0,170,0)) | |
643 | pe2.Rotation = NumberRange.new(0, 360) | |
644 | pe2.RotSpeed = NumberRange.new(2) | |
645 | pe2.Speed = NumberRange.new(15) | |
646 | pe2.SpreadAngle = Vector2.new(360,306) | |
647 | pe2.Lifetime = NumberRange.new(0.06) | |
648 | pe2.ZOffset = 1 | |
649 | pe2.LockedToPart = true | |
650 | pe2.Name = "ParticleEmitter2" | |
651 | for l = 1, 30 do | |
652 | swait() | |
653 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40) | |
654 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40) | |
655 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40) | |
656 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
657 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40) | |
658 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
659 | lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40) | |
660 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
661 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40) | |
662 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
663 | end | |
664 | local S4 = Instance.new("Sound",game.Soundscape) | |
665 | S4.SoundId = "rbxassetid://991726501" | |
666 | S4.Volume = 1.5 | |
667 | wait(0.3) | |
668 | local me = Instance.new("Part",workspace) | |
669 | local mesh = Instance.new("SpecialMesh") | |
670 | mesh.MeshType = "FileMesh" | |
671 | mesh.MeshId = "rbxassetid://3270017" | |
672 | mesh.Scale = Vector3.new(12, 12, 0.05) | |
673 | mesh.Parent = me | |
674 | me.Anchored = true | |
675 | me.CanCollide = false | |
676 | me.BrickColor = BrickColor.new("Institutional white") | |
677 | me.CFrame = me.CFrame:lerp(me.CFrame * CFrame.new(0, 0, -22), 0.4) | |
678 | me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
679 | me.CFrame = hrp.CFrame * CFrame.new(0,-2.5,0) | |
680 | me.CFrame = me.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
681 | me.Anchored = false | |
682 | local me2 = Instance.new("Part",workspace) | |
683 | local mesh2 = Instance.new("SpecialMesh") | |
684 | mesh2.MeshType = "FileMesh" | |
685 | mesh2.MeshId = "rbxassetid://3270017" | |
686 | mesh2.Scale = Vector3.new(12, 12, 0.05) | |
687 | mesh2.Parent = me2 | |
688 | me2.Anchored = true | |
689 | me2.CanCollide = false | |
690 | me2.BrickColor = BrickColor.new("Institutional white") | |
691 | me2.CFrame = me2.CFrame:lerp(me2.CFrame * CFrame.new(0, 0, -22), 0.4) | |
692 | me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
693 | me2.CFrame = hrp.CFrame | |
694 | me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
695 | local bfor = Instance.new("BodyPosition") | |
696 | bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
697 | bfor.P = 2500 | |
698 | bfor.Position = me.Position + Vector3.new(0, 50, 0) | |
699 | bfor.Parent = me | |
700 | me.Velocity = me.CFrame.lookVector *65 | |
701 | local sound2 = Instance.new("Sound",game.Soundscape) | |
702 | sound2.SoundId = "rbxassetid://157878578" | |
703 | sound2.MaxDistance = 300 | |
704 | sound2.EmitterSize = 20 | |
705 | sound2.Volume = 2 | |
706 | sound2.Pitch = 0.9 | |
707 | local sound3 = Instance.new("Sound",game.Soundscape) | |
708 | sound3.SoundId = "rbxassetid://138250406" | |
709 | sound2.MaxDistance = 400 | |
710 | sound2.EmitterSize = 30 | |
711 | sound2.Volume = 1.5 | |
712 | sound2.Pitch = 0.6 | |
713 | sound2:Play() | |
714 | sound3:Play() | |
715 | ||
716 | S4:Play() | |
717 | local part = Instance.new("Part",workspace) | |
718 | part.Transparency = 1 | |
719 | part.CanCollide = false | |
720 | part.Anchored = true | |
721 | part.CFrame = char:FindFirstChild("Right Leg").CFrame | |
722 | local smok = Instance.new("Smoke",part) | |
723 | smok.Opacity = 1 | |
724 | smok.Size = 20 | |
725 | local woosh4 = Instance.new("Part",workspace) | |
726 | woosh4.Size = Vector3.new(12, 12, 20) | |
727 | woosh4.BrickColor = BrickColor.new("Institutional white") | |
728 | local me4 = Instance.new("FileMesh",woosh4) | |
729 | me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557" | |
730 | me4.Scale = Vector3.new(1.3,0.1,1) | |
731 | woosh4.CanCollide = false | |
732 | woosh4.Anchored = true | |
733 | woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame | |
734 | local woosh4 = Instance.new("Part",workspace) | |
735 | woosh4.Size = Vector3.new(12, 12, 20) | |
736 | woosh4.BrickColor = BrickColor.new("Institutional white") | |
737 | local me4 = Instance.new("FileMesh",woosh4) | |
738 | me4.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
739 | me4.Scale = Vector3.new(2,3.3,2) | |
740 | woosh4.CanCollide = false | |
741 | woosh4.Anchored = true | |
742 | woosh4.CFrame = char:FindFirstChild("Right Leg").CFrame | |
743 | Crater() | |
744 | for e = 1, 30 do | |
745 | wait() | |
746 | hito(woosh4, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
747 | hito(me2, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
748 | hito(me, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
749 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 1) | |
750 | me.Transparency = me.Transparency + 0.04 | |
751 | me.CFrame = me.CFrame:lerp( me.CFrame * CFrame.new(0, 0, -1), 0.4) | |
752 | me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
753 | mesh2.Scale = mesh2.Scale + Vector3.new(8, 8, 3) | |
754 | me2.Transparency = me2.Transparency + 0.04 | |
755 | me2.CFrame = me2.CFrame:lerp( me2.CFrame * CFrame.new(0, 0, -1), 0.4) | |
756 | me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
757 | smok.Size = smok.Size + 10 | |
758 | woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,1,0) | |
759 | woosh4.Transparency = woosh4.Transparency + 0.06 | |
760 | me4.Scale = me4.Scale + Vector3.new(2,4,2) | |
761 | wait() | |
762 | end | |
763 | for _ = 1, 18 do | |
764 | swait() | |
765 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
766 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
767 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
768 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
769 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
770 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
771 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
772 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
773 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
774 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
775 | end | |
776 | hum.WalkSpeed = 16 | |
777 | hum.JumpPower = 50 | |
778 | woosh4:remove() | |
779 | S4:remove() | |
780 | pe:remove() | |
781 | pe2:remove() | |
782 | me2:remove() | |
783 | me:remove() | |
784 | for i = 0,1,0.01 do | |
785 | wait() | |
786 | smok.Opacity = smok.Opacity - 0.01 | |
787 | end | |
788 | part:remove() | |
789 | sound2:remove() | |
790 | sound3:remove() | |
791 | ||
792 | end | |
793 | ||
794 | ||
795 | function lerpz(joint, prop, cfrmz, alp) | |
796 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
797 | end | |
798 | ||
799 | m.KeyDown:connect(function(key) | |
800 | key = key:lower() | |
801 | if key == "e" and LOADED == 1 then | |
802 | LOADED = LOADED -1 | |
803 | smash() | |
804 | LOADED = LOADED +1 | |
805 | end | |
806 | end) | |
807 | ||
808 | m.KeyDown:connect(function(key) | |
809 | key = key:lower() | |
810 | if key == "z" and LOADED == 1 then | |
811 | LOADED = LOADED -1 | |
812 | ring() | |
813 | wait(1) | |
814 | LOADED = LOADED +1 | |
815 | end | |
816 | end) | |
817 | ||
818 | ||
819 | m.KeyDown:connect(function(key) | |
820 | key = key:lower() | |
821 | if key == "r" and LOADED == 1 then | |
822 | LOADED = LOADED -1 | |
823 | ring2() | |
824 | wait(1) | |
825 | LOADED = LOADED +1 | |
826 | end | |
827 | end) |