SHOW:
|
|
- or go back to the newest paste.
1 | -- [[[ | |
2 | --000000[[====================================================================================\\ | |
3 | --000000[[ DEIVIS97 EDIT | |
4 | --000000[[====================================================================================// | |
5 | -- [[[ | |
6 | -- This script has been converted to FE by iPxter | |
7 | ||
8 | ||
9 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
10 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
11 | do | |
12 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
13 | script.Parent = Player.Character | |
14 | ||
15 | --RemoteEvent for communicating | |
16 | local Event = Instance.new("RemoteEvent") | |
17 | Event.Name = "UserInput_Event" | |
18 | ||
19 | --Fake event to make stuff like Mouse.KeyDown work | |
20 | local function fakeEvent() | |
21 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
22 | t.connect = t.Connect | |
23 | return t | |
24 | end | |
25 | ||
26 | --Creating fake input objects with fake variables | |
27 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
28 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
29 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
30 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
31 | end} | |
32 | --Merged 2 functions into one by checking amount of arguments | |
33 | CAS.UnbindAction = CAS.BindAction | |
34 | ||
35 | --This function will trigger the events that have been :Connect()'ed | |
36 | local function te(self,ev,...) | |
37 | local t = m[ev] | |
38 | if t and t._fakeEvent and t.Function then | |
39 | t.Function(...) | |
40 | end | |
41 | end | |
42 | - | m.TrigEvent = te |
42 | + | |
43 | - | UIS.TrigEvent = te |
43 | + | |
44 | local Event = script:WaitForChild("UserInput_Event") | |
45 | - | Event.OnServerEvent:Connect(function(plr,io) |
45 | + | |
46 | - | if plr~=Player then return end |
46 | + | |
47 | - | if io.isMouse then |
47 | + | |
48 | - | m.Target = io.Target |
48 | + | |
49 | - | m.Hit = io.Hit |
49 | + | |
50 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
51 | - | local b = io.UserInputState == Enum.UserInputState.Begin |
51 | + | |
52 | - | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
52 | + | |
53 | - | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
53 | + | |
54 | ||
55 | - | for _,t in pairs(CAS.Actions) do |
55 | + | |
56 | - | for _,k in pairs(t.Keys) do |
56 | + | |
57 | - | if k==io.KeyCode then |
57 | + | |
58 | - | t.Function(t.Name,io.UserInputState,io) |
58 | + | |
59 | while wait(1/30) do | |
60 | if h~=Mouse.Hit or t~=Mouse.Target then | |
61 | h,t=Mouse.Hit,Mouse.Target | |
62 | - | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
62 | + | |
63 | - | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
63 | + | |
64 | end]==],Player.Character) | |
65 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
66 | end | |
67 | --//====================================================\\-- | |
68 | --|| CREATED BY SHACKLUSTER | |
69 | --\\====================================================//-- | |
70 | ||
71 | local Player = owner | |
72 | local Character = Player.Character | |
73 | local Humanoid = Character.Humanoid | |
74 | local LeftArm = Character["Left Arm"] | |
75 | local RightArm = Character["Right Arm"] | |
76 | local LeftLeg = Character["Left Leg"] | |
77 | local RightLeg = Character["Right Leg"] | |
78 | local Head = Character.Head | |
79 | local Torso = Character.Torso | |
80 | local Camera = game.Workspace.CurrentCamera | |
81 | local RootPart = Character.HumanoidRootPart | |
82 | local RootJoint = RootPart.RootJoint | |
83 | local attack = false | |
84 | local Anim = 'Idle' | |
85 | local Lighty = game:GetService"Lighting" | |
86 | local attacktype = 1 | |
87 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
88 | local velocity = RootPart.Velocity.y | |
89 | local sine = 0 | |
90 | local change = 1 | |
91 | local bored = {492070484,1232162751,1534958855,303535614,1117396305,0} | |
92 | - | repeat |
92 | + | |
93 | - | wait() |
93 | + | |
94 | - | until Player.Character |
94 | + | |
95 | ArtificialHB.Event:wait() | |
96 | - | TrailSettings = { |
96 | + | |
97 | - | Lifetime = 1, |
97 | + | |
98 | - | Texture = "http://www.roblox.com/asset/?id=1097260739", |
98 | + | |
99 | - | Color1 = ColorSequence.new(BrickColor.new("Cool yellow").Color), |
99 | + | |
100 | - | Color2 = ColorSequence.new(BrickColor.new("Cool yellow").Color), |
100 | + | |
101 | - | AllBody = true, |
101 | + | |
102 | - | UpperBodyOnly = false, |
102 | + | |
103 | - | LowerBodyOnly = false, |
103 | + | |
104 | - | Accessories = false, |
104 | + | |
105 | - | Extras = true, |
105 | + | |
106 | - | R15 = false, |
106 | + | |
107 | - | R15Parts = {"UpperTorso", "LowerTorso"} |
107 | + | |
108 | function chatfunc(text) | |
109 | - | local Trail |
109 | + | |
110 | - | function UpperBody() |
110 | + | |
111 | - | if TrailSettings.R15 == false then |
111 | + | |
112 | - | A0 = Instance.new("Attachment", Character.Torso) |
112 | + | |
113 | - | A1 = Instance.new("Attachment", Character.Head) |
113 | + | |
114 | - | A2 = Instance.new("Attachment", Character["Right Arm"]) |
114 | + | |
115 | - | A3 = Instance.new("Attachment", Character["Left Arm"]) |
115 | + | |
116 | - | Trail = Instance.new("Trail", Character) |
116 | + | |
117 | - | Trail.Attachment0 = A0 |
117 | + | |
118 | - | Trail.Attachment1 = A1 |
118 | + | |
119 | - | Trail.Texture = TrailSettings.Texture |
119 | + | |
120 | - | Trail.Color = TrailSettings.Color1 |
120 | + | |
121 | - | Trail.Lifetime = TrailSettings.Lifetime |
121 | + | |
122 | - | local Trail2 = Trail:Clone() |
122 | + | |
123 | - | Trail2.Parent = Character |
123 | + | |
124 | - | Trail2.Attachment1 = A2 |
124 | + | |
125 | - | local Trail3 = Trail:Clone() |
125 | + | |
126 | - | Trail3.Parent = Character |
126 | + | |
127 | - | Trail3.Attachment1 = A3 |
127 | + | |
128 | - | local Trail6 = Trail:Clone() |
128 | + | |
129 | - | Trail6.Parent = Character |
129 | + | |
130 | - | Trail6.Attachment0 = A1 |
130 | + | |
131 | - | Trail6.Attachment1 = A2 |
131 | + | |
132 | - | local Trail7 = Trail:Clone() |
132 | + | |
133 | - | Trail7.Parent = Character |
133 | + | |
134 | - | Trail7.Attachment0 = A1 |
134 | + | |
135 | - | Trail7.Attachment1 = A3 |
135 | + | |
136 | swait() | |
137 | - | A0 = Instance.new("Attachment", Character[TrailSettings.R15Parts[1]]) |
137 | + | |
138 | - | A0R = Instance.new("Attachment", Character[TrailSettings.R15Parts[2]]) |
138 | + | |
139 | - | A1 = Instance.new("Attachment", Character.Head) |
139 | + | |
140 | - | A2 = Instance.new("Attachment", Character.RightUpperArm) |
140 | + | |
141 | - | A2R = Instance.new("Attachment", Character.RightLowerArm) |
141 | + | |
142 | - | A3 = Instance.new("Attachment", Character.LeftUpperArm) |
142 | + | |
143 | - | A3R = Instance.new("Attachment", Character.LeftLowerArm) |
143 | + | |
144 | - | Trail = Instance.new("Trail", Character) |
144 | + | |
145 | - | Trail.Attachment0 = A0 |
145 | + | |
146 | - | Trail.Attachment1 = A1 |
146 | + | |
147 | - | Trail.Texture = TrailSettings.Texture |
147 | + | |
148 | - | Trail.Color = TrailSettings.Color1 |
148 | + | |
149 | - | Trail.Lifetime = TrailSettings.Lifetime |
149 | + | |
150 | - | local Trail2 = Trail:Clone() |
150 | + | |
151 | - | Trail2.Parent = Character |
151 | + | |
152 | - | Trail2.Attachment1 = A2 |
152 | + | |
153 | - | local Trail3 = Trail:Clone() |
153 | + | |
154 | - | Trail3.Parent = Character |
154 | + | |
155 | - | Trail3.Attachment1 = A3 |
155 | + | |
156 | - | local Trail6 = Trail:Clone() |
156 | + | |
157 | - | Trail6.Parent = Character |
157 | + | |
158 | - | Trail6.Attachment0 = A1 |
158 | + | |
159 | - | Trail6.Attachment1 = A2 |
159 | + | |
160 | - | local Trail7 = Trail:Clone() |
160 | + | |
161 | - | Trail7.Parent = Character |
161 | + | |
162 | - | Trail7.Attachment0 = A1 |
162 | + | |
163 | - | Trail7.Attachment1 = A3 |
163 | + | |
164 | - | local Trail1R = Trail:Clone() |
164 | + | |
165 | - | Trail1R.Parent = Character |
165 | + | |
166 | - | Trail1R.Attachment1 = A2R |
166 | + | |
167 | - | local Trail2R = Trail:Clone() |
167 | + | |
168 | - | Trail2R.Parent = Character |
168 | + | |
169 | - | Trail2R.Attachment1 = A3R |
169 | + | |
170 | - | local Trail6R = Trail:Clone() |
170 | + | |
171 | - | Trail6.Parent = Character |
171 | + | |
172 | - | Trail6.Attachment0 = A1 |
172 | + | |
173 | - | Trail6.Attachment1 = A2R |
173 | + | |
174 | - | local Trail7R = Trail:Clone() |
174 | + | |
175 | - | Trail7.Parent = Character |
175 | + | |
176 | - | Trail7.Attachment0 = A1 |
176 | + | |
177 | - | Trail7.Attachment1 = A3R |
177 | + | |
178 | Player:ClearCharacterAppearance() | |
179 | ||
180 | - | function LowerBody() |
180 | + | |
181 | - | if TrailSettings.R15 == false then |
181 | + | |
182 | - | A4 = Instance.new("Attachment", Character["Right Leg"]) |
182 | + | |
183 | - | A5 = Instance.new("Attachment", Character["Left Leg"]) |
183 | + | |
184 | - | local Trail4 = Trail:Clone() |
184 | + | |
185 | - | Trail4.Parent = Character |
185 | + | |
186 | - | Trail4.Attachment1 = A4 |
186 | + | |
187 | - | local Trail5 = Trail:Clone() |
187 | + | |
188 | - | Trail5.Parent = Character |
188 | + | |
189 | - | Trail5.Attachment1 = A5 |
189 | + | |
190 | - | local Trail8 = Trail:Clone() |
190 | + | |
191 | - | Trail8.Parent = Character |
191 | + | |
192 | - | Trail8.Attachment0 = A2 |
192 | + | |
193 | - | Trail8.Attachment1 = A4 |
193 | + | |
194 | - | Trail8.Color = TrailSettings.Color2 |
194 | + | |
195 | - | local Trail9 = Trail:Clone() |
195 | + | |
196 | - | Trail9.Parent = Character |
196 | + | |
197 | - | Trail9.Attachment0 = A3 |
197 | + | |
198 | - | Trail9.Attachment1 = A5 |
198 | + | |
199 | - | Trail9.Color = TrailSettings.Color2 |
199 | + | |
200 | - | local FT = Trail:Clone() |
200 | + | |
201 | - | FT.Parent = Character |
201 | + | |
202 | - | FT.Attachment0 = A4 |
202 | + | |
203 | - | FT.Attachment1 = A5 |
203 | + | |
204 | - | FT.Color = TrailSettings.Color2 |
204 | + | |
205 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
206 | - | A4 = Instance.new("Attachment", Character.RightLowerLeg) |
206 | + | |
207 | - | A4R = Instance.new("Attachment", Character.RightUpperLeg) |
207 | + | |
208 | - | A5 = Instance.new("Attachment", Character.LeftLowerLeg) |
208 | + | |
209 | - | A5R = Instance.new("Attachment", Character.LeftUpperLeg) |
209 | + | |
210 | - | local Trail4 = Trail:Clone() |
210 | + | |
211 | - | Trail4.Parent = Character |
211 | + | |
212 | - | Trail4.Attachment1 = A4 |
212 | + | |
213 | - | local Trail5 = Trail:Clone() |
213 | + | |
214 | - | Trail5.Parent = Character |
214 | + | |
215 | - | Trail5.Attachment1 = A5 |
215 | + | |
216 | - | local Trail8 = Trail:Clone() |
216 | + | |
217 | - | Trail8.Parent = Character |
217 | + | |
218 | - | Trail8.Attachment0 = A2 |
218 | + | |
219 | - | Trail8.Attachment1 = A4 |
219 | + | |
220 | - | Trail8.Color = TrailSettings.Color2 |
220 | + | |
221 | - | local Trail9 = Trail:Clone() |
221 | + | |
222 | - | Trail9.Parent = Character |
222 | + | |
223 | - | Trail9.Attachment0 = A3 |
223 | + | |
224 | - | Trail9.Attachment1 = A5 |
224 | + | |
225 | - | Trail9.Color = TrailSettings.Color2 |
225 | + | |
226 | - | local FT = Trail:Clone() |
226 | + | |
227 | - | FT.Parent = Character |
227 | + | |
228 | - | FT.Attachment0 = A4 |
228 | + | |
229 | - | FT.Attachment1 = A5 |
229 | + | |
230 | - | FT.Color = TrailSettings.Color2 |
230 | + | |
231 | - | local Trail3R = Trail:Clone() |
231 | + | |
232 | - | Trail3R.Parent = Character |
232 | + | |
233 | - | Trail3R.Attachment1 = A4R |
233 | + | |
234 | - | local Trail4R = Trail:Clone() |
234 | + | |
235 | - | Trail4R.Parent = Character |
235 | + | |
236 | - | Trail4R.Attachment1 = A5R |
236 | + | |
237 | - | local Trail8 = Trail:Clone() |
237 | + | |
238 | - | Trail8.Parent = Character |
238 | + | |
239 | - | Trail8.Attachment0 = A2R |
239 | + | |
240 | - | Trail8.Attachment1 = A4R |
240 | + | |
241 | - | Trail8.Color = TrailSettings.Color2 |
241 | + | |
242 | - | local Trail9 = Trail:Clone() |
242 | + | |
243 | - | Trail9.Parent = Character |
243 | + | |
244 | - | Trail9.Attachment0 = A3R |
244 | + | |
245 | - | Trail9.Attachment1 = A5R |
245 | + | |
246 | - | Trail9.Color = TrailSettings.Color2 |
246 | + | |
247 | - | local FT2R = Trail:Clone() |
247 | + | |
248 | - | FT2R.Parent = Character |
248 | + | |
249 | - | FT2R.Attachment0 = A4R |
249 | + | |
250 | - | FT2R.Attachment1 = A5R |
250 | + | |
251 | - | FT2R.Color = TrailSettings.Color2 |
251 | + | |
252 | ||
253 | --//=================================\\ | |
254 | - | function AllBody() |
254 | + | |
255 | - | UpperBody() |
255 | + | |
256 | - | LowerBody() |
256 | + | |
257 | ArtificialHB = Instance.new("BindableEvent", script) | |
258 | - | if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then |
258 | + | |
259 | - | TrailSettings.UpperBodyOnly = false |
259 | + | |
260 | - | TrailSettings.LowerBodyOnly = false |
260 | + | |
261 | - | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then |
261 | + | |
262 | - | TrailSettings.UpperBodyOnly = false |
262 | + | |
263 | - | TrailSettings.LowerBodyOnly = false |
263 | + | |
264 | - | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then |
264 | + | |
265 | - | TrailSettings.UpperBodyOnly = false |
265 | + | |
266 | - | TrailSettings.LowerBodyOnly = false |
266 | + | |
267 | - | elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then |
267 | + | |
268 | - | TrailSettings.AllBody = true |
268 | + | |
269 | - | TrailSettings.UpperBodyOnly = false |
269 | + | |
270 | - | TrailSettings.LowerBodyOnly = false |
270 | + | |
271 | if tf >= frame then | |
272 | - | if TrailSettings.UpperBodyOnly == true then |
272 | + | |
273 | - | UpperBody() |
273 | + | |
274 | - | print("Called Upper Body Trail") |
274 | + | |
275 | - | elseif TrailSettings.LowerBodyOnly == true then |
275 | + | |
276 | - | LowerBody() |
276 | + | |
277 | - | print("Called Lower Body Trail") |
277 | + | |
278 | - | elseif TrailSettings.AllBody == true then |
278 | + | |
279 | - | AllBody() |
279 | + | |
280 | - | print("Called Full Body Trail") |
280 | + | |
281 | if tossremainder then | |
282 | - | if TrailSettings.Accessories == true then |
282 | + | |
283 | - | for Index, Item in pairs(Character:GetChildren()) do |
283 | + | |
284 | - | if Item:IsA("Accessory") then |
284 | + | |
285 | - | local AA = Instance.new("Attachment", Item.Handle) |
285 | + | |
286 | - | local ATrail = Trail:Clone() |
286 | + | |
287 | - | ATrail.Parent = Character |
287 | + | |
288 | - | ATrail.Attachment1 = AA |
288 | + | |
289 | --//=================================\\ | |
290 | --\\=================================// | |
291 | ||
292 | - | if TrailSettings.Extras == true then |
292 | + | |
293 | - | spawn(function() |
293 | + | |
294 | --\\=================================// | |
295 | ||
296 | - | until Trail |
296 | + | |
297 | - | local AB = Instance.new("Attachment", a) |
297 | + | |
298 | - | local ABT = Trail:Clone() |
298 | + | |
299 | - | ABT.Parent = Character |
299 | + | |
300 | - | ABT.Attachment0 = A4 |
300 | + | |
301 | - | ABT.Attachment1 = AB |
301 | + | |
302 | - | ABT.Color = TrailSettings.Color2 |
302 | + | |
303 | - | local ABT2 = Trail:Clone() |
303 | + | |
304 | - | ABT2.Parent = Character |
304 | + | |
305 | - | ABT2.Attachment0 = A5 |
305 | + | |
306 | - | ABT2.Attachment1 = AB |
306 | + | |
307 | - | ABT2.Color = TrailSettings.Color2 |
307 | + | |
308 | if NUMBER <= 0 then | |
309 | NUMBER = 0 | |
310 | - | wait(0.1) |
310 | + | |
311 | return NUMBER | |
312 | end | |
313 | ||
314 | function Swait(NUMBER) | |
315 | if NUMBER == 0 or NUMBER == nil then | |
316 | ArtificialHB.Event:wait() | |
317 | else | |
318 | for i = 1, NUMBER do | |
319 | ArtificialHB.Event:wait() | |
320 | end | |
321 | end | |
322 | end | |
323 | ||
324 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
325 | local NEWMESH = IT(MESH) | |
326 | if MESH == "SpecialMesh" then | |
327 | NEWMESH.MeshType = MESHTYPE | |
328 | if MESHID ~= "nil" and MESHID ~= "" then | |
329 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
330 | end | |
331 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
332 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
333 | end | |
334 | end | |
335 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
336 | NEWMESH.Scale = SCALE | |
337 | NEWMESH.Parent = PARENT | |
338 | return NEWMESH | |
339 | end | |
340 | ||
341 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
342 | local NEWPART = IT("Part") | |
343 | NEWPART.formFactor = FORMFACTOR | |
344 | NEWPART.Reflectance = REFLECTANCE | |
345 | NEWPART.Transparency = TRANSPARENCY | |
346 | NEWPART.CanCollide = false | |
347 | NEWPART.Locked = true | |
348 | NEWPART.Anchored = true | |
349 | if ANCHOR == false then | |
350 | NEWPART.Anchored = false | |
351 | end | |
352 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
353 | NEWPART.Name = NAME | |
354 | NEWPART.Size = SIZE | |
355 | NEWPART.Position = Torso.Position | |
356 | NEWPART.Material = MATERIAL | |
357 | NEWPART:BreakJoints() | |
358 | NEWPART.Parent = PARENT | |
359 | return NEWPART | |
360 | end | |
361 | ||
362 | local function weldBetween(a, b) | |
363 | local weldd = Instance.new("ManualWeld") | |
364 | weldd.Part0 = a | |
365 | weldd.Part1 = b | |
366 | weldd.C0 = CFrame.new() | |
367 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
368 | weldd.Parent = a | |
369 | return weldd | |
370 | end | |
371 | ||
372 | ||
373 | function QuaternionFromCFrame(cf) | |
374 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
375 | local trace = m00 + m11 + m22 | |
376 | if trace > 0 then | |
377 | local s = math.sqrt(1 + trace) | |
378 | local recip = 0.5 / s | |
379 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
380 | else | |
381 | local i = 0 | |
382 | if m11 > m00 then | |
383 | i = 1 | |
384 | end | |
385 | if m22 > (i == 0 and m00 or m11) then | |
386 | i = 2 | |
387 | end | |
388 | if i == 0 then | |
389 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
390 | local recip = 0.5 / s | |
391 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
392 | elseif i == 1 then | |
393 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
394 | local recip = 0.5 / s | |
395 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
396 | elseif i == 2 then | |
397 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
398 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
399 | end | |
400 | end | |
401 | end | |
402 | ||
403 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
404 | local xs, ys, zs = x + x, y + y, z + z | |
405 | local wx, wy, wz = w * xs, w * ys, w * zs | |
406 | local xx = x * xs | |
407 | local xy = x * ys | |
408 | local xz = x * zs | |
409 | local yy = y * ys | |
410 | local yz = y * zs | |
411 | local zz = z * zs | |
412 | 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)) | |
413 | end | |
414 | ||
415 | function QuaternionSlerp(a, b, t) | |
416 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
417 | local startInterp, finishInterp; | |
418 | if cosTheta >= 0.0001 then | |
419 | if (1 - cosTheta) > 0.0001 then | |
420 | local theta = ACOS(cosTheta) | |
421 | local invSinTheta = 1 / SIN(theta) | |
422 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
423 | finishInterp = SIN(t * theta) * invSinTheta | |
424 | else | |
425 | startInterp = 1 - t | |
426 | finishInterp = t | |
427 | end | |
428 | else | |
429 | if (1 + cosTheta) > 0.0001 then | |
430 | local theta = ACOS(-cosTheta) | |
431 | local invSinTheta = 1 / SIN(theta) | |
432 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
433 | finishInterp = SIN(t * theta) * invSinTheta | |
434 | else | |
435 | startInterp = t - 1 | |
436 | finishInterp = t | |
437 | end | |
438 | end | |
439 | 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 | |
440 | end | |
441 | ||
442 | function Clerp(a, b, t) | |
443 | local qa = {QuaternionFromCFrame(a)} | |
444 | local qb = {QuaternionFromCFrame(b)} | |
445 | local ax, ay, az = a.x, a.y, a.z | |
446 | local bx, by, bz = b.x, b.y, b.z | |
447 | local _t = 1 - t | |
448 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
449 | end | |
450 | ||
451 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
452 | local frame = IT("Frame") | |
453 | frame.BackgroundTransparency = TRANSPARENCY | |
454 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
455 | frame.Position = POSITION | |
456 | frame.Size = SIZE | |
457 | frame.BackgroundColor3 = COLOR | |
458 | frame.BorderColor3 = BORDERCOLOR | |
459 | frame.Name = NAME | |
460 | frame.Parent = PARENT | |
461 | return frame | |
462 | end | |
463 | ||
464 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
465 | local label = IT("TextLabel") | |
466 | label.BackgroundTransparency = 1 | |
467 | label.Size = UD2(1, 0, 1, 0) | |
468 | label.Position = UD2(0, 0, 0, 0) | |
469 | label.TextColor3 = TEXTCOLOR | |
470 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
471 | label.TextTransparency = TRANSPARENCY | |
472 | label.FontSize = TEXTFONTSIZE | |
473 | label.Font = TEXTFONT | |
474 | label.BorderSizePixel = BORDERSIZEPIXEL | |
475 | label.TextStrokeColor3 = C3(1,1,1) | |
476 | label.TextScaled = false | |
477 | label.Text = TEXT | |
478 | label.Name = NAME | |
479 | label.Parent = PARENT | |
480 | return label | |
481 | end | |
482 | ||
483 | function NoOutlines(PART) | |
484 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
485 | end | |
486 | ||
487 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
488 | local NEWWELD = IT(TYPE) | |
489 | NEWWELD.Part0 = PART0 | |
490 | NEWWELD.Part1 = PART1 | |
491 | NEWWELD.C0 = C0 | |
492 | NEWWELD.C1 = C1 | |
493 | NEWWELD.Parent = PARENT | |
494 | return NEWWELD | |
495 | end | |
496 | ||
497 | local S = IT("Sound") | |
498 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
499 | local NEWSOUND = nil | |
500 | coroutine.resume(coroutine.create(function() | |
501 | NEWSOUND = S:Clone() | |
502 | NEWSOUND.Parent = PARENT | |
503 | NEWSOUND.Volume = VOLUME | |
504 | NEWSOUND.Pitch = PITCH | |
505 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
506 | NEWSOUND:play() | |
507 | if DOESLOOP == true then | |
508 | NEWSOUND.Looped = true | |
509 | else | |
510 | repeat wait(1) until NEWSOUND.Playing == false | |
511 | NEWSOUND:remove() | |
512 | end | |
513 | end)) | |
514 | return NEWSOUND | |
515 | end | |
516 | ||
517 | function CFrameFromTopBack(at, top, back) | |
518 | local right = top:Cross(back) | |
519 | 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) | |
520 | end | |
521 | ||
522 | --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}) | |
523 | function WACKYEFFECT(Table) | |
524 | local TYPE = (Table.EffectType or "Sphere") | |
525 | local SIZE = (Table.Size or VT(1,1,1)) | |
526 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
527 | local TRANSPARENCY = (Table.Transparency or 0) | |
528 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
529 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
530 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
531 | local ROTATION1 = (Table.RotationX or 0) | |
532 | local ROTATION2 = (Table.RotationY or 0) | |
533 | local ROTATION3 = (Table.RotationZ or 0) | |
534 | local MATERIAL = (Table.Material or "Neon") | |
535 | local COLOR = (Table.Color or C3(66/255, 0/255, 127/2551)) | |
536 | local TIME = (Table.Time or 45) | |
537 | local SOUNDID = (Table.SoundID or nil) | |
538 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
539 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
540 | coroutine.resume(coroutine.create(function() | |
541 | local PLAYSSOUND = false | |
542 | local SOUND = nil | |
543 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Dark indigo"), "Effect", VT(1,1,1), true) | |
544 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
545 | PLAYSSOUND = true | |
546 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
547 | end | |
548 | EFFECT.Color = COLOR | |
549 | local MSH = nil | |
550 | if TYPE == "Sphere" then | |
551 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
552 | elseif TYPE == "Block" then | |
553 | MSH = IT("BlockMesh",EFFECT) | |
554 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
555 | elseif TYPE == "Wave" then | |
556 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
557 | elseif TYPE == "Ring" then | |
558 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
559 | elseif TYPE == "Slash" then | |
560 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
561 | elseif TYPE == "Round Slash" then | |
562 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
563 | elseif TYPE == "Swirl" then | |
564 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
565 | elseif TYPE == "Skull" then | |
566 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
567 | elseif TYPE == "Crystal" then | |
568 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
569 | end | |
570 | if MSH ~= nil then | |
571 | local MOVESPEED = nil | |
572 | if MOVEDIRECTION ~= nil then | |
573 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
574 | end | |
575 | local GROWTH = SIZE - ENDSIZE | |
576 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
577 | if TYPE == "Block" then | |
578 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
579 | else | |
580 | EFFECT.CFrame = CFRAME | |
581 | end | |
582 | for LOOP = 1, TIME+1 do | |
583 | Swait() | |
584 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
585 | if TYPE == "Wave" then | |
586 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
587 | end | |
588 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
589 | if TYPE == "Block" then | |
590 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
591 | else | |
592 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
593 | end | |
594 | if MOVEDIRECTION ~= nil then | |
595 | local ORI = EFFECT.Orientation | |
596 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
597 | EFFECT.Orientation = ORI | |
598 | end | |
599 | end | |
600 | if PLAYSSOUND == false then | |
601 | EFFECT:remove() | |
602 | else | |
603 | repeat Swait() until SOUND.Playing == false | |
604 | EFFECT:remove() | |
605 | end | |
606 | else | |
607 | if PLAYSSOUND == false then | |
608 | EFFECT:remove() | |
609 | else | |
610 | repeat Swait() until SOUND.Playing == false | |
611 | EFFECT:remove() | |
612 | end | |
613 | end | |
614 | end)) | |
615 | end | |
616 | ||
617 | function MakeForm(PART,TYPE) | |
618 | if TYPE == "Cyl" then | |
619 | local MSH = IT("CylinderMesh",PART) | |
620 | elseif TYPE == "Ball" then | |
621 | local MSH = IT("SpecialMesh",PART) | |
622 | MSH.MeshType = "Sphere" | |
623 | elseif TYPE == "Wedge" then | |
624 | local MSH = IT("SpecialMesh",PART) | |
625 | MSH.MeshType = "Wedge" | |
626 | end | |
627 | end | |
628 | ||
629 | Debris = game:GetService("Debris") | |
630 | ||
631 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
632 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
633 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
634 | end | |
635 | ||
636 | function turnto(position) | |
637 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
638 | end | |
639 | ||
640 | --//=================================\\ | |
641 | --|| WEAPON CREATION | |
642 | --\\=================================// | |
643 | ||
644 | Humanoid.Parent = nil | |
645 | RootPart.Size = RootPart.Size*SIZE | |
646 | Torso.Size = Torso.Size*SIZE | |
647 | RightArm.Size = RightArm.Size*SIZE | |
648 | RightLeg.Size = RightLeg.Size*SIZE | |
649 | LeftArm.Size = LeftArm.Size*SIZE | |
650 | LeftLeg.Size = LeftLeg.Size*SIZE | |
651 | RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
652 | RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
653 | Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
654 | Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
655 | RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
656 | LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
657 | RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
658 | LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
659 | RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
660 | LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
661 | Head.Size = Head.Size*SIZE | |
662 | RootJoint.Parent = RootPart | |
663 | Neck.Parent = Torso | |
664 | RightShoulder.Parent = Torso | |
665 | LeftShoulder.Parent = Torso | |
666 | RightHip.Parent = Torso | |
667 | LeftHip.Parent = Torso | |
668 | ||
669 | Humanoid.DisplayDistanceType = "None" | |
670 | local naeeym2 = IT("BillboardGui",Character) | |
671 | naeeym2.AlwaysOnTop = true | |
672 | naeeym2.Size = UDim2.new(5,35,2,15) | |
673 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
674 | naeeym2.MaxDistance = 75 | |
675 | naeeym2.Adornee = Character.Head | |
676 | naeeym2.Name = "Name" | |
677 | local tecks2 = IT("TextLabel",naeeym2) | |
678 | tecks2.BackgroundTransparency = 1 | |
679 | tecks2.TextScaled = true | |
680 | tecks2.BorderSizePixel = 0 | |
681 | tecks2.Text = "MICHEAL THE CONTROLLER OF TIME" | |
682 | tecks2.Font = "Fantasy" | |
683 | tecks2.TextSize = 30 | |
684 | tecks2.TextStrokeTransparency = 0 | |
685 | tecks2.TextColor3 = C3(0,0,0) | |
686 | tecks2.TextStrokeColor3 = C3(255/255, 255/255, 0/255) | |
687 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
688 | tecks2.Parent = naeeym2 | |
689 | local top = Instance.new("Shirt") | |
690 | top.ShirtTemplate = "rbxassetid://230449737" | |
691 | top.Parent = Character | |
692 | top.Name = "Cloth" | |
693 | local bottom = Instance.new("Pants") | |
694 | bottom.PantsTemplate = "rbxassetid://676428351" | |
695 | bottom.Parent = Character | |
696 | bottom.Name = "Cloth" | |
697 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
698 | PRT.Color = C3(0,0,0) | |
699 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0)) | |
700 | CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "", VT(1,1,1)*SIZE, VT(0,0,0)) | |
701 | ||
702 | ||
703 | for _, c in pairs(Weapon:GetChildren()) do | |
704 | if c.ClassName == "Part" then | |
705 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
706 | end | |
707 | end | |
708 | ||
709 | Neck.Name = "Weld" | |
710 | RootJoint.Name = "Weld" | |
711 | RightShoulder.Name = "Weld" | |
712 | LeftShoulder.Name = "Weld" | |
713 | RightHip.Name = "Weld" | |
714 | LeftHip.Name = "Weld" | |
715 | ||
716 | local BODY = {} | |
717 | for _, c in pairs(Character:GetDescendants()) do | |
718 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
719 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
720 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
721 | end | |
722 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
723 | elseif c:IsA("JointInstance") then | |
724 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
725 | end | |
726 | end | |
727 | for e = 1, #BODY do | |
728 | if BODY[e] ~= nil then | |
729 | local STUFF = BODY[e] | |
730 | local PART = STUFF[1] | |
731 | local PARENT = STUFF[2] | |
732 | local MATERIAL = STUFF[3] | |
733 | local COLOR = STUFF[4] | |
734 | local TRANSPARENCY = STUFF[5] | |
735 | if PART.ClassName == "Part" and PART ~= RootPart then | |
736 | PART.Material = MATERIAL | |
737 | PART.Color = COLOR | |
738 | PART.Transparency = TRANSPARENCY | |
739 | end | |
740 | PART.AncestryChanged:Connect(function() | |
741 | PART.Parent = PARENT | |
742 | end) | |
743 | end | |
744 | end | |
745 | ||
746 | function refit() | |
747 | Character.Parent = workspace | |
748 | for e = 1, #BODY do | |
749 | if BODY[e] ~= nil then | |
750 | local STUFF = BODY[e] | |
751 | local PART = STUFF[1] | |
752 | local PARENT = STUFF[2] | |
753 | local MATERIAL = STUFF[3] | |
754 | local COLOR = STUFF[4] | |
755 | local TRANSPARENCY = STUFF[5] | |
756 | if PART.ClassName == "Part" and PART ~= RootPart then | |
757 | PART.Material = MATERIAL | |
758 | PART.Color = COLOR | |
759 | PART.Transparency = TRANSPARENCY | |
760 | end | |
761 | if PART.Parent ~= PARENT then | |
762 | Humanoid:remove() | |
763 | PART.Parent = PARENT | |
764 | Humanoid = IT("Humanoid",Character) | |
765 | chatfunc ("I dont have time to die...") | |
766 | end | |
767 | end | |
768 | end | |
769 | end | |
770 | local SKILLTEXTCOLOR = C3(255/255, 255/255, 0/255) | |
771 | local SKILLFONT = "Fantasy" | |
772 | local SKILLTEXTSIZE = 7 | |
773 | ||
774 | Weapon.Parent = Character | |
775 | Humanoid.Parent = Character | |
776 | ||
777 | Humanoid.Died:connect(function() | |
778 | refit() | |
779 | end) | |
780 | chatfunc("Gentlemen, you just annoyed me") | |
781 | warn("deivis97 edit") | |
782 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
783 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
784 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
785 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
786 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
787 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.76, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
788 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.10, 0, 0.76, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
789 | ||
790 | ||
791 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Nuke Missiles", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1") | |
792 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Times up", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2") | |
793 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Chained Punch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3") | |
794 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warp Meteor", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4") | |
795 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Pandora's Box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5") | |
796 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[G] Time Stop", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6") | |
797 | local SKILL6TEXT = CreateLabel(SKILL7FRAME, "[{1-5}] Musics [{6}] off", Color3.new(0/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7") | |
798 | ||
799 | --//=================================\\ | |
800 | --|| DAMAGING | |
801 | --\\=================================// | |
802 | ||
803 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
804 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
805 | defence.Name = ("HitBy"..Player.Name) | |
806 | game:GetService("Debris"):AddItem(defence, 0.001) | |
807 | Damage = Damage * DAMAGEMULTIPLIER | |
808 | if Humanoid.Health ~= 0 then | |
809 | local CritChance = MRANDOM(1,100) | |
810 | if Damage > Humanoid.Health then | |
811 | Damage = math.ceil(Humanoid.Health) | |
812 | if Damage == 0 then | |
813 | Damage = 0.1 | |
814 | end | |
815 | end | |
816 | Humanoid.Health = Humanoid.Health - Damage | |
817 | end | |
818 | end | |
819 | ||
820 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
821 | local CHILDREN = workspace:GetDescendants() | |
822 | for index, CHILD in pairs(CHILDREN) do | |
823 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
824 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
825 | if HUM then | |
826 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
827 | if TORSO then | |
828 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
829 | if INSTAKILL == false then | |
830 | CHILD:BreakJoints() | |
831 | else | |
832 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
833 | ApplyDamage(HUM,DMG,TORSO) | |
834 | end | |
835 | if FLING > 0 then | |
836 | for _, c in pairs(CHILD:GetChildren()) do | |
837 | if c:IsA("BasePart") then | |
838 | local bv = Instance.new("BodyVelocity") | |
839 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
840 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
841 | bv.Parent = c | |
842 | Debris:AddItem(bv,0.05) | |
843 | end | |
844 | end | |
845 | end | |
846 | end | |
847 | end | |
848 | end | |
849 | end | |
850 | end | |
851 | end | |
852 | ||
853 | --//=================================\\ | |
854 | --|| ATTACK FUNCTIONS AND STUFF | |
855 | --\\=================================// | |
856 | ||
857 | Circle = nil | |
858 | CircleParts = {} | |
859 | Equipped = false | |
860 | ||
861 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
862 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
863 | end | |
864 | Spawn(function() | |
865 | while Equipped and Humanoid.Parent and Torso.Parent do | |
866 | if Angle == 360 then | |
867 | Angle = 0 | |
868 | end | |
869 | Angle = Angle + 0.05 | |
870 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character}) | |
871 | if Hit then | |
872 | if not Circle.Parent then | |
873 | Circle.Parent = Character | |
874 | end | |
875 | for i, v in pairs(CircleParts) do | |
876 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
877 | end | |
878 | else | |
879 | Circle.Parent = nil | |
880 | end | |
881 | wait() | |
882 | end | |
883 | end) | |
884 | ||
885 | ||
886 | ||
887 | function MagicMissiles() | |
888 | ATTACK = true | |
889 | Rooted = true | |
890 | local SELECTING = true | |
891 | local SPOTS = {} | |
892 | coroutine.resume(coroutine.create(function() | |
893 | local LOOP = 0 | |
894 | repeat | |
895 | LOOP = LOOP + 1 | |
896 | Swait() | |
897 | if LOOP >= 10 then | |
898 | LOOP = 0 | |
899 | for i = 1, #SPOTS do | |
900 | if SPOTS[i] ~= nil then | |
901 | 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}) | |
902 | 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}) | |
903 | end | |
904 | end | |
905 | end | |
906 | 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) | |
907 | 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) | |
908 | 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) | |
909 | 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) | |
910 | 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(85), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
911 | 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(-85), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
912 | until SELECTING == false | |
913 | Rooted = false | |
914 | repeat | |
915 | LOOP = LOOP + 1 | |
916 | Swait() | |
917 | if LOOP >= 10 then | |
918 | LOOP = 0 | |
919 | for i = 1, #SPOTS do | |
920 | if SPOTS[i] ~= nil then | |
921 | 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}) | |
922 | 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}) | |
923 | end | |
924 | end | |
925 | - | tecks2.Text = "Master of Time" |
925 | + | end |
926 | 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) | |
927 | 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) | |
928 | 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) | |
929 | 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) | |
930 | 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(85), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
931 | 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(-85), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
932 | until ATTACK == false | |
933 | end)) | |
934 | - | top.ShirtTemplate = "rbxassetid://45695443" |
934 | + | repeat |
935 | repeat Swait() until HOLD == true | |
936 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
937 | if DIST > 99999 then | |
938 | - | bottom.PantsTemplate = "rbxassetid://45696190" |
938 | + | DIST = 99999 |
939 | end | |
940 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
941 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
942 | if HITFLOOR ~= nil then | |
943 | table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))) | |
944 | - | CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "82907376", VT(1,1,1)*SIZE, VT(0,0,0)) |
944 | + | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,2,6), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6}) |
945 | - | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false) |
945 | + | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) |
946 | end | |
947 | - | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0)) |
947 | + | repeat Swait() until HOLD == false |
948 | - | CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0)) |
948 | + | until #SPOTS == 1 |
949 | - | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false) |
949 | + | SELECTING = false |
950 | - | PRT.Color = C3(255/255, 0/255, 0/255) |
950 | + | for i = 1, #SPOTS do |
951 | - | MakeForm(PRT,"Ball") |
951 | + | if SPOTS[i] ~= nil then |
952 | - | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0)) |
952 | + | local POS = SPOTS[i] |
953 | - | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false) |
953 | + | coroutine.resume(coroutine.create(function() |
954 | - | PRT.Color = C3(255/255, 255/255, 0/255) |
954 | + | local MISSILE = IT("Model",Effects) |
955 | - | MakeForm(PRT,"Ball") |
955 | + | MISSILE.Name = "Missile" |
956 | - | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0)) |
956 | + | local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Miduim stone gray", "Part", VT(2,2,2)) |
957 | - | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false) |
957 | + | MakeForm(BASEPART,"Cyl") |
958 | - | PRT.Color = C3(255/255, 255/255, 0/255) |
958 | + | MISSILE.PrimaryPart = BASEPART |
959 | - | MakeForm(PRT,"Ball") |
959 | + | BASEPART.CFrame = POS*CF(0,-30*3,0) |
960 | - | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0)) |
960 | + | local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Miduim stone gray", "Part", VT(2,4,2)) |
961 | - | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false) |
961 | + | MakeForm(HEAD,"Ball") |
962 | - | PRT.Color = C3(255/255, 255/255, 0/255) |
962 | + | HEAD.CFrame = BASEPART.CFrame*CF(0,1,0) |
963 | - | MakeForm(PRT,"Ball") |
963 | + | local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Miduim stone gray", "Part", VT(2.5,0.1,2.5)) |
964 | - | local Aura = Instance.new('ParticleEmitter') |
964 | + | MakeForm(TAIL,"Cyl") |
965 | - | Aura.Name = "Aura" |
965 | + | TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0) |
966 | - | Aura.Texture = "rbxassetid://131765579" |
966 | + | for i = 1, 10 do |
967 | - | Aura.Parent = PRT |
967 | + | Swait() |
968 | - | Aura.LightEmission = 0.3 |
968 | + | for _, c in pairs(MISSILE:GetChildren()) do |
969 | - | Aura.Transparency = NumberSequence.new(0,0.6,1) |
969 | + | if c.ClassName == "Part" then |
970 | - | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(255/255, 0/255, 0/255)) |
970 | + | c.Transparency = c.Transparency - 1/10 |
971 | - | Aura.Size = NumberSequence.new(0.3,0.2,0.1) |
971 | + | end |
972 | - | Aura.LockedToPart = false |
972 | + | end |
973 | - | Aura.Lifetime = NumberRange.new(2) |
973 | + | end |
974 | - | Aura.Rate = 30 |
974 | + | for i = 1, 15*1.5 do |
975 | - | Aura.Speed = NumberRange.new(1) |
975 | + | Swait() |
976 | - | Aura.EmissionDirection = "Top" |
976 | + | MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0)) |
977 | - | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0)) |
977 | + | end |
978 | - | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false) |
978 | + | ApplyAoE3(BASEPART.CFrame.p,20,35,45,75,false) |
979 | - | PRT.Color = C3(255/255, 255/255, 0/255) |
979 | + | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(75,1,75), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4}) |
980 | - | MakeForm(PRT,"Ball") |
980 | + | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 100}) |
981 | - | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0)) |
981 | + | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(22,2,22), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) |
982 | - | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false) |
982 | + | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(20,3,20), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) |
983 | - | PRT.Color = C3(255/255, 255/255, 0/255) |
983 | + | MISSILE:remove() |
984 | - | MakeForm(PRT,"Ball") |
984 | + | end)) |
985 | - | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0)) |
985 | + | end |
986 | end | |
987 | - | local LASTPART = Head |
987 | + | wait(0.6) |
988 | - | for i = 1, 24 do |
988 | + | ATTACK = false |
989 | - | local MATH = (1-(i/30)) |
989 | + | Rooted = false |
990 | - | if LASTPART == Head then |
990 | + | |
991 | - | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) |
991 | + | |
992 | - | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0)) |
992 | + | |
993 | - | LASTPART = Horn |
993 | + | |
994 | - | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) |
994 | + | |
995 | - | local Aura = Instance.new('ParticleEmitter') |
995 | + | |
996 | - | Aura.Name = "Aura" |
996 | + | |
997 | - | Aura.Texture = "rbxassetid://242997264" |
997 | + | |
998 | - | Aura.Parent = Horn |
998 | + | |
999 | - | Aura.LightEmission = 0.8 |
999 | + | |
1000 | - | Aura.Transparency = NumberSequence.new(0,0.6,1) |
1000 | + | |
1001 | - | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) |
1001 | + | |
1002 | - | Aura.Size = NumberSequence.new(0.3,0.2,0.1) |
1002 | + | |
1003 | - | Aura.LockedToPart = true |
1003 | + | |
1004 | - | Aura.Lifetime = NumberRange.new(2) |
1004 | + | |
1005 | - | Aura.Rate = 25 |
1005 | + | |
1006 | - | Aura.Speed = NumberRange.new(0.1) |
1006 | + | |
1007 | - | Aura.EmissionDirection = "Top" |
1007 | + | |
1008 | 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) | |
1009 | - | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) |
1009 | + | |
1010 | - | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) |
1010 | + | |
1011 | - | LASTPART = Horn |
1011 | + | |
1012 | - | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) |
1012 | + | |
1013 | - | local Aura = Instance.new('ParticleEmitter') |
1013 | + | |
1014 | - | Aura.Name = "Aura" |
1014 | + | |
1015 | - | Aura.Texture = "rbxassetid://242997264" |
1015 | + | |
1016 | - | Aura.Parent = Horn |
1016 | + | |
1017 | - | Aura.LightEmission = 0.8 |
1017 | + | |
1018 | - | Aura.Transparency = NumberSequence.new(0,0.6,1) |
1018 | + | |
1019 | - | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) |
1019 | + | |
1020 | - | Aura.Size = NumberSequence.new(0.3,0.2,0.1) |
1020 | + | |
1021 | - | Aura.LockedToPart = true |
1021 | + | |
1022 | - | Aura.Lifetime = NumberRange.new(2) |
1022 | + | |
1023 | - | Aura.Rate = 25 |
1023 | + | |
1024 | - | Aura.Speed = NumberRange.new(0.1) |
1024 | + | |
1025 | - | Aura.EmissionDirection = "Top" |
1025 | + | |
1026 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0)) | |
1027 | local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.15,0.15),false) | |
1028 | - | local LASTPART = Head |
1028 | + | |
1029 | - | for i = 1, 24 do |
1029 | + | |
1030 | - | local MATH = (1-(i/30)) |
1030 | + | |
1031 | - | if LASTPART == Head then |
1031 | + | |
1032 | - | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) |
1032 | + | |
1033 | - | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(-220), RAD(-90)), CF(0, 0, 0)) |
1033 | + | |
1034 | - | LASTPART = Horn |
1034 | + | |
1035 | - | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) |
1035 | + | |
1036 | - | local Aura = Instance.new('ParticleEmitter') |
1036 | + | |
1037 | - | Aura.Name = "Aura" |
1037 | + | |
1038 | - | Aura.Texture = "rbxassetid://242997264" |
1038 | + | |
1039 | - | Aura.Parent = Horn |
1039 | + | |
1040 | - | Aura.LightEmission = 0.8 |
1040 | + | |
1041 | - | Aura.Transparency = NumberSequence.new(0,0.6,1) |
1041 | + | |
1042 | - | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) |
1042 | + | |
1043 | - | Aura.Size = NumberSequence.new(0.3,0.2,0.1) |
1043 | + | |
1044 | - | Aura.LockedToPart = true |
1044 | + | |
1045 | - | Aura.Lifetime = NumberRange.new(2) |
1045 | + | |
1046 | - | Aura.Rate = 25 |
1046 | + | |
1047 | - | Aura.Speed = NumberRange.new(0.1) |
1047 | + | |
1048 | - | Aura.EmissionDirection = "Top" |
1048 | + | |
1049 | end | |
1050 | - | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) |
1050 | + | |
1051 | - | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) |
1051 | + | |
1052 | - | LASTPART = Horn |
1052 | + | |
1053 | - | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) |
1053 | + | |
1054 | - | local Aura = Instance.new('ParticleEmitter') |
1054 | + | |
1055 | - | Aura.Name = "Aura" |
1055 | + | |
1056 | - | Aura.Texture = "rbxassetid://242997264" |
1056 | + | |
1057 | - | Aura.Parent = Horn |
1057 | + | |
1058 | - | Aura.LightEmission = 0.8 |
1058 | + | |
1059 | - | Aura.Transparency = NumberSequence.new(0,0.6,1) |
1059 | + | |
1060 | - | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) |
1060 | + | |
1061 | - | Aura.Size = NumberSequence.new(0.3,0.2,0.1) |
1061 | + | |
1062 | - | Aura.LockedToPart = true |
1062 | + | |
1063 | - | Aura.Lifetime = NumberRange.new(2) |
1063 | + | |
1064 | - | Aura.Rate = 25 |
1064 | + | |
1065 | - | Aura.Speed = NumberRange.new(0.1) |
1065 | + | |
1066 | - | Aura.EmissionDirection = "Top" |
1066 | + | |
1067 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1068 | repeat | |
1069 | - | local LASTPART = Head |
1069 | + | |
1070 | - | for i = 1, 8 do |
1070 | + | |
1071 | - | local MATH = (1-(i/14)) |
1071 | + | |
1072 | - | if LASTPART == Head then |
1072 | + | |
1073 | - | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) |
1073 | + | |
1074 | - | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0)) |
1074 | + | |
1075 | - | LASTPART = Horn |
1075 | + | |
1076 | - | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) |
1076 | + | |
1077 | - | local Aura = Instance.new('ParticleEmitter') |
1077 | + | |
1078 | - | Aura.Name = "Aura" |
1078 | + | |
1079 | - | Aura.Texture = "rbxassetid://242997264" |
1079 | + | |
1080 | - | Aura.Parent = Horn |
1080 | + | |
1081 | - | Aura.LightEmission = 0.8 |
1081 | + | |
1082 | - | Aura.Transparency = NumberSequence.new(0,0.6,1) |
1082 | + | |
1083 | - | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) |
1083 | + | |
1084 | - | Aura.Size = NumberSequence.new(0.3,0.2,0.1) |
1084 | + | |
1085 | - | Aura.LockedToPart = true |
1085 | + | |
1086 | - | Aura.Lifetime = NumberRange.new(2) |
1086 | + | |
1087 | - | Aura.Rate = 25 |
1087 | + | |
1088 | - | Aura.Speed = NumberRange.new(0.1) |
1088 | + | |
1089 | - | Aura.EmissionDirection = "Top" |
1089 | + | |
1090 | local D = IT("Attachment",RightArm) | |
1091 | - | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) |
1091 | + | |
1092 | - | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) |
1092 | + | |
1093 | - | LASTPART = Horn |
1093 | + | |
1094 | - | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) |
1094 | + | |
1095 | - | local Aura = Instance.new('ParticleEmitter') |
1095 | + | |
1096 | - | Aura.Name = "Aura" |
1096 | + | |
1097 | - | Aura.Texture = "rbxassetid://242997264" |
1097 | + | |
1098 | - | Aura.Parent = Horn |
1098 | + | |
1099 | - | Aura.LightEmission = 0.8 |
1099 | + | |
1100 | - | Aura.Transparency = NumberSequence.new(0,0.6,1) |
1100 | + | |
1101 | - | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) |
1101 | + | |
1102 | - | Aura.Size = NumberSequence.new(0.3,0.2,0.1) |
1102 | + | |
1103 | - | Aura.LockedToPart = true |
1103 | + | |
1104 | - | Aura.Lifetime = NumberRange.new(2) |
1104 | + | |
1105 | - | Aura.Rate = 25 |
1105 | + | |
1106 | - | Aura.Speed = NumberRange.new(0.1) |
1106 | + | |
1107 | - | Aura.EmissionDirection = "Top" |
1107 | + | |
1108 | local ChainLink = IT("Beam",Torso) | |
1109 | ChainLink.Texture = "rbxassetid://73042633" | |
1110 | - | local LASTPART = Head |
1110 | + | |
1111 | - | for i = 1, 8 do |
1111 | + | |
1112 | - | local MATH = (1-(i/14)) |
1112 | + | |
1113 | - | if LASTPART == Head then |
1113 | + | |
1114 | - | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) |
1114 | + | |
1115 | - | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(-250), RAD(-90)), CF(0, 0, 0)) |
1115 | + | |
1116 | - | LASTPART = Horn |
1116 | + | |
1117 | - | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) |
1117 | + | |
1118 | - | local Aura = Instance.new('ParticleEmitter') |
1118 | + | |
1119 | - | Aura.Name = "Aura" |
1119 | + | |
1120 | - | Aura.Texture = "rbxassetid://242997264" |
1120 | + | |
1121 | - | Aura.Parent = Horn |
1121 | + | |
1122 | - | Aura.LightEmission = 0.8 |
1122 | + | |
1123 | - | Aura.Transparency = NumberSequence.new(0,0.6,1) |
1123 | + | |
1124 | - | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) |
1124 | + | |
1125 | - | Aura.Size = NumberSequence.new(0.3,0.2,0.1) |
1125 | + | |
1126 | - | Aura.LockedToPart = true |
1126 | + | |
1127 | - | Aura.Lifetime = NumberRange.new(2) |
1127 | + | |
1128 | - | Aura.Rate = 25 |
1128 | + | |
1129 | - | Aura.Speed = NumberRange.new(0.1) |
1129 | + | |
1130 | - | Aura.EmissionDirection = "Top" |
1130 | + | |
1131 | end | |
1132 | - | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) |
1132 | + | |
1133 | - | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) |
1133 | + | |
1134 | - | LASTPART = Horn |
1134 | + | |
1135 | - | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) |
1135 | + | |
1136 | - | local Aura = Instance.new('ParticleEmitter') |
1136 | + | |
1137 | - | Aura.Name = "Aura" |
1137 | + | |
1138 | - | Aura.Texture = "rbxassetid://242997264" |
1138 | + | |
1139 | - | Aura.Parent = Horn |
1139 | + | |
1140 | - | Aura.LightEmission = 0.8 |
1140 | + | |
1141 | - | Aura.Transparency = NumberSequence.new(0,0.6,1) |
1141 | + | |
1142 | - | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) |
1142 | + | |
1143 | - | Aura.Size = NumberSequence.new(0.3,0.2,0.1) |
1143 | + | |
1144 | - | Aura.LockedToPart = true |
1144 | + | |
1145 | - | Aura.Lifetime = NumberRange.new(2) |
1145 | + | |
1146 | - | Aura.Rate = 25 |
1146 | + | |
1147 | - | Aura.Speed = NumberRange.new(0.1) |
1147 | + | |
1148 | - | Aura.EmissionDirection = "Top" |
1148 | + | |
1149 | coroutine.resume(coroutine.create(function() | |
1150 | repeat | |
1151 | - | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false) |
1151 | + | |
1152 | - | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
1152 | + | |
1153 | - | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false) |
1153 | + | |
1154 | - | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) |
1154 | + | |
1155 | - | MakeForm(PRT,"Cyl") |
1155 | + | |
1156 | - | local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false) |
1156 | + | |
1157 | - | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) |
1157 | + | |
1158 | - | MakeForm(PRT,"Cyl") |
1158 | + | |
1159 | - | PRT.Color = C3(255/255, 255/255, 0/255) |
1159 | + | |
1160 | - | local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false) |
1160 | + | |
1161 | - | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) |
1161 | + | |
1162 | - | MakeForm(RING,"Cyl") |
1162 | + | |
1163 | - | RING.Color = C3(0,0,0) |
1163 | + | |
1164 | - | for i = 1, 12 do |
1164 | + | |
1165 | - | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false) |
1165 | + | |
1166 | - | PRT.Color = C3(0,0,0) |
1166 | + | |
1167 | - | local MSH = IT("BlockMesh",PRT) |
1167 | + | |
1168 | - | MSH.Scale = VT(0.6,1,1) |
1168 | + | |
1169 | - | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE)) |
1169 | + | |
1170 | chatfunc("PUNCH!!!") | |
1171 | - | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false) |
1171 | + | |
1172 | CHAINLINKS[i].Transparency = NumberSequence.new((e/15)) | |
1173 | - | local MSH = IT("BlockMesh",PRT) |
1173 | + | |
1174 | - | MSH.Scale = VT(0.4,1,1) |
1174 | + | |
1175 | - | local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE)) |
1175 | + | |
1176 | - | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false) |
1176 | + | |
1177 | C:remove() | |
1178 | - | local MSH = IT("BlockMesh",PRT) |
1178 | + | |
1179 | - | MSH.Scale = VT(0.4,1,1) |
1179 | + | |
1180 | - | local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE)) |
1180 | + | |
1181 | - | coroutine.resume(coroutine.create(function() |
1181 | + | |
1182 | - | while true do |
1182 | + | |
1183 | for i = 1, #CHAINLINKS do | |
1184 | - | CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED |
1184 | + | |
1185 | - | WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed) |
1185 | + | |
1186 | - | WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed) |
1186 | + | |
1187 | - | if CLOCKLOOP <= -150 then |
1187 | + | |
1188 | - | if VALUE1 == false then |
1188 | + | |
1189 | - | CLOCKLOOP = 0 |
1189 | + | |
1190 | - | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 2}) |
1190 | + | |
1191 | - | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) |
1191 | + | |
1192 | - | ApplyAoE(HITPOS,10,15,45,75,true) |
1192 | + | |
1193 | - | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 4}) |
1193 | + | |
1194 | - | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 4}) |
1194 | + | |
1195 | - | if CLOCKTARGET ~= nil then |
1195 | + | |
1196 | - | CLOCKTARGET.Health = CLOCKTARGET.Health - 20 |
1196 | + | |
1197 | - | if CLOCKTARGET.Torso ~= nil then |
1197 | + | |
1198 | - | CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) |
1198 | + | |
1199 | FISTA.Position = VT(0.062, 0.977, 0) | |
1200 | - | if CLOCKTARGET.Health == 0 then |
1200 | + | |
1201 | - | CLOCKTARGET = nil |
1201 | + | |
1202 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
1203 | ChainLink.TextureSpeed = 2 | |
1204 | ChainLink.Width0 = 3 | |
1205 | ChainLink.Width1 = 3 | |
1206 | ChainLink.TextureLength = 12 | |
1207 | - | end)) |
1207 | + | |
1208 | ChainLink.Attachment1 = FISTA | |
1209 | ChainLink.FaceCamera = true | |
1210 | ChainLink.Segments = 45 | |
1211 | ChainLink.LightEmission = 0.5 | |
1212 | ChainLink.Transparency = NumberSequence.new(0.25) | |
1213 | local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false) | |
1214 | for i = 1, 85 do | |
1215 | Swait() | |
1216 | FIST.CFrame = FIST.CFrame*CF(0,-2,0) | |
1217 | ChainLink.TextureLength = 12+(i*2) | |
1218 | ApplyAoE(FIST.Position,10,15,25,100,true) | |
1219 | WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(i*15), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1220 | local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character) | |
1221 | if HITFLOOR ~= nil then | |
1222 | HITFLOOR:BreakJoints() | |
1223 | coroutine.resume(coroutine.create(function() | |
1224 | for i = 1, 15 do | |
1225 | Swait() | |
1226 | FISTSOUND.Volume = FISTSOUND.Volume - 0.15 | |
1227 | ApplyAoE(FIST.Position,10+(i*2),5,15,5,true) | |
1228 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1229 | end | |
1230 | end)) | |
1231 | break | |
1232 | end | |
1233 | end | |
1234 | coroutine.resume(coroutine.create(function() | |
1235 | for i = 1, 50 do | |
1236 | Swait() | |
1237 | FIST.Transparency = FIST.Transparency + 0.5/50 | |
1238 | LIGHT3.Range = LIGHT3.Range - 7/50 | |
1239 | end | |
1240 | FIST:remove() | |
1241 | end)) | |
1242 | LIGHT:remove() | |
1243 | GYRO:remove() | |
1244 | ATTACK = false | |
1245 | Rooted = false | |
1246 | end | |
1247 | ||
1248 | function WarpMeteor() | |
1249 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
1250 | if DIST > 9999 then | |
1251 | DIST = 9999 | |
1252 | end | |
1253 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
1254 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character) | |
1255 | if HITFLOOR then | |
1256 | local POS = HITPOS | |
1257 | ATTACK = true | |
1258 | Rooted = false | |
1259 | local WARPED = false | |
1260 | local SMASHED = false | |
1261 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1262 | coroutine.resume(coroutine.create(function() | |
1263 | repeat | |
1264 | Swait() | |
1265 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1266 | 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) | |
1267 | RightShoulder.C0 = Clerp(RightShoulder.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))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1268 | 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) | |
1269 | 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) | |
1270 | 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) | |
1271 | until WARPED == true | |
1272 | repeat | |
1273 | Swait() | |
1274 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1275 | 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) | |
1276 | RightShoulder.C0 = Clerp(RightShoulder.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))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1277 | 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) | |
1278 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE + 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.5*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) | |
1279 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.1*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) | |
1280 | until SMASHED == true | |
1281 | repeat | |
1282 | Swait() | |
1283 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1284 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1285 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(-15), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1286 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(15), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1287 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
1288 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1289 | until ATTACK == false | |
1290 | end)) | |
1291 | VALUE1 = true | |
1292 | CreateSound(233856115, Torso, 5, 1.6, false) | |
1293 | chatfunc("This hurt more than you think") | |
1294 | for i = 1, 25 do | |
1295 | Swait() | |
1296 | for _, c in pairs(Character:GetChildren()) do | |
1297 | if c.ClassName == "Part" then | |
1298 | c.Transparency = c.Transparency + 1/25 | |
1299 | end | |
1300 | end | |
1301 | for _, c in pairs(Weapon:GetChildren()) do | |
1302 | if c.ClassName == "Part" then | |
1303 | c.Transparency = c.Transparency + 1/25 | |
1304 | end | |
1305 | end | |
1306 | end | |
1307 | UNANCHOR = false | |
1308 | RootPart.Anchored = true | |
1309 | RootPart.Velocity = VT(0,0,0) | |
1310 | local ROOTPOS = RootPart.Position | |
1311 | RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z)) | |
1312 | WARPED = true | |
1313 | for i = 1, 25 do | |
1314 | Swait() | |
1315 | for _, c in pairs(Character:GetChildren()) do | |
1316 | if c.ClassName == "Part" then | |
1317 | c.Transparency = c.Transparency - 1/25 | |
1318 | end | |
1319 | end | |
1320 | for _, c in pairs(Weapon:GetChildren()) do | |
1321 | if c.ClassName == "Part" then | |
1322 | c.Transparency = c.Transparency - 1/25 | |
1323 | end | |
1324 | end | |
1325 | end | |
1326 | local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Part", VT(0,0,0)) | |
1327 | SHELL.CFrame = RootPart.CFrame | |
1328 | MakeForm(SHELL,"Ball") | |
1329 | CreateSound(402981977, SHELL, 5, 1.6, false) | |
1330 | for i = 1, 10 do | |
1331 | Swait() | |
1332 | SHELL.Transparency = SHELL.Transparency - 1/10 | |
1333 | SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8 | |
1334 | end | |
1335 | for i = 1, math.ceil(75/2) do | |
1336 | Swait() | |
1337 | RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0) | |
1338 | SHELL.CFrame = CF(RootPart.Position) | |
1339 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(5,3,5), Transparency = 0.5, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = SHELL.Position+VT(0,15,0), RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1340 | end | |
1341 | RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z)) | |
1342 | SHELL.CFrame = CF(RootPart.Position) | |
1343 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(35,35,35)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6}) | |
1344 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*3.8, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1345 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1346 | for i = 1, 5 do | |
1347 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*4, Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1348 | end | |
1349 | SHELL:remove() | |
1350 | ApplyAoE(RootPart.Position,75,35,75,175,true) | |
1351 | SMASHED = true | |
1352 | wait(1) | |
1353 | VALUE1 = false | |
1354 | UNANCHOR = true | |
1355 | ATTACK = false | |
1356 | Rooted = false | |
1357 | end | |
1358 | end | |
1359 | ||
1360 | function PandorasBox() | |
1361 | local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
1362 | if HITFLOOR ~= nil then | |
1363 | ATTACK = false | |
1364 | Rooted = false | |
1365 | local RINGSPIN = true | |
1366 | local CONSTRUCTING = true | |
1367 | local RING = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Ring", VT(0,0,0)) | |
1368 | RING.Color = C3(0,0,0) | |
1369 | MakeForm(RING,"Cyl") | |
1370 | - | Equipped = true |
1370 | + | |
1371 | - | Circle = Instance.new("Model") |
1371 | + | |
1372 | - | Circle.Name = "Circle" |
1372 | + | |
1373 | - | Angle = 0 |
1373 | + | |
1374 | - | for i = 1, 1 do |
1374 | + | |
1375 | - | local CirclePart = Instance.new("Part") |
1375 | + | |
1376 | - | CirclePart.Name = "CirclePart" |
1376 | + | |
1377 | - | CirclePart.Transparency = 1 |
1377 | + | |
1378 | - | CirclePart.BrickColor = BrickColor.new("Really black") |
1378 | + | |
1379 | - | CirclePart.Material = Enum.Material.Plastic |
1379 | + | |
1380 | - | CirclePart.Shape = Enum.PartType.Block |
1380 | + | |
1381 | - | CirclePart.FormFactor = Enum.FormFactor.Custom |
1381 | + | |
1382 | - | CirclePart.TopSurface = Enum.SurfaceType.Smooth |
1382 | + | |
1383 | - | CirclePart.BottomSurface = Enum.SurfaceType.Smooth |
1383 | + | |
1384 | - | CirclePart.Anchored = true |
1384 | + | |
1385 | - | CirclePart.CanCollide = false |
1385 | + | |
1386 | - | CirclePart.Locked = true |
1386 | + | |
1387 | - | CirclePart.Size = Vector3.new(10, 0.2, 10) |
1387 | + | |
1388 | - | local Aura = Instance.new('ParticleEmitter') |
1388 | + | |
1389 | - | Aura.Name = "Aura" |
1389 | + | |
1390 | - | Aura.Texture = "rbxassetid://641078192" |
1390 | + | |
1391 | - | Aura.Parent = CirclePart |
1391 | + | |
1392 | - | Aura.LightEmission = 0 |
1392 | + | |
1393 | - | Aura.Transparency = NumberSequence.new(0.2,0.4,1) |
1393 | + | |
1394 | - | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 0/255),Color3.new(255/200, 200/200, 200/200)) |
1394 | + | |
1395 | - | Aura.Size = NumberSequence.new(0.9,0.5,0.3) |
1395 | + | |
1396 | - | Aura.LockedToPart = false |
1396 | + | |
1397 | - | Aura.Lifetime = NumberRange.new(1) |
1397 | + | |
1398 | - | Aura.Rate = 50 |
1398 | + | |
1399 | - | Aura.Speed = NumberRange.new(2.5) |
1399 | + | |
1400 | - | Aura.SpreadAngle = Vector2.new(80,80) |
1400 | + | |
1401 | - | local BlockMesh = Instance.new("BlockMesh") |
1401 | + | |
1402 | - | BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1) |
1402 | + | |
1403 | - | BlockMesh.Parent = CirclePart |
1403 | + | |
1404 | - | CirclePart.Parent = Circle |
1404 | + | |
1405 | - | local Star = Instance.new("Decal", CirclePart) |
1405 | + | |
1406 | - | Star.Texture = "http://www.roblox.com/asset/?id=253215684" |
1406 | + | |
1407 | - | Star.Face = "Top" |
1407 | + | |
1408 | - | local Light = Instance.new("PointLight", CirclePart) |
1408 | + | |
1409 | - | Light.Color = Color3.new(.20,0,0) |
1409 | + | |
1410 | - | Light.Brightness = 100 |
1410 | + | |
1411 | - | Light.Range = 15 |
1411 | + | |
1412 | - | table.insert(CircleParts, CirclePart) |
1412 | + | |
1413 | BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z)) | |
1414 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1415 | WOOD.CFrame = BASE.CFrame*CF(1,0,1) | |
1416 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1417 | WOOD.CFrame = BASE.CFrame*CF(1,0,-1) | |
1418 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1419 | WOOD.CFrame = BASE.CFrame*CF(-1,0,1) | |
1420 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1421 | WOOD.CFrame = BASE.CFrame*CF(-1,0,-1) | |
1422 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1423 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,1) | |
1424 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1425 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1) | |
1426 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1427 | WOOD.CFrame = BASE.CFrame*CF(1,0.9,0) | |
1428 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1429 | WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0) | |
1430 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1431 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1) | |
1432 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1433 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1) | |
1434 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1435 | WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0) | |
1436 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1437 | WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0) | |
1438 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,1.9,0.1)) | |
1439 | WOOD.CFrame = BASE.CFrame*CF(0,0,1) | |
1440 | - | local SELECTING = true |
1440 | + | |
1441 | - | local SPOTS = {} |
1441 | + | |
1442 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.1,1.9,2.1)) | |
1443 | - | local LOOP = 0 |
1443 | + | |
1444 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.1,1.9,2.1)) | |
1445 | - | LOOP = LOOP + 1 |
1445 | + | |
1446 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.1,2.1)) | |
1447 | - | if LOOP >= 15 then |
1447 | + | |
1448 | - | LOOP = 0 |
1448 | + | |
1449 | - | for i = 1, #SPOTS do |
1449 | + | |
1450 | - | if SPOTS[i] ~= nil then |
1450 | + | |
1451 | - | 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(255, 255, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) |
1451 | + | |
1452 | - | 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(255, 255, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) |
1452 | + | |
1453 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1) | |
1454 | local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1455 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,1) | |
1456 | local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1457 | - | 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) |
1457 | + | |
1458 | - | 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) |
1458 | + | |
1459 | WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0) | |
1460 | local DECAL = IT("Decal",LIDPART) | |
1461 | DECAL.Face = "Top" | |
1462 | - | until SELECTING == false |
1462 | + | |
1463 | DECAL.Color3 = C3(0,0,0) | |
1464 | --BUILDING THE BOX-- | |
1465 | - | LOOP = LOOP + 1 |
1465 | + | |
1466 | repeat | |
1467 | - | if LOOP >= 15 then |
1467 | + | |
1468 | - | LOOP = 0 |
1468 | + | |
1469 | - | for i = 1, #SPOTS do |
1469 | + | |
1470 | - | if SPOTS[i] ~= nil then |
1470 | + | |
1471 | - | 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(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) |
1471 | + | |
1472 | - | 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(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) |
1472 | + | |
1473 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0)) | |
1474 | end | |
1475 | wait(0.5) | |
1476 | BOXSPIN = false | |
1477 | - | 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) |
1477 | + | |
1478 | - | 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) |
1478 | + | |
1479 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = LIDPART.Size, Size2 = VT(3,0,3)*4, Transparency = 0, Transparency2 = 1, CFrame = LIDPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 168586586, SoundPitch = 1.3, SoundVolume = 6}) | |
1480 | --[[for i = 1, 45 do | |
1481 | Swait() | |
1482 | LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0))) | |
1483 | end- | |
1484 | LID:remove()]]-- | |
1485 | - | repeat Swait() until HOLD == true |
1485 | + | |
1486 | - | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude |
1486 | + | |
1487 | - | if DIST > 9999 then |
1487 | + | |
1488 | - | DIST = 9999 |
1488 | + | |
1489 | if c ~= LIDPART then | |
1490 | - | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) |
1490 | + | |
1491 | - | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) |
1491 | + | |
1492 | - | if HITFLOOR ~= nil then |
1492 | + | |
1493 | - | table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))) |
1493 | + | |
1494 | - | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,2,6), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6}) |
1494 | + | |
1495 | - | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) |
1495 | + | |
1496 | wait(0.5) | |
1497 | - | repeat Swait() until HOLD == false |
1497 | + | |
1498 | - | until #SPOTS == 5 |
1498 | + | |
1499 | - | SELECTING = false |
1499 | + | |
1500 | - | for i = 1, #SPOTS do |
1500 | + | |
1501 | - | if SPOTS[i] ~= nil then |
1501 | + | |
1502 | - | local POS = SPOTS[i] |
1502 | + | |
1503 | wait(1) | |
1504 | - | local MISSILE = IT("Model",Effects) |
1504 | + | |
1505 | - | MISSILE.Name = "Missile" |
1505 | + | |
1506 | - | local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2,2,2)) |
1506 | + | |
1507 | - | MakeForm(BASEPART,"Cyl") |
1507 | + | |
1508 | - | MISSILE.PrimaryPart = BASEPART |
1508 | + | |
1509 | - | BASEPART.CFrame = POS*CF(0,-30*3,0) |
1509 | + | |
1510 | - | local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2,4,2)) |
1510 | + | |
1511 | - | MakeForm(HEAD,"Ball") |
1511 | + | |
1512 | - | HEAD.CFrame = BASEPART.CFrame*CF(0,1,0) |
1512 | + | |
1513 | - | local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2.5,0.1,2.5)) |
1513 | + | |
1514 | - | MakeForm(TAIL,"Cyl") |
1514 | + | |
1515 | - | TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0) |
1515 | + | |
1516 | - | chatfunc("you like nukes?") |
1516 | + | |
1517 | Swait() | |
1518 | FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01) | |
1519 | - | for _, c in pairs(MISSILE:GetChildren()) do |
1519 | + | |
1520 | end | |
1521 | - | c.Transparency = c.Transparency - 1/10 |
1521 | + | |
1522 | local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true) | |
1523 | coroutine.resume(coroutine.create(function() | |
1524 | for i = 1, 75 do | |
1525 | - | for i = 1, 15*1.5 do |
1525 | + | |
1526 | LOOP.Volume = LOOP.Volume + 10/75 | |
1527 | - | MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0)) |
1527 | + | |
1528 | local CHILDREN = workspace:GetDescendants() | |
1529 | - | ApplyAoE(BASEPART.CFrame.p,200,350,450,750,true) |
1529 | + | |
1530 | - | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(750,350,750), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4}) |
1530 | + | |
1531 | - | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(350,350,350), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4}) |
1531 | + | |
1532 | - | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(220,2,220), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) |
1532 | + | |
1533 | - | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(200,3,200), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) |
1533 | + | |
1534 | - | MISSILE:remove() |
1534 | + | |
1535 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
1536 | HUM.Health = HUM.Health - 1.5 | |
1537 | TORSO.Velocity = VT(0,5,0) | |
1538 | - | wait(0.6) |
1538 | + | |
1539 | if TORSO.RotVelocity.Magnitude < 15 then | |
1540 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1541 | end | |
1542 | end | |
1543 | end | |
1544 | end | |
1545 | end | |
1546 | end | |
1547 | FIELD.Size = FIELD.Size + VT(9,9,9) | |
1548 | FIELD.Transparency = FIELD.Transparency + 0.8/75 | |
1549 | end | |
1550 | for i = 1, 500 do | |
1551 | Swait() | |
1552 | LOOP.Parent = FIELD | |
1553 | local CHILDREN = workspace:GetDescendants() | |
1554 | for index, CHILD in pairs(CHILDREN) do | |
1555 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1556 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1557 | if HUM then | |
1558 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1559 | if TORSO then | |
1560 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
1561 | TORSO.Velocity = VT(0,5,0) | |
1562 | HUM.Health = HUM.Health - 1.5 | |
1563 | HUM.PlatformStand = true | |
1564 | if TORSO.RotVelocity.Magnitude < 15 then | |
1565 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1566 | end | |
1567 | end | |
1568 | end | |
1569 | end | |
1570 | end | |
1571 | end | |
1572 | end | |
1573 | for i = 1, 25 do | |
1574 | Swait() | |
1575 | LOOP.Volume = LOOP.Volume + 10/25 | |
1576 | LOOP.Parent = FIELD | |
1577 | local CHILDREN = workspace:GetDescendants() | |
1578 | for index, CHILD in pairs(CHILDREN) do | |
1579 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1580 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1581 | if HUM then | |
1582 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1583 | if TORSO then | |
1584 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then | |
1585 | TORSO.Velocity = VT(0,5,0) | |
1586 | HUM.Health = HUM.Health - 1.5 | |
1587 | HUM.PlatformStand = false | |
1588 | if TORSO.RotVelocity.Magnitude < 15 then | |
1589 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1590 | end | |
1591 | end | |
1592 | end | |
1593 | end | |
1594 | end | |
1595 | end | |
1596 | FIELD.Size = FIELD.Size - VT(3,3,3) | |
1597 | FIELD.Transparency = FIELD.Transparency + 0.2/25 | |
1598 | end | |
1599 | FIELD:remove() | |
1600 | end)) | |
1601 | elseif RANDOMEFFECT == 3 then | |
1602 | for i = 1, 10 do | |
1603 | wait(0.15) | |
1604 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,8,3), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,0.3,0), MoveToPos = BASE.Position+VT(0,6,0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 0.8, SoundVolume = 6}) | |
1605 | coroutine.resume(coroutine.create(function() | |
1606 | local MINION = CLONE:Clone() | |
1607 | MINION.Parent = Effects | |
1608 | MINION.Name = "Shadow" | |
1609 | MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) | |
1610 | MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100) | |
1611 | for _, c in pairs(MINION:GetChildren()) do | |
1612 | if c.ClassName == "Part" then | |
1613 | c.Material = "Neon" | |
1614 | c.Color = C3(0,0,0) | |
1615 | c.Transparency = 0.25 | |
1616 | if c.Name == "Head" then | |
1617 | c:ClearAllChildren() | |
1618 | local MSH = IT("BlockMesh",c) | |
1619 | MSH.Scale = VT(0.5,1,1) | |
1620 | end | |
1621 | end | |
1622 | end | |
1623 | local TORSO = MINION.Torso | |
1624 | local HUMAN = MINION.Humanoid | |
1625 | HUMAN.WalkSpeed = 20 | |
1626 | HUMAN.MaxHealth = math.huge | |
1627 | HUMAN.Health = math.huge | |
1628 | HUMAN.DisplayDistanceType = "None" | |
1629 | HUMAN.Died:connect(function() | |
1630 | MINION:remove() | |
1631 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false) | |
1632 | end) | |
1633 | wait(1) | |
1634 | local findNearestTorso = function(POS) | |
1635 | local list = game.Workspace:GetDescendants() | |
1636 | local torso = nil | |
1637 | local dist = 500 | |
1638 | local temp = nil | |
1639 | local human = nil | |
1640 | local temp2 = nil | |
1641 | for x = 1, #list do | |
1642 | temp2 = list[x] | |
1643 | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then | |
1644 | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso") | |
1645 | human = temp2:findFirstChildOfClass("Humanoid") | |
1646 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
1647 | if (temp.Position - POS).magnitude < dist then | |
1648 | torso = temp | |
1649 | dist = (temp.Position - POS).magnitude | |
1650 | end | |
1651 | end | |
1652 | end | |
1653 | end | |
1654 | return torso, dist | |
1655 | end | |
1656 | for i = 1, 40 do | |
1657 | if HUMAN.Health == 0 then | |
1658 | break | |
1659 | end | |
1660 | wait(0.3) | |
1661 | local target,dist= findNearestTorso(TORSO.Position) | |
1662 | if target then | |
1663 | HUMAN:MoveTo(target.Position) | |
1664 | if dist < 25 then | |
1665 | CreateSound(348663022, TORSO, 10, 1, true) | |
1666 | wait(2) | |
1667 | --local ANIM = HUMAN:LoadAnimation(ATANIM) | |
1668 | --ANIM:Play() | |
1669 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false) | |
1670 | ApplyAoE(TORSO.Position,10,0,0,85,true) | |
1671 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 201858087, SoundPitch = 0.8, SoundVolume = 10}) | |
1672 | for i = 1, 5 do | |
1673 | WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-15,15)/7.5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1674 | end | |
1675 | break | |
1676 | end | |
1677 | end | |
1678 | end | |
1679 | MINION:remove() | |
1680 | end)) | |
1681 | end | |
1682 | elseif RANDOMEFFECT == 4 then | |
1683 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3)) | |
1684 | FIELD.Color = C3(0,0,0) | |
1685 | FIELD.CFrame = BASE.CFrame | |
1686 | MakeForm(FIELD,"Ball") | |
1687 | FIELD.CanCollide = true | |
1688 | for i = 1, 50 do | |
1689 | Swait() | |
1690 | FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01) | |
1691 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
1692 | end | |
1693 | wait(0.2) | |
1694 | local LOOP = CreateSound(487214658, FIELD, 0, 1, true) | |
1695 | coroutine.resume(coroutine.create(function() | |
1696 | local E = 0 | |
1697 | for i = 1, 75 do | |
1698 | E = E + 1 | |
1699 | Swait() | |
1700 | if E >= 35 then | |
1701 | E = 0 | |
1702 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6}) | |
1703 | end | |
1704 | LOOP.Volume = LOOP.Volume + 10/75 | |
1705 | LOOP.Parent = FIELD | |
1706 | local CHILDREN = workspace:GetDescendants() | |
1707 | for index, CHILD in pairs(CHILDREN) do | |
1708 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1709 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1710 | if HUM then | |
1711 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1712 | if TORSO then | |
1713 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
1714 | for _, c in pairs(CHILD:GetChildren()) do | |
1715 | if c:IsA("BasePart") then | |
1716 | local bv = Instance.new("BodyVelocity") | |
1717 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1718 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
1719 | bv.Parent = c | |
1720 | Debris:AddItem(bv,0.05) | |
1721 | end | |
1722 | end | |
1723 | HUM.Health = HUM.Health - 0.3 | |
1724 | end | |
1725 | end | |
1726 | end | |
1727 | end | |
1728 | end | |
1729 | FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5 | |
1730 | end | |
1731 | for i = 1, 180 do | |
1732 | E = E + 1 | |
1733 | Swait() | |
1734 | if E >= 35 then | |
1735 | E = 0 | |
1736 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6}) | |
1737 | end | |
1738 | LOOP.Parent = FIELD | |
1739 | local CHILDREN = workspace:GetDescendants() | |
1740 | for index, CHILD in pairs(CHILDREN) do | |
1741 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1742 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1743 | if HUM then | |
1744 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1745 | if TORSO then | |
1746 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
1747 | for _, c in pairs(CHILD:GetChildren()) do | |
1748 | if c:IsA("BasePart") then | |
1749 | local bv = Instance.new("BodyVelocity") | |
1750 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1751 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
1752 | bv.Parent = c | |
1753 | Debris:AddItem(bv,0.05) | |
1754 | end | |
1755 | end | |
1756 | HUM.Health = HUM.Health - 0.3 | |
1757 | end | |
1758 | end | |
1759 | end | |
1760 | end | |
1761 | end | |
1762 | end | |
1763 | ApplyAoE(FIELD.Position,40,15,20,375,true) | |
1764 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = FIELD.Size, Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 231917744, SoundPitch = 1, SoundVolume = 6}) | |
1765 | for i = 1, 5 do | |
1766 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIELD.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1767 | end | |
1768 | FIELD:remove() | |
1769 | end)) | |
1770 | elseif RANDOMEFFECT == 5 then | |
1771 | end | |
1772 | wait(0.5) | |
1773 | for i = 1, 25 do | |
1774 | Swait() | |
1775 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0)) | |
1776 | end | |
1777 | PANDORASBOX:remove() | |
1778 | RINGSPIN = false | |
1779 | end)) | |
1780 | ATTACK = false | |
1781 | Rooted = false | |
1782 | end | |
1783 | end | |
1784 | ||
1785 | function TimeStop () | |
1786 | local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
1787 | CHOICE = 6 | |
1788 | CreateSound(1193182658, Character, 5, 1, false) | |
1789 | chatfunc ("Za warudo...") | |
1790 | back = CreateSound(1841228386, Character, 9999, 1, false) | |
1791 | local killsky = Instance.new('Sky', game:GetService'Lighting') | |
1792 | killsky.SkyboxBk = "rbxassetid://1013852" | |
1793 | killsky.SkyboxDn = "rbxassetid://1013853" | |
1794 | killsky.SkyboxFt = "rbxassetid://1013850" | |
1795 | killsky.SkyboxLf = "rbxassetid://1013851" | |
1796 | killsky.SkyboxRt = "rbxassetid://1013849" | |
1797 | killsky.SkyboxUp = "rbxassetid://1013854" | |
1798 | killsky.StarCount = 0 | |
1799 | killsky.SunAngularSize = 0 | |
1800 | killsky.MoonAngularSize = 0 | |
1801 | killsky.MoonTextureId = "" | |
1802 | killsky.CelestialBodiesShown = false | |
1803 | game.Lighting.FogColor = Color3.new(1,1,0) | |
1804 | game.Lighting.FogEnd = 1400 | |
1805 | if HITFLOOR ~= nil then | |
1806 | ATTACK = false | |
1807 | Rooted = false | |
1808 | local RINGSPIN = true | |
1809 | local CONSTRUCTING = true | |
1810 | local RING = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Ring", VT(0,0,0)) | |
1811 | RING.Color = C3(0,0,0) | |
1812 | MakeForm(RING,"Cyl") | |
1813 | RING.CFrame = CF(HITPOS) | |
1814 | coroutine.resume(coroutine.create(function() | |
1815 | repeat | |
1816 | Swait() | |
1817 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1818 | until CONSTRUCTING == false | |
1819 | repeat | |
1820 | Swait() | |
1821 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1822 | until RINGSPIN == false | |
1823 | for i = 1, 25 do | |
1824 | Swait() | |
1825 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1826 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
1827 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
1828 | RING.Transparency = RING.Transparency + 1/25 | |
1829 | end | |
1830 | RING:remove() | |
1831 | end)) | |
1832 | for i = 1, 15 do | |
1833 | Swait() | |
1834 | RING.Size = RING.Size + VT(0,0,0) | |
1835 | RING.Transparency = RING.Transparency - 1/15 | |
1836 | end | |
1837 | end | |
1838 | local RANDOMEFFECT = MRANDOM(1) | |
1839 | local BASE = CreatePart(3, Character, "Neon", 0, 0, "New Yeller", "Black", VT(2,1.8,2)) | |
1840 | BASE.Color = C3(0,0,0) | |
1841 | BASE.Transparency = 1 | |
1842 | BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z)) | |
1843 | if RANDOMEFFECT == 1 then | |
1844 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3)) | |
1845 | FIELD.CFrame = BASE.CFrame | |
1846 | MakeForm(FIELD,"Ball") | |
1847 | for i = 1, 50 do | |
1848 | Swait() | |
1849 | FIELD.Size = VT(0,0,0) | |
1850 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
1851 | end | |
1852 | end | |
1853 | wait(0.2) | |
1854 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3)) | |
1855 | FIELD.CFrame = BASE.CFrame | |
1856 | local LOOP = CreateSound(1393698948, Character, 0, 1, true) | |
1857 | coroutine.resume(coroutine.create(function() | |
1858 | for i = 1, 75 do | |
1859 | Swait() | |
1860 | LOOP.Volume = LOOP.Volume + 10/75 | |
1861 | LOOP.Parent = FIELD | |
1862 | local CHILDREN = workspace:GetDescendants() | |
1863 | for index, CHILD in pairs(CHILDREN) do | |
1864 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1865 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1866 | if HUM then | |
1867 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1868 | if TORSO then | |
1869 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
1870 | HUM.Health = HUM.Health - 0 | |
1871 | TORSO.Velocity = VT(0,5,0) | |
1872 | HUM.PlatformStand = true | |
1873 | if TORSO.RotVelocity.Magnitude < 15 then | |
1874 | TORSO.Anchored = true | |
1875 | end | |
1876 | end | |
1877 | end | |
1878 | end | |
1879 | end | |
1880 | end | |
1881 | FIELD.Size = FIELD.Size + VT(90,90,90) | |
1882 | FIELD.Transparency = FIELD.Transparency + 0.8/75 | |
1883 | end | |
1884 | for i = 1, 500 do | |
1885 | Swait() | |
1886 | LOOP.Parent = FIELD | |
1887 | local CHILDREN = workspace:GetDescendants() | |
1888 | for index, CHILD in pairs(CHILDREN) do | |
1889 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1890 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1891 | if HUM then | |
1892 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1893 | if TORSO then | |
1894 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
1895 | TORSO.Velocity = VT(0,5,0) | |
1896 | HUM.Health = HUM.Health - 0 | |
1897 | HUM.PlatformStand = true | |
1898 | if TORSO.RotVelocity.Magnitude < 15 then | |
1899 | TORSO.Anchored = true | |
1900 | end | |
1901 | end | |
1902 | end | |
1903 | end | |
1904 | end | |
1905 | end | |
1906 | end | |
1907 | wait (20) | |
1908 | back:Remove() | |
1909 | CreateSound(1538466750, Character, 99999, 1, false) | |
1910 | chatfunc ("the time rusume") | |
1911 | killsky:Remove() | |
1912 | game.Lighting.FogEnd = 90000000 | |
1913 | wait (5) | |
1914 | CHOICE = MRANDOM (1,5) | |
1915 | for i = 1, 25 do | |
1916 | Swait() | |
1917 | LOOP.Volume = LOOP.Volume + 10/25 | |
1918 | LOOP.Parent = FIELD | |
1919 | local CHILDREN = workspace:GetDescendants() | |
1920 | for index, CHILD in pairs(CHILDREN) do | |
1921 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1922 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1923 | if HUM then | |
1924 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1925 | if TORSO then | |
1926 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then | |
1927 | TORSO.Velocity = VT(0,5,0) | |
1928 | HUM.Health = HUM.Health - 0 | |
1929 | HUM.PlatformStand = false | |
1930 | if TORSO.RotVelocity.Magnitude < 15 then | |
1931 | TORSO.Anchored = false | |
1932 | end | |
1933 | end | |
1934 | end | |
1935 | end | |
1936 | end | |
1937 | FIELD.Size = FIELD.Size - VT(3,3,3) | |
1938 | FIELD.Transparency = FIELD.Transparency + 0.2/25 | |
1939 | end | |
1940 | end | |
1941 | end)) | |
1942 | FIELD:Remove() | |
1943 | ATTACK = false | |
1944 | Rooted = false | |
1945 | end | |
1946 | ||
1947 | ||
1948 | function Taunt() | |
1949 | ATTACK = true | |
1950 | local LAUGH = nil | |
1951 | coroutine.resume(coroutine.create(function() | |
1952 | repeat | |
1953 | Swait() | |
1954 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1955 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1956 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(75), RAD(50), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1957 | 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) | |
1958 | 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) | |
1959 | 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) | |
1960 | until LAUGH ~= nil | |
1961 | repeat | |
1962 | Swait() | |
1963 | LAUGH.Parent = Head | |
1964 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 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) | |
1965 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1966 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(75), RAD(50), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1967 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1968 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 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) | |
1969 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 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) | |
1970 | until LAUGH.Playing == false | |
1971 | ATTACK = false | |
1972 | end)) | |
1973 | wait(0.1) | |
1974 | CHOICE = 6 | |
1975 | chatfunc("I HATE YOU...") | |
1976 | LAUGH = CreateSound(212000587, Character, 8099999, 1, false) | |
1977 | wait(1.5) | |
1978 | CHOICE = MRANDOM (1,5) | |
1979 | end | |
1980 | ||
1981 | --//=================================\\ | |
1982 | --|| ASSIGN THINGS TO KEYS | |
1983 | --\\=================================// | |
1984 | ||
1985 | function MouseDown(Mouse) | |
1986 | HOLD = true | |
1987 | if ATTACK == false then | |
1988 | end | |
1989 | end | |
1990 | ||
1991 | function MouseUp(Mouse) | |
1992 | HOLD = false | |
1993 | end | |
1994 | ||
1995 | function KeyDown(Key) | |
1996 | KEYHOLD = true | |
1997 | if Key == "z" and ATTACK == false then | |
1998 | MagicMissiles() | |
1999 | end | |
2000 | ||
2001 | if Key == "b" and ATTACK == false then | |
2002 | TimesUp() | |
2003 | end | |
2004 | ||
2005 | if Key == "c" and ATTACK == false then | |
2006 | ChainPunch() | |
2007 | end | |
2008 | ||
2009 | if Key == "v" and ATTACK == false then | |
2010 | WarpMeteor() | |
2011 | end | |
2012 | ||
2013 | if Key == "x" and ATTACK == false then | |
2014 | PandorasBox() | |
2015 | end | |
2016 | ||
2017 | if Key == "g" and ATTACK == false then | |
2018 | TimeStop() | |
2019 | end | |
2020 | ||
2021 | if Key == "t" and ATTACK == false then | |
2022 | Taunt() | |
2023 | elseif Key == "1" and ATTACK == false then | |
2024 | if CHOICE ~= 1 then | |
2025 | CHOICE = 1 | |
2026 | sick:Play() | |
2027 | chatfunc("original song") | |
2028 | end | |
2029 | elseif Key == "2" and ATTACK == false then | |
2030 | if CHOICE ~= 2 then | |
2031 | CHOICE = 2 | |
2032 | sick:Play() | |
2033 | chatfunc("no comments...") | |
2034 | end | |
2035 | elseif Key == "3" and ATTACK == false then | |
2036 | if CHOICE ~= 3 then | |
2037 | CHOICE = 3 | |
2038 | sick:Play() | |
2039 | chatfunc("Now the fight really begins...") | |
2040 | tecks2.Color = Color3.new (255,0,0) | |
2041 | end | |
2042 | elseif Key == "4" and ATTACK == false then | |
2043 | if CHOICE ~= 4 then | |
2044 | CHOICE = 4 | |
2045 | sick:Play() | |
2046 | chatfunc("Just let me relax a little") | |
2047 | end | |
2048 | elseif Key == "5" and ATTACK == false then | |
2049 | if CHOICE ~= 5 then | |
2050 | CHOICE = 5 | |
2051 | sick:Play() | |
2052 | chatfunc("Why not this sound, i like it") | |
2053 | end | |
2054 | elseif Key == "6" and ATTACK == false then | |
2055 | if CHOICE ~= 6 then | |
2056 | CHOICE = 6 | |
2057 | sick:Play() | |
2058 | chatfunc("music off") | |
2059 | end | |
2060 | end | |
2061 | end | |
2062 | ||
2063 | function KeyUp(Key) | |
2064 | KEYHOLD = false | |
2065 | end | |
2066 | ||
2067 | Mouse.Button1Down:connect(function(NEWKEY) | |
2068 | MouseDown(NEWKEY) | |
2069 | end) | |
2070 | Mouse.Button1Up:connect(function(NEWKEY) | |
2071 | MouseUp(NEWKEY) | |
2072 | end) | |
2073 | Mouse.KeyDown:connect(function(NEWKEY) | |
2074 | KeyDown(NEWKEY) | |
2075 | end) | |
2076 | Mouse.KeyUp:connect(function(NEWKEY) | |
2077 | KeyUp(NEWKEY) | |
2078 | end) | |
2079 | ||
2080 | --//=================================\\ | |
2081 | --\\=================================// | |
2082 | ||
2083 | ||
2084 | function unanchor() | |
2085 | if UNANCHOR == true then | |
2086 | RootPart.Anchored = false | |
2087 | end | |
2088 | g = Character:GetChildren() | |
2089 | for i = 1, #g do | |
2090 | if g[i].ClassName == "Part" and g[i] ~= RootPart then | |
2091 | g[i].Anchored = false | |
2092 | end | |
2093 | end | |
2094 | g = Weapon:GetChildren() | |
2095 | for i = 1, #g do | |
2096 | if g[i].ClassName == "Part" then | |
2097 | g[i].Anchored = false | |
2098 | end | |
2099 | end | |
2100 | end | |
2101 | ||
2102 | ||
2103 | --//=================================\\ | |
2104 | --|| WRAP THE WHOLE SCRIPT UP | |
2105 | --\\=================================// | |
2106 | ||
2107 | Humanoid.Changed:connect(function(Jump) | |
2108 | if Jump == "Jump" and (Disable_Jump == true) then | |
2109 | Humanoid.Jump = false | |
2110 | end | |
2111 | end) | |
2112 | ||
2113 | while true do | |
2114 | Swait() | |
2115 | refit() | |
2116 | script.Parent = WEAPONGUI | |
2117 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2118 | v:Stop(); | |
2119 | end | |
2120 | ANIMATE.Parent = nil | |
2121 | SINE = SINE + CHANGE*1.5 | |
2122 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2123 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2124 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
2125 | local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16) | |
2126 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2127 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0 * COS(SINE / (WALKSPEEDVALUE / 2)) * SIZE) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2128 | Neck.C1 = Clerp(Neck.C1, CF(0 * SIZE, -0.5 * SIZE, 0 * 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) | |
2129 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2130 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2131 | Neck.C1 = Clerp(Neck.C1, CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2132 | end | |
2133 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2134 | ANIM = "Jump" | |
2135 | if ATTACK == false then | |
2136 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2137 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2138 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2139 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2140 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
2141 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed) | |
2142 | end | |
2143 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2144 | ANIM = "Fall" | |
2145 | if ATTACK == false then | |
2146 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2147 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2148 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2149 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2150 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) | |
2151 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed) | |
2152 | end | |
2153 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2154 | ANIM = "Idle" | |
2155 | if ATTACK == false then | |
2156 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2157 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0.4*SIZE + ((0.1) - 0.1)) * ANGLES(RAD(-5 - 2.5 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
2158 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9*SIZE, 0.5*SIZE + 0.05*SIZE * SIN(SINE / 12), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2159 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.9*SIZE, 0.25*SIZE + 0.05*SIZE * SIN(SINE / 12), -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2160 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2161 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2162 | end | |
2163 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2164 | ANIM = "Walk" | |
2165 | if ATTACK == false then | |
2166 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2167 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2168 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2169 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2170 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE - 0.05*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2171 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.8*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2172 | end | |
2173 | end | |
2174 | unanchor() | |
2175 | Humanoid.MaxHealth = "inf" | |
2176 | Humanoid.Health = "inf" | |
2177 | if Rooted == false then | |
2178 | Disable_Jump = false | |
2179 | Humanoid.WalkSpeed = Speed | |
2180 | elseif Rooted == true then | |
2181 | Disable_Jump = true | |
2182 | Humanoid.WalkSpeed = 0 | |
2183 | end | |
2184 | for _, c in pairs(Character:GetChildren()) do | |
2185 | if c.ClassName == "Part" and c.Name ~= "Detail" then | |
2186 | c.Material = "Fabric" | |
2187 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2188 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
2189 | end | |
2190 | if c ~= Head then | |
2191 | c.Color = C3(0,0,0) | |
2192 | else | |
2193 | c.Color = C3(0,0,0) | |
2194 | end | |
2195 | if c == Head then | |
2196 | if c:FindFirstChild("face") then | |
2197 | c.face:remove() | |
2198 | end | |
2199 | end | |
2200 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
2201 | c:remove() | |
2202 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
2203 | c:remove() | |
2204 | end | |
2205 | end | |
2206 | sick.SoundId = "rbxassetid://"..bored[CHOICE] | |
2207 | sick.Looped = true | |
2208 | sick.Pitch = 1 | |
2209 | sick.Volume = 999999 | |
2210 | sick.Parent = Character | |
2211 | sick:Resume() | |
2212 | --sick.Playing = false | |
2213 | Humanoid.Name = "Master of Time = "..Player.Name | |
2214 | end | |
2215 | ||
2216 | --//=================================\\ | |
2217 | --\\=================================// | |
2218 | ||
2219 | ||
2220 | ||
2221 | ||
2222 | ||
2223 | --//====================================================\\-- | |
2224 | --|| END OF SCRIPT | |
2225 | --\\====================================================//-- |