SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | do | |
4 | print("FE Compatibility code by Mokiros") | |
5 | script.Parent = Player.Character | |
6 | ||
7 | --RemoteEvent for communicating | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | if plr~=Player then return end | |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | m.Hit = io.Hit | |
42 | else | |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | end | |
57 | end) | |
58 | Event.Parent = NLS([==[ | |
59 | local Player = owner | |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | local Mouse = Player:GetMouse() | |
72 | local h,t | |
73 | --Give the server mouse data 30 times every second, but only if the values changed | |
74 | --If player is not moving their mouse, client won't fire events | |
75 | while wait(1/30) do | |
76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
77 | h,t=Mouse.Hit,Mouse.Target | |
78 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
79 | end | |
80 | end]==],Player.Character) | |
81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
82 | end | |
83 | plr = owner | |
84 | char = plr.Character | |
85 | hum = char.Humanoid | |
86 | local cam = game.Workspace.CurrentCamera | |
87 | Camera = cam | |
88 | local CamInterrupt = false | |
89 | local TwoD = false | |
90 | local TargetInfo = {nil, nil} | |
91 | cam.CameraType = "Custom" | |
92 | t = char.Torso | |
93 | h = char.Head | |
94 | ra = char["Right Arm"] | |
95 | la = char["Left Arm"] | |
96 | rl = char["Right Leg"] | |
97 | ll = char["Left Leg"] | |
98 | tors = char.Torso | |
99 | lleg = char["Left Leg"] | |
100 | root = char.HumanoidRootPart | |
101 | hed = char.Head | |
102 | rleg = char["Right Leg"] | |
103 | rarm = char["Right Arm"] | |
104 | larm = char["Left Arm"] | |
105 | radian = math.rad | |
106 | random = math.random | |
107 | Vec3 = Vector3.new | |
108 | Inst = Instance.new | |
109 | cFrame = CFrame.new | |
110 | Euler = CFrame.fromEulerAnglesXYZ | |
111 | vt = Vector3.new | |
112 | bc = BrickColor.new | |
113 | br = BrickColor.random | |
114 | it = Instance.new | |
115 | cf = CFrame.new | |
116 | ||
117 | local Booleans = { | |
118 | CamFollow = true, | |
119 | GyroUse = true | |
120 | } | |
121 | ||
122 | function lerp(object, newCFrame, alpha) | |
123 | return object:lerp(newCFrame, alpha) | |
124 | end | |
125 | ||
126 | local Directer = Inst("BodyGyro", root) | |
127 | Directer.MaxTorque = Vec3(0, 0, 0) | |
128 | Directer.P = 600000 | |
129 | local CPart = Inst("Part") | |
130 | CPart.Anchored = true | |
131 | CPart.CanCollide = false | |
132 | CPart.Locked = true | |
133 | CPart.Transparency = 1 | |
134 | ||
135 | local rainbowmode = false | |
136 | local chaosmode = false | |
137 | ||
138 | local kan = Instance.new("Sound",char) | |
139 | kan.Volume = 5 | |
140 | kan.TimePosition = 0 | |
141 | kan.PlaybackSpeed = 1 | |
142 | kan.Pitch = 1 | |
143 | - | kan.SoundId = "rbxassetid://303535614" |
143 | + | kan.SoundId = "rbxassetid://2114921530" |
144 | kan.Name = "wrecked" | |
145 | kan.Looped = true | |
146 | kan:Play() | |
147 | ||
148 | local currentThemePlaying = kan.SoundId | |
149 | local currentPitch = kan.Pitch | |
150 | local currentVol = kan.Volume | |
151 | function newTheme(ID,timepos,pitch,vol) | |
152 | local kanz = kan | |
153 | --kanz:Stop() | |
154 | kanz.Volume = vol | |
155 | --kanz.TimePosition = timepos | |
156 | kanz.PlaybackSpeed = pitch | |
157 | kanz.Pitch = pitch | |
158 | kanz.SoundId = ID | |
159 | kanz.Name = "wrecked" | |
160 | kanz.Looped = true | |
161 | currentThemePlaying = kanz.SoundId | |
162 | currentVol = kanz.Volume | |
163 | currentPitch = kanz.Pitch | |
164 | --kanz:Play() | |
165 | --coroutine.resume(coroutine.create(function() | |
166 | --wait(0.05) | |
167 | --end)) | |
168 | end | |
169 | ||
170 | ||
171 | function newThemeCust(ID,timepos,pitch,vol) | |
172 | local kanz = kan | |
173 | kanz:Stop() | |
174 | kanz.Volume = vol | |
175 | kanz.TimePosition = timepos | |
176 | kanz.PlaybackSpeed = pitch | |
177 | kanz.Pitch = pitch | |
178 | kanz.SoundId = ID | |
179 | kanz.Name = "wrecked" | |
180 | kanz.Looped = true | |
181 | currentThemePlaying = kanz.SoundId | |
182 | currentVol = kanz.Volume | |
183 | currentPitch = kanz.Pitch | |
184 | kanz:Play() | |
185 | coroutine.resume(coroutine.create(function() | |
186 | wait(0.05) | |
187 | end)) | |
188 | end | |
189 | ||
190 | local mutedtog = false | |
191 | ||
192 | function CameraEnshaking(Length,Intensity) | |
193 | coroutine.resume(coroutine.create(function() | |
194 | local intensity = 1*Intensity | |
195 | local rotM = 0.01*Intensity | |
196 | for i = 0, Length, 0.1 do | |
197 | swait() | |
198 | intensity = intensity - 0.05*Intensity/Length | |
199 | rotM = rotM - 0.0005*Intensity/Length | |
200 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
201 | cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM) | |
202 | end | |
203 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
204 | end)) | |
205 | end | |
206 | CamShake=function(Part,Distan,Power,Times) | |
207 | local de=Part.Position | |
208 | for i,v in pairs(workspace:children()) do | |
209 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
210 | for _,c in pairs(v:children()) do | |
211 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
212 | local Noob=v.Humanoid | |
213 | if Noob~=nil then | |
214 | coroutine.resume(coroutine.create(function() | |
215 | FV = Instance.new("BoolValue", Noob) | |
216 | FV.Name = "CameraShake" | |
217 | for ShakeNum=1,Times do | |
218 | swait() | |
219 | local ef=Power | |
220 | if ef>=1 then | |
221 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
222 | else | |
223 | ef=Power*10 | |
224 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
225 | end | |
226 | end | |
227 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
228 | FV:Destroy() | |
229 | end)) | |
230 | CameraShake(Times, Power, Noob) | |
231 | end | |
232 | end | |
233 | end | |
234 | end | |
235 | end | |
236 | end | |
237 | ||
238 | ||
239 | function chatfunc(text,color,typet,font,timeex) | |
240 | local chat = coroutine.wrap(function() | |
241 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
242 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
243 | end | |
244 | local naeeym2 = Instance.new("BillboardGui",Character) | |
245 | naeeym2.Size = UDim2.new(0,100,0,40) | |
246 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
247 | naeeym2.Adornee = Character.Head | |
248 | naeeym2.Name = "TalkingBillBoard" | |
249 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
250 | tecks2.BackgroundTransparency = 1 | |
251 | tecks2.BorderSizePixel = 0 | |
252 | tecks2.Text = "" | |
253 | tecks2.Font = font | |
254 | tecks2.TextSize = 30 | |
255 | tecks2.TextStrokeTransparency = 0 | |
256 | tecks2.TextColor3 = color | |
257 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
258 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
259 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
260 | tecks3.BackgroundTransparency = 1 | |
261 | tecks3.BorderSizePixel = 0 | |
262 | tecks3.Text = "" | |
263 | tecks3.Font = font | |
264 | tecks3.TextSize = 30 | |
265 | tecks3.TextStrokeTransparency = 0 | |
266 | if typet == "Inverted" then | |
267 | tecks3.TextColor3 = Color3.new(0,0,0) | |
268 | tecks3.TextStrokeColor3 = color | |
269 | elseif typet == "Normal" then | |
270 | tecks3.TextColor3 = color | |
271 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
272 | end | |
273 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
274 | coroutine.resume(coroutine.create(function() | |
275 | while true do | |
276 | swait(1) | |
277 | if chaosmode == true then | |
278 | tecks2.TextColor3 = BrickColor.random().Color | |
279 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
280 | end | |
281 | end | |
282 | end)) | |
283 | modet.TextTransparency = modet.TextTransparency + 1 | |
284 | modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1 | |
285 | for i = 0, 74*timeex do | |
286 | swait() | |
287 | modet.TextTransparency = 1 | |
288 | modet.TextStrokeTransparency = 1 | |
289 | tecks2.Text = text | |
290 | tecks3.Text = text | |
291 | end | |
292 | local randomrot = math.random(1,2) | |
293 | if randomrot == 1 then | |
294 | for i = 1, 50 do | |
295 | swait() | |
296 | tecks2.Text = text | |
297 | tecks3.Text = text | |
298 | modet.TextTransparency = modet.TextTransparency - .02 | |
299 | modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02 | |
300 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
301 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
302 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
303 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
304 | end | |
305 | elseif randomrot == 2 then | |
306 | for i = 1, 50 do | |
307 | swait() | |
308 | tecks2.Text = text | |
309 | tecks3.Text = text | |
310 | modet.TextTransparency = modet.TextTransparency - .02 | |
311 | modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02 | |
312 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
313 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
314 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
315 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
316 | end | |
317 | end | |
318 | modet.TextTransparency = 0 | |
319 | modet.TextStrokeTransparency = 0 | |
320 | if toggleTag == false then | |
321 | modet.TextTransparency = 1 | |
322 | modet.TextStrokeTransparency = 1 | |
323 | end | |
324 | naeeym2:Destroy() | |
325 | end) | |
326 | chat() | |
327 | end | |
328 | ||
329 | function bosschatfunc(text,color,watval) | |
330 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
331 | coroutine.resume(coroutine.create(function() | |
332 | if v.PlayerGui:FindFirstChild("Dialog")~= nil then | |
333 | v.PlayerGui:FindFirstChild("Dialog"):destroy() | |
334 | end | |
335 | local scrg = Instance.new("ScreenGui",v.PlayerGui) | |
336 | CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1) | |
337 | scrg.Name = "Dialog" | |
338 | local txtlb = Instance.new("TextLabel",scrg) | |
339 | txtlb.Text = "" | |
340 | txtlb.Font = "Bodoni" | |
341 | txtlb.TextColor3 = Color3.new(0,0,0) | |
342 | txtlb.TextStrokeTransparency = 0 | |
343 | txtlb.BackgroundTransparency = 0.75 | |
344 | txtlb.BackgroundColor3 = Color3.new(0,0,0) | |
345 | txtlb.TextStrokeColor3 = color | |
346 | txtlb.TextScaled = true | |
347 | txtlb.Size = UDim2.new(1,0,0.25,0) | |
348 | txtlb.TextXAlignment = "Left" | |
349 | txtlb.Position = UDim2.new(0,0,0.75 + 1,0) | |
350 | local txtlb2 = Instance.new("TextLabel",scrg) | |
351 | txtlb2.Text = "Lunar Banisher" | |
352 | txtlb2.Font = "Arcade" | |
353 | txtlb2.TextColor3 = Color3.new(0,0,0) | |
354 | txtlb2.TextStrokeTransparency = 0 | |
355 | txtlb2.BackgroundTransparency = 1 | |
356 | txtlb2.TextStrokeColor3 = color | |
357 | txtlb2.TextSize = 40 | |
358 | txtlb2.Size = UDim2.new(1,0,0.25,0) | |
359 | txtlb2.TextXAlignment = "Left" | |
360 | txtlb2.Position = UDim2.new(0,0,1,0) | |
361 | local fvalen = 0.55 | |
362 | local fval = -0.49 | |
363 | coroutine.resume(coroutine.create(function() | |
364 | while true do | |
365 | swait() | |
366 | if chaosmode == true then | |
367 | txtlb.Rotation = math.random(-1,1) | |
368 | txtlb2.Rotation = math.random(-1,1) | |
369 | txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5) | |
370 | txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5) | |
371 | txtlb.TextStrokeColor3 = BrickColor.random().Color | |
372 | txtlb2.TextStrokeColor3 = BrickColor.random().Color | |
373 | end | |
374 | end | |
375 | end)) | |
376 | coroutine.resume(coroutine.create(function() | |
377 | while true do | |
378 | swait() | |
379 | if scrg.Parent ~= nil then | |
380 | fvalen = fvalen - 0.0001 | |
381 | elseif scrg.Parent == nil then | |
382 | break | |
383 | end | |
384 | end | |
385 | end)) | |
386 | local flol = 1.75 | |
387 | local flil = 1.6 | |
388 | coroutine.resume(coroutine.create(function() | |
389 | for i = 0, 9 do | |
390 | swait() | |
391 | fval = fval + 0.05 | |
392 | flol = flol - 0.1 | |
393 | flil = flil - 0.1 | |
394 | txtlb.Text = "" | |
395 | txtlb.Position = UDim2.new(0,0,flol,0) | |
396 | txtlb2.Position = UDim2.new(0,0,flil,0) | |
397 | end | |
398 | txtlb.Text = text | |
399 | wait(watval) | |
400 | local valinc = 0 | |
401 | for i = 0, 99 do | |
402 | swait() | |
403 | valinc = valinc + 0.0001 | |
404 | flol = flol + valinc | |
405 | flil = flil + valinc | |
406 | txtlb.Rotation = txtlb.Rotation + valinc*20 | |
407 | txtlb2.Rotation = txtlb2.Rotation - valinc*50 | |
408 | txtlb.Position = UDim2.new(0,0,flol,0) | |
409 | txtlb2.Position = UDim2.new(0,0,flil,0) | |
410 | txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01 | |
411 | txtlb.TextTransparency = txtlb.TextTransparency + 0.01 | |
412 | txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01 | |
413 | txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01 | |
414 | txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025 | |
415 | end | |
416 | scrg:Destroy() | |
417 | end)) | |
418 | end)) | |
419 | end | |
420 | end | |
421 | ||
422 | local disably = false | |
423 | function warnedpeople(text,represfont,color,color2) | |
424 | if disably ~= true then | |
425 | CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1) | |
426 | CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1) | |
427 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
428 | coroutine.resume(coroutine.create(function() | |
429 | if v.PlayerGui:FindFirstChild("Spinny")~= nil then | |
430 | v.PlayerGui:FindFirstChild("Spinny"):destroy() | |
431 | end | |
432 | local scrg = Instance.new("ScreenGui",v.PlayerGui) | |
433 | scrg.Name = "Spinny" | |
434 | local frm = Instance.new("Frame",scrg) | |
435 | frm.BackgroundTransparency = 0.25 | |
436 | frm.BackgroundColor3 = color | |
437 | frm.BorderSizePixel = 0 | |
438 | frm.Rotation = 45 | |
439 | frm.Size = UDim2.new(3,0,0,100) | |
440 | frm.Position = UDim2.new(-4,0,0,0) | |
441 | local frm2 = frm:Clone() | |
442 | frm2.Parent = scrg | |
443 | frm2.BackgroundColor3 = color2 | |
444 | frm2.Position = UDim2.new(-4.05,0,0,0) | |
445 | local imlb = Instance.new("ImageLabel",scrg) | |
446 | imlb.BackgroundTransparency = 1 | |
447 | imlb.BackgroundColor3 = Color3.new(0,0,0) | |
448 | imlb.Image = "rbxassetid://2344851144" | |
449 | imlb.Size = UDim2.new(0,750,0,750) | |
450 | imlb.ImageColor3 = color2 | |
451 | imlb.ImageTransparency = 0.25 | |
452 | imlb.Position = UDim2.new(-2.5,0,-2.5,0) | |
453 | local imlb2 = imlb:Clone() | |
454 | imlb2.Image = "rbxassetid://2325939897" | |
455 | imlb2.Size = UDim2.new(1,0,1,0) | |
456 | imlb2.ImageColor3 = color | |
457 | imlb2.ImageTransparency = 0 | |
458 | imlb2.Position = UDim2.new(0,0,0,0) | |
459 | local imlb3 = imlb:Clone() | |
460 | imlb3.Image = "rbxassetid://2344830904" | |
461 | imlb3.Size = UDim2.new(1,0,1,0) | |
462 | imlb3.ImageColor3 = color2 | |
463 | imlb3.ImageTransparency = 0 | |
464 | imlb3.Position = UDim2.new(0,0,0,0) | |
465 | local imlb4 = imlb:Clone() | |
466 | imlb4.Image = "rbxassetid://2344870656" | |
467 | imlb4.Size = UDim2.new(3,0,3,0) | |
468 | imlb4.ImageColor3 = Color3.new(1,1,1) | |
469 | imlb4.ImageTransparency = 0 | |
470 | imlb4.Position = UDim2.new(-1,0,-1,0) | |
471 | local imlb5 = imlb:Clone() | |
472 | imlb5.Image = "rbxassetid://2344870656" | |
473 | imlb5.Size = UDim2.new(10,0,10,0) | |
474 | imlb5.ImageColor3 = color2 | |
475 | imlb5.ImageTransparency = 0 | |
476 | imlb5.Position = UDim2.new(-4.5,0,-4.5,0) | |
477 | imlb2.Parent = imlb | |
478 | imlb3.Parent = imlb | |
479 | imlb4.Parent = imlb | |
480 | imlb5.Parent = imlb | |
481 | local txtlb2 = Instance.new("TextLabel",imlb) | |
482 | txtlb2.Text = text | |
483 | txtlb2.Font = represfont | |
484 | txtlb2.TextColor3 = color | |
485 | txtlb2.TextStrokeTransparency = 0 | |
486 | txtlb2.BackgroundTransparency = 1 | |
487 | txtlb2.TextStrokeColor3 = color2 | |
488 | txtlb2.TextScaled = true | |
489 | txtlb2.Size = UDim2.new(1,0,1,0) | |
490 | txtlb2.Position = UDim2.new(0,0,0,0) | |
491 | local fvalen = 0.55 | |
492 | local fval = -0.49 | |
493 | coroutine.resume(coroutine.create(function() | |
494 | while true do | |
495 | swait() | |
496 | if chaosmode == true then | |
497 | txtlb2.Rotation = math.random(-1,1) | |
498 | imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5) | |
499 | txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5) | |
500 | imlb.ImageColor3 = BrickColor.random().Color | |
501 | txtlb2.TextStrokeColor3 = BrickColor.random().Color | |
502 | end | |
503 | end | |
504 | end)) | |
505 | coroutine.resume(coroutine.create(function() | |
506 | while true do | |
507 | swait() | |
508 | if scrg.Parent ~= nil then | |
509 | fvalen = fvalen - 0.0001 | |
510 | elseif scrg.Parent == nil then | |
511 | break | |
512 | end | |
513 | end | |
514 | end)) | |
515 | local flol = -5 | |
516 | local flil = 1.6 | |
517 | coroutine.resume(coroutine.create(function() | |
518 | for i = 0, 49 do | |
519 | swait() | |
520 | flol = flol + 0.125 | |
521 | flil = flil - 0.1 | |
522 | frm.Size = frm.Size + UDim2.new(0.1,0,0,0) | |
523 | frm.Rotation = frm.Rotation - 0.25 | |
524 | frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0) | |
525 | frm2.Rotation = frm.Rotation + 0.325 | |
526 | imlb3.Rotation = imlb3.Rotation - 10 | |
527 | imlb2.Rotation = imlb.Rotation + 7.5 | |
528 | imlb.Rotation = imlb.Rotation + 5 | |
529 | txtlb2.Rotation = txtlb2.Rotation - 5.125 | |
530 | imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0) | |
531 | end | |
532 | for i = 0, 99 do | |
533 | swait() | |
534 | fval = fval + 0.05 | |
535 | flol = flol + 0.005 | |
536 | frm.Size = frm.Size + UDim2.new(0.005,0,0,0) | |
537 | frm.Rotation = frm.Rotation - 0.075 | |
538 | frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0) | |
539 | frm2.Rotation = frm2.Rotation + 0.125 | |
540 | imlb3.Rotation = imlb3.Rotation - 2 | |
541 | imlb2.Rotation = imlb.Rotation + 1.5 | |
542 | imlb.Rotation = imlb.Rotation + 1 | |
543 | txtlb2.Rotation = txtlb2.Rotation - 1.125 | |
544 | imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0) | |
545 | end | |
546 | local valinc = 0 | |
547 | local vinc2 = 1 | |
548 | for i = 0, 99 do | |
549 | swait() | |
550 | vinc2 = vinc2 + 0.25 | |
551 | valinc = valinc + 0.0001 | |
552 | flol = flol + valinc | |
553 | flil = flil + valinc | |
554 | txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2 | |
555 | imlb3.Rotation = imlb3.Rotation - 2*vinc2 | |
556 | imlb.Rotation = imlb.Rotation + 1*vinc2 | |
557 | imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0) | |
558 | frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0) | |
559 | frm.Rotation = frm.Rotation + 0.1*vinc2 | |
560 | frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0) | |
561 | frm2.Rotation = frm2.Rotation + 0.225*vinc2 | |
562 | frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075 | |
563 | frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075 | |
564 | imlb.ImageTransparency = imlb.ImageTransparency + 0.005 | |
565 | imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01 | |
566 | imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01 | |
567 | imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01 | |
568 | imlb5.ImageTransparency = imlb4.ImageTransparency + 0.01 | |
569 | txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01 | |
570 | txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01 | |
571 | end | |
572 | scrg:Destroy() | |
573 | end)) | |
574 | end)) | |
575 | end | |
576 | end | |
577 | end | |
578 | ||
579 | local Create = LoadLibrary("RbxUtility").Create | |
580 | ||
581 | CFuncs = { | |
582 | ["Part"] = { | |
583 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
584 | local Part = Create("Part"){ | |
585 | Parent = Parent, | |
586 | Reflectance = Reflectance, | |
587 | Transparency = Transparency, | |
588 | CanCollide = false, | |
589 | Locked = true, | |
590 | BrickColor = BrickColor.new(tostring(BColor)), | |
591 | Name = Name, | |
592 | Size = Size, | |
593 | Material = Material, | |
594 | } | |
595 | RemoveOutlines(Part) | |
596 | return Part | |
597 | end; | |
598 | }; | |
599 | ||
600 | ["Mesh"] = { | |
601 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
602 | local Msh = Create(Mesh){ | |
603 | Parent = Part, | |
604 | Offset = OffSet, | |
605 | Scale = Scale, | |
606 | } | |
607 | if Mesh == "SpecialMesh" then | |
608 | Msh.MeshType = MeshType | |
609 | Msh.MeshId = MeshId | |
610 | end | |
611 | return Msh | |
612 | end; | |
613 | }; | |
614 | ||
615 | ["Mesh"] = { | |
616 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
617 | local Msh = Create(Mesh){ | |
618 | Parent = Part, | |
619 | Offset = OffSet, | |
620 | Scale = Scale, | |
621 | } | |
622 | if Mesh == "SpecialMesh" then | |
623 | Msh.MeshType = MeshType | |
624 | Msh.MeshId = MeshId | |
625 | end | |
626 | return Msh | |
627 | end; | |
628 | }; | |
629 | ||
630 | ["Weld"] = { | |
631 | Create = function(Parent, Part0, Part1, C0, C1) | |
632 | local Weld = Create("Weld"){ | |
633 | Parent = Parent, | |
634 | Part0 = Part0, | |
635 | Part1 = Part1, | |
636 | C0 = C0, | |
637 | C1 = C1, | |
638 | } | |
639 | return Weld | |
640 | end; | |
641 | }; | |
642 | ||
643 | ["Sound"] = { | |
644 | Create = function(id, par, vol, pit) | |
645 | coroutine.resume(coroutine.create(function() | |
646 | local S = Create("Sound"){ | |
647 | Volume = vol, | |
648 | Name = "EffectSoundo", | |
649 | Pitch = pit or 1, | |
650 | SoundId = id, | |
651 | Parent = par or workspace, | |
652 | } | |
653 | wait() | |
654 | S:play() | |
655 | game:GetService("Debris"):AddItem(S, 10) | |
656 | end)) | |
657 | end; | |
658 | }; | |
659 | ||
660 | ["TimeSound"] = { | |
661 | Create = function(id, par, vol, pit, timepos) | |
662 | coroutine.resume(coroutine.create(function() | |
663 | local S = Create("Sound"){ | |
664 | Volume = vol, | |
665 | Name = "EffectSoundo", | |
666 | Pitch = pit or 1, | |
667 | SoundId = id, | |
668 | TimePosition = timepos, | |
669 | Parent = par or workspace, | |
670 | } | |
671 | wait() | |
672 | S:play() | |
673 | game:GetService("Debris"):AddItem(S, 10) | |
674 | end)) | |
675 | end; | |
676 | }; | |
677 | ["EchoSound"] = { | |
678 | Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl) | |
679 | coroutine.resume(coroutine.create(function() | |
680 | local Sas = Create("Sound"){ | |
681 | Volume = vol, | |
682 | Name = "EffectSoundo", | |
683 | Pitch = pit or 1, | |
684 | SoundId = id, | |
685 | TimePosition = timepos, | |
686 | Parent = par or workspace, | |
687 | } | |
688 | local E = Create("EchoSoundEffect"){ | |
689 | Delay = echodelay, | |
690 | Name = "Echo", | |
691 | Feedback = fedb, | |
692 | DryLevel = dryl, | |
693 | Parent = Sas, | |
694 | } | |
695 | wait() | |
696 | Sas:play() | |
697 | game:GetService("Debris"):AddItem(Sas, delays) | |
698 | end)) | |
699 | end; | |
700 | }; | |
701 | ||
702 | ["LongSound"] = { | |
703 | Create = function(id, par, vol, pit) | |
704 | coroutine.resume(coroutine.create(function() | |
705 | local S = Create("Sound"){ | |
706 | Volume = vol, | |
707 | Pitch = pit or 1, | |
708 | SoundId = id, | |
709 | Parent = par or workspace, | |
710 | } | |
711 | wait() | |
712 | S:play() | |
713 | game:GetService("Debris"):AddItem(S, 60) | |
714 | end)) | |
715 | end; | |
716 | }; | |
717 | ||
718 | ["ParticleEmitter"] = { | |
719 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
720 | local fp = Create("ParticleEmitter"){ | |
721 | Parent = Parent, | |
722 | Color = ColorSequence.new(Color1, Color2), | |
723 | LightEmission = LightEmission, | |
724 | Size = Size, | |
725 | Texture = Texture, | |
726 | Transparency = Transparency, | |
727 | ZOffset = ZOffset, | |
728 | Acceleration = Accel, | |
729 | Drag = Drag, | |
730 | LockedToPart = LockedToPart, | |
731 | VelocityInheritance = VelocityInheritance, | |
732 | EmissionDirection = EmissionDirection, | |
733 | Enabled = Enabled, | |
734 | Lifetime = LifeTime, | |
735 | Rate = Rate, | |
736 | Rotation = Rotation, | |
737 | RotSpeed = RotSpeed, | |
738 | Speed = Speed, | |
739 | VelocitySpread = VelocitySpread, | |
740 | } | |
741 | return fp | |
742 | end; | |
743 | }; | |
744 | ||
745 | CreateTemplate = { | |
746 | ||
747 | }; | |
748 | } | |
749 | ||
750 | ||
751 | ||
752 | New = function(Object, Parent, Name, Data) | |
753 | local Object = Instance.new(Object) | |
754 | for Index, Value in pairs(Data or {}) do | |
755 | Object[Index] = Value | |
756 | end | |
757 | Object.Parent = Parent | |
758 | Object.Name = Name | |
759 | return Object | |
760 | end | |
761 | local halocolor = BrickColor.new("Gold") | |
762 | local halocolor2 = BrickColor.new("Really black") | |
763 | local starcolor = BrickColor.new("Really black") | |
764 | local lunacolor = BrickColor.new("Gold") | |
765 | local lunacolor2 = BrickColor.new("Gold") | |
766 | local wepcolor = BrickColor.new("Really black") | |
767 | local maincolor = BrickColor.new("Really black") | |
768 | local m = Instance.new("Model",char) | |
769 | local m2 = Instance.new("Model",char) | |
770 | local m3 = Instance.new("Model",char) | |
771 | local mw1 = Instance.new("Model",char) | |
772 | local mw2 = Instance.new("Model",char) | |
773 | ||
774 | ||
775 | ||
776 | ||
777 | - | local extrawingmod1 = Instance.new("Model",char) |
777 | + | |
778 | - | local extrawingmod2 = Instance.new("Model",char) |
778 | + | |
779 | p.TopSurface = 0 | |
780 | p.BottomSurface = 0 | |
781 | p.Parent = parent | |
782 | p.Size = Vector3.new(0.1,0.1,0.1) | |
783 | p.Transparency = transparency | |
784 | p.Reflectance = reflectance | |
785 | p.CanCollide = false | |
786 | p.Locked = true | |
787 | p.BrickColor = brickcolor | |
788 | p.Material = material | |
789 | return p | |
790 | end | |
791 | ||
792 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
793 | local mesh = Instance.new("SpecialMesh",parent) | |
794 | mesh.MeshType = meshtype | |
795 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
796 | return mesh | |
797 | end | |
798 | ||
799 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
800 | local mesh = Instance.new("SpecialMesh",parent) | |
801 | mesh.MeshType = "FileMesh" | |
802 | mesh.MeshId = meshid | |
803 | mesh.Scale = Vector3.new(x1,y1,z1) | |
804 | return mesh | |
805 | end | |
806 | ||
807 | ||
808 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
809 | local mesh = Instance.new("SpecialMesh",parent) | |
810 | mesh.MeshType = "FileMesh" | |
811 | mesh.MeshId = meshid | |
812 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
813 | mesh.Scale = Vector3.new(x1,y1,z1) | |
814 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
815 | return mesh | |
816 | end | |
817 | ||
818 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
819 | local weld = Instance.new("Weld") | |
820 | weld.Parent = parent | |
821 | weld.Part0 = part0 | |
822 | weld.Part1 = part1 | |
823 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
824 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
825 | return weld | |
826 | end | |
827 | ||
828 | ||
829 | -------------- | |
830 | -------------- | |
831 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
832 | CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
833 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
834 | CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
835 | ||
836 | local handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
837 | CreateMesh(handle,"Brick",0,0,0) | |
838 | local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
839 | local valuaring = 10 | |
840 | for i = 0, 49 do | |
841 | valuaring = valuaring + 10 | |
842 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
843 | CreateMesh(rn,"Brick",0.25,0.1,0.1) | |
844 | CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
845 | end | |
846 | ||
847 | handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
848 | CreateMesh(handle,"Brick",0,0,0) | |
849 | CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
850 | local valuaring = 10 | |
851 | for i = 0, 49 do | |
852 | valuaring = valuaring + 10 | |
853 | rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
854 | CreateMesh(rn,"Brick",0.5,0.2,0.2) | |
855 | CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
856 | end | |
857 | ||
858 | ||
859 | local handle = CreateParta(m,1,1,"Neon",maincolor) | |
860 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
861 | local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
862 | ||
863 | ||
864 | for i, v in pairs(m:GetChildren()) do | |
865 | if v:IsA("Part") then | |
866 | - | --- Left wing. |
866 | + | |
867 | v.Material = "Glass" | |
868 | - | local lwing1 = CreateParta(m,1,1,"Neon",maincolor) |
868 | + | |
869 | end | |
870 | - | local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
870 | + | |
871 | if v:IsA("Part") then | |
872 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
872 | + | |
873 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
873 | + | |
874 | - | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
874 | + | |
875 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
875 | + | |
876 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
876 | + | |
877 | - | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
877 | + | |
878 | - | A0 = Instance.new('Attachment',wed) |
878 | + | |
879 | - | A0.Position = vt(0,0.25,0.25) |
879 | + | |
880 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
880 | + | |
881 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
881 | + | |
882 | - | CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
882 | + | |
883 | - | A1 = Instance.new('Attachment',wed) |
883 | + | |
884 | - | A1.Position = vt(0,-0.25,-2) |
884 | + | |
885 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
885 | + | |
886 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
886 | + | |
887 | - | CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
887 | + | |
888 | for i, v in pairs(mw1:GetChildren()) do | |
889 | - | tl1 = Instance.new('Trail',wed) |
889 | + | |
890 | - | tl1.Attachment0 = A1 |
890 | + | |
891 | - | tl1.Attachment1 = A0 |
891 | + | |
892 | - | tl1.Texture = "rbxassetid://2108945559" |
892 | + | |
893 | - | tl1.LightEmission = 1 |
893 | + | |
894 | - | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) |
894 | + | |
895 | - | tl1.Color = ColorSequence.new(BrickColor.new('Really black').Color) |
895 | + | |
896 | - | tl1.Lifetime = 0.6 |
896 | + | |
897 | v.Transparency = 1 | |
898 | v.BrickColor = BrickColor.new("White") | |
899 | - | local lwing2 = CreateParta(m,1,1,"Neon",maincolor) |
899 | + | |
900 | end | |
901 | - | local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
901 | + | |
902 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
903 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
903 | + | |
904 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
904 | + | |
905 | - | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
905 | + | |
906 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
906 | + | |
907 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
907 | + | |
908 | - | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
908 | + | |
909 | - | A0 = Instance.new('Attachment',wed) |
909 | + | |
910 | - | A0.Position = vt(0,0.25,0.25) |
910 | + | |
911 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
911 | + | |
912 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
912 | + | |
913 | - | CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
913 | + | |
914 | - | A1 = Instance.new('Attachment',wed) |
914 | + | |
915 | - | A1.Position = vt(0,-0.25,-2) |
915 | + | |
916 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
916 | + | |
917 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
917 | + | |
918 | - | CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
918 | + | |
919 | end | |
920 | - | tl2 = Instance.new('Trail',wed) |
920 | + | |
921 | - | tl2.Attachment0 = A1 |
921 | + | |
922 | - | tl2.Attachment1 = A0 |
922 | + | |
923 | - | tl2.Texture = "rbxassetid://2108945559" |
923 | + | |
924 | - | tl2.LightEmission = 1 |
924 | + | |
925 | - | tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) |
925 | + | |
926 | - | tl2.Color = ColorSequence.new(BrickColor.new('Really black').Color) |
926 | + | |
927 | - | tl2.Lifetime = 0.6 |
927 | + | |
928 | techc.ImageColor3 = one.Color | |
929 | - | local lwing3 = CreateParta(m,1,1,"Neon",maincolor) |
929 | + | |
930 | ned.TextColor3 = two.Color | |
931 | - | local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
931 | + | |
932 | for i, v in pairs(mw1:GetChildren()) do | |
933 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
933 | + | |
934 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
934 | + | |
935 | - | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
935 | + | |
936 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
936 | + | |
937 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
937 | + | |
938 | - | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
938 | + | |
939 | - | A0 = Instance.new('Attachment',wed) |
939 | + | |
940 | - | A0.Position = vt(0,0.25,0.25) |
940 | + | |
941 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
941 | + | |
942 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
942 | + | |
943 | - | CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
943 | + | |
944 | - | A1 = Instance.new('Attachment',wed) |
944 | + | |
945 | - | A1.Position = vt(0,-0.25,-2) |
945 | + | |
946 | - | wed = CreateParta(mw1,0,0,"Neon",halocolor) |
946 | + | |
947 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
947 | + | |
948 | - | CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
948 | + | |
949 | if v:IsA("Part") then | |
950 | - | tl3 = Instance.new('Trail',wed) |
950 | + | |
951 | - | tl3.Attachment0 = A1 |
951 | + | |
952 | - | tl3.Attachment1 = A0 |
952 | + | |
953 | - | tl3.Texture = "rbxassetid://2108945559" |
953 | + | |
954 | - | tl3.LightEmission = 1 |
954 | + | |
955 | - | tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) |
955 | + | |
956 | - | tl3.Color = ColorSequence.new(BrickColor.new('Really black').Color) |
956 | + | |
957 | - | tl3.Lifetime = 0.6 |
957 | + | |
958 | end | |
959 | - | tl1.Enabled = false |
959 | + | |
960 | - | tl2.Enabled = false |
960 | + | |
961 | - | tl3.Enabled = false |
961 | + | |
962 | - | local lwing4 = CreateParta(m,1,1,"Neon",maincolor) |
962 | + | |
963 | v.BrickColor = exone | |
964 | - | local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
964 | + | |
965 | end | |
966 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
966 | + | |
967 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
967 | + | |
968 | - | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
968 | + | |
969 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
969 | + | |
970 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
970 | + | |
971 | - | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
971 | + | |
972 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
972 | + | |
973 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
973 | + | |
974 | - | CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
974 | + | |
975 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
975 | + | |
976 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
976 | + | |
977 | - | CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
977 | + | |
978 | coroutine.resume(coroutine.create(function() | |
979 | - | local lwing5 = CreateParta(m,1,1,"Neon",maincolor) |
979 | + | |
980 | v.PlayerGui:FindFirstChild("Dialog"):destroy() | |
981 | - | local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
981 | + | |
982 | local scrg = Instance.new("ScreenGui",v.PlayerGui) | |
983 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
983 | + | |
984 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
984 | + | |
985 | - | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
985 | + | |
986 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
986 | + | |
987 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
987 | + | |
988 | - | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
988 | + | |
989 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
989 | + | |
990 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
990 | + | |
991 | - | CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
991 | + | |
992 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
992 | + | |
993 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
993 | + | |
994 | - | CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
994 | + | |
995 | txtlb.Position = UDim2.new(0,0,0.75 + 1,0) | |
996 | - | local lwing6 = CreateParta(m,1,1,"Neon",maincolor) |
996 | + | |
997 | txtlb2.Text = "Chaotic:" | |
998 | - | local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
998 | + | |
999 | txtlb2.TextColor3 = Color3.new(0,0,0) | |
1000 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
1000 | + | |
1001 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
1001 | + | |
1002 | - | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1002 | + | |
1003 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
1003 | + | |
1004 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
1004 | + | |
1005 | - | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1005 | + | |
1006 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
1006 | + | |
1007 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
1007 | + | |
1008 | - | CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1008 | + | |
1009 | - | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) |
1009 | + | |
1010 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
1010 | + | |
1011 | - | CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1011 | + | |
1012 | if MODE == "Sanity" then | |
1013 | - | -- Right wing. |
1013 | + | |
1014 | txtlb2.Rotation = math.random(-1,1) | |
1015 | - | local rwing1 = CreateParta(m,1,1,"Neon",maincolor) |
1015 | + | |
1016 | txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5) | |
1017 | - | local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1017 | + | |
1018 | txtlb2.TextStrokeColor3 = BrickColor.random().Color | |
1019 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
1019 | + | |
1020 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
1020 | + | |
1021 | - | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1021 | + | |
1022 | - | A0 = Instance.new('Attachment',wed) |
1022 | + | |
1023 | - | A0.Position = vt(0,0.25,0.25) |
1023 | + | |
1024 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
1024 | + | |
1025 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
1025 | + | |
1026 | - | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1026 | + | |
1027 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
1027 | + | |
1028 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
1028 | + | |
1029 | - | CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1029 | + | |
1030 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
1030 | + | |
1031 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
1031 | + | |
1032 | - | CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1032 | + | |
1033 | - | A1 = Instance.new('Attachment',wed) |
1033 | + | |
1034 | - | A1.Position = vt(0,2,0.25) |
1034 | + | |
1035 | for i = 0, 9 do | |
1036 | - | tr1 = Instance.new('Trail',wed) |
1036 | + | |
1037 | - | tr1.Attachment0 = A1 |
1037 | + | |
1038 | - | tr1.Attachment1 = A0 |
1038 | + | |
1039 | - | tr1.Texture = "rbxassetid://2108945559" |
1039 | + | |
1040 | - | tr1.LightEmission = 1 |
1040 | + | |
1041 | - | tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) |
1041 | + | |
1042 | - | tr1.Color = ColorSequence.new(BrickColor.new('Really black').Color) |
1042 | + | |
1043 | - | tr1.Lifetime = 0.6 |
1043 | + | |
1044 | txtlb.Text = text | |
1045 | - | local rwing2 = CreateParta(m,1,1,"Neon",maincolor) |
1045 | + | |
1046 | local valinc = 0 | |
1047 | - | local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1047 | + | |
1048 | Swait() | |
1049 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
1049 | + | |
1050 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
1050 | + | |
1051 | - | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1051 | + | |
1052 | - | A0 = Instance.new('Attachment',wed) |
1052 | + | |
1053 | - | A0.Position = vt(0,0.25,0.25) |
1053 | + | |
1054 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
1054 | + | |
1055 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
1055 | + | |
1056 | - | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1056 | + | |
1057 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
1057 | + | |
1058 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
1058 | + | |
1059 | - | CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1059 | + | |
1060 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
1060 | + | |
1061 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
1061 | + | |
1062 | - | CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1062 | + | |
1063 | - | A1 = Instance.new('Attachment',wed) |
1063 | + | |
1064 | - | A1.Position = vt(0,2,0.25) |
1064 | + | |
1065 | end | |
1066 | - | tr2 = Instance.new('Trail',wed) |
1066 | + | |
1067 | - | tr2.Attachment0 = A1 |
1067 | + | |
1068 | - | tr2.Attachment1 = A0 |
1068 | + | |
1069 | - | tr2.Texture = "rbxassetid://2108945559" |
1069 | + | |
1070 | - | tr2.LightEmission = 1 |
1070 | + | |
1071 | - | tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) |
1071 | + | |
1072 | - | tr2.Color = ColorSequence.new(BrickColor.new('Really black').Color) |
1072 | + | |
1073 | - | tr2.Lifetime = 0.6 |
1073 | + | |
1074 | local scrg = Instance.new("ScreenGui",v.PlayerGui) | |
1075 | - | local rwing3 = CreateParta(m,1,1,"Neon",maincolor) |
1075 | + | |
1076 | local txtlb = Instance.new("TextLabel",scrg) | |
1077 | - | local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1077 | + | |
1078 | txtlb.Font = "Bodoni" | |
1079 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
1079 | + | |
1080 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
1080 | + | |
1081 | - | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1081 | + | |
1082 | - | A0 = Instance.new('Attachment',wed) |
1082 | + | |
1083 | - | A0.Position = vt(0,0.25,0.25) |
1083 | + | |
1084 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
1084 | + | |
1085 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
1085 | + | |
1086 | - | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1086 | + | |
1087 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
1087 | + | |
1088 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
1088 | + | |
1089 | - | CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1089 | + | |
1090 | - | wed = CreateParta(mw2,0,0,"Neon",halocolor) |
1090 | + | |
1091 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
1091 | + | |
1092 | - | CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1092 | + | |
1093 | - | A1 = Instance.new('Attachment',wed) |
1093 | + | |
1094 | - | A1.Position = vt(0,2,0.25) |
1094 | + | |
1095 | txtlb2.TextSize = 40 | |
1096 | - | tr3 = Instance.new('Trail',wed) |
1096 | + | |
1097 | - | tr3.Attachment0 = A1 |
1097 | + | |
1098 | - | tr3.Attachment1 = A0 |
1098 | + | |
1099 | - | tr3.Texture = "rbxassetid://2108945559" |
1099 | + | |
1100 | - | tr3.LightEmission = 1 |
1100 | + | |
1101 | - | tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) |
1101 | + | |
1102 | - | tr3.Color = ColorSequence.new(BrickColor.new('Really black').Color) |
1102 | + | |
1103 | - | tr3.Lifetime = 0.6 |
1103 | + | |
1104 | if MODE == "Sanity" then | |
1105 | txtlb.Rotation = math.random(-1,1) | |
1106 | - | local rwing4 = CreateParta(m,1,1,"Neon",maincolor) |
1106 | + | |
1107 | txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5) | |
1108 | - | local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1108 | + | |
1109 | txtlb.TextStrokeColor3 = BrickColor.random().Color | |
1110 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
1110 | + | |
1111 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
1111 | + | |
1112 | - | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1112 | + | |
1113 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
1113 | + | |
1114 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
1114 | + | |
1115 | - | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1115 | + | |
1116 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
1116 | + | |
1117 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
1117 | + | |
1118 | - | CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1118 | + | |
1119 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
1119 | + | |
1120 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
1120 | + | |
1121 | - | CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1121 | + | |
1122 | end | |
1123 | - | local rwing5 = CreateParta(m,1,1,"Neon",maincolor) |
1123 | + | |
1124 | local flol = 1.05 | |
1125 | - | local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1125 | + | |
1126 | local flil2 = -0.2 | |
1127 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
1127 | + | |
1128 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
1128 | + | |
1129 | - | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1129 | + | |
1130 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
1130 | + | |
1131 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
1131 | + | |
1132 | - | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1132 | + | |
1133 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
1133 | + | |
1134 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
1134 | + | |
1135 | - | CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1135 | + | |
1136 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
1136 | + | |
1137 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
1137 | + | |
1138 | - | CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1138 | + | |
1139 | txtlb.Position = UDim2.new(flil2,0,0,0) | |
1140 | - | local rwing6 = CreateParta(m,1,1,"Neon",maincolor) |
1140 | + | |
1141 | txtlb2.Position = UDim2.new(flil2,0,0,0) | |
1142 | - | local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1142 | + | |
1143 | ||
1144 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
1144 | + | |
1145 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
1145 | + | |
1146 | - | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1146 | + | |
1147 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
1147 | + | |
1148 | - | CreateMesh(wed,"Wedge",0.05,0.5,0.5) |
1148 | + | |
1149 | - | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1149 | + | |
1150 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
1150 | + | |
1151 | - | CreateMesh(wed,"Wedge",0.05,0.5,3) |
1151 | + | |
1152 | - | CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1152 | + | |
1153 | - | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) |
1153 | + | |
1154 | - | CreateMesh(wed,"Wedge",0.05,3,0.5) |
1154 | + | |
1155 | - | CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1155 | + | |
1156 | Swait() | |
1157 | - | --HERES THE RING |
1157 | + | |
1158 | flol = flol + valinc | |
1159 | flil2 = flil2 + valinc | |
1160 | - | --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) |
1160 | + | |
1161 | - | CreateMesh(ran,"Wedge",1.02,1.02,1.02) |
1161 | + | |
1162 | - | CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1162 | + | |
1163 | - | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1163 | + | |
1164 | - | CreateMesh(ran,"Wedge",0.9,0.9,1.025) |
1164 | + | |
1165 | - | CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1165 | + | |
1166 | - | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1166 | + | |
1167 | - | CreateMesh(ran,"Wedge",1.025,0.9,0.9) |
1167 | + | |
1168 | - | CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1168 | + | |
1169 | end | |
1170 | scrg:Destroy() | |
1171 | - | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1171 | + | |
1172 | - | CreateMesh(gan,"Brick",1.075,0.1,1.075) |
1172 | + | |
1173 | - | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1173 | + | |
1174 | end | |
1175 | - | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1175 | + | |
1176 | - | CreateMesh(gan,"Brick",1.075,0.1,1.075) |
1176 | + | |
1177 | - | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1177 | + | |
1178 | function RemoveOutlines(part) | |
1179 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1180 | end | |
1181 | - | gan = CreateParta(m2,0,0,"Neon",halocolor2) |
1181 | + | |
1182 | - | CreateMesh(gan,"Brick",1.095,0.035,1.095) |
1182 | + | |
1183 | - | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1183 | + | |
1184 | Reflectance = Reflectance, | |
1185 | - | gan = CreateParta(m2,0,0,"Neon",halocolor2) |
1185 | + | |
1186 | - | CreateMesh(gan,"Brick",1.095,0.035,1.095) |
1186 | + | |
1187 | - | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1187 | + | |
1188 | BrickColor = BrickColor.new(tostring(BColor)), | |
1189 | - | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) |
1189 | + | |
1190 | - | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) |
1190 | + | |
1191 | - | CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1191 | + | |
1192 | }) | |
1193 | - | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1193 | + | |
1194 | - | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) |
1194 | + | |
1195 | - | CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1195 | + | |
1196 | - | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) |
1196 | + | |
1197 | - | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) |
1197 | + | |
1198 | - | CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]-- |
1198 | + | |
1199 | Parent = Part, | |
1200 | - | --- second ring |
1200 | + | |
1201 | Scale = Scale | |
1202 | }) | |
1203 | - | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1203 | + | |
1204 | - | CreateMesh(gan,"Brick",1.075,0.1,1.075) |
1204 | + | |
1205 | - | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1205 | + | |
1206 | end | |
1207 | - | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1207 | + | |
1208 | - | CreateMesh(gan,"Brick",1.075,0.1,1.075) |
1208 | + | |
1209 | - | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1209 | + | |
1210 | local Weld = Create("Weld")({ | |
1211 | Parent = Parent, | |
1212 | Part0 = Part0, | |
1213 | - | gan = CreateParta(m2,0,0,"Neon",halocolor2) |
1213 | + | |
1214 | - | CreateMesh(gan,"Brick",1.095,0.035,1.095) |
1214 | + | |
1215 | - | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1215 | + | |
1216 | }) | |
1217 | - | gan = CreateParta(m2,0,0,"Neon",halocolor2) |
1217 | + | |
1218 | - | CreateMesh(gan,"Brick",1.095,0.035,1.095) |
1218 | + | |
1219 | - | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1219 | + | |
1220 | ||
1221 | - | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) |
1221 | + | |
1222 | - | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) |
1222 | + | |
1223 | - | CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1223 | + | |
1224 | Cam = workspace.CurrentCamera | |
1225 | - | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) |
1225 | + | |
1226 | - | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) |
1226 | + | |
1227 | - | CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1227 | + | |
1228 | - | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) |
1228 | + | |
1229 | - | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) |
1229 | + | |
1230 | - | CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
1230 | + | |
1231 | RightArm = Character["Right Arm"] | |
1232 | LeftArm = Character["Left Arm"] | |
1233 | RightLeg = Character["Right Leg"] | |
1234 | LeftLeg = Character["Left Leg"] | |
1235 | RootJoint = RootPart["RootJoint"] | |
1236 | Neck = Torso["Neck"] | |
1237 | RightShoulder = Torso["Right Shoulder"] | |
1238 | LeftShoulder = Torso["Left Shoulder"] | |
1239 | RightHip = Torso["Right Hip"] | |
1240 | LeftHip = Torso["Left Hip"] | |
1241 | local sick = Instance.new("Sound",Torso) | |
1242 | sick.SoundId = "rbxassetid://1306847940" | |
1243 | sick.Looped = true | |
1244 | sick.Pitch = 1 | |
1245 | sick.Volume = 0 | |
1246 | sick.TimePosition = 0 | |
1247 | Character.Archivable = true | |
1248 | Humanoid.DisplayDistanceType = "None" | |
1249 | ||
1250 | local naeeym2 = Instance.new("BillboardGui",Character) | |
1251 | naeeym2.AlwaysOnTop = true | |
1252 | naeeym2.Size = UDim2.new(5,35,2,35) | |
1253 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
1254 | naeeym2.Adornee = Character.Head | |
1255 | naeeym2.Name = "Name" | |
1256 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1257 | tecks2.BackgroundTransparency = 1 | |
1258 | tecks2.TextScaled = true | |
1259 | tecks2.BorderSizePixel = 0 | |
1260 | tecks2.Text = "NIGHTFALL BANISH" | |
1261 | tecks2.Font = "Antique" | |
1262 | tecks2.TextSize = 30 | |
1263 | tecks2.TextTransparency = 1 | |
1264 | tecks2.TextStrokeTransparency = 1 | |
1265 | tecks2.TextColor3 = Color3.new(0/0,0/0,0/0) | |
1266 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1267 | tecks2.Parent = naeeym2 | |
1268 | ||
1269 | IT = Instance.new | |
1270 | CF = CFrame.new | |
1271 | VT = Vector3.new | |
1272 | RAD = math.rad | |
1273 | C3 = Color3.new | |
1274 | UD2 = UDim2.new | |
1275 | BRICKC = BrickColor.new | |
1276 | ANGLES = CFrame.Angles | |
1277 | EULER = CFrame.fromEulerAnglesXYZ | |
1278 | COS = math.cos | |
1279 | ACOS = math.acos | |
1280 | SIN = math.sin | |
1281 | ASIN = math.asin | |
1282 | ABS = math.abs | |
1283 | MRANDOM = math.random | |
1284 | FLOOR = math.floor | |
1285 | ||
1286 | --//=================================\\ | |
1287 | --|| USEFUL VALUES | |
1288 | --\\=================================// | |
1289 | ||
1290 | Animation_Speed = 3 | |
1291 | local FORCERESET = false | |
1292 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
1293 | local Speed = 16 | |
1294 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
1295 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
1296 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
1297 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
1298 | local DAMAGEMULTIPLIER = 1 | |
1299 | local ANIM = "Idle" | |
1300 | local ATTACK = false | |
1301 | local EQUIPPED = false | |
1302 | local HOLD = false | |
1303 | local COMBO = 1 | |
1304 | local Rooted = false | |
1305 | local INTRO = false | |
1306 | local Gun = IT("Model") | |
1307 | Gun.Name = "Gun" | |
1308 | local SINE = 0 | |
1309 | local KEYHOLD = false | |
1310 | local CHANGE = 2 / Animation_Speed | |
1311 | local WALKINGANIM = false | |
1312 | local VALUE1 = false | |
1313 | local VALUE2 = false | |
1314 | local ROBLOXIDLEANIMATION = IT("Animation") | |
1315 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
1316 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
1317 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
1318 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
1319 | WEAPONGUI.Name = "BanishV3Gui" | |
1320 | local Weapon = IT("Model") | |
1321 | Weapon.Name = "Adds" | |
1322 | local FaceGradient = IT("Folder", Character) | |
1323 | FaceGradient.Name = "FaceGradient" | |
1324 | local Effects = IT("Folder", Weapon) | |
1325 | Effects.Name = "Effects" | |
1326 | local ANIMATOR = Humanoid.Animator | |
1327 | local ANIMATE = Character:FindFirstChild("Animate") | |
1328 | local UNANCHOR = true | |
1329 | local TOBANISH = {} | |
1330 | script.Parent = PlayerGui | |
1331 | ||
1332 | --//=================================\\ | |
1333 | --\\=================================// | |
1334 | ||
1335 | ||
1336 | --//=================================\\ | |
1337 | --|| CUSTOMIZATION | |
1338 | --\\=================================// | |
1339 | ||
1340 | Class_Name = "Sharpshooter" | |
1341 | Weapon_Name = "Add-ons" | |
1342 | ||
1343 | Custom_Color_1 = BRICKC("Really black"); --1st color for the weapon. | |
1344 | Custom_Color_2 = BRICKC("Maroon"); --2nd color for the weapon. | |
1345 | ||
1346 | Custom_Color_3 = BRICKC("Really black"); --Color for the abilities. | |
1347 | Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar. | |
1348 | Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar. | |
1349 | Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar. | |
1350 | Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar. | |
1351 | ||
1352 | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar. | |
1353 | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar. | |
1354 | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar. | |
1355 | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar. | |
1356 | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities. | |
1357 | ||
1358 | ||
1359 | Player_Size = 1 --Size of the player. | |
1360 | Animation_Speed = 3 | |
1361 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
1362 | ||
1363 | local Speed = 16 | |
1364 | local Effects2 = {} | |
1365 | ||
1366 | --//=================================\\ | |
1367 | --|| END OF CUSTOMIZATION | |
1368 | --\\=================================// | |
1369 | ||
1370 | ||
1371 | --//=================================\\ | |
1372 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
1373 | --\\=================================// | |
1374 | ||
1375 | ArtificialHB = Instance.new("BindableEvent", script) | |
1376 | ArtificialHB.Name = "ArtificialHB" | |
1377 | ||
1378 | script:WaitForChild("ArtificialHB") | |
1379 | ||
1380 | frame = Frame_Speed | |
1381 | tf = 0 | |
1382 | allowframeloss = false | |
1383 | tossremainder = false | |
1384 | lastframe = tick() | |
1385 | script.ArtificialHB:Fire() | |
1386 | ||
1387 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
1388 | tf = tf + s | |
1389 | if tf >= frame then | |
1390 | if allowframeloss then | |
1391 | script.ArtificialHB:Fire() | |
1392 | lastframe = tick() | |
1393 | else | |
1394 | for i = 1, math.floor(tf / frame) do | |
1395 | script.ArtificialHB:Fire() | |
1396 | end | |
1397 | lastframe = tick() | |
1398 | end | |
1399 | if tossremainder then | |
1400 | tf = 0 | |
1401 | else | |
1402 | tf = tf - frame * math.floor(tf / frame) | |
1403 | end | |
1404 | end | |
1405 | end) | |
1406 | ||
1407 | --//=================================\\ | |
1408 | --\\=================================// | |
1409 | ||
1410 | --//=================================\\ | |
1411 | --|| SOME FUNCTIONS | |
1412 | --\\=================================// | |
1413 | ||
1414 | function Clerp(a, b, t) | |
1415 | local qa = {QuaternionFromCFrame(a)} | |
1416 | local qb = {QuaternionFromCFrame(b)} | |
1417 | local ax, ay, az = a.x, a.y, a.z | |
1418 | local bx, by, bz = b.x, b.y, b.z | |
1419 | local _t = 1 - t | |
1420 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1421 | end | |
1422 | ||
1423 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
1424 | local frame = IT("Frame") | |
1425 | frame.BackgroundTransparency = TRANSPARENCY | |
1426 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
1427 | frame.Position = POSITION | |
1428 | frame.Size = SIZE | |
1429 | frame.BackgroundColor3 = COLOR | |
1430 | frame.BorderColor3 = BORDERCOLOR | |
1431 | frame.Name = NAME | |
1432 | frame.Parent = PARENT | |
1433 | return frame | |
1434 | end | |
1435 | ||
1436 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
1437 | local label = IT("TextLabel") | |
1438 | label.BackgroundTransparency = 1 | |
1439 | label.Size = UD2(1, 0, 1, 0) | |
1440 | label.Position = UD2(0, 0, 0, 0) | |
1441 | label.TextColor3 = TEXTCOLOR | |
1442 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
1443 | label.TextTransparency = TRANSPARENCY | |
1444 | label.FontSize = TEXTFONTSIZE | |
1445 | label.Font = TEXTFONT | |
1446 | label.BorderSizePixel = BORDERSIZEPIXEL | |
1447 | label.TextScaled = false | |
1448 | label.Text = TEXT | |
1449 | label.Name = NAME | |
1450 | label.Parent = PARENT | |
1451 | return label | |
1452 | end | |
1453 | ||
1454 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
1455 | if FLOOR ~= nil then | |
1456 | coroutine.resume(coroutine.create(function() | |
1457 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
1458 | PART.CFrame = CF(POSITION) | |
1459 | for i = 1, 45 do | |
1460 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
1461 | RingPiece.Material = FLOOR.Material | |
1462 | RingPiece.Color = FLOOR.Color | |
1463 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
1464 | Debris:AddItem(RingPiece,SWAIT) | |
1465 | end | |
1466 | PART:remove() | |
1467 | end)) | |
1468 | end | |
1469 | end | |
1470 | ||
1471 | function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH) | |
1472 | if FLOOR ~= nil then | |
1473 | for i = 1, AMOUNT do | |
1474 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) | |
1475 | DEBREE.Material = FLOOR.Material | |
1476 | DEBREE.Color = FLOOR.Color | |
1477 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
1478 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH)) | |
1479 | coroutine.resume(coroutine.create(function() | |
1480 | Swait(15) | |
1481 | DEBREE.Parent = workspace | |
1482 | DEBREE.CanCollide = true | |
1483 | Debris:AddItem(DEBREE,SWAIT) | |
1484 | end)) | |
1485 | end | |
1486 | end | |
1487 | end | |
1488 | ||
1489 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
1490 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
1491 | end | |
1492 | ||
1493 | function PositiveAngle(NUMBER) | |
1494 | if NUMBER >= 0 then | |
1495 | NUMBER = 0 | |
1496 | end | |
1497 | return NUMBER | |
1498 | end | |
1499 | ||
1500 | function NegativeAngle(NUMBER) | |
1501 | if NUMBER <= 0 then | |
1502 | NUMBER = 0 | |
1503 | end | |
1504 | return NUMBER | |
1505 | end | |
1506 | ||
1507 | function Swait(NUMBER) | |
1508 | if NUMBER == 0 or NUMBER == nil then | |
1509 | ArtificialHB.Event:wait() | |
1510 | else | |
1511 | for i = 1, NUMBER do | |
1512 | ArtificialHB.Event:wait() | |
1513 | end | |
1514 | end | |
1515 | end | |
1516 | ||
1517 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
1518 | local NEWMESH = IT(MESH) | |
1519 | if MESH == "SpecialMesh" then | |
1520 | NEWMESH.MeshType = MESHTYPE | |
1521 | if MESHID ~= "nil" and MESHID ~= "" then | |
1522 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
1523 | end | |
1524 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
1525 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
1526 | end | |
1527 | end | |
1528 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
1529 | NEWMESH.Scale = SCALE | |
1530 | NEWMESH.Parent = PARENT | |
1531 | return NEWMESH | |
1532 | end | |
1533 | ||
1534 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
1535 | local NEWPART = IT("Part") | |
1536 | NEWPART.formFactor = FORMFACTOR | |
1537 | NEWPART.Reflectance = REFLECTANCE | |
1538 | NEWPART.Transparency = TRANSPARENCY | |
1539 | NEWPART.CanCollide = false | |
1540 | NEWPART.Locked = true | |
1541 | NEWPART.Anchored = true | |
1542 | if ANCHOR == false then | |
1543 | NEWPART.Anchored = false | |
1544 | end | |
1545 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
1546 | NEWPART.Name = NAME | |
1547 | NEWPART.Size = SIZE | |
1548 | NEWPART.Position = Torso.Position | |
1549 | NEWPART.Material = MATERIAL | |
1550 | NEWPART:BreakJoints() | |
1551 | NEWPART.Parent = PARENT | |
1552 | return NEWPART | |
1553 | end | |
1554 | ||
1555 | local function weldBetween(a, b) | |
1556 | local weldd = Instance.new("ManualWeld") | |
1557 | weldd.Part0 = a | |
1558 | weldd.Part1 = b | |
1559 | weldd.C0 = CFrame.new() | |
1560 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
1561 | weldd.Parent = a | |
1562 | return weldd | |
1563 | end | |
1564 | ||
1565 | ||
1566 | function QuaternionFromCFrame(cf) | |
1567 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1568 | local trace = m00 + m11 + m22 | |
1569 | if trace > 0 then | |
1570 | local s = math.sqrt(1 + trace) | |
1571 | local recip = 0.5 / s | |
1572 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1573 | else | |
1574 | local i = 0 | |
1575 | if m11 > m00 then | |
1576 | i = 1 | |
1577 | end | |
1578 | if m22 > (i == 0 and m00 or m11) then | |
1579 | i = 2 | |
1580 | end | |
1581 | if i == 0 then | |
1582 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1583 | local recip = 0.5 / s | |
1584 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1585 | elseif i == 1 then | |
1586 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1587 | local recip = 0.5 / s | |
1588 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1589 | elseif i == 2 then | |
1590 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1591 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1592 | end | |
1593 | end | |
1594 | end | |
1595 | ||
1596 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1597 | local xs, ys, zs = x + x, y + y, z + z | |
1598 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1599 | local xx = x * xs | |
1600 | local xy = x * ys | |
1601 | local xz = x * zs | |
1602 | local yy = y * ys | |
1603 | local yz = y * zs | |
1604 | local zz = z * zs | |
1605 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
1606 | end | |
1607 | ||
1608 | function QuaternionSlerp(a, b, t) | |
1609 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1610 | local startInterp, finishInterp; | |
1611 | if cosTheta >= 0.0001 then | |
1612 | if (1 - cosTheta) > 0.0001 then | |
1613 | local theta = ACOS(cosTheta) | |
1614 | local invSinTheta = 1 / SIN(theta) | |
1615 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
1616 | finishInterp = SIN(t * theta) * invSinTheta | |
1617 | else | |
1618 | startInterp = 1 - t | |
1619 | finishInterp = t | |
1620 | end | |
1621 | else | |
1622 | if (1 + cosTheta) > 0.0001 then | |
1623 | local theta = ACOS(-cosTheta) | |
1624 | local invSinTheta = 1 / SIN(theta) | |
1625 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
1626 | finishInterp = SIN(t * theta) * invSinTheta | |
1627 | else | |
1628 | startInterp = t - 1 | |
1629 | finishInterp = t | |
1630 | - | tecks2.Text = "OLDER BANISH" |
1630 | + | |
1631 | end | |
1632 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
1633 | end | |
1634 | ||
1635 | function Clerp(a, b, t) | |
1636 | local qa = {QuaternionFromCFrame(a)} | |
1637 | local qb = {QuaternionFromCFrame(b)} | |
1638 | local ax, ay, az = a.x, a.y, a.z | |
1639 | local bx, by, bz = b.x, b.y, b.z | |
1640 | local _t = 1 - t | |
1641 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1642 | end | |
1643 | ||
1644 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
1645 | local frame = IT("Frame") | |
1646 | frame.BackgroundTransparency = TRANSPARENCY | |
1647 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
1648 | frame.Position = POSITION | |
1649 | frame.Size = SIZE | |
1650 | frame.BackgroundColor3 = COLOR | |
1651 | frame.BorderColor3 = BORDERCOLOR | |
1652 | frame.Name = NAME | |
1653 | frame.Parent = PARENT | |
1654 | return frame | |
1655 | end | |
1656 | ||
1657 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
1658 | local label = IT("TextLabel") | |
1659 | label.BackgroundTransparency = 1 | |
1660 | label.Size = UD2(1, 0, 1, 0) | |
1661 | label.Position = UD2(0, 0, 0, 0) | |
1662 | label.TextColor3 = TEXTCOLOR | |
1663 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
1664 | label.TextTransparency = TRANSPARENCY | |
1665 | label.FontSize = TEXTFONTSIZE | |
1666 | label.Font = TEXTFONT | |
1667 | label.BorderSizePixel = BORDERSIZEPIXEL | |
1668 | label.TextScaled = false | |
1669 | label.Text = TEXT | |
1670 | label.Name = NAME | |
1671 | label.Parent = PARENT | |
1672 | return label | |
1673 | end | |
1674 | ||
1675 | function NoOutlines(PART) | |
1676 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
1677 | end | |
1678 | ||
1679 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
1680 | local NEWWELD = IT(TYPE) | |
1681 | NEWWELD.Part0 = PART0 | |
1682 | NEWWELD.Part1 = PART1 | |
1683 | NEWWELD.C0 = C0 | |
1684 | NEWWELD.C1 = C1 | |
1685 | NEWWELD.Parent = PARENT | |
1686 | return NEWWELD | |
1687 | end | |
1688 | ||
1689 | local S = IT("Sound") | |
1690 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
1691 | local NEWSOUND = nil | |
1692 | coroutine.resume(coroutine.create(function() | |
1693 | NEWSOUND = S:Clone() | |
1694 | NEWSOUND.Parent = PARENT | |
1695 | NEWSOUND.Volume = VOLUME | |
1696 | NEWSOUND.Pitch = PITCH | |
1697 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1698 | NEWSOUND:play() | |
1699 | if DOESLOOP == true then | |
1700 | NEWSOUND.Looped = true | |
1701 | else | |
1702 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
1703 | NEWSOUND:remove() | |
1704 | end | |
1705 | end)) | |
1706 | return NEWSOUND | |
1707 | end | |
1708 | ||
1709 | function CFrameFromTopBack(at, top, back) | |
1710 | local right = top:Cross(back) | |
1711 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
1712 | end | |
1713 | ||
1714 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1715 | function WACKYEFFECT(Table) | |
1716 | local TYPE = (Table.EffectType or "Sphere") | |
1717 | local SIZE = (Table.Size or VT(1,1,1)) | |
1718 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
1719 | local TRANSPARENCY = (Table.Transparency or 0) | |
1720 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1721 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1722 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1723 | local ROTATION1 = (Table.RotationX or 0) | |
1724 | local ROTATION2 = (Table.RotationY or 0) | |
1725 | local ROTATION3 = (Table.RotationZ or 0) | |
1726 | local MATERIAL = (Table.Material or "Neon") | |
1727 | local COLOR = (Table.Color or C3(1,1,1)) | |
1728 | local TIME = (Table.Time or 45) | |
1729 | local SOUNDID = (Table.SoundID or nil) | |
1730 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1731 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1732 | coroutine.resume(coroutine.create(function() | |
1733 | local PLAYSSOUND = false | |
1734 | local SOUND = nil | |
1735 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
1736 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1737 | PLAYSSOUND = true | |
1738 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1739 | end | |
1740 | EFFECT.Color = COLOR | |
1741 | local MSH = nil | |
1742 | if TYPE == "Sphere" then | |
1743 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1744 | elseif TYPE == "Block" then | |
1745 | MSH = IT("BlockMesh",EFFECT) | |
1746 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
1747 | elseif TYPE == "Wave" then | |
1748 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1749 | elseif TYPE == "Ring" then | |
1750 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1751 | elseif TYPE == "Slash" then | |
1752 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1753 | elseif TYPE == "Round Slash" then | |
1754 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1755 | elseif TYPE == "Swirl" then | |
1756 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1757 | elseif TYPE == "Skull" then | |
1758 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1759 | elseif TYPE == "Crystal" then | |
1760 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1761 | end | |
1762 | if MSH ~= nil then | |
1763 | local MOVESPEED = nil | |
1764 | if MOVEDIRECTION ~= nil then | |
1765 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1766 | end | |
1767 | local GROWTH = SIZE - ENDSIZE | |
1768 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1769 | if TYPE == "Block" then | |
1770 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1771 | else | |
1772 | EFFECT.CFrame = CFRAME | |
1773 | end | |
1774 | for LOOP = 1, TIME+1 do | |
1775 | Swait() | |
1776 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1777 | if TYPE == "Wave" then | |
1778 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1779 | end | |
1780 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1781 | if TYPE == "Block" then | |
1782 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1783 | else | |
1784 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1785 | end | |
1786 | if MOVEDIRECTION ~= nil then | |
1787 | local ORI = EFFECT.Orientation | |
1788 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1789 | EFFECT.Orientation = ORI | |
1790 | end | |
1791 | end | |
1792 | if PLAYSSOUND == false then | |
1793 | EFFECT:remove() | |
1794 | else | |
1795 | SOUND.Stopped:Connect(function() | |
1796 | EFFECT:remove() | |
1797 | end) | |
1798 | end | |
1799 | else | |
1800 | if PLAYSSOUND == false then | |
1801 | EFFECT:remove() | |
1802 | else | |
1803 | repeat Swait() until SOUND.Playing == false | |
1804 | EFFECT:remove() | |
1805 | end | |
1806 | end | |
1807 | end)) | |
1808 | end | |
1809 | ||
1810 | local DECAL = IT("Decal") | |
1811 | function MakeRing() | |
1812 | local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Really black"), "MagicRing", VT(0, 0, 0), true) | |
1813 | local MSH = IT("BlockMesh", RING) | |
1814 | local TOP = DECAL:Clone() | |
1815 | local BOTTOM = DECAL:Clone() | |
1816 | TOP.Parent = RING | |
1817 | BOTTOM.Parent = RING | |
1818 | TOP.Face = "Top" | |
1819 | BOTTOM.Face = "Bottom" | |
1820 | TOP.Texture = "http://www.roblox.com/asset/?id=127817121" | |
1821 | BOTTOM.Texture = "http://www.roblox.com/asset/?id=127817121" | |
1822 | local function REMOVE() | |
1823 | coroutine.resume(coroutine.create(function() | |
1824 | local SIZE = MSH.Scale.X | |
1825 | for i = 1, 35 do | |
1826 | Swait() | |
1827 | MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60 | |
1828 | TOP.Transparency = TOP.Transparency + 0.02857142857142857 | |
1829 | BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857 | |
1830 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0)) | |
1831 | end | |
1832 | RING:remove() | |
1833 | end)) | |
1834 | end | |
1835 | return RING, MSH, REMOVE | |
1836 | end | |
1837 | ||
1838 | function MakeForm(PART,TYPE) | |
1839 | if TYPE == "Cyl" then | |
1840 | local MSH = IT("CylinderMesh",PART) | |
1841 | elseif TYPE == "Ball" then | |
1842 | local MSH = IT("SpecialMesh",PART) | |
1843 | MSH.MeshType = "Sphere" | |
1844 | elseif TYPE == "Wedge" then | |
1845 | local MSH = IT("SpecialMesh",PART) | |
1846 | MSH.MeshType = "Wedge" | |
1847 | end | |
1848 | end | |
1849 | ||
1850 | function SpawnTrail(FROM,TO,BIG) | |
1851 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Trail", VT(0,0,0)) | |
1852 | MakeForm(TRAIL,"Cyl") | |
1853 | local DIST = (FROM - TO).Magnitude | |
1854 | if BIG == true then | |
1855 | TRAIL.Size = VT(0.5,DIST,0.5) | |
1856 | else | |
1857 | TRAIL.Size = VT(0.25,DIST,0.25) | |
1858 | end | |
1859 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
1860 | coroutine.resume(coroutine.create(function() | |
1861 | for i = 1, 5 do | |
1862 | Swait() | |
1863 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
1864 | end | |
1865 | TRAIL:remove() | |
1866 | end)) | |
1867 | end | |
1868 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1869 | function WACKYEFFECT(Table) | |
1870 | local TYPE = (Table.EffectType or "Sphere") | |
1871 | local SIZE = (Table.Size or VT(1,1,1)) | |
1872 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
1873 | local TRANSPARENCY = (Table.Transparency or 0) | |
1874 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1875 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1876 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1877 | local ROTATION1 = (Table.RotationX or 0) | |
1878 | local ROTATION2 = (Table.RotationY or 0) | |
1879 | local ROTATION3 = (Table.RotationZ or 0) | |
1880 | local MATERIAL = (Table.Material or "Neon") | |
1881 | local COLOR = (Table.Color or C3(1,1,1)) | |
1882 | local TIME = (Table.Time or 45) | |
1883 | local SOUNDID = (Table.SoundID or nil) | |
1884 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1885 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1886 | coroutine.resume(coroutine.create(function() | |
1887 | local PLAYSSOUND = false | |
1888 | local SOUND = nil | |
1889 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
1890 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1891 | PLAYSSOUND = true | |
1892 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1893 | end | |
1894 | EFFECT.Color = COLOR | |
1895 | local MSH = nil | |
1896 | if TYPE == "Sphere" then | |
1897 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1898 | elseif TYPE == "Block" or TYPE == "Box" then | |
1899 | MSH = IT("BlockMesh",EFFECT) | |
1900 | MSH.Scale = SIZE | |
1901 | elseif TYPE == "Wave" then | |
1902 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1903 | elseif TYPE == "Ring" then | |
1904 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1905 | elseif TYPE == "Slash" then | |
1906 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1907 | elseif TYPE == "Round Slash" then | |
1908 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1909 | elseif TYPE == "Swirl" then | |
1910 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1911 | elseif TYPE == "Skull" then | |
1912 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1913 | elseif TYPE == "Crystal" then | |
1914 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1915 | end | |
1916 | if MSH ~= nil then | |
1917 | local MOVESPEED = nil | |
1918 | if MOVEDIRECTION ~= nil then | |
1919 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1920 | end | |
1921 | local GROWTH = SIZE - ENDSIZE | |
1922 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1923 | if TYPE == "Block" then | |
1924 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1925 | else | |
1926 | EFFECT.CFrame = CFRAME | |
1927 | end | |
1928 | for LOOP = 1, TIME+1 do | |
1929 | Swait() | |
1930 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1931 | if TYPE == "Wave" then | |
1932 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1933 | end | |
1934 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1935 | if TYPE == "Block" then | |
1936 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1937 | else | |
1938 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1939 | end | |
1940 | if MOVEDIRECTION ~= nil then | |
1941 | local ORI = EFFECT.Orientation | |
1942 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1943 | EFFECT.Orientation = ORI | |
1944 | end | |
1945 | end | |
1946 | if PLAYSSOUND == false then | |
1947 | EFFECT:remove() | |
1948 | else | |
1949 | repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil | |
1950 | EFFECT:remove() | |
1951 | end | |
1952 | else | |
1953 | if PLAYSSOUND == false then | |
1954 | EFFECT:remove() | |
1955 | else | |
1956 | repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil | |
1957 | EFFECT:remove() | |
1958 | end | |
1959 | end | |
1960 | end)) | |
1961 | end | |
1962 | ||
1963 | function MakeForm(PART,TYPE) | |
1964 | if TYPE == "Cyl" then | |
1965 | local MSH = IT("CylinderMesh",PART) | |
1966 | elseif TYPE == "Ball" then | |
1967 | local MSH = IT("SpecialMesh",PART) | |
1968 | MSH.MeshType = "Sphere" | |
1969 | elseif TYPE == "Wedge" then | |
1970 | local MSH = IT("SpecialMesh",PART) | |
1971 | MSH.MeshType = "Wedge" | |
1972 | end | |
1973 | end | |
1974 | ||
1975 | function SpawnTrail(FROM,TO,BIG) | |
1976 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Trail", VT(0,0,0)) | |
1977 | MakeForm(TRAIL,"Cyl") | |
1978 | local DIST = (FROM - TO).Magnitude | |
1979 | if BIG == true then | |
1980 | TRAIL.Size = VT(0.5,DIST,0.5) | |
1981 | else | |
1982 | TRAIL.Size = VT(0.25,DIST,0.25) | |
1983 | end | |
1984 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
1985 | coroutine.resume(coroutine.create(function() | |
1986 | for i = 1, 5 do | |
1987 | Swait() | |
1988 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
1989 | end | |
1990 | TRAIL:remove() | |
1991 | end)) | |
1992 | end | |
1993 | ||
1994 | function SHAKECAM(POSITION, RANGE, INTENSITY, TIME) | |
1995 | local TORSO = Torso | |
1996 | local HUM = Humanoid | |
1997 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
1998 | coroutine.wrap(function() | |
1999 | VT = Vector3.new | |
2000 | MRANDOM = math.random | |
2001 | local A = TIME | |
2002 | local B = INTENSITY | |
2003 | local C = true | |
2004 | local HUMANOID = Humanoid | |
2005 | local TIMER = A or 35 | |
2006 | local SHAKE = B or 5 | |
2007 | local FADE = C or true | |
2008 | if HUMANOID then | |
2009 | local FADER = SHAKE / TIMER | |
2010 | for i = 1, TIMER do | |
2011 | wait() | |
2012 | HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10) | |
2013 | end | |
2014 | HUMANOID.CameraOffset = VT(0, 0, 0) | |
2015 | end | |
2016 | ||
2017 | end)() | |
2018 | end | |
2019 | end | |
2020 | ||
2021 | function chatfunc(text) | |
2022 | local chat = coroutine.wrap(function() | |
2023 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
2024 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
2025 | end | |
2026 | local Bill = Instance.new("BillboardGui",Character) | |
2027 | Bill.Size = UDim2.new(0,100,0,40) | |
2028 | Bill.StudsOffset = Vector3.new(0,3,0) | |
2029 | Bill.Adornee = Character.Head | |
2030 | Bill.Name = "TalkingBillBoard" | |
2031 | local Hehe = Instance.new("TextLabel",Bill) | |
2032 | Hehe.BackgroundTransparency = 1 | |
2033 | Hehe.BorderSizePixel = 0 | |
2034 | Hehe.Text = "" | |
2035 | Hehe.Font = "Bodoni" | |
2036 | Hehe.TextSize = 40 | |
2037 | Hehe.TextStrokeTransparency = 0 | |
2038 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
2039 | coroutine.resume(coroutine.create(function() | |
2040 | while Hehe ~= nil do | |
2041 | Swait() | |
2042 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
2043 | Hehe.Rotation = math.random(-2.5,2.5) | |
2044 | Hehe.TextColor3 = Color3.new(MRANDOM(55,255),0,0) | |
2045 | Hehe.TextStrokeColor3 = Color3.new(0,0,0) | |
2046 | end | |
2047 | end)) | |
2048 | for i = 1,string.len(text),1 do | |
2049 | Swait() | |
2050 | Hehe.Text = string.sub(text,1,i) | |
2051 | end | |
2052 | Swait(90)--Re[math.random(1, 93)] | |
2053 | for i = 0, 1, .025 do | |
2054 | Swait() | |
2055 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
2056 | Hehe.TextStrokeTransparency = i | |
2057 | Hehe.TextTransparency = i | |
2058 | end | |
2059 | Bill:Destroy() | |
2060 | end) | |
2061 | chat() | |
2062 | end | |
2063 | ||
2064 | Debris = game:GetService("Debris") | |
2065 | ||
2066 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
2067 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
2068 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
2069 | end | |
2070 | ||
2071 | function turnto(position) | |
2072 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
2073 | end | |
2074 | ||
2075 | --//=================================\\ | |
2076 | --|| RAGDOLL STUFF | |
2077 | --\\=================================// | |
2078 | ||
2079 | function recurse(root,callback,i) | |
2080 | i= i or 0 | |
2081 | for _,v in pairs(root:GetChildren()) do | |
2082 | i = i + 1 | |
2083 | callback(i,v) | |
2084 | ||
2085 | if #v:GetChildren() > 0 then | |
2086 | i = recurse(v,callback,i) | |
2087 | end | |
2088 | end | |
2089 | ||
2090 | return i | |
2091 | end | |
2092 | ||
2093 | function ragdollJoint(character, part0, part1, attachmentName, className, properties) | |
2094 | attachmentName = attachmentName.."RigAttachment" | |
2095 | local constraint = Instance.new(className.."Constraint") | |
2096 | constraint.Attachment0 = part0:FindFirstChild(attachmentName) | |
2097 | constraint.Attachment1 = part1:FindFirstChild(attachmentName) | |
2098 | constraint.Name = "RagdollConstraint"..part1.Name | |
2099 | ||
2100 | for _,propertyData in next,properties or {} do | |
2101 | constraint[propertyData[1]] = propertyData[2] | |
2102 | end | |
2103 | ||
2104 | constraint.Parent = character | |
2105 | end | |
2106 | ||
2107 | function getAttachment0(character, attachmentName) | |
2108 | for _,child in next,character:GetChildren() do | |
2109 | local attachment = child:FindFirstChild(attachmentName) | |
2110 | if attachment then | |
2111 | return attachment | |
2112 | end | |
2113 | end | |
2114 | end | |
2115 | ||
2116 | function ArtificialHitbox(Part) | |
2117 | local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false) | |
2118 | HITBOX.CanCollide = true | |
2119 | HITBOX.CFrame = Part.CFrame | |
2120 | weldBetween(Part,HITBOX) | |
2121 | end | |
2122 | ||
2123 | function R15Ragdoll(character,KeepArms) | |
2124 | character:BreakJoints() | |
2125 | coroutine.resume(coroutine.create(function() | |
2126 | recurse(character, function(_,v) | |
2127 | if v:IsA("Attachment") then | |
2128 | v.Axis = Vector3.new(0, 1, 0) | |
2129 | v.SecondaryAxis = Vector3.new(0, 0, 1) | |
2130 | v.Rotation = Vector3.new(0, 0, 0) | |
2131 | end | |
2132 | end) | |
2133 | for _,child in next,character:GetChildren() do | |
2134 | if child:IsA("Accoutrement") then | |
2135 | for _,part in next,child:GetChildren() do | |
2136 | if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then | |
2137 | local attachment1 = part:FindFirstChildOfClass("Attachment") | |
2138 | local attachment0 = getAttachment0(character,attachment1.Name) | |
2139 | if attachment0 and attachment1 then | |
2140 | local constraint = Instance.new("HingeConstraint") | |
2141 | constraint.Attachment0 = attachment0 | |
2142 | constraint.Attachment1 = attachment1 | |
2143 | constraint.LimitsEnabled = true | |
2144 | constraint.UpperAngle = 0 | |
2145 | constraint.LowerAngle = 0 | |
2146 | constraint.Parent = character | |
2147 | end | |
2148 | ArtificialHitbox(part) | |
2149 | elseif part.Name == "HumanoidRootPart" then | |
2150 | part:remove() | |
2151 | end | |
2152 | end | |
2153 | end | |
2154 | end | |
2155 | ||
2156 | ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", { | |
2157 | {"LimitsEnabled",true}; | |
2158 | {"UpperAngle",5}; | |
2159 | }) | |
2160 | if character:FindFirstChild("Head") then | |
2161 | ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", { | |
2162 | {"LimitsEnabled",true}; | |
2163 | {"UpperAngle",15}; | |
2164 | }) | |
2165 | end | |
2166 | ||
2167 | local handProperties = { | |
2168 | {"LimitsEnabled", true}; | |
2169 | {"UpperAngle",0}; | |
2170 | {"LowerAngle",0}; | |
2171 | } | |
2172 | ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties) | |
2173 | ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties) | |
2174 | ||
2175 | local shinProperties = { | |
2176 | {"LimitsEnabled", true}; | |
2177 | {"UpperAngle", 0}; | |
2178 | {"LowerAngle", -75}; | |
2179 | } | |
2180 | ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties) | |
2181 | ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties) | |
2182 | ||
2183 | local footProperties = { | |
2184 | {"LimitsEnabled", true}; | |
2185 | {"UpperAngle", 15}; | |
2186 | {"LowerAngle", -45}; | |
2187 | } | |
2188 | ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties) | |
2189 | ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties) | |
2190 | if KeepArms == true then | |
2191 | ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket") | |
2192 | ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket") | |
2193 | ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket") | |
2194 | ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket") | |
2195 | end | |
2196 | ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket") | |
2197 | ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket") | |
2198 | Debris:AddItem(character,5) | |
2199 | end)) | |
2200 | end | |
2201 | ||
2202 | function Ragdoll(Character2,CharTorso,KeepArms) | |
2203 | coroutine.resume(coroutine.create(function() | |
2204 | Character2:BreakJoints() | |
2205 | local hum = Character2:findFirstChild("Humanoid") | |
2206 | hum:remove() | |
2207 | local function Scan(ch) | |
2208 | local e | |
2209 | for e = 1,#ch do | |
2210 | Scan(ch[e]:GetChildren()) | |
2211 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
2212 | ch[e]:remove() | |
2213 | end | |
2214 | end | |
2215 | end | |
2216 | local NEWHUM = IT("Humanoid") | |
2217 | NEWHUM.Name = "Corpse" | |
2218 | NEWHUM.Health = 0 | |
2219 | NEWHUM.MaxHealth = 0 | |
2220 | NEWHUM.PlatformStand = true | |
2221 | NEWHUM.Parent = Character2 | |
2222 | NEWHUM.DisplayDistanceType = "None" | |
2223 | ||
2224 | local ch = Character2:GetChildren() | |
2225 | local i | |
2226 | for i = 1,#ch do | |
2227 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
2228 | ch[i]:remove() | |
2229 | end | |
2230 | end | |
2231 | ||
2232 | local Torso2 = Character2.Torso | |
2233 | local movevector = Vector3.new() | |
2234 | ||
2235 | if Torso2 then | |
2236 | movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector | |
2237 | local Head = Character2:FindFirstChild("Head") | |
2238 | if Head then | |
2239 | local Neck = Instance.new("Weld") | |
2240 | Neck.Name = "Neck" | |
2241 | Neck.Part0 = Torso2 | |
2242 | Neck.Part1 = Head | |
2243 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
2244 | Neck.C1 = CFrame.new() | |
2245 | Neck.Parent = Torso2 | |
2246 | ||
2247 | end | |
2248 | local Limb = Character2:FindFirstChild("Right Arm") | |
2249 | if Limb and KeepArms == true then | |
2250 | ||
2251 | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) | |
2252 | local Joint = Instance.new("Glue") | |
2253 | Joint.Name = "RightShoulder" | |
2254 | Joint.Part0 = Torso2 | |
2255 | Joint.Part1 = Limb | |
2256 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
2257 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
2258 | Joint.Parent = Torso2 | |
2259 | ||
2260 | local B = Instance.new("Part") | |
2261 | B.TopSurface = 0 | |
2262 | B.BottomSurface = 0 | |
2263 | B.formFactor = "Symmetric" | |
2264 | B.Size = Vector3.new(1, 1, 1) | |
2265 | B.Transparency = 1 | |
2266 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
2267 | B.Parent = Character2 | |
2268 | local W = Instance.new("Weld") | |
2269 | W.Part0 = Limb | |
2270 | W.Part1 = B | |
2271 | W.C0 = CFrame.new(0, -0.5, 0) | |
2272 | W.Parent = Limb | |
2273 | ||
2274 | end | |
2275 | local Limb = Character2:FindFirstChild("Left Arm") | |
2276 | if Limb and KeepArms == true then | |
2277 | ||
2278 | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) | |
2279 | local Joint = Instance.new("Glue") | |
2280 | Joint.Name = "LeftShoulder" | |
2281 | Joint.Part0 = Torso2 | |
2282 | Joint.Part1 = Limb | |
2283 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
2284 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
2285 | Joint.Parent = Torso2 | |
2286 | ||
2287 | local B = Instance.new("Part") | |
2288 | B.TopSurface = 0 | |
2289 | B.BottomSurface = 0 | |
2290 | B.formFactor = "Symmetric" | |
2291 | B.Size = Vector3.new(1, 1, 1) | |
2292 | B.Transparency = 1 | |
2293 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
2294 | B.Parent = Character2 | |
2295 | local W = Instance.new("Weld") | |
2296 | W.Part0 = Limb | |
2297 | W.Part1 = B | |
2298 | W.C0 = CFrame.new(0, -0.5, 0) | |
2299 | W.Parent = Limb | |
2300 | ||
2301 | end | |
2302 | local Limb = Character2:FindFirstChild("Right Leg") | |
2303 | if Limb then | |
2304 | ||
2305 | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) | |
2306 | local Joint = Instance.new("Glue") | |
2307 | Joint.Name = "RightHip" | |
2308 | Joint.Part0 = Torso2 | |
2309 | Joint.Part1 = Limb | |
2310 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
2311 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
2312 | Joint.Parent = Torso2 | |
2313 | ||
2314 | local B = Instance.new("Part") | |
2315 | B.TopSurface = 0 | |
2316 | B.BottomSurface = 0 | |
2317 | B.formFactor = "Symmetric" | |
2318 | B.Size = Vector3.new(1, 1, 1) | |
2319 | B.Transparency = 1 | |
2320 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
2321 | B.Parent = Character2 | |
2322 | local W = Instance.new("Weld") | |
2323 | W.Part0 = Limb | |
2324 | W.Part1 = B | |
2325 | W.C0 = CFrame.new(0, -0.5, 0) | |
2326 | W.Parent = Limb | |
2327 | ||
2328 | end | |
2329 | local Limb = Character2:FindFirstChild("Left Leg") | |
2330 | if Limb then | |
2331 | ||
2332 | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) | |
2333 | local Joint = Instance.new("Glue") | |
2334 | Joint.Name = "LeftHip" | |
2335 | Joint.Part0 = Torso2 | |
2336 | Joint.Part1 = Limb | |
2337 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
2338 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
2339 | Joint.Parent = Torso2 | |
2340 | ||
2341 | local B = Instance.new("Part") | |
2342 | B.TopSurface = 0 | |
2343 | B.BottomSurface = 0 | |
2344 | B.formFactor = "Symmetric" | |
2345 | B.Size = Vector3.new(1, 1, 1) | |
2346 | B.Transparency = 1 | |
2347 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
2348 | B.Parent = Character2 | |
2349 | local W = Instance.new("Weld") | |
2350 | W.Part0 = Limb | |
2351 | W.Part1 = B | |
2352 | W.C0 = CFrame.new(0, -0.5, 0) | |
2353 | W.Parent = Limb | |
2354 | ||
2355 | end | |
2356 | --[ | |
2357 | local Bar = Instance.new("Part") | |
2358 | Bar.TopSurface = 0 | |
2359 | Bar.BottomSurface = 0 | |
2360 | Bar.formFactor = "Symmetric" | |
2361 | Bar.Size = Vector3.new(1, 1, 1) | |
2362 | Bar.Transparency = 1 | |
2363 | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) | |
2364 | Bar.Parent = Character2 | |
2365 | local Weld = Instance.new("Weld") | |
2366 | Weld.Part0 = Torso2 | |
2367 | Weld.Part1 = Bar | |
2368 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
2369 | Weld.Parent = Torso2 | |
2370 | --]] | |
2371 | end | |
2372 | Character2.Parent = workspace | |
2373 | Debris:AddItem(Character2,5) | |
2374 | ||
2375 | return Character2,Torso2 | |
2376 | end)) | |
2377 | end | |
2378 | ||
2379 | --//=================================\\ | |
2380 | --|| WEAPON CREATION | |
2381 | --\\=================================// | |
2382 | ||
2383 | ||
2384 | local Particle = IT("ParticleEmitter",nil) | |
2385 | Particle.Enabled = false | |
2386 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
2387 | Particle.LightEmission = 0.5 | |
2388 | Particle.Rate = 150 | |
2389 | Particle.ZOffset = 0.2 | |
2390 | Particle.Rotation = NumberRange.new(-180, 180) | |
2391 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
2392 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
2393 | Particle.Color = ColorSequence.new(C3(0/255,0/255,255/255),C3(0.4,0,0)) | |
2394 | ||
2395 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
2396 | function ParticleEmitter(Table) | |
2397 | local PRTCL = Particle:Clone() | |
2398 | local Speed = Table.Speed or 5 | |
2399 | local Drag = Table.Drag or 0 | |
2400 | local Size1 = Table.Size1 or 1 | |
2401 | local Size2 = Table.Size2 or 5 | |
2402 | local Lifetime1 = Table.Lifetime1 or 1 | |
2403 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
2404 | local Parent = Table.Parent or Torso | |
2405 | local Emit = Table.Emit or 100 | |
2406 | local Offset = Table.Offset or 360 | |
2407 | local Acel = Table.Acel or VT(0,0,0) | |
2408 | local Enabled = Table.Enabled or false | |
2409 | PRTCL.Parent = Parent | |
2410 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
2411 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
2412 | PRTCL.Speed = NumberRange.new(Speed) | |
2413 | PRTCL.VelocitySpread = Offset | |
2414 | PRTCL.Drag = Drag | |
2415 | PRTCL.Acceleration = Acel | |
2416 | if Enabled == false then | |
2417 | PRTCL:Emit(Emit) | |
2418 | Debris:AddItem(PRTCL,Lifetime2) | |
2419 | else | |
2420 | PRTCL.Enabled = true | |
2421 | end | |
2422 | return PRTCL | |
2423 | end | |
2424 | ||
2425 | local Handle = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
2426 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
2427 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
2428 | MakeForm(Part,"Wedge") | |
2429 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
2430 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
2431 | MakeForm(Part,"Wedge") | |
2432 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
2433 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
2434 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2435 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
2436 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2437 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
2438 | MakeForm(Part,"Cyl") | |
2439 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2440 | for i = 1, 8 do | |
2441 | local Piece = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
2442 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
2443 | end | |
2444 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
2445 | MakeForm(Part,"Cyl") | |
2446 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2447 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
2448 | MakeForm(Part,"Ball") | |
2449 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2450 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
2451 | MakeForm(Part,"Wedge") | |
2452 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
2453 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
2454 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2455 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
2456 | MakeForm(Part,"Cyl") | |
2457 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2458 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
2459 | MakeForm(Part,"Cyl") | |
2460 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2461 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
2462 | MakeForm(Part,"Cyl") | |
2463 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2464 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "exe2", VT(0.2,0.5,0.2),false) | |
2465 | MakeForm(Part,"Wedge") | |
2466 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.65, -0.6) * ANGLES(RAD(135), RAD(180), RAD(180)), CF(0, -0.3, 0)) | |
2467 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
2468 | MakeForm(Part,"Cyl") | |
2469 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2470 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "exe", VT(0.2,0.5,0.2),false) | |
2471 | MakeForm(Part,"Wedge") | |
2472 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, -0.6) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
2473 | local LASTPART = Handle | |
2474 | for i = 1, 10 do | |
2475 | if LASTPART == Handle then | |
2476 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
2477 | LASTPART = Part | |
2478 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2479 | else | |
2480 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
2481 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
2482 | LASTPART = Part | |
2483 | end | |
2484 | end | |
2485 | ||
2486 | local Barrel = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,5,0.15),false) | |
2487 | MakeForm(Barrel,"Cyl") | |
2488 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2489 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
2490 | MakeForm(Part,"Cyl") | |
2491 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
2492 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
2493 | MakeForm(Part,"Wedge") | |
2494 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 2.4, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2495 | local Hole = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
2496 | MakeForm(Hole,"Cyl") | |
2497 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
2498 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
2499 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
2500 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
2501 | local Part = CreatePart(3, Gun, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
2502 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
2503 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
2504 | coroutine.resume(coroutine.create(function() | |
2505 | while wait() do | |
2506 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
2507 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
2508 | end | |
2509 | end)) | |
2510 | ||
2511 | for _, c in pairs(Gun:GetDescendants()) do | |
2512 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
2513 | c.Material = "Glass" | |
2514 | c.Color = C3(0,0,0) | |
2515 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
2516 | c.Color = C3(0/255,0/255,255/255) | |
2517 | c.Material = "Neon" | |
2518 | end | |
2519 | end | |
2520 | ||
2521 | for i = 1, 35 do | |
2522 | local FACE = CreatePart(3, FaceGradient, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false) | |
2523 | FACE.Color = C3(0,0,0) | |
2524 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
2525 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
2526 | end | |
2527 | ||
2528 | Weapon.Parent = Character | |
2529 | for _, c in pairs(Weapon:GetChildren()) do | |
2530 | if c.ClassName == "Part" then | |
2531 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
2532 | end | |
2533 | end | |
2534 | ||
2535 | Weapon.Parent = Character | |
2536 | Gun.Parent = nil | |
2537 | ||
2538 | for _, c in pairs(Gun:GetChildren()) do | |
2539 | if c.ClassName == "Part" then | |
2540 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
2541 | end | |
2542 | end | |
2543 | ||
2544 | for _, c in pairs(Weapon:GetChildren()) do | |
2545 | if c.ClassName == "Part" then | |
2546 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
2547 | end | |
2548 | end | |
2549 | ||
2550 | local EXE = Instance.new("Shirt") | |
2551 | EXE.ShirtTemplate = "rbxassetid://338740550" | |
2552 | EXE.Parent = Character | |
2553 | EXE.Name = "Cloth" | |
2554 | local LOL = Instance.new("Pants") | |
2555 | LOL.PantsTemplate = "rbxassetid://338750779" | |
2556 | LOL.Parent = Character | |
2557 | LOL.Name = "Cloth" | |
2558 | ||
2559 | Head.Color = C3(21,71,109) | |
2560 | Torso.Color = C3(21,71,109) | |
2561 | LeftArm.Color = C3(21,71,109) | |
2562 | LeftLeg.Color = C3(21,71,109) | |
2563 | RightArm.Color = C3(21,71,109) | |
2564 | RightLeg.Color = C3(21,71,109) | |
2565 | ||
2566 | local SKILLTEXTCOLOR = C3(0/255,0/255,255/255) | |
2567 | local SKILLFONT = "Antique" | |
2568 | local SKILLTEXTSIZE = 7 | |
2569 | ||
2570 | Humanoid.Died:connect(function() | |
2571 | ATTACK = true | |
2572 | end) | |
2573 | ||
2574 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0/255,0/255,255/255), C3(0, 0, 0), "Skill 1 Frame") | |
2575 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0/255,0/255,255/255), C3(0, 0, 0), "Skill 2 Frame") | |
2576 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0/255,0/255,255/255), C3(0, 0, 0), "Skill 3 Frame") | |
2577 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0/255,0/255,255/255), C3(0, 0, 0), "Skill 4 Frame") | |
2578 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0/255,0/255,255/255), C3(0, 0, 0), "Skill 5 Frame") | |
2579 | ||
2580 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banish", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
2581 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[V] Kill", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
2582 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Sleep", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
2583 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[C] Ultimate", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
2584 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[T] Taunt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
2585 | ||
2586 | function printbye(Name) | |
2587 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
2588 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
2589 | end | |
2590 | if INTRO == false and INSTANT == false then | |
2591 | INTRO = true | |
2592 | coroutine.resume(coroutine.create(function() | |
2593 | sick:Play() | |
2594 | Intro() | |
2595 | end)) | |
2596 | end | |
2597 | ||
2598 | workspace.ChildAdded:connect(function(instance) | |
2599 | for BANISH = 1, #TOBANISH do | |
2600 | if TOBANISH[BANISH] ~= nil then | |
2601 | if instance.Name == TOBANISH[BANISH] then | |
2602 | coroutine.resume(coroutine.create(function() | |
2603 | printbye(instance.Name) | |
2604 | instance:ClearAllChildren() | |
2605 | Debris:AddItem(instance,0.0005) | |
2606 | end)) | |
2607 | end | |
2608 | end | |
2609 | end | |
2610 | end) | |
2611 | ||
2612 | --//=================================\\ | |
2613 | --|| DAMAGING | |
2614 | --\\=================================// | |
2615 | ||
2616 | function ApplyDamage(Humanoid,Damage,OneShot) | |
2617 | Damage = Damage * DAMAGEMULTIPLIER | |
2618 | local DEAD = false | |
2619 | if Humanoid.Health < 2000 and OneShot == false then | |
2620 | if Humanoid.Health - Damage > 0 then | |
2621 | Humanoid.Health = Humanoid.Health - Damage | |
2622 | else | |
2623 | Humanoid.Parent:BreakJoints() | |
2624 | DEAD = true | |
2625 | end | |
2626 | else | |
2627 | DEAD = true | |
2628 | Humanoid.Parent:BreakJoints() | |
2629 | end | |
2630 | if DEAD == true then | |
2631 | local PARTS = {} | |
2632 | for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do | |
2633 | if CHILD:IsA("BasePart") then | |
2634 | table.insert(PARTS,CHILD) | |
2635 | end | |
2636 | end | |
2637 | coroutine.resume(coroutine.create(function() | |
2638 | wait(2) | |
2639 | repeat | |
2640 | Swait() | |
2641 | local PIECE = nil | |
2642 | if MRANDOM(1,5) == 1 then | |
2643 | for E = 1, #PARTS do | |
2644 | if MRANDOM(1,5) == 1 then | |
2645 | PIECE = PARTS[E] | |
2646 | table.remove(PARTS,E) | |
2647 | break | |
2648 | end | |
2649 | end | |
2650 | end | |
2651 | if PIECE ~= nil then | |
2652 | if PIECE.Name == "Head" then | |
2653 | WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z), Size2 = (VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z))*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), RotationX = MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2}) | |
2654 | else | |
2655 | WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = PIECE.Size, Size2 = PIECE.Size*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2}) | |
2656 | end | |
2657 | PIECE:remove() | |
2658 | end | |
2659 | until #PARTS == 0 | |
2660 | end)) | |
2661 | end | |
2662 | end | |
2663 | ||
2664 | ||
2665 | function ApplyDamage3(Humanoid,Damage,TorsoPart) | |
2666 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
2667 | defence.Name = ("HitBy"..Player.Name) | |
2668 | game:GetService("Debris"):AddItem(defence, 0.001) | |
2669 | Damage = Damage * DAMAGEMULTIPLIER | |
2670 | if Humanoid.Health ~= 0 then | |
2671 | local CritChance = MRANDOM(1,100) | |
2672 | if Damage > Humanoid.Health then | |
2673 | Damage = math.ceil(Humanoid.Health) | |
2674 | if Damage == 0 then | |
2675 | Damage = 0.1 | |
2676 | end | |
2677 | end | |
2678 | Humanoid.Health = Humanoid.Health - Damage | |
2679 | end | |
2680 | end | |
2681 | ||
2682 | function ApplyDamage3(Humanoid,Damage,TorsoPart) | |
2683 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
2684 | defence.Name = ("HitBy"..Player.Name) | |
2685 | game:GetService("Debris"):AddItem(defence, 0.001) | |
2686 | Damage = Damage * DAMAGEMULTIPLIER | |
2687 | if Humanoid.Health ~= 0 then | |
2688 | local CritChance = MRANDOM(1,100) | |
2689 | if Damage > Humanoid.Health then | |
2690 | Damage = math.ceil(Humanoid.Health) | |
2691 | if Damage == 0 then | |
2692 | Damage = 0.1 | |
2693 | end | |
2694 | end | |
2695 | Humanoid.Health = Humanoid.Health - Damage | |
2696 | end | |
2697 | end | |
2698 | ||
2699 | function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
2700 | local CHILDREN = workspace:GetDescendants() | |
2701 | for index, CHILD in pairs(CHILDREN) do | |
2702 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2703 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2704 | if HUM then | |
2705 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2706 | if TORSO then | |
2707 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
2708 | if INSTAKILL == true then | |
2709 | CHILD:BreakJoints() | |
2710 | else | |
2711 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
2712 | ApplyDamage(HUM,DMG,TORSO) | |
2713 | end | |
2714 | if FLING > 0 then | |
2715 | for _, c in pairs(CHILD:GetChildren()) do | |
2716 | if c:IsA("BasePart") then | |
2717 | local bv = Instance.new("BodyVelocity") | |
2718 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2719 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
2720 | bv.Parent = c | |
2721 | Debris:AddItem(bv,0.05) | |
2722 | end | |
2723 | end | |
2724 | end | |
2725 | end | |
2726 | end | |
2727 | end | |
2728 | end | |
2729 | end | |
2730 | end | |
2731 | ||
2732 | function CameraEnshaking(Length, Intensity) | |
2733 | coroutine.resume(coroutine.create(function() | |
2734 | local intensity = 1 * Intensity | |
2735 | local rotM = 0.01 * Intensity | |
2736 | for i = 0, Length, 0.1 do | |
2737 | Swait() | |
2738 | intensity = intensity - 0.05 * Intensity / Length | |
2739 | rotM = rotM - 5.0E-4 * Intensity / Length | |
2740 | Humanoid.CameraOffset = Vector3.new(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) | |
2741 | Cam.CFrame = Cam.CFrame * CF(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) * EULER(RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM) | |
2742 | end | |
2743 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
2744 | end)) | |
2745 | end | |
2746 | ||
2747 | function KillChildren(v) | |
2748 | v:BreakJoints() | |
2749 | for _, c in pairs(v:GetChildren()) do | |
2750 | if c:IsA("BasePart") then | |
2751 | if c.Transparency < 1 then | |
2752 | if c:FindFirstChildOfClass("Decal") then | |
2753 | c:FindFirstChildOfClass("Decal"):remove() | |
2754 | end | |
2755 | particles(c) | |
2756 | c.PE.Enabled = true | |
2757 | c.Parent = Effects | |
2758 | c.CanCollide = false | |
2759 | c.Material = "Neon" | |
2760 | c.Color = C3(0/255,0/255,255/255) | |
2761 | c.Transparency = 1 | |
2762 | local grav = Instance.new("BodyPosition",c) | |
2763 | grav.P = 20000 | |
2764 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2765 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
2766 | grav.Name = "GravityForce" | |
2767 | coroutine.resume(coroutine.create(function() | |
2768 | for i = 1, 20 do | |
2769 | Swait() | |
2770 | c.Transparency = c.Transparency + 1/20 | |
2771 | end | |
2772 | c.PE.Enabled = false | |
2773 | Debris:AddItem(c,2) | |
2774 | end)) | |
2775 | end | |
2776 | end | |
2777 | end | |
2778 | end | |
2779 | ||
2780 | function ApplyAoE(POSITION,RANGE) | |
2781 | local CHILDREN = workspace:GetDescendants() | |
2782 | for index, CHILD in pairs(CHILDREN) do | |
2783 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2784 | local LISTED = false | |
2785 | for LIST = 1, #WHITELIST do | |
2786 | if WHITELIST[LIST] ~= nil then | |
2787 | if CHILD.Name == WHITELIST[LIST] then | |
2788 | LISTED = true | |
2789 | end | |
2790 | end | |
2791 | end | |
2792 | if LISTED == false then | |
2793 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2794 | if HUM then | |
2795 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2796 | if TORSO then | |
2797 | if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then | |
2798 | KillChildren(CHILD) | |
2799 | end | |
2800 | end | |
2801 | end | |
2802 | end | |
2803 | end | |
2804 | end | |
2805 | end | |
2806 | ||
2807 | function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS) | |
2808 | coroutine.resume(coroutine.create(function() | |
2809 | local METEOR = IT("Model",Effects) | |
2810 | METEOR.Name = "Meteorite" | |
2811 | local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
2812 | METEOR.PrimaryPart = CENTER | |
2813 | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
2814 | PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
2815 | for i = 1, 15 do | |
2816 | local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really black", "Fire", VT(5.1,1,5.1)*SIZE) | |
2817 | FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
2818 | end | |
2819 | if ISDEBREE ~= true then | |
2820 | METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
2821 | else | |
2822 | METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
2823 | end | |
2824 | local IMPACT = false | |
2825 | CreateSound(463593339, CENTER, 10, 0.6) | |
2826 | if SIZE >= 3.5 then | |
2827 | for i = 1, MRANDOM(3,7) do | |
2828 | SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p) | |
2829 | end | |
2830 | end | |
2831 | for i = 1, 200 do | |
2832 | Swait() | |
2833 | local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character) | |
2834 | if HITFLOOR == nil then | |
2835 | local ORI = CENTER.Orientation | |
2836 | METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
2837 | else | |
2838 | if HITFLOOR.Anchored == true then | |
2839 | CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5) | |
2840 | CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175) | |
2841 | end | |
2842 | IMPACT = true | |
2843 | break | |
2844 | end | |
2845 | end | |
2846 | if IMPACT == true then | |
2847 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255,0/255,255/255), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
2848 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255,0/255,255/255), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5}) | |
2849 | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255,0/255,255/255), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
2850 | ApplyAoE(CENTER.Position,30*SIZE) | |
2851 | end | |
2852 | METEOR:remove() | |
2853 | end)) | |
2854 | end | |
2855 | ||
2856 | function ApplyAoE4(POSITION,RANGE,BRUTAL) | |
2857 | local CHILDREN = workspace:GetDescendants() | |
2858 | for index, CHILD in pairs(CHILDREN) do | |
2859 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2860 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2861 | if HUM then | |
2862 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2863 | if TORSO then | |
2864 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
2865 | if BRUTAL == true then | |
2866 | Kill(CHILD) | |
2867 | else | |
2868 | CHILD:BreakJoints() | |
2869 | end | |
2870 | end | |
2871 | end | |
2872 | end | |
2873 | end | |
2874 | end | |
2875 | end | |
2876 | ||
2877 | function Kill(Char) | |
2878 | local NewCharacter = IT("Model",Effects) | |
2879 | NewCharacter.Name = "Ow im ded ;-;" | |
2880 | for _, c in pairs(Char:GetDescendants()) do | |
2881 | if c:IsA("BasePart") and c.Transparency == 0 then | |
2882 | c:BreakJoints() | |
2883 | c.Material = "Glass" | |
2884 | c.Color = C3(0/255,0/255,255/255) | |
2885 | c.CanCollide = true | |
2886 | c.Transparency = 0.3 | |
2887 | if c:FindFirstChildOfClass("SpecialMesh") then | |
2888 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
2889 | end | |
2890 | if c.Name == "Head" then | |
2891 | c:ClearAllChildren() | |
2892 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
2893 | end | |
2894 | if c.ClassName == "MeshPart" then | |
2895 | c.TextureID = "" | |
2896 | end | |
2897 | if c:FindFirstChildOfClass("BodyPosition") then | |
2898 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
2899 | end | |
2900 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2901 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
2902 | end | |
2903 | c.Parent = NewCharacter | |
2904 | c.Name = "DeadPart" | |
2905 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
2906 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
2907 | end | |
2908 | end | |
2909 | Char:remove() | |
2910 | Debris:AddItem(NewCharacter,5) | |
2911 | end | |
2912 | ||
2913 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
2914 | local CHILDREN = workspace:GetDescendants() | |
2915 | for index, CHILD in pairs(CHILDREN) do | |
2916 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2917 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2918 | if HUM then | |
2919 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2920 | if TORSO then | |
2921 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
2922 | if BRUTAL == true then | |
2923 | Kill(CHILD) | |
2924 | else | |
2925 | CHILD:BreakJoints() | |
2926 | end | |
2927 | end | |
2928 | end | |
2929 | end | |
2930 | end | |
2931 | end | |
2932 | end | |
2933 | ||
2934 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
2935 | local CHILDREN = workspace:GetDescendants() | |
2936 | for index, CHILD in pairs(CHILDREN) do | |
2937 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2938 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2939 | if HUM then | |
2940 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2941 | if TORSO then | |
2942 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
2943 | if BRUTAL == true then | |
2944 | Kill(CHILD) | |
2945 | else | |
2946 | CHILD:BreakJoints() | |
2947 | end | |
2948 | end | |
2949 | end | |
2950 | end | |
2951 | end | |
2952 | end | |
2953 | end | |
2954 | ||
2955 | function Banish(Foe) | |
2956 | if Foe then | |
2957 | coroutine.resume(coroutine.create(function() | |
2958 | --if game.Players:FindFirstChild(Foe.Name) then | |
2959 | table.insert(TOBANISH,Foe.Name) | |
2960 | printbye(Foe.Name) | |
2961 | --end | |
2962 | Foe.Archivable = true | |
2963 | local CLONE = Foe:Clone() | |
2964 | Foe:Destroy() | |
2965 | CLONE.Parent = Effects | |
2966 | CLONE:BreakJoints() | |
2967 | local MATERIALS = {"Glass","Neon"} | |
2968 | for _, c in pairs(CLONE:GetDescendants()) do | |
2969 | if c:IsA("BasePart") then | |
2970 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
2971 | CreateSound(138271815, c, 10, 1, false) | |
2972 | end | |
2973 | c.Anchored = true | |
2974 | c.Transparency = c.Transparency + 0.2 | |
2975 | c.Material = MATERIALS[MRANDOM(1,2)] | |
2976 | c.Color = C3(0/255,0/255,255/255) | |
2977 | if c.ClassName == "MeshPart" then | |
2978 | c.TextureID = "" | |
2979 | end | |
2980 | if c:FindFirstChildOfClass("SpecialMesh") then | |
2981 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
2982 | end | |
2983 | if c:FindFirstChildOfClass("Decal") then | |
2984 | c:FindFirstChildOfClass("Decal"):remove() | |
2985 | end | |
2986 | c.Name = "Banished" | |
2987 | c.CanCollide = false | |
2988 | else | |
2989 | c:remove() | |
2990 | end | |
2991 | end | |
2992 | local A = false | |
2993 | for i = 1, 35 do | |
2994 | if A == false then | |
2995 | A = true | |
2996 | elseif A == true then | |
2997 | A = false | |
2998 | end | |
2999 | for _, c in pairs(CLONE:GetDescendants()) do | |
3000 | if c:IsA("BasePart") then | |
3001 | c.Anchored = true | |
3002 | c.Material = MATERIALS[MRANDOM(1,2)] | |
3003 | c.Transparency = c.Transparency + 0.8/35 | |
3004 | if A == false then | |
3005 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
3006 | elseif A == true then | |
3007 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
3008 | end | |
3009 | end | |
3010 | end | |
3011 | Swait() | |
3012 | end | |
3013 | CLONE:remove() | |
3014 | end)) | |
3015 | end | |
3016 | end | |
3017 | ||
3018 | ||
3019 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
3020 | local CHILDREN = workspace:GetDescendants() | |
3021 | for index, CHILD in pairs(CHILDREN) do | |
3022 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
3023 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
3024 | if HUM then | |
3025 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
3026 | if TORSO then | |
3027 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
3028 | if ISBANISH == true then | |
3029 | Banish(CHILD) | |
3030 | else | |
3031 | if ISBANISH == "Gravity" then | |
3032 | HUM.PlatformStand = true | |
3033 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
3034 | local grav = Instance.new("BodyPosition",TORSO) | |
3035 | grav.D = 15 | |
3036 | grav.P = 20000 | |
3037 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
3038 | grav.position = TORSO.Position | |
3039 | grav.Name = "V3BanishForce"..Player.Name | |
3040 | else | |
3041 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
3042 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
3043 | end | |
3044 | else | |
3045 | HUM.PlatformStand = false | |
3046 | end | |
3047 | end | |
3048 | elseif ISBANISH == "Gravity" then | |
3049 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
3050 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
3051 | HUM.PlatformStand = false | |
3052 | end | |
3053 | end | |
3054 | end | |
3055 | end | |
3056 | end | |
3057 | end | |
3058 | end | |
3059 | ||
3060 | function SpawnSmite(POS) | |
3061 | local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character) | |
3062 | local EMITPOS = HITPOS | |
3063 | if HITFLOOR ~= nil then | |
3064 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then | |
3065 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent) | |
3066 | EMITPOS = HITPOS | |
3067 | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
3068 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent) | |
3069 | EMITPOS = HITPOS | |
3070 | end | |
3071 | end | |
3072 | if HITFLOOR ~= nil then | |
3073 | ApplyAoE(EMITPOS,10) | |
3074 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255,0/255,255/255), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) | |
3075 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255,0/255,255/255), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
3076 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255,0/255,255/255), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
3077 | for i = 1, 5 do | |
3078 | local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12) | |
3079 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255,0/255,255/255), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) | |
3080 | end | |
3081 | end | |
3082 | end | |
3083 | ||
3084 | --//=================================\\ | |
3085 | --|| ATTACK FUNCTIONS AND STUFF | |
3086 | --\\=================================// | |
3087 | ||
3088 | function eh() | |
3089 | ATTACK = true | |
3090 | Rooted = false | |
3091 | Speed = 20 | |
3092 | Swait() | |
3093 | local CHILDREN = workspace:GetDescendants() | |
3094 | for index, CHILD in pairs(CHILDREN) do | |
3095 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
3096 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
3097 | if HUM then | |
3098 | local TORSO = CHILD:FindFirstChild("Head") | |
3099 | if TORSO then | |
3100 | if (TORSO.Position - Head.Position).Magnitude <= 25 then | |
3101 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255,0/255,255/255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
3102 | TORSO:remove() | |
3103 | if CHILD:FindFirstChild("Torso") then | |
3104 | Ragdoll(CHILD,Torso,true) | |
3105 | elseif CHILD:FindFirstChild("UpperTorso") then | |
3106 | R15Ragdoll(CHILD,true) | |
3107 | end | |
3108 | end | |
3109 | end | |
3110 | end | |
3111 | end | |
3112 | end | |
3113 | for i=0, 0.3, 0.1 / Animation_Speed do | |
3114 | Swait() | |
3115 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) | |
3116 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
3117 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) | |
3118 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed) | |
3119 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
3120 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
3121 | end | |
3122 | Speed = 20 | |
3123 | ATTACK = false | |
3124 | Rooted = false | |
3125 | end | |
3126 | ||
3127 | function Taunt() | |
3128 | ATTACK = true | |
3129 | Rooted = true | |
3130 | CreateSound("1238240145", Torso, 6, 0.9) | |
3131 | for i=0, 0.6, 0.1 / Animation_Speed do | |
3132 | Swait() | |
3133 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3134 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
3135 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3136 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3137 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3138 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3139 | end | |
3140 | for i=0, 0.6, 0.1 / Animation_Speed do | |
3141 | Swait() | |
3142 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3143 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
3144 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3145 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3146 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3147 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3148 | end | |
3149 | for i=0, 0.6, 0.1 / Animation_Speed do | |
3150 | Swait() | |
3151 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3152 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
3153 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3154 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3155 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3156 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3157 | end | |
3158 | for i=0, 0.6, 0.1 / Animation_Speed do | |
3159 | Swait() | |
3160 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3161 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
3162 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3163 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3164 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3165 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3166 | end | |
3167 | for i=0, 0.6, 0.1 / Animation_Speed do | |
3168 | Swait() | |
3169 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3170 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
3171 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3172 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3173 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3174 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3175 | end | |
3176 | for i=0, 0.6, 0.1 / Animation_Speed do | |
3177 | Swait() | |
3178 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3179 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
3180 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3181 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3182 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3183 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3184 | end | |
3185 | ATTACK = false | |
3186 | Rooted = false | |
3187 | end | |
3188 | ||
3189 | function TakeOnMe() | |
3190 | Speed = 16 | |
3191 | local MEME = CreateSound(1171341451, Effects, 2, 1, false) | |
3192 | ATTACK = true | |
3193 | Rooted = false | |
3194 | local DANCE = true | |
3195 | local KEY = Mouse.KeyDown:connect(function(NEWKEY) | |
3196 | if NEWKEY == "p" then | |
3197 | DANCE = false | |
3198 | end | |
3199 | end) | |
3200 | PLAYSONG = false | |
3201 | while true do | |
3202 | for i = 1, 15 do | |
3203 | Swait() | |
3204 | MEME.Parent = Effects | |
3205 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3206 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3207 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3208 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3209 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3210 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3211 | end | |
3212 | if DANCE == false then | |
3213 | break | |
3214 | end | |
3215 | for i = 1, 15 do | |
3216 | Swait() | |
3217 | MEME.Parent = Effects | |
3218 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3219 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) | |
3220 | if MRANDOM(1,7) == 1 then | |
3221 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
3222 | end RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(150), RAD(65), RAD(85)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3223 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(65), RAD(85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3224 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3225 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3226 | end | |
3227 | end | |
3228 | PLAYSONG = true | |
3229 | KEY:Disconnect() | |
3230 | MEME:remove() | |
3231 | Speed = 25 | |
3232 | ATTACK = false | |
3233 | Rooted = false | |
3234 | end | |
3235 | ||
3236 | function Intro() | |
3237 | ATTACK = true | |
3238 | Rooted = true | |
3239 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
3240 | local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(0),RAD(0))*CF(0,1,0).p | |
3241 | for i=0, 6, 0.1 / Animation_Speed do | |
3242 | Swait() | |
3243 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 5 + 0.05 * COS(SINE / 30)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
3244 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 2.5 * SIN(SINE / 30)), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
3245 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 30), -0.5) * ANGLES(RAD(170), RAD(0), RAD(-40)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
3246 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 30), -0.5) * ANGLES(RAD(170), RAD(0), RAD(40)) * LEFTSHOULDERC0, 0.1 / Animation_Speed) | |
3247 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.025 * COS(SINE / 30), -0.5) * ANGLES(RAD(15), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
3248 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 - 0.025 * COS(SINE / 30), -0.5) * ANGLES(RAD(15), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
3249 | end | |
3250 | CreateSound(1208650519, Torso, 2, 0.8) | |
3251 | CreateSound(246480487, Character, 10, 1) | |
3252 | for i=0, 17, 0.1 / Animation_Speed do | |
3253 | Swait() | |
3254 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 4 + 0.05 * COS(SINE / 30)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
3255 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 2.5 * SIN(SINE / 30)), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
3256 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 30), -0.5) * ANGLES(RAD(170), RAD(0), RAD(-40)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
3257 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 30), -0.5) * ANGLES(RAD(170), RAD(0), RAD(40)) * LEFTSHOULDERC0, 0.1 / Animation_Speed) | |
3258 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.025 * COS(SINE / 30), -0.5) * ANGLES(RAD(15), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
3259 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 - 0.025 * COS(SINE / 30), -0.5) * ANGLES(RAD(15), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
3260 | end | |
3261 | CreateSound(1841058541,Character,3,1,false) | |
3262 | for i=0, 0.7, 0.1 / Animation_Speed do | |
3263 | Swait() | |
3264 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*3) | |
3265 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3266 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, -1.4 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*5) | |
3267 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3268 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
3269 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
3270 | end | |
3271 | Head.Color = C3(0/0,0/0,0/0) | |
3272 | Torso.Color = C3(0/0,0/0,0/0) | |
3273 | LeftArm.Color = C3(0/0,0/0,0/0) | |
3274 | LeftLeg.Color = C3(0/0,0/0,0/0) | |
3275 | RightArm.Color = C3(0/0,0/0,0/0) | |
3276 | RightLeg.Color = C3(0/0,0/0,0/0) | |
3277 | EXE.ShirtTemplate = "rbxassetid://863473913" | |
3278 | LOL.PantsTemplate = "rbxassetid://770508500" | |
3279 | Gun.Parent = Character | |
3280 | tecks2.TextTransparency = 0 | |
3281 | for i = 1, 100 do | |
3282 | Swait() | |
3283 | for _, c in pairs(Character:GetChildren()) do | |
3284 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
3285 | c.Transparency = 0 | |
3286 | end | |
3287 | end | |
3288 | for _, c in pairs(Weapon:GetChildren()) do | |
3289 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
3290 | c.Transparency = 0 | |
3291 | end | |
3292 | end | |
3293 | end | |
3294 | TRANSFORMED = true | |
3295 | ATTACK = false | |
3296 | Rooted = false | |
3297 | end | |
3298 | ||
3299 | function Shot() | |
3300 | ATTACK = true | |
3301 | Rooted = false | |
3302 | for i=0, 0.2, 0.05 / Animation_Speed do | |
3303 | Swait() | |
3304 | turnto(Mouse.Hit.p) | |
3305 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
3306 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
3307 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3308 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3309 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3310 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3311 | end | |
3312 | repeat | |
3313 | for i=0, 0.2, 0.05 / Animation_Speed do | |
3314 | Swait() | |
3315 | turnto(Mouse.Hit.p) | |
3316 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
3317 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
3318 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3319 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3320 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3321 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3322 | end | |
3323 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
3324 | SpawnTrail(Hole.Position,POS) | |
3325 | if HIT ~= nil then | |
3326 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
3327 | Banish(HIT.Parent) | |
3328 | end | |
3329 | end | |
3330 | Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30 | |
3331 | for i=0, 0.2, 0.05 / Animation_Speed do | |
3332 | Swait() | |
3333 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
3334 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
3335 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3336 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3337 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3338 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3339 | end | |
3340 | until KEYHOLD == false | |
3341 | ATTACK = false | |
3342 | Rooted = false | |
3343 | end | |
3344 | ||
3345 | function MagicMissiles() | |
3346 | ATTACK = true | |
3347 | Rooted = true | |
3348 | local SELECTING = true | |
3349 | local SPOTS = {} | |
3350 | coroutine.resume(coroutine.create(function() | |
3351 | local LOOP = 0 | |
3352 | repeat | |
3353 | LOOP = LOOP + 1 | |
3354 | Swait() | |
3355 | if LOOP >= 10 then | |
3356 | LOOP = 0 | |
3357 | for i = 1, #SPOTS do | |
3358 | if SPOTS[i] ~= nil then | |
3359 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
3360 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
3361 | end | |
3362 | end | |
3363 | end | |
3364 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
3365 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3366 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3367 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3368 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3369 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3370 | until SELECTING == false | |
3371 | Rooted = false | |
3372 | repeat | |
3373 | LOOP = LOOP + 1 | |
3374 | Swait() | |
3375 | if LOOP >= 10 then | |
3376 | LOOP = 0 | |
3377 | for i = 1, #SPOTS do | |
3378 | if SPOTS[i] ~= nil then | |
3379 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
3380 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
3381 | end | |
3382 | end | |
3383 | end | |
3384 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
3385 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
3386 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3387 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3388 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3389 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3390 | until ATTACK == false | |
3391 | end)) | |
3392 | repeat | |
3393 | repeat Swait() until HOLD == true | |
3394 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
3395 | if DIST > 65 then | |
3396 | DIST = 65 | |
3397 | end | |
3398 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
3399 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
3400 | if HITFLOOR ~= nil then | |
3401 | table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))) | |
3402 | end | |
3403 | repeat Swait() until HOLD == false | |
3404 | until #SPOTS == 5 | |
3405 | SELECTING = false | |
3406 | for i = 1, #SPOTS do | |
3407 | if SPOTS[i] ~= nil then | |
3408 | local POS = SPOTS[i] | |
3409 | coroutine.resume(coroutine.create(function() | |
3410 | local MISSILE = IT("Model",Effects) | |
3411 | MISSILE.Name = "Missile" | |
3412 | local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,2,2)) | |
3413 | MakeForm(BASEPART,"Cyl") | |
3414 | MISSILE.PrimaryPart = BASEPART | |
3415 | BASEPART.CFrame = POS*CF(0,-30*3,0) | |
3416 | local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,4,2)) | |
3417 | MakeForm(HEAD,"Ball") | |
3418 | HEAD.CFrame = BASEPART.CFrame*CF(0,-1,0) | |
3419 | local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2.5,0.1,2.5)) | |
3420 | MakeForm(TAIL,"Cyl") | |
3421 | TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0) | |
3422 | for i = 1, 10 do | |
3423 | Swait() | |
3424 | for _, c in pairs(MISSILE:GetChildren()) do | |
3425 | if c.ClassName == "Part" then | |
3426 | c.Transparency = c.Transparency - 1/10 | |
3427 | end | |
3428 | end | |
3429 | end | |
3430 | for i = 1, 15*1.5 do | |
3431 | Swait() | |
3432 | MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0)) | |
3433 | end | |
3434 | ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false) | |
3435 | MISSILE:remove() | |
3436 | end)) | |
3437 | end | |
3438 | end | |
3439 | wait(0.6) | |
3440 | ATTACK = false | |
3441 | Rooted = false | |
3442 | end | |
3443 | ||
3444 | function Shot2() | |
3445 | ATTACK = true | |
3446 | Rooted = false | |
3447 | for i=0, 0.2, 0.05 / Animation_Speed do | |
3448 | Swait() | |
3449 | turnto(Mouse.Hit.p) | |
3450 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
3451 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
3452 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3453 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3454 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3455 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3456 | end | |
3457 | repeat | |
3458 | for i=0, 0.2, 0.05 / Animation_Speed do | |
3459 | Swait() | |
3460 | turnto(Mouse.Hit.p) | |
3461 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
3462 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
3463 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3464 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3465 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3466 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3467 | end | |
3468 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
3469 | SpawnTrail(Hole.Position,POS) | |
3470 | if HIT ~= nil then | |
3471 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
3472 | Kill(HIT.Parent) | |
3473 | end | |
3474 | end | |
3475 | Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30 | |
3476 | for i=0, 0.2, 0.05 / Animation_Speed do | |
3477 | Swait() | |
3478 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
3479 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
3480 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3481 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3482 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3483 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3484 | end | |
3485 | until KEYHOLD == false | |
3486 | ATTACK = false | |
3487 | Rooted = false | |
3488 | end | |
3489 | ||
3490 | function AttackTemplate() | |
3491 | ATTACK = true | |
3492 | Rooted = false | |
3493 | for i=0, 1, 0.1 / Animation_Speed do | |
3494 | Swait() | |
3495 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
3496 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
3497 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3498 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3499 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3500 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3501 | end | |
3502 | ATTACK = false | |
3503 | Rooted = false | |
3504 | end | |
3505 | ||
3506 | function Finisher() | |
3507 | local TARGET = Mouse.Target | |
3508 | if TARGET ~= nil then | |
3509 | if TARGET.Parent:FindFirstChildOfClass("Humanoid") then | |
3510 | local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid") | |
3511 | local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
3512 | if ROOT and HUM.Health > 0 then | |
3513 | local FOE = Mouse.Target.Parent | |
3514 | ATTACK = true | |
3515 | Rooted = true | |
3516 | RootPart.CFrame = ROOT.CFrame*CF(-1.35,0,4) | |
3517 | ROOT.Anchored = true | |
3518 | CreateSound(670796769, Torso, 9999, 0.6, false) | |
3519 | CreateSound(159882598, Torso, 5, 0.9, false) | |
3520 | for i=0, 0.4, 0.1 / Animation_Speed do | |
3521 | Swait() | |
3522 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3523 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3524 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3525 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3526 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3527 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3528 | end | |
3529 | HUM.PlatformStand = true | |
3530 | ROOT.CFrame = ROOT.CFrame * CF(0,-2*ROOT.Size.Z,0) * ANGLES(RAD(-90), RAD(0), RAD(0)) | |
3531 | coroutine.resume(coroutine.create(function() | |
3532 | Swait() | |
3533 | ROOT.Anchored = true | |
3534 | end)) | |
3535 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.6) | |
3536 | for i=0, 0.2, 0.1 / Animation_Speed do | |
3537 | Swait() | |
3538 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
3539 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
3540 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3541 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3542 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3543 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3544 | end | |
3545 | for i=0, 0.2, 0.1 / Animation_Speed do | |
3546 | Swait() | |
3547 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
3548 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
3549 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3550 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3551 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3552 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3553 | end | |
3554 | local AMMO = 6 | |
3555 | local FIRING = true | |
3556 | local SHOOTING = false | |
3557 | local TIMER = 70 | |
3558 | CreateSound(147722227, GunPoint, 6, 1.3, false) | |
3559 | for i=0, 0.2, 0.1 / Animation_Speed do | |
3560 | Swait() | |
3561 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
3562 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
3563 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3564 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3565 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3566 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3567 | end | |
3568 | for i = 1, 6 do | |
3569 | local GUNPOS = Hole.CFrame*CF(0, 0, 0).p | |
3570 | local DISTANCE = (FOE.Head.Position - GUNPOS).Magnitude | |
3571 | HUM.Health = HUM.Health/1.5 | |
3572 | for i=0, 0.2, 0.1 / Animation_Speed do | |
3573 | Swait() | |
3574 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
3575 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
3576 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3577 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3578 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3579 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3580 | end | |
3581 | for i=0, 0.2, 0.1 / Animation_Speed do | |
3582 | Swait() | |
3583 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
3584 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
3585 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3586 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3587 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3588 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3589 | end | |
3590 | end | |
3591 | ApplyDamage(HUM,0,true) | |
3592 | FOE:BreakJoints() | |
3593 | ROOT.Anchored = false | |
3594 | for i=0, 0.3, 0.1 / Animation_Speed do | |
3595 | Swait() | |
3596 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3597 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
3598 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3599 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3600 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3601 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3602 | end | |
3603 | ATTACK = false | |
3604 | Rooted = false | |
3605 | end | |
3606 | end | |
3607 | end | |
3608 | end | |
3609 | ||
3610 | --//=================================\\ | |
3611 | --|| ASSIGN THINGS TO KEYS | |
3612 | --\\=================================// | |
3613 | ||
3614 | function MouseDown(Mouse) | |
3615 | if ATTACK == false then | |
3616 | end | |
3617 | end | |
3618 | ||
3619 | function MouseUp(Mouse) | |
3620 | HOLD = false | |
3621 | end | |
3622 | ||
3623 | function KeyDown(Key) | |
3624 | KEYHOLD = true | |
3625 | ||
3626 | if Key == "b" and ATTACK == false then | |
3627 | MagicMissiles() | |
3628 | end | |
3629 | ||
3630 | if Key == "z" and ATTACK == false then | |
3631 | Shot() | |
3632 | end | |
3633 | ||
3634 | if Key == "v" and ATTACK == false then | |
3635 | Shot2() | |
3636 | end | |
3637 | ||
3638 | if Key == "x" and ATTACK == false then | |
3639 | Finisher() | |
3640 | end | |
3641 | ||
3642 | if Key == "t" and ATTACK == false then | |
3643 | Taunt() | |
3644 | end | |
3645 | ||
3646 | if Key == "c" and ATTACK == false then | |
3647 | eh() | |
3648 | - | LOL.PantsTemplate = "rbxassetid:/0" |
3648 | + | |
3649 | end | |
3650 | ||
3651 | local OVMID = 2114921530 | |
3652 | local OVMPIT = 1 | |
3653 | local OVMVOL = 1 | |
3654 | plr.Chatted:connect(function(message) | |
3655 | if ATTACK == false then | |
3656 | if message:sub(1,5) == "play/" then | |
3657 | OVMID = message:sub(6) | |
3658 | newThemeCust("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL) | |
3659 | elseif message:sub(1,6) == "pitch/" then | |
3660 | OVMPIT = message:sub(7) | |
3661 | newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL) | |
3662 | elseif message:sub(1,4) == "vol/" then | |
3663 | OVMVOL = message:sub(5) | |
3664 | newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL) | |
3665 | elseif message:sub(1,7) == "sr/" then | |
3666 | chatfunc("Skipped to "..message:sub(8).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
3667 | newThemeCust("rbxassetid://"..OVMID,message:sub(8),OVMPIT,OVMVOL) | |
3668 | elseif message:sub(1,9) == "te/" then | |
3669 | chatfunc("Current time pos: "..math.floor(kan.TimePosition).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
3670 | end | |
3671 | end | |
3672 | end) | |
3673 | ||
3674 | function KeyUp(Key) | |
3675 | KEYHOLD = false | |
3676 | end | |
3677 | ||
3678 | Mouse.Button1Down:connect(function(NEWKEY) | |
3679 | MouseDown(NEWKEY) | |
3680 | end) | |
3681 | Mouse.Button1Up:connect(function(NEWKEY) | |
3682 | MouseUp(NEWKEY) | |
3683 | end) | |
3684 | Mouse.KeyDown:connect(function(NEWKEY) | |
3685 | KeyDown(NEWKEY) | |
3686 | end) | |
3687 | Mouse.KeyUp:connect(function(NEWKEY) | |
3688 | KeyUp(NEWKEY) | |
3689 | end) | |
3690 | ||
3691 | --//=================================\\ | |
3692 | --\\=================================// | |
3693 | ||
3694 | ||
3695 | function unanchor() | |
3696 | if UNANCHOR == true then | |
3697 | g = Character:GetChildren() | |
3698 | for i = 1, #g do | |
3699 | if g[i].ClassName == "Part" then | |
3700 | g[i].Anchored = false | |
3701 | end | |
3702 | end | |
3703 | end | |
3704 | end | |
3705 | ||
3706 | ||
3707 | --//=================================\\ | |
3708 | --|| WRAP THE WHOLE SCRIPT UP | |
3709 | --\\=================================// | |
3710 | ||
3711 | Humanoid.Changed:connect(function(Jump) | |
3712 | if Jump == "Jump" and (Disable_Jump == true) then | |
3713 | Humanoid.Jump = false | |
3714 | end | |
3715 | end) | |
3716 | ||
3717 | local FF = IT("ForceField",Character) | |
3718 | FF.Visible = false | |
3719 | INSTANT = false | |
3720 | Speed = 20 | |
3721 | ||
3722 | while true do | |
3723 | Swait() | |
3724 | SINE = SINE + CHANGE | |
3725 | ANIMATE.Parent = nil | |
3726 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
3727 | IDLEANIMATION:Play() | |
3728 | if TRANSFORMED == true then | |
3729 | tecks2.TextTransparency = 0 | |
3730 | for _, c in pairs(Character:GetChildren()) do | |
3731 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
3732 | c.Anchored = false | |
3733 | c.Transparency = 0 | |
3734 | end | |
3735 | end | |
3736 | for _, c in pairs(Weapon:GetChildren()) do | |
3737 | if c.ClassName == "Part" then | |
3738 | c.Transparency = 0 | |
3739 | end | |
3740 | end | |
3741 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
3742 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
3743 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
3744 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
3745 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
3746 | if ATTACK == false and VALUE2 == false then | |
3747 | end | |
3748 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
3749 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3750 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3751 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3752 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3753 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
3754 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3755 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3756 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3757 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3758 | end | |
3759 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
3760 | ANIM = "Jump" | |
3761 | if ATTACK == false then | |
3762 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3763 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3764 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3765 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3766 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
3767 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3768 | end | |
3769 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
3770 | ANIM = "Fall" | |
3771 | if ATTACK == false then | |
3772 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3773 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3774 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3775 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3776 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3777 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
3778 | end | |
3779 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
3780 | ANIM = "Idle" | |
3781 | if ATTACK == false then | |
3782 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) | |
3783 | if MRANDOM(1,7) == 1 then | |
3784 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
3785 | end | |
3786 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
3787 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) | |
3788 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed) | |
3789 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
3790 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
3791 | end | |
3792 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
3793 | ANIM = "Walk" | |
3794 | if ATTACK == false then | |
3795 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3796 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) | |
3797 | if MRANDOM(1,7) == 1 then | |
3798 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
3799 | end | |
3800 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3801 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
3802 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
3803 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
3804 | end | |
3805 | end | |
3806 | end | |
3807 | --end | |
3808 | Humanoid.DisplayDistanceType = "None" | |
3809 | unanchor() | |
3810 | Humanoid.MaxHealth = "inf" | |
3811 | Humanoid.Health = "inf" | |
3812 | if Rooted == false then | |
3813 | Disable_Jump = false | |
3814 | Humanoid.WalkSpeed = Speed | |
3815 | elseif Rooted == true then | |
3816 | Disable_Jump = true | |
3817 | Humanoid.WalkSpeed = 0 | |
3818 | end | |
3819 | if Head:FindFirstChild("face") then | |
3820 | Head.face.Texture = "rbxassetid://403870689" | |
3821 | end | |
3822 | for _, c in pairs(Character:GetChildren()) do | |
3823 | if (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
3824 | c:remove() | |
3825 | end | |
3826 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
3827 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
3828 | end | |
3829 | end | |
3830 | local MATHS = {"0","1"} | |
3831 | Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)] | |
3832 | Humanoid.PlatformStand = false | |
3833 | if INTRO == false and INSTANT == false then | |
3834 | INTRO = true | |
3835 | coroutine.resume(coroutine.create(function() | |
3836 | sick:Play() | |
3837 | Intro() | |
3838 | end)) | |
3839 | end | |
3840 | if INSTANT == true then | |
3841 | if TRANSFORMED == false then | |
3842 | sick.TimePosition = 60 | |
3843 | sick:Play() | |
3844 | end | |
3845 | TRANSFORMED = true | |
3846 | end | |
3847 | script.Parent = PlayerGui | |
3848 | Character.Parent = workspace | |
3849 | Humanoid.Parent = Character | |
3850 | end | |
3851 | --//=================================\\ | |
3852 | --\\=================================// | |
3853 | ||
3854 | ||
3855 | ||
3856 | ||
3857 | ||
3858 | --//====================================================\\-- | |
3859 | --|| END OF SCRIPT | |
3860 | --\\====================================================//-- |