SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {} | |
2 | do | |
3 | script.Parent = owner.Character | |
4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
5 | local function NewFakeEvent() | |
6 | local Bind = Instance.new("BindableEvent") | |
7 | local Fake;Fake = {Connections = {}, | |
8 | fakeEvent=true; | |
9 | Connect=function(self,Func) | |
10 | Bind.Event:connect(Func) | |
11 | self.Connections[Bind] = true | |
12 | return setmetatable({Connected = true},{ | |
13 | __index = function (self,Index) | |
14 | if Index:lower() == "disconnect" then | |
15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
16 | end | |
17 | return Fake[Index] | |
18 | end; | |
19 | __tostring = function() return "Connection" end; | |
20 | }) | |
21 | end} | |
22 | Fake.connect = Fake.Connect;return Fake; | |
23 | end | |
24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
29 | local function TriggerEvent(self,Event,...) | |
30 | local Trigger = Mouse[Event] | |
31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
33 | end | |
34 | end | |
35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
37 | if FiredBy.Name ~= owner.Name then return end | |
38 | if Input.MouseEvent then | |
39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
40 | else | |
41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
43 | for _,Action in pairs(ContextActionService.Actions) do | |
44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
45 | end | |
46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
48 | end | |
49 | end) | |
50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
51 | Event.Parent = NLS([[ | |
52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
53 | local Input = function(Input,gameProcessedEvent) | |
54 | if gameProcessedEvent then return end | |
55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
56 | end | |
57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
58 | local Hit,Target | |
59 | while wait(1/30) do | |
60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
62 | end | |
63 | end | |
64 | ]],owner.Character) | |
65 | end | |
66 | RealGame = game;game = setmetatable({},{ | |
67 | __index = function (self,Index) | |
68 | local Sandbox = function (Thing) | |
69 | if Thing:IsA("Player") then | |
70 | local RealPlayer = Thing | |
71 | return setmetatable({},{ | |
72 | __index = function (self,Index) | |
73 | local Type = type(RealPlayer[Index]) | |
74 | if Type == "function" then | |
75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
76 | return function (self)return InternalData["Mouse"] end | |
77 | end | |
78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
79 | end | |
80 | return RealPlayer[Index] | |
81 | end; | |
82 | __tostring = function(self) return RealPlayer.Name end | |
83 | }) | |
84 | end | |
85 | end | |
86 | if RealGame[Index] then | |
87 | local Type = type(RealGame[Index]) | |
88 | if Type == "function" then | |
89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
90 | return function (self,Service) | |
91 | local FakeServices = { | |
92 | ["players"] = function() | |
93 | return setmetatable({},{ | |
94 | __index = function (self2,Index2) | |
95 | local RealService = RealGame:GetService(Service) | |
96 | local Type2 = type(Index2) | |
97 | if Type2 == "function" then | |
98 | return function (self,...) return RealService[Index2](RealService,...)end | |
99 | else | |
100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
101 | return RealService[Index2] | |
102 | end | |
103 | end; | |
104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
105 | }) | |
106 | end; | |
107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
109 | ["runservice"] = function() | |
110 | return setmetatable({},{ | |
111 | __index = function(self2,Index2) | |
112 | local RealService = RealGame:GetService(Service) | |
113 | local Type2 = type(Index2) | |
114 | if Type2 == "function" then | |
115 | return function (self,...) return RealService[Index2](RealService,...) end | |
116 | else | |
117 | local RunServices = { | |
118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
120 | } | |
121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
122 | return RealService[Index2] | |
123 | end | |
124 | end | |
125 | }) | |
126 | end | |
127 | } | |
128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
129 | return RealGame:GetService(Service) | |
130 | end | |
131 | end | |
132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
133 | else | |
134 | if game:GetService(Index) then return game:GetService(Index) end | |
135 | return RealGame[Index] | |
136 | end | |
137 | end | |
138 | return nil | |
139 | end | |
140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob") | |
141 | ||
142 | script.Name = "Anti Dead Eye Made To Destroy Dead Eye Abusers" | |
143 | --//====================================================\\-- | |
144 | --|| CREATED BY SHACKLUSTER | |
145 | --\\====================================================//-- | |
146 | ||
147 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
148 | local NSound = nil | |
149 | coroutine.resume(coroutine.create(function() | |
150 | NSound = Instance.new("Sound", PARENT) | |
151 | NSound.Volume = VOLUME | |
152 | NSound.Pitch = PITCH | |
153 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
154 | swait() | |
155 | NSound:play() | |
156 | game:GetService("Debris"):AddItem(NSound, 10) | |
157 | end)) | |
158 | return NSound | |
159 | end | |
160 | ||
161 | --Very lazi from here to below except the animations but who cares /shrug | |
162 | function chatfunc(text) | |
163 | local chat = coroutine.wrap(function() | |
164 | if char:FindFirstChild("TalkingBillBoard")~= nil then | |
165 | char:FindFirstChild("TalkingBillBoard"):destroy() | |
166 | end | |
167 | local naeeym2 = Instance.new("BillboardGui",char) | |
168 | naeeym2.Size = UDim2.new(0,100,0,40) | |
169 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
170 | naeeym2.Adornee = char.Head | |
171 | naeeym2.Name = "TalkingBillBoard" | |
172 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
173 | tecks2.BackgroundTransparency = 1 | |
174 | tecks2.BorderSizePixel = 0 | |
175 | tecks2.Text = "" | |
176 | tecks2.Font = "Fantasy" | |
177 | tecks2.TextSize = 30 | |
178 | tecks2.TextStrokeTransparency = 0 | |
179 | tecks2.TextColor3 = Color3.new(255,0,0) | |
180 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
181 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
182 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
183 | tecks3.BackgroundTransparency = 1 | |
184 | tecks3.BorderSizePixel = 0 | |
185 | tecks3.Text = "" | |
186 | tecks3.Font = "Fantasy" | |
187 | tecks3.TextSize = 30 | |
188 | tecks3.TextStrokeTransparency = 0 | |
189 | tecks3.TextColor3 = Color3.new(255,0,0) | |
190 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
191 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
192 | coroutine.resume(coroutine.create(function() | |
193 | while tecks3 ~= nil do | |
194 | swait() | |
195 | tecks3.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
196 | tecks3.Rotation = math.random(-3,3) | |
197 | tecks3.TextColor3 = Color3.new(math.random(0, 255)/255,0,0) | |
198 | tecks3.TextStrokeColor3 = Color3.new(math.random(0, 255)/255,0,0) | |
199 | end | |
200 | end)) | |
201 | for i = 1,string.len(text),1 do | |
202 | tecks2.Text = string.sub(text,1,i) | |
203 | tecks3.Text = string.sub(text,1,i) | |
204 | wait(0.01) | |
205 | end | |
206 | wait(2) | |
207 | for i = 1, 50 do | |
208 | swait() | |
209 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-10,10),.05,math.random(-10,10)) | |
210 | tecks2.Rotation = tecks2.Rotation - 2 | |
211 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
212 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
213 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-10,10),.05,math.random(-10,10)) | |
214 | tecks3.Rotation = tecks2.Rotation + 2 | |
215 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
216 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
217 | end | |
218 | naeeym2:Destroy() | |
219 | end) | |
220 | chat() | |
221 | end | |
222 | function onChatted(msg) | |
223 | chatfunc(msg) | |
224 | end | |
225 | --plr.Chatted:connect(onChatted) | |
226 | ||
227 | GlowParticle = Instance.new("ParticleEmitter",ra) | |
228 | GlowParticle.LightEmission = 0 | |
229 | GlowParticle.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(0,0,0)) | |
230 | GlowParticle.Size = NumberSequence.new(0,0.6) | |
231 | GlowParticle.Rotation = NumberRange.new(0, 360) | |
232 | GlowParticle.Texture = "http://www.roblox.com/asset/?id=1523916715" | |
233 | GlowParticle.Transparency = NumberSequence.new(0,1) | |
234 | GlowParticle.LockedToPart = true | |
235 | GlowParticle.Lifetime = NumberRange.new(1) | |
236 | GlowParticle.Rate = 999 | |
237 | GlowParticle.Speed = NumberRange.new(0) | |
238 | GlowParticle.VelocitySpread = 500 | |
239 | ||
240 | function TargetSelect(person) | |
241 | local dd=coroutine.wrap(function() | |
242 | if targetted ~= person then | |
243 | targetted = person | |
244 | GlowParticle.Enabled = true | |
245 | end | |
246 | end) | |
247 | dd() | |
248 | end | |
249 | ||
250 | if targetted == nil then | |
251 | GlowParticle.Enabled = false | |
252 | end | |
253 | ||
254 | function chatfunc(text) | |
255 | local chat = coroutine.wrap(function() | |
256 | if char:FindFirstChild("TalkingBillBoard")~= nil then | |
257 | char:FindFirstChild("TalkingBillBoard"):destroy() | |
258 | end | |
259 | local naeeym2 = Instance.new("BillboardGui",char) | |
260 | naeeym2.Size = UDim2.new(0,100,0,40) | |
261 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
262 | naeeym2.Adornee = char.Head | |
263 | naeeym2.Name = "TalkingBillBoard" | |
264 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
265 | tecks2.BackgroundTransparency = 1 | |
266 | tecks2.BorderSizePixel = 0 | |
267 | tecks2.Text = "" | |
268 | tecks2.Font = "Fantasy" | |
269 | tecks2.TextSize = 30 | |
270 | tecks2.TextStrokeTransparency = 0 | |
271 | tecks2.TextColor3 = Color3.new(255,0,0) | |
272 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
273 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
274 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
275 | tecks3.BackgroundTransparency = 1 | |
276 | tecks3.BorderSizePixel = 0 | |
277 | tecks3.Text = "" | |
278 | tecks3.Font = "Fantasy" | |
279 | tecks3.TextSize = 30 | |
280 | tecks3.TextStrokeTransparency = 0 | |
281 | tecks3.TextColor3 = Color3.new(255,0,0) | |
282 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
283 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
284 | coroutine.resume(coroutine.create(function() | |
285 | while tecks3 ~= nil do | |
286 | swait() | |
287 | tecks3.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
288 | tecks3.Rotation = math.random(-3,3) | |
289 | tecks3.TextColor3 = Color3.new(math.random(0, 255)/255,0,0) | |
290 | tecks3.TextStrokeColor3 = Color3.new(math.random(0, 255)/255,0,0) | |
291 | end | |
292 | end)) | |
293 | for i = 1,string.len(text),1 do | |
294 | tecks2.Text = string.sub(text,1,i) | |
295 | tecks3.Text = string.sub(text,1,i) | |
296 | wait(0.01) | |
297 | end | |
298 | wait(2) | |
299 | for i = 1, 50 do | |
300 | swait() | |
301 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-10,10),.05,math.random(-10,10)) | |
302 | tecks2.Rotation = tecks2.Rotation - 2 | |
303 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
304 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
305 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-10,10),.05,math.random(-10,10)) | |
306 | tecks3.Rotation = tecks2.Rotation + 2 | |
307 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
308 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
309 | end | |
310 | naeeym2:Destroy() | |
311 | end) | |
312 | chat() | |
313 | end | |
314 | function onChatted(msg) | |
315 | chatfunc(msg) | |
316 | end | |
317 | ||
318 | -- | |
319 | local Player = game:GetService('Players').LocalPlayer | |
320 | repeat wait() until Player.Character | |
321 | local Character = Player.Character | |
322 | ||
323 | --All The Settings for Trails in this Script | |
324 | TrailSettings = { | |
325 | Lifetime = 0.7, | |
326 | Texture = 'rbxassetid://31270182', | |
327 | --Color1 is for UpperBody and Accessories, Color2 is for Lower Body | |
328 | Color1 = ColorSequence.new(BrickColor.new('Lime green').Color,BrickColor.new('Lime green').Color), | |
329 | Color2 = ColorSequence.new(BrickColor.new('Lime green').Color,BrickColor.new('Lime green').Color), | |
330 | AllBody = true, | |
331 | UpperBodyOnly = false, | |
332 | LowerBodyOnly = false, | |
333 | Accessories = false, | |
334 | Extras = true, | |
335 | R15 = false, --Change to true if you're using R15 | |
336 | R15Parts = { | |
337 | 'UpperTorso', | |
338 | 'LowerTorso', | |
339 | } | |
340 | } | |
341 | ||
342 | local Trail; --Making other Trails uses this in this Script | |
343 | ||
344 | --UpperBody Function | |
345 | UpperBody = function() | |
346 | if TrailSettings.R15 == false then | |
347 | A0 = Instance.new('Attachment',Character.Torso) | |
348 | A1 = Instance.new('Attachment',Character.Head) | |
349 | A2 = Instance.new('Attachment',Character['Right Arm']) | |
350 | A3 = Instance.new('Attachment',Character['Left Arm']) | |
351 | Trail = Instance.new('Trail',Character) | |
352 | Trail.Attachment0 = A0 | |
353 | Trail.Attachment1 = A1 | |
354 | Trail.Texture = TrailSettings.Texture | |
355 | Trail.Color = TrailSettings.Color1 | |
356 | Trail.Lifetime = TrailSettings.Lifetime | |
357 | local Trail2 = Trail:Clone() | |
358 | Trail2.Parent = Character | |
359 | Trail2.Attachment1 = A2 | |
360 | local Trail3 = Trail:Clone() | |
361 | Trail3.Parent = Character | |
362 | Trail3.Attachment1 = A3 | |
363 | local Trail6 = Trail:Clone() | |
364 | Trail6.Parent = Character | |
365 | Trail6.Attachment0 = A1 | |
366 | Trail6.Attachment1 = A2 | |
367 | local Trail7 = Trail:Clone() | |
368 | Trail7.Parent = Character | |
369 | Trail7.Attachment0 = A1 | |
370 | Trail7.Attachment1 = A3 | |
371 | else | |
372 | A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]]) | |
373 | A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]]) | |
374 | A1 = Instance.new('Attachment',Character.Head) | |
375 | A2 = Instance.new('Attachment',Character['RightUpperArm']) | |
376 | A2R = Instance.new('Attachment',Character['RightLowerArm']) | |
377 | A3 = Instance.new('Attachment',Character['LeftUpperArm']) | |
378 | A3R = Instance.new('Attachment',Character['LeftLowerArm']) | |
379 | Trail = Instance.new('Trail',Character) | |
380 | Trail.Attachment0 = A0 | |
381 | Trail.Attachment1 = A1 | |
382 | Trail.Texture = TrailSettings.Texture | |
383 | Trail.Color = TrailSettings.Color1 | |
384 | Trail.Lifetime = TrailSettings.Lifetime | |
385 | local Trail2 = Trail:Clone() | |
386 | Trail2.Parent = Character | |
387 | Trail2.Attachment1 = A2 | |
388 | local Trail3 = Trail:Clone() | |
389 | Trail3.Parent = Character | |
390 | Trail3.Attachment1 = A3 | |
391 | local Trail6 = Trail:Clone() | |
392 | Trail6.Parent = Character | |
393 | Trail6.Attachment0 = A1 | |
394 | Trail6.Attachment1 = A2 | |
395 | local Trail7 = Trail:Clone() | |
396 | Trail7.Parent = Character | |
397 | Trail7.Attachment0 = A1 | |
398 | Trail7.Attachment1 = A3 | |
399 | --R15 Trails | |
400 | local Trail1R = Trail:Clone() | |
401 | Trail1R.Parent = Character | |
402 | Trail1R.Attachment1 = A2R | |
403 | local Trail2R = Trail:Clone() | |
404 | Trail2R.Parent = Character | |
405 | Trail2R.Attachment1 = A3R | |
406 | local Trail6R = Trail:Clone() | |
407 | Trail6.Parent = Character | |
408 | Trail6.Attachment0 = A1 | |
409 | Trail6.Attachment1 = A2R | |
410 | local Trail7R = Trail:Clone() | |
411 | Trail7.Parent = Character | |
412 | Trail7.Attachment0 = A1 | |
413 | Trail7.Attachment1 = A3R | |
414 | end | |
415 | end | |
416 | ||
417 | --Lower Body Function | |
418 | LowerBody = function() | |
419 | if TrailSettings.R15 == false then | |
420 | A4 = Instance.new('Attachment',Character['Right Leg']) | |
421 | A5 = Instance.new('Attachment',Character['Left Leg']) | |
422 | local Trail4 = Trail:Clone() | |
423 | Trail4.Parent = Character | |
424 | Trail4.Attachment1 = A4 | |
425 | local Trail5 = Trail:Clone() | |
426 | Trail5.Parent = Character | |
427 | Trail5.Attachment1 = A5 | |
428 | local Trail8 = Trail:Clone() | |
429 | Trail8.Parent = Character | |
430 | Trail8.Attachment0 = A2 | |
431 | Trail8.Attachment1 = A4 | |
432 | Trail8.Color = TrailSettings.Color2 | |
433 | local Trail9 = Trail:Clone() | |
434 | Trail9.Parent = Character | |
435 | Trail9.Attachment0 = A3 | |
436 | Trail9.Attachment1 = A5 | |
437 | Trail9.Color = TrailSettings.Color2 | |
438 | local FT = Trail:Clone() | |
439 | FT.Parent = Character | |
440 | FT.Attachment0 = A4 | |
441 | FT.Attachment1 = A5 | |
442 | FT.Color = TrailSettings.Color2 | |
443 | else | |
444 | A4 = Instance.new('Attachment',Character['RightLowerLeg']) | |
445 | A4R = Instance.new('Attachment',Character['RightUpperLeg']) | |
446 | A5 = Instance.new('Attachment',Character['LeftLowerLeg']) | |
447 | A5R = Instance.new('Attachment',Character['LeftUpperLeg']) | |
448 | local Trail4 = Trail:Clone() | |
449 | Trail4.Parent = Character | |
450 | Trail4.Attachment1 = A4 | |
451 | local Trail5 = Trail:Clone() | |
452 | Trail5.Parent = Character | |
453 | Trail5.Attachment1 = A5 | |
454 | local Trail8 = Trail:Clone() | |
455 | Trail8.Parent = Character | |
456 | Trail8.Attachment0 = A2 | |
457 | Trail8.Attachment1 = A4 | |
458 | Trail8.Color = TrailSettings.Color2 | |
459 | local Trail9 = Trail:Clone() | |
460 | Trail9.Parent = Character | |
461 | Trail9.Attachment0 = A3 | |
462 | Trail9.Attachment1 = A5 | |
463 | Trail9.Color = TrailSettings.Color2 | |
464 | local FT = Trail:Clone() | |
465 | FT.Parent = Character | |
466 | FT.Attachment0 = A4 | |
467 | FT.Attachment1 = A5 | |
468 | FT.Color = TrailSettings.Color2 | |
469 | --R15 Trails | |
470 | local Trail3R = Trail:Clone() | |
471 | Trail3R.Parent = Character | |
472 | Trail3R.Attachment1 = A4R | |
473 | local Trail4R = Trail:Clone() | |
474 | Trail4R.Parent = Character | |
475 | Trail4R.Attachment1 = A5R | |
476 | local Trail8 = Trail:Clone() | |
477 | Trail8.Parent = Character | |
478 | Trail8.Attachment0 = A2R | |
479 | Trail8.Attachment1 = A4R | |
480 | Trail8.Color = TrailSettings.Color2 | |
481 | local Trail9 = Trail:Clone() | |
482 | Trail9.Parent = Character | |
483 | Trail9.Attachment0 = A3R | |
484 | Trail9.Attachment1 = A5R | |
485 | Trail9.Color = TrailSettings.Color2 | |
486 | local FT2R = Trail:Clone() | |
487 | FT2R.Parent = Character | |
488 | FT2R.Attachment0 = A4R | |
489 | FT2R.Attachment1 = A5R | |
490 | FT2R.Color = TrailSettings.Color2 | |
491 | end | |
492 | end | |
493 | ||
494 | --All Body Function calling Both Functions | |
495 | AllBody = function() | |
496 | UpperBody() | |
497 | LowerBody() | |
498 | end | |
499 | ||
500 | --Checking to make sure that Only some Variables are Selected else do All Body | |
501 | if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
502 | TrailSettings.UpperBodyOnly = false | |
503 | TrailSettings.LowerBodyOnly = false | |
504 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then | |
505 | TrailSettings.UpperBodyOnly = false | |
506 | TrailSettings.LowerBodyOnly = false | |
507 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then | |
508 | TrailSettings.UpperBodyOnly = false | |
509 | TrailSettings.LowerBodyOnly = false | |
510 | elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
511 | TrailSettings.AllBody = true | |
512 | TrailSettings.UpperBodyOnly = false | |
513 | TrailSettings.LowerBodyOnly = false | |
514 | end | |
515 | ||
516 | --Call Trail Functions | |
517 | if TrailSettings.UpperBodyOnly == true then | |
518 | UpperBody() | |
519 | print('Called Upper Body Trail') | |
520 | elseif TrailSettings.LowerBodyOnly == true then | |
521 | LowerBody() | |
522 | print('Called Lower Body Trail') | |
523 | elseif TrailSettings.AllBody == true then | |
524 | AllBody() | |
525 | print('Called Full Body Trail') | |
526 | end | |
527 | ||
528 | --Trails for Accessories | |
529 | if TrailSettings.Accessories == true then | |
530 | for Index,Item in pairs(Character:GetChildren()) do | |
531 | if Item:IsA'Accessory' then | |
532 | local AA = Instance.new('Attachment',Item.Handle) | |
533 | local ATrail = Trail:Clone() | |
534 | ATrail.Parent = Character | |
535 | ATrail.Attachment1 = AA | |
536 | end | |
537 | end | |
538 | end | |
539 | ||
540 | --Extras | |
541 | if TrailSettings.Extras == true then | |
542 | --Making an Invisible Platform Part | |
543 | local a = Instance.new('Part',Character) | |
544 | a.CanCollide = false | |
545 | a.Size = Vector3.new(2,.2,2) | |
546 | a.Transparency = 1 | |
547 | ||
548 | --Constantly putting it under your feet | |
549 | if TrailSettings.R15 == false then | |
550 | spawn(function() | |
551 | game:GetService('RunService').RenderStepped:connect(function() | |
552 | a.CFrame = Character.Torso.CFrame * CFrame.new(0,-3,0) | |
553 | end) | |
554 | end) | |
555 | else | |
556 | spawn(function() | |
557 | game:GetService('RunService').RenderStepped:connect(function() | |
558 | a.CFrame = Character[TrailSettings.R15Parts[2]].CFrame * CFrame.new(0,-2,0) | |
559 | end) | |
560 | end) | |
561 | end | |
562 | ||
563 | --Make a Trail from both feet to the Platform | |
564 | spawn(function() | |
565 | repeat wait() until Trail | |
566 | local AB = Instance.new('Attachment',a) | |
567 | local ABT = Trail:Clone() | |
568 | ABT.Parent = Character | |
569 | ABT.Attachment0 = A4 | |
570 | ABT.Attachment1 = AB | |
571 | ABT.Color = TrailSettings.Color2 | |
572 | local ABT2 = Trail:Clone() | |
573 | ABT2.Parent = Character | |
574 | ABT2.Attachment0 = A5 | |
575 | ABT2.Attachment1 = AB | |
576 | ABT2.Color = TrailSettings.Color2 | |
577 | end) | |
578 | end | |
579 | -- | |
580 | ||
581 | ||
582 | Player = game:GetService("Players").LocalPlayer | |
583 | PlayerGui = Player.PlayerGui | |
584 | Cam = workspace.CurrentCamera | |
585 | Backpack = Player.Backpack | |
586 | repeat wait() until Player.Character | |
587 | Character = Player.Character | |
588 | repeat wait() until Player.Character:FindFirstChildOfClass("Humanoid") | |
589 | Humanoid = Character:FindFirstChildOfClass("Humanoid") | |
590 | Mouse = Player:GetMouse() | |
591 | RootPart = Character["HumanoidRootPart"] | |
592 | Torso = Character["Torso"] | |
593 | Head = Character["Head"] | |
594 | RightArm = Character["Right Arm"] | |
595 | LeftArm = Character["Left Arm"] | |
596 | RightLeg = Character["Right Leg"] | |
597 | LeftLeg = Character["Left Leg"] | |
598 | RootJoint = RootPart["RootJoint"] | |
599 | Neck = Torso["Neck"] | |
600 | RightShoulder = Torso["Right Shoulder"] | |
601 | LeftShoulder = Torso["Left Shoulder"] | |
602 | RightHip = Torso["Right Hip"] | |
603 | LeftHip = Torso["Left Hip"] | |
604 | ||
605 | IT = Instance.new | |
606 | CF = CFrame.new | |
607 | VT = Vector3.new | |
608 | RAD = math.rad | |
609 | C3 = Color3.new | |
610 | UD2 = UDim2.new | |
611 | BRICKC = BrickColor.new | |
612 | ANGLES = CFrame.Angles | |
613 | EULER = CFrame.fromEulerAnglesXYZ | |
614 | COS = math.cos | |
615 | ACOS = math.acos | |
616 | SIN = math.sin | |
617 | ASIN = math.asin | |
618 | ABS = math.abs | |
619 | MRANDOM = math.random | |
620 | FLOOR = math.floor | |
621 | ||
622 | local naeeym2 = Instance.new("BillboardGui",Character) | |
623 | naeeym2.AlwaysOnTop = true | |
624 | naeeym2.Size = UDim2.new(7,35,3,15) | |
625 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
626 | naeeym2.MaxDistance = 75 | |
627 | naeeym2.Adornee = Character.Head | |
628 | naeeym2.Name = "Name2" | |
629 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
630 | tecks2.BackgroundTransparency = 1 | |
631 | tecks2.TextScaled = true | |
632 | tecks2.BorderSizePixel = 0 | |
633 | tecks2.Text = "" | |
634 | tecks2.Font = "ArialBold" | |
635 | tecks2.TextSize = 30 | |
636 | tecks2.TextStrokeTransparency = 0 | |
637 | tecks2.TextColor3 = Color3.fromRGB(0,1,0) | |
638 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
639 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
640 | tecks2.Parent = naeeym2 | |
641 | ||
642 | local naeeym3 = Instance.new("BillboardGui",Character) | |
643 | naeeym3.AlwaysOnTop = true | |
644 | naeeym3.Size = UDim2.new(7,35,3,15) | |
645 | naeeym3.StudsOffset = Vector3.new(2,3,0) | |
646 | naeeym3.MaxDistance = 75 | |
647 | naeeym3.Adornee = Character.Head | |
648 | naeeym3.Name = "Name3" | |
649 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
650 | tecks3.BackgroundTransparency = 1 | |
651 | tecks3.TextScaled = true | |
652 | tecks3.BorderSizePixel = 0 | |
653 | tecks3.Text = game.Players.LocalPlayer.Name | |
654 | tecks3.Font = "ArialBold" | |
655 | tecks3.TextSize = 30 | |
656 | tecks3.TextStrokeTransparency = 0 | |
657 | tecks3.TextColor3 = Color3.fromRGB(0,1,0) | |
658 | tecks3.TextStrokeColor3 = Color3.fromRGB(140, 140, 140) | |
659 | tecks3.Size = UDim2.new(0.5,0,0.2,0) | |
660 | tecks3.Parent = naeeym3 | |
661 | ||
662 | script:ClearAllChildren() | |
663 | wait(0.2) | |
664 | ||
665 | Player = game:GetService("Players").LocalPlayer | |
666 | PlayerGui = Player.PlayerGui | |
667 | Cam = workspace.CurrentCamera | |
668 | Backpack = Player.Backpack | |
669 | Character = Player.Character | |
670 | Humanoid = Character.Humanoid | |
671 | Mouse = Player:GetMouse() | |
672 | RootPart = Character["HumanoidRootPart"] | |
673 | Torso = Character["Torso"] | |
674 | Head = Character["Head"] | |
675 | RightArm = Character["Right Arm"] | |
676 | LeftArm = Character["Left Arm"] | |
677 | RightLeg = Character["Right Leg"] | |
678 | LeftLeg = Character["Left Leg"] | |
679 | RootJoint = RootPart["RootJoint"] | |
680 | Neck = Torso["Neck"] | |
681 | RightShoulder = Torso["Right Shoulder"] | |
682 | LeftShoulder = Torso["Left Shoulder"] | |
683 | RightHip = Torso["Right Hip"] | |
684 | LeftHip = Torso["Left Hip"] | |
685 | local TIME = 0 | |
686 | local sick = Instance.new("Sound",Torso) | |
687 | ||
688 | IT = Instance.new | |
689 | CF = CFrame.new | |
690 | VT = Vector3.new | |
691 | RAD = math.rad | |
692 | C3 = Color3.new | |
693 | UD2 = UDim2.new | |
694 | BRICKC = BrickColor.new | |
695 | ANGLES = CFrame.Angles | |
696 | EULER = CFrame.fromEulerAnglesXYZ | |
697 | COS = math.cos | |
698 | ACOS = math.acos | |
699 | SIN = math.sin | |
700 | ASIN = math.asin | |
701 | ABS = math.abs | |
702 | MRANDOM = math.random | |
703 | FLOOR = math.floor | |
704 | ||
705 | --//=================================\\ | |
706 | --|| USEFUL VALUES | |
707 | --\\=================================// | |
708 | ||
709 | Animation_Speed = 3 | |
710 | local FORCERESET = false | |
711 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
712 | local Speed = 16 | |
713 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
714 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
715 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
716 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
717 | local DAMAGEMULTIPLIER = 1 | |
718 | local ANIM = "Idle" | |
719 | local ATTACK = false | |
720 | local EQUIPPED = false | |
721 | local HOLD = false | |
722 | local COMBO = 1 | |
723 | local Rooted = false | |
724 | local SINE = 0 | |
725 | local KEYHOLD = false | |
726 | local CHANGE = 2 / Animation_Speed | |
727 | local WALKINGANIM = false | |
728 | local VALUE1 = false | |
729 | local VALUE2 = false | |
730 | local ROBLOXIDLEANIMATION = IT("Animation") | |
731 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
732 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
733 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
734 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
735 | WEAPONGUI.Name = "BanishV3Gui" | |
736 | local Weapon = IT("Model") | |
737 | Weapon.Name = "Adds" | |
738 | local Effects = IT("Folder", Weapon) | |
739 | Effects.Name = "Effects" | |
740 | local ANIMATOR = Humanoid.Animator | |
741 | local ANIMATE = Character:FindFirstChild("Animate") | |
742 | local UNANCHOR = true | |
743 | local TOBANISH = {} | |
744 | script.Parent = PlayerGui | |
745 | ||
746 | --//=================================\\ | |
747 | --\\=================================// | |
748 | ||
749 | ||
750 | --//=================================\\ | |
751 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
752 | --\\=================================// | |
753 | ||
754 | ArtificialHB = Instance.new("BindableEvent", script) | |
755 | ArtificialHB.Name = "ArtificialHB" | |
756 | ||
757 | script:WaitForChild("ArtificialHB") | |
758 | ||
759 | frame = Frame_Speed | |
760 | tf = 0 | |
761 | allowframeloss = false | |
762 | tossremainder = false | |
763 | lastframe = tick() | |
764 | script.ArtificialHB:Fire() | |
765 | ||
766 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
767 | tf = tf + s | |
768 | if tf >= frame then | |
769 | if allowframeloss then | |
770 | script.ArtificialHB:Fire() | |
771 | lastframe = tick() | |
772 | else | |
773 | for i = 1, math.floor(tf / frame) do | |
774 | script.ArtificialHB:Fire() | |
775 | end | |
776 | lastframe = tick() | |
777 | end | |
778 | if tossremainder then | |
779 | tf = 0 | |
780 | else | |
781 | tf = tf - frame * math.floor(tf / frame) | |
782 | end | |
783 | end | |
784 | end) | |
785 | ||
786 | --//=================================\\ | |
787 | --\\=================================// | |
788 | ||
789 | --//=================================\\ | |
790 | --|| SOME FUNCTIONS | |
791 | --\\=================================// | |
792 | ||
793 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
794 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
795 | end | |
796 | ||
797 | function PositiveAngle(NUMBER) | |
798 | if NUMBER >= 0 then | |
799 | NUMBER = 0 | |
800 | end | |
801 | return NUMBER | |
802 | end | |
803 | ||
804 | function NegativeAngle(NUMBER) | |
805 | if NUMBER <= 0 then | |
806 | NUMBER = 0 | |
807 | end | |
808 | return NUMBER | |
809 | end | |
810 | ||
811 | function Swait(NUMBER) | |
812 | if NUMBER == 0 or NUMBER == nil then | |
813 | ArtificialHB.Event:wait() | |
814 | else | |
815 | for i = 1, NUMBER do | |
816 | ArtificialHB.Event:wait() | |
817 | end | |
818 | end | |
819 | end | |
820 | ||
821 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
822 | local NEWMESH = IT(MESH) | |
823 | if MESH == "SpecialMesh" then | |
824 | NEWMESH.MeshType = MESHTYPE | |
825 | if MESHID ~= "nil" and MESHID ~= "" then | |
826 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
827 | end | |
828 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
829 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
830 | end | |
831 | end | |
832 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
833 | NEWMESH.Scale = SCALE | |
834 | NEWMESH.Parent = PARENT | |
835 | return NEWMESH | |
836 | end | |
837 | ||
838 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
839 | local NEWPART = IT("Part") | |
840 | NEWPART.formFactor = FORMFACTOR | |
841 | NEWPART.Reflectance = REFLECTANCE | |
842 | NEWPART.Transparency = TRANSPARENCY | |
843 | NEWPART.CanCollide = false | |
844 | NEWPART.Locked = true | |
845 | NEWPART.Anchored = true | |
846 | if ANCHOR == false then | |
847 | NEWPART.Anchored = false | |
848 | end | |
849 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
850 | NEWPART.Name = NAME | |
851 | NEWPART.Size = SIZE | |
852 | NEWPART.Position = Torso.Position | |
853 | NEWPART.Material = MATERIAL | |
854 | NEWPART:BreakJoints() | |
855 | NEWPART.Parent = PARENT | |
856 | return NEWPART | |
857 | end | |
858 | ||
859 | local function weldBetween(a, b) | |
860 | local weldd = Instance.new("ManualWeld") | |
861 | weldd.Part0 = a | |
862 | weldd.Part1 = b | |
863 | weldd.C0 = CFrame.new() | |
864 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
865 | weldd.Parent = a | |
866 | return weldd | |
867 | end | |
868 | ||
869 | ||
870 | function QuaternionFromCFrame(cf) | |
871 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
872 | local trace = m00 + m11 + m22 | |
873 | if trace > 0 then | |
874 | local s = math.sqrt(1 + trace) | |
875 | local recip = 0.5 / s | |
876 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
877 | else | |
878 | local i = 0 | |
879 | if m11 > m00 then | |
880 | i = 1 | |
881 | end | |
882 | if m22 > (i == 0 and m00 or m11) then | |
883 | i = 2 | |
884 | end | |
885 | if i == 0 then | |
886 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
887 | local recip = 0.5 / s | |
888 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
889 | elseif i == 1 then | |
890 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
891 | local recip = 0.5 / s | |
892 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
893 | elseif i == 2 then | |
894 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
895 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
896 | end | |
897 | end | |
898 | end | |
899 | ||
900 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
901 | local xs, ys, zs = x + x, y + y, z + z | |
902 | local wx, wy, wz = w * xs, w * ys, w * zs | |
903 | local xx = x * xs | |
904 | local xy = x * ys | |
905 | local xz = x * zs | |
906 | local yy = y * ys | |
907 | local yz = y * zs | |
908 | local zz = z * zs | |
909 | 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)) | |
910 | end | |
911 | ||
912 | function QuaternionSlerp(a, b, t) | |
913 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
914 | local startInterp, finishInterp; | |
915 | if cosTheta >= 0.0001 then | |
916 | if (1 - cosTheta) > 0.0001 then | |
917 | local theta = ACOS(cosTheta) | |
918 | local invSinTheta = 1 / SIN(theta) | |
919 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
920 | finishInterp = SIN(t * theta) * invSinTheta | |
921 | else | |
922 | startInterp = 1 - t | |
923 | finishInterp = t | |
924 | end | |
925 | else | |
926 | if (1 + cosTheta) > 0.0001 then | |
927 | local theta = ACOS(-cosTheta) | |
928 | local invSinTheta = 1 / SIN(theta) | |
929 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
930 | finishInterp = SIN(t * theta) * invSinTheta | |
931 | else | |
932 | startInterp = t - 1 | |
933 | finishInterp = t | |
934 | end | |
935 | end | |
936 | 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 | |
937 | end | |
938 | ||
939 | function Clerp(a, b, t) | |
940 | local qa = {QuaternionFromCFrame(a)} | |
941 | local qb = {QuaternionFromCFrame(b)} | |
942 | local ax, ay, az = a.x, a.y, a.z | |
943 | local bx, by, bz = b.x, b.y, b.z | |
944 | local _t = 1 - t | |
945 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
946 | end | |
947 | ||
948 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
949 | local frame = IT("Frame") | |
950 | frame.BackgroundTransparency = TRANSPARENCY | |
951 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
952 | frame.Position = POSITION | |
953 | frame.Size = SIZE | |
954 | frame.BackgroundColor3 = COLOR | |
955 | frame.BorderColor3 = BORDERCOLOR | |
956 | frame.Name = NAME | |
957 | frame.Parent = PARENT | |
958 | return frame | |
959 | end | |
960 | ||
961 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
962 | local label = IT("TextLabel") | |
963 | label.BackgroundTransparency = 1 | |
964 | label.Size = UD2(1, 0, 1, 0) | |
965 | label.Position = UD2(0, 0, 0, 0) | |
966 | label.TextColor3 = TEXTCOLOR | |
967 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
968 | label.TextTransparency = TRANSPARENCY | |
969 | label.FontSize = TEXTFONTSIZE | |
970 | label.Font = TEXTFONT | |
971 | label.BorderSizePixel = BORDERSIZEPIXEL | |
972 | label.TextScaled = false | |
973 | label.Text = TEXT | |
974 | label.Name = NAME | |
975 | label.Parent = PARENT | |
976 | return label | |
977 | end | |
978 | ||
979 | function NoOutlines(PART) | |
980 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
981 | end | |
982 | ||
983 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
984 | local NEWWELD = IT(TYPE) | |
985 | NEWWELD.Part0 = PART0 | |
986 | NEWWELD.Part1 = PART1 | |
987 | NEWWELD.C0 = C0 | |
988 | NEWWELD.C1 = C1 | |
989 | NEWWELD.Parent = PARENT | |
990 | return NEWWELD | |
991 | end | |
992 | ||
993 | local S = IT("Sound") | |
994 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
995 | local NEWSOUND = nil | |
996 | coroutine.resume(coroutine.create(function() | |
997 | NEWSOUND = S:Clone() | |
998 | NEWSOUND.Parent = PARENT | |
999 | NEWSOUND.Volume = VOLUME | |
1000 | NEWSOUND.Pitch = PITCH | |
1001 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1002 | NEWSOUND:play() | |
1003 | if DOESLOOP == true then | |
1004 | NEWSOUND.Looped = true | |
1005 | else | |
1006 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
1007 | NEWSOUND:remove() | |
1008 | end | |
1009 | end)) | |
1010 | return NEWSOUND | |
1011 | end | |
1012 | ||
1013 | function CFrameFromTopBack(at, top, back) | |
1014 | local right = top:Cross(back) | |
1015 | 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) | |
1016 | end | |
1017 | ||
1018 | --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}) | |
1019 | function WACKYEFFECT(Table) | |
1020 | local TYPE = (Table.EffectType or "Sphere") | |
1021 | local SIZE = (Table.Size or VT(1,1,1)) | |
1022 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
1023 | local TRANSPARENCY = (Table.Transparency or 0) | |
1024 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1025 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1026 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1027 | local ROTATION1 = (Table.RotationX or 0) | |
1028 | local ROTATION2 = (Table.RotationY or 0) | |
1029 | local ROTATION3 = (Table.RotationZ or 0) | |
1030 | local MATERIAL = (Table.Material or "Neon") | |
1031 | local COLOR = (Table.Color or C3(1,1,1)) | |
1032 | local TIME = (Table.Time or 45) | |
1033 | local SOUNDID = (Table.SoundID or nil) | |
1034 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1035 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1036 | coroutine.resume(coroutine.create(function() | |
1037 | local PLAYSSOUND = false | |
1038 | local SOUND = nil | |
1039 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
1040 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1041 | PLAYSSOUND = true | |
1042 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1043 | end | |
1044 | EFFECT.Color = COLOR | |
1045 | local MSH = nil | |
1046 | if TYPE == "Sphere" then | |
1047 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1048 | elseif TYPE == "Block" then | |
1049 | MSH = IT("BlockMesh",EFFECT) | |
1050 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
1051 | elseif TYPE == "Wave" then | |
1052 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1053 | elseif TYPE == "Ring" then | |
1054 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1055 | elseif TYPE == "Slash" then | |
1056 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1057 | elseif TYPE == "Round Slash" then | |
1058 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1059 | elseif TYPE == "Swirl" then | |
1060 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1061 | elseif TYPE == "Skull" then | |
1062 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1063 | elseif TYPE == "Crystal" then | |
1064 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1065 | end | |
1066 | if MSH ~= nil then | |
1067 | local MOVESPEED = nil | |
1068 | if MOVEDIRECTION ~= nil then | |
1069 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1070 | end | |
1071 | local GROWTH = SIZE - ENDSIZE | |
1072 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1073 | if TYPE == "Block" then | |
1074 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1075 | else | |
1076 | EFFECT.CFrame = CFRAME | |
1077 | end | |
1078 | for LOOP = 1, TIME+1 do | |
1079 | Swait() | |
1080 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1081 | if TYPE == "Wave" then | |
1082 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1083 | end | |
1084 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1085 | if TYPE == "Block" then | |
1086 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1087 | else | |
1088 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1089 | end | |
1090 | if MOVEDIRECTION ~= nil then | |
1091 | local ORI = EFFECT.Orientation | |
1092 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1093 | EFFECT.Orientation = ORI | |
1094 | end | |
1095 | end | |
1096 | if PLAYSSOUND == false then | |
1097 | EFFECT:remove() | |
1098 | else | |
1099 | SOUND.Stopped:Connect(function() | |
1100 | EFFECT:remove() | |
1101 | end) | |
1102 | end | |
1103 | else | |
1104 | if PLAYSSOUND == false then | |
1105 | EFFECT:remove() | |
1106 | else | |
1107 | repeat Swait() until SOUND.Playing == false | |
1108 | EFFECT:remove() | |
1109 | end | |
1110 | end | |
1111 | end)) | |
1112 | end | |
1113 | ||
1114 | function MakeForm(PART,TYPE) | |
1115 | if TYPE == "Cyl" then | |
1116 | local MSH = IT("CylinderMesh",PART) | |
1117 | elseif TYPE == "Ball" then | |
1118 | local MSH = IT("SpecialMesh",PART) | |
1119 | MSH.MeshType = "Sphere" | |
1120 | elseif TYPE == "Wedge" then | |
1121 | local MSH = IT("SpecialMesh",PART) | |
1122 | - | textfag.Text = "ANTI-DEAD EYE" |
1122 | + | |
1123 | end | |
1124 | end | |
1125 | ||
1126 | function SpawnTrail(FROM,TO,BIG) | |
1127 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Lime green", "Trail", VT(0,0,0)) | |
1128 | MakeForm(TRAIL,"Cyl") | |
1129 | local DIST = (FROM - TO).Magnitude | |
1130 | if BIG == true then | |
1131 | TRAIL.Size = VT(10,DIST,10) | |
1132 | else | |
1133 | TRAIL.Size = VT(10,DIST,10) | |
1134 | end | |
1135 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
1136 | coroutine.resume(coroutine.create(function() | |
1137 | for i = 1, 5 do | |
1138 | Swait() | |
1139 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
1140 | end | |
1141 | TRAIL:remove() | |
1142 | end)) | |
1143 | end | |
1144 | ||
1145 | Debris = game:GetService("Debris") | |
1146 | ||
1147 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
1148 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
1149 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
1150 | end | |
1151 | ||
1152 | function turnto(position) | |
1153 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
1154 | end | |
1155 | local asd = Instance.new("ParticleEmitter") | |
1156 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) | |
1157 | asd.LightEmission = .1 | |
1158 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
1159 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)}) | |
1160 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1161 | asd.Transparency = bbb | |
1162 | asd.Size = aaa | |
1163 | asd.ZOffset = .9 | |
1164 | asd.Acceleration = Vector3.new(0, -15, 0) | |
1165 | asd.LockedToPart = false | |
1166 | asd.EmissionDirection = "Back" | |
1167 | asd.Lifetime = NumberRange.new(1, 2) | |
1168 | asd.Rotation = NumberRange.new(-100, 100) | |
1169 | asd.RotSpeed = NumberRange.new(-100, 100) | |
1170 | asd.Speed = NumberRange.new(10) | |
1171 | asd.Enabled = false | |
1172 | asd.VelocitySpread = 999 | |
1173 | ||
1174 | function getbloody(victim,amount) | |
1175 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
1176 | PART.CFrame = victim.CFrame | |
1177 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
1178 | Debris:AddItem(PART,5) | |
1179 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1180 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1181 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1182 | local prtcl = asd:Clone() | |
1183 | prtcl.Parent = PART | |
1184 | prtcl:Emit(amount*10) | |
1185 | end | |
1186 | ||
1187 | local Particle = IT("ParticleEmitter",nil) | |
1188 | Particle.Enabled = false | |
1189 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
1190 | Particle.LightEmission = 0.5 | |
1191 | Particle.Rate = 150 | |
1192 | Particle.ZOffset = 1 | |
1193 | Particle.Rotation = NumberRange.new(-180, 180) | |
1194 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
1195 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
1196 | Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0)) | |
1197 | ||
1198 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
1199 | function ParticleEmitter(Table) | |
1200 | local PRTCL = Particle:Clone() | |
1201 | local Speed = Table.Speed or 5 | |
1202 | local Drag = Table.Drag or 0 | |
1203 | local Size1 = Table.Size1 or 1 | |
1204 | local Size2 = Table.Size2 or 5 | |
1205 | local Lifetime1 = Table.Lifetime1 or 1 | |
1206 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
1207 | local Parent = Table.Parent or Torso | |
1208 | local Emit = Table.Emit or 100 | |
1209 | local Offset = Table.Offset or 360 | |
1210 | local Acel = Table.Acel or VT(0,0,0) | |
1211 | local Enabled = Table.Enabled or false | |
1212 | PRTCL.Parent = Parent | |
1213 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
1214 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1215 | PRTCL.Speed = NumberRange.new(Speed) | |
1216 | PRTCL.VelocitySpread = Offset | |
1217 | PRTCL.Drag = Drag | |
1218 | PRTCL.Acceleration = Acel | |
1219 | if Enabled == false then | |
1220 | PRTCL:Emit(Emit) | |
1221 | Debris:AddItem(PRTCL,Lifetime2) | |
1222 | else | |
1223 | PRTCL.Enabled = true | |
1224 | end | |
1225 | return PRTCL | |
1226 | end | |
1227 | ||
1228 | ||
1229 | --//=================================\\ | |
1230 | --|| WEAPON CREATION | |
1231 | --\\=================================// | |
1232 | ||
1233 | local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head) | |
1234 | txtfag.Adornee = suckadick | |
1235 | txtfag.Name = "kys nigga" | |
1236 | txtfag.Size = UDim2.new(2, 0, 1.2, 0) | |
1237 | txtfag.StudsOffset = Vector3.new(-5, 3, 0) | |
1238 | local textfag = Instance.new("TextLabel", txtfag) | |
1239 | textfag.Size = UDim2.new(6, 0, 1, 0) | |
1240 | textfag.FontSize = "Size8" | |
1241 | textfag.TextScaled = true | |
1242 | textfag.TextTransparency = 0 | |
1243 | textfag.BackgroundTransparency = 1 | |
1244 | textfag.TextTransparency = 0 | |
1245 | textfag.TextStrokeTransparency = 0 | |
1246 | textfag.Font = "Cartoon" | |
1247 | textfag.TextStrokeColor3 = Color3.new(0, 1, 0) | |
1248 | v = Instance.new("Part") | |
1249 | v.Name = "ColorBrick" | |
1250 | v.Parent = part | |
1251 | v.FormFactor = "Symmetric" | |
1252 | v.Anchored = true | |
1253 | v.CanCollide = false | |
1254 | v.BottomSurface = "Smooth" | |
1255 | v.TopSurface = "Smooth" | |
1256 | v.Size = Vector3.new(10, 5, 3) | |
1257 | v.Transparency = 0.7 | |
1258 | v.BrickColor = game.Players.LocalPlayer.Character.Torso.BrickColor | |
1259 | v.Transparency = 1 | |
1260 | textfag.TextColor3 = v.BrickColor.Color | |
1261 | textfag.TextStrokeColor3 = Color3.new(0, 1, 0) | |
1262 | v.Shape = "Block" | |
1263 | textfag.Text = "Tame the Anti-Whatever" | |
1264 | wait(0.3) | |
1265 | ||
1266 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
1267 | MakeForm(LeftHole,"Cyl") | |
1268 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
1269 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Rellt red", "Eye", VT(0.6,0.1,1)/2,false) | |
1270 | MakeForm(Eye,"Ball") | |
1271 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
1272 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Eye", VT(0.6,0.1,1)/2,false) | |
1273 | MakeForm(Eye,"Ball") | |
1274 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
1275 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Black", "Eye", VT(0.1,1,1)/2,false) | |
1276 | MakeForm(Eye,"Ball") | |
1277 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
1278 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "White", "Eye", VT(0.1,1,1)/2,false) | |
1279 | MakeForm(Eye,"Ball") | |
1280 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
1281 | local A = IT("Attachment",Torso) | |
1282 | A.Position = VT(1,1.3,0) | |
1283 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
1284 | local B = IT("Attachment",Torso) | |
1285 | B.Position = VT(-1.3,-0.6,0) | |
1286 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
1287 | local ChainLink = IT("Beam",Torso) | |
1288 | ChainLink.Texture = "rbxassetid://73042633" | |
1289 | ChainLink.Color = ColorSequence.new(C3(0,1,0)) | |
1290 | ChainLink.TextureSpeed = 1 | |
1291 | ChainLink.FaceCamera = true | |
1292 | ChainLink.Width0 = 1 | |
1293 | ChainLink.Width1 = 1 | |
1294 | ChainLink.TextureLength = 3 | |
1295 | ChainLink.Attachment0 = A | |
1296 | ChainLink.Attachment1 = B | |
1297 | ChainLink.CurveSize0 = 1.6 | |
1298 | ChainLink.CurveSize1 = 1.6 | |
1299 | ChainLink.FaceCamera = true | |
1300 | ChainLink.Transparency = NumberSequence.new(0) | |
1301 | local ChainLink = IT("Beam",Torso) | |
1302 | ChainLink.Texture = "rbxassetid://73042633" | |
1303 | ChainLink.Color = ColorSequence.new(C3(0,1,0)) | |
1304 | ChainLink.TextureSpeed = 1 | |
1305 | ChainLink.FaceCamera = true | |
1306 | ChainLink.Width0 = 1 | |
1307 | ChainLink.Width1 = 1 | |
1308 | ChainLink.TextureLength = 3 | |
1309 | ChainLink.Attachment0 = B | |
1310 | ChainLink.Attachment1 = A | |
1311 | ChainLink.CurveSize0 = 1.6 | |
1312 | ChainLink.CurveSize1 = 1.6 | |
1313 | ChainLink.FaceCamera = true | |
1314 | ChainLink.Transparency = NumberSequence.new(0) | |
1315 | local A = IT("Attachment",Torso) | |
1316 | A.Position = VT(1.3,-0.85,0) | |
1317 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
1318 | local B = IT("Attachment",Torso) | |
1319 | B.Position = VT(-1,2,0) | |
1320 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
1321 | local ChainLink = IT("Beam",Torso) | |
1322 | ChainLink.Texture = "rbxassetid://73042633" | |
1323 | ChainLink.Color = ColorSequence.new(C3(0,1,0)) | |
1324 | ChainLink.TextureSpeed = 1 | |
1325 | ChainLink.FaceCamera = true | |
1326 | ChainLink.Width0 = 1 | |
1327 | ChainLink.Width1 = 1 | |
1328 | ChainLink.TextureLength = 3 | |
1329 | ChainLink.Attachment0 = A | |
1330 | ChainLink.Attachment1 = B | |
1331 | ChainLink.CurveSize0 = 1.3 | |
1332 | ChainLink.CurveSize1 = 1.3 | |
1333 | ChainLink.FaceCamera = true | |
1334 | ChainLink.Transparency = NumberSequence.new(0) | |
1335 | local ChainLink = IT("Beam",Torso) | |
1336 | ChainLink.Texture = "rbxassetid://73042633" | |
1337 | ChainLink.Color = ColorSequence.new(C3(0,1,0)) | |
1338 | ChainLink.TextureSpeed = 1 | |
1339 | ChainLink.FaceCamera = true | |
1340 | ChainLink.Width0 = 1 | |
1341 | ChainLink.Width1 = 1 | |
1342 | ChainLink.TextureLength = 3 | |
1343 | ChainLink.Attachment0 = B | |
1344 | ChainLink.Attachment1 = A | |
1345 | ChainLink.CurveSize0 = 1.3 | |
1346 | ChainLink.CurveSize1 = 1.3 | |
1347 | ChainLink.FaceCamera = true | |
1348 | ChainLink.Transparency = NumberSequence.new(0) | |
1349 | ||
1350 | local A = IT("Attachment",RightBarrel) | |
1351 | A.Position = VT(0,-2.5,0) | |
1352 | local B = IT("Attachment",RightBarrel) | |
1353 | B.Position = VT(0,2.5,0) | |
1354 | local Trail = IT("Trail",RightBarrel) | |
1355 | Trail.Attachment0 = A | |
1356 | Trail.Attachment1 = B | |
1357 | Trail.Lifetime = 0.2 | |
1358 | Trail.Color = ColorSequence.new(BRICKC"Lime green".Color) | |
1359 | Trail.Transparency = NumberSequence.new(0, 1) | |
1360 | Trail.Enabled = false | |
1361 | ||
1362 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightLeg, Emit = 100, Offset = 360, Enabled = true}) | |
1363 | PRT.LockedToPart = true | |
1364 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftLeg, Emit = 100, Offset = 360, Enabled = true}) | |
1365 | PRT.LockedToPart = true | |
1366 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = true}) | |
1367 | PRT.LockedToPart = true | |
1368 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightArm, Emit = 100, Offset = 360, Enabled = true}) | |
1369 | PRT.LockedToPart = true | |
1370 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftArm, Emit = 100, Offset = 360, Enabled = true}) | |
1371 | PRT.LockedToPart = true | |
1372 | for _, c in pairs(Character:GetDescendants()) do | |
1373 | if c and c.Parent then | |
1374 | if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then | |
1375 | local ACCESSORY = c.Parent | |
1376 | c.Parent = Character | |
1377 | if c then | |
1378 | if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then | |
1379 | weldBetween(Head,c) | |
1380 | else | |
1381 | weldBetween(Torso,c) | |
1382 | end | |
1383 | end | |
1384 | end | |
1385 | end | |
1386 | end | |
1387 | local BODY = {} | |
1388 | for _, c in pairs(Character:GetDescendants()) do | |
1389 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
1390 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
1391 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1392 | end | |
1393 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name}) | |
1394 | elseif c:IsA("JointInstance") then | |
1395 | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil}) | |
1396 | end | |
1397 | end | |
1398 | function refit() | |
1399 | Character.Parent = workspace | |
1400 | for e = 1, #BODY do | |
1401 | if BODY[e] ~= nil then | |
1402 | local STUFF = BODY[e] | |
1403 | local PART = STUFF[1] | |
1404 | local PARENT = STUFF[2] | |
1405 | local MATERIAL = STUFF[3] | |
1406 | local COLOR = STUFF[4] | |
1407 | local TRANSPARENCY = STUFF[5] | |
1408 | --local SIZE = STUFF[6] | |
1409 | local NAME = STUFF[7] | |
1410 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1411 | PART.Material = MATERIAL | |
1412 | PART.Transparency = TRANSPARENCY | |
1413 | PART.Name = NAME | |
1414 | end | |
1415 | if PART.Parent ~= PARENT then | |
1416 | Humanoid:remove() | |
1417 | PART.Parent = PARENT | |
1418 | Humanoid = IT("Humanoid",Character) | |
1419 | end | |
1420 | end | |
1421 | end | |
1422 | end | |
1423 | Humanoid.Died:connect(function() | |
1424 | wait(1) | |
1425 | Banish(Character) | |
1426 | end) | |
1427 | ||
1428 | --[[ | |
1429 | Thanks for using Build-To-Lua by jarredbcv. | |
1430 | ]]-- | |
1431 | ||
1432 | New = function(Object, Parent, Name, Data) | |
1433 | local Object = Instance.new(Object) | |
1434 | for Index, Value in pairs(Data or {}) do | |
1435 | Object[Index] = Value | |
1436 | end | |
1437 | Object.Parent = Parent | |
1438 | Object.Name = Name | |
1439 | return Object | |
1440 | end | |
1441 | ||
1442 | ||
1443 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-67.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),}) | |
1444 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, 0.487541199, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1445 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),}) | |
1446 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, -0.512458801, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1447 | ||
1448 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.140000015, 0.0500000007),CFrame = CFrame.new(-67.6787415, 3.12643075, 92.6921463, -9.31322575e-10, -1.86264515e-09, -0.999999285, 0.777135551, 0.629333496, 9.31322575e-10, 0.6293329, -0.777134895, 0),}) | |
1449 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.766067505, 0.138611317, 0.515716553, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1450 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.12999988, 1.12000012, 0.0500000007),CFrame = CFrame.new(-67.6951752, 3.43133378, 93.991272, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
1451 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.533157349, 0.443484068, 0.50994873, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1452 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.450000018, 0.590000272, 0.0500000007),CFrame = CFrame.new(-67.6951752, 2.60608268, 94.3512573, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
1453 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.893096924, -0.381786108, 0.509513855, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1454 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000013, 0.590000272, 0.0500000007),CFrame = CFrame.new(-66.6951752, 2.60608268, 94.2912598, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
1455 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.817497253, -0.388065577, -0.489402771, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1456 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.220000237, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787338, 2.57395577, 93.9222183, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
1457 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.448242188, -0.420258999, -0.49987793, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1458 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.07999992, 1.12000012, 0.0500000007),CFrame = CFrame.new(-66.6951752, 3.43133354, 93.9662704, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
1459 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.492546082, 0.437201023, -0.489517212, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1460 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.340000302, 0.0500000007),CFrame = CFrame.new(-66.6787415, 3.2281816, 93.1287689, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
1461 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(-0.345108032, 0.234031916, -0.491600037, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1462 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.0999999, 0.0500000007, 1.00999975),CFrame = CFrame.new(-67.1759109, 3.99574399, 93.9762726, 0, -0.0260759834, -0.999659359, 0, 0.999660075, -0.0260760002, 0.999999225, -2.91038305e-11, -9.31322575e-10),}) | |
1463 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, -0.0260760002, 0.999660015, 0, -0.999660015, -0.0260760002, 0),C1 = CFrame.new(0.510047913, 1.00462079, -0.0125579834, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
1464 | ||
1465 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.419999987, 0.870000064),CFrame = CFrame.new(-67.0815201, 2.81366396, 91.9528885, 0, 0, -1, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, 0),}) | |
1466 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.00936126709, -0.184385061, -0.0693511963, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1467 | ||
1468 | ||
1469 | ||
1470 | for i = 1, 35 do | |
1471 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false) | |
1472 | FACE.Color = C3(0,0,0) | |
1473 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
1474 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
1475 | end | |
1476 | ||
1477 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Relly red", "Eye", VT(0.6,0.1,1)/2,false) | |
1478 | MakeForm(Eye,"Ball") | |
1479 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
1480 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Eye", VT(0.6,0.1,1)/2,false) | |
1481 | MakeForm(Eye,"Ball") | |
1482 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
1483 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Black", "Eye", VT(0.1,1,1)/2,false) | |
1484 | MakeForm(Eye,"Ball") | |
1485 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
1486 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "White", "Eye", VT(0.1,1,1)/2,false) | |
1487 | MakeForm(Eye,"Ball") | |
1488 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
1489 | ||
1490 | local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Lime green", "BraceletPart", VT(1.01,0.3,1.01),false) | |
1491 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1492 | for i = 1, 3 do | |
1493 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Royal purple", "BraceletPart", VT(0.2,1.02,0.2),false) | |
1494 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0, 0, 0.6-0.3*i) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0)) | |
1495 | MakeForm(Part,"Cyl") | |
1496 | end | |
1497 | for i = 1, 3 do | |
1498 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Lime green", "BraceletPart", VT(0.2,1.02,0.2),false) | |
1499 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.6-0.3*i, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(90)), CF(0, 0, 0)) | |
1500 | MakeForm(Part,"Cyl") | |
1501 | end | |
1502 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Lime green", "BraceletPart", VT(0.51,0.6,0.25),false) | |
1503 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0)) | |
1504 | MakeForm(Part,"Wedge") | |
1505 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Lime green", "BraceletPart", VT(0.51,0.6,0.25),false) | |
1506 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0)) | |
1507 | MakeForm(Part,"Wedge") | |
1508 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Lime green", "BraceletPart", VT(0.52,0.5,0.25/2.3),false) | |
1509 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0)) | |
1510 | MakeForm(Part,"Wedge") | |
1511 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Lime green", "BraceletPart", VT(0.52,0.5,0.25/2.3),false) | |
1512 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0)) | |
1513 | MakeForm(Part,"Wedge") | |
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | ||
1519 | ||
1520 | ||
1521 | for _, c in pairs(Weapon:GetChildren()) do | |
1522 | if c.ClassName == "Part" then | |
1523 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1524 | local AURA = c:Clone() | |
1525 | AURA:BreakJoints() | |
1526 | AURA.Parent = c | |
1527 | AURA.CFrame = c.CFrame | |
1528 | AURA.Size = AURA.Size*1.001 | |
1529 | AURA.Transparency = 0.8 | |
1530 | AURA.BrickColor = BRICKC"Lime green" | |
1531 | AURA.Material = "Neon" | |
1532 | weldBetween(c,AURA) | |
1533 | end | |
1534 | end | |
1535 | ||
1536 | local SKILLTEXTCOLOR = BRICKC"Lime green".Color | |
1537 | local SKILLFONT = "Bodoni" | |
1538 | local SKILLTEXTSIZE = 7 | |
1539 | ||
1540 | Humanoid.DisplayDistanceType = "None" | |
1541 | local naeeym2 = IT("BillboardGui",Character) | |
1542 | naeeym2.AlwaysOnTop = true | |
1543 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1544 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1545 | naeeym2.MaxDistance = 75 | |
1546 | naeeym2.Adornee = Character.Head | |
1547 | naeeym2.Name = "Name" | |
1548 | local tecks2 = IT("TextLabel",naeeym2) | |
1549 | tecks2.BackgroundTransparency = 1 | |
1550 | tecks2.TextScaled = true | |
1551 | tecks2.BorderSizePixel = 0 | |
1552 | tecks2.Text = "" | |
1553 | tecks2.Font = "Fantasy" | |
1554 | tecks2.TextSize = 30 | |
1555 | tecks2.TextStrokeTransparency = 0 | |
1556 | tecks2.TextColor3 = C3(0,1,0) | |
1557 | tecks2.TextStrokeColor3 = C3(159/255, 111/255, 183/255) | |
1558 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1559 | tecks2.Parent = naeeym2 | |
1560 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
1561 | MakeForm(LeftHole,"Cyl") | |
1562 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
1563 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Relly red", "Eye", VT(0.6,0.1,1)/2,false) | |
1564 | MakeForm(Eye,"Ball") | |
1565 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
1566 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Eye", VT(0.6,0.1,1)/2,false) | |
1567 | MakeForm(Eye,"Ball") | |
1568 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
1569 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Black", "Eye", VT(0.1,1,1)/2,false) | |
1570 | MakeForm(Eye,"Ball") | |
1571 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
1572 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "White", "Eye", VT(0.1,1,1)/2,false) | |
1573 | MakeForm(Eye,"Ball") | |
1574 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
1575 | local A = IT("Attachment",Torso) | |
1576 | A.Position = VT(1,1.3,0) | |
1577 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
1578 | local B = IT("Attachment",Torso) | |
1579 | B.Position = VT(-1.3,-0.6,0) | |
1580 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
1581 | local ChainLink = IT("Beam",Torso) | |
1582 | ChainLink.Texture = "rbxassetid://73042633" | |
1583 | ChainLink.Color = ColorSequence.new(C3(0,1,0)) | |
1584 | ChainLink.TextureSpeed = 1 | |
1585 | ChainLink.FaceCamera = true | |
1586 | ChainLink.Width0 = 1 | |
1587 | ChainLink.Width1 = 1 | |
1588 | ChainLink.TextureLength = 3 | |
1589 | ChainLink.Attachment0 = A | |
1590 | ChainLink.Attachment1 = B | |
1591 | ChainLink.CurveSize0 = 1.6 | |
1592 | ChainLink.CurveSize1 = 1.6 | |
1593 | ChainLink.FaceCamera = true | |
1594 | ChainLink.Transparency = NumberSequence.new(0) | |
1595 | local ChainLink = IT("Beam",Torso) | |
1596 | ChainLink.Texture = "rbxassetid://73042633" | |
1597 | ChainLink.Color = ColorSequence.new(C3(0,1,0)) | |
1598 | ChainLink.TextureSpeed = 1 | |
1599 | ChainLink.FaceCamera = true | |
1600 | ChainLink.Width0 = 1 | |
1601 | ChainLink.Width1 = 1 | |
1602 | ChainLink.TextureLength = 3 | |
1603 | ChainLink.Attachment0 = B | |
1604 | ChainLink.Attachment1 = A | |
1605 | ChainLink.CurveSize0 = 1.6 | |
1606 | ChainLink.CurveSize1 = 1.6 | |
1607 | ChainLink.FaceCamera = true | |
1608 | ChainLink.Transparency = NumberSequence.new(0) | |
1609 | local A = IT("Attachment",Torso) | |
1610 | A.Position = VT(1.3,-0.85,0) | |
1611 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
1612 | local B = IT("Attachment",Torso) | |
1613 | B.Position = VT(-1,2,0) | |
1614 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
1615 | local ChainLink = IT("Beam",Torso) | |
1616 | ChainLink.Texture = "rbxassetid://73042633" | |
1617 | ChainLink.Color = ColorSequence.new(C3(0,1,0)) | |
1618 | ChainLink.TextureSpeed = 1 | |
1619 | ChainLink.FaceCamera = true | |
1620 | ChainLink.Width0 = 1 | |
1621 | ChainLink.Width1 = 1 | |
1622 | ChainLink.TextureLength = 3 | |
1623 | ChainLink.Attachment0 = A | |
1624 | ChainLink.Attachment1 = B | |
1625 | ChainLink.CurveSize0 = 1.3 | |
1626 | ChainLink.CurveSize1 = 1.3 | |
1627 | ChainLink.FaceCamera = true | |
1628 | ChainLink.Transparency = NumberSequence.new(0) | |
1629 | local ChainLink = IT("Beam",Torso) | |
1630 | ChainLink.Texture = "rbxassetid://73042633" | |
1631 | ChainLink.Color = ColorSequence.new(C3(0,1,0)) | |
1632 | ChainLink.TextureSpeed = 1 | |
1633 | ChainLink.FaceCamera = true | |
1634 | ChainLink.Width0 = 1 | |
1635 | ChainLink.Width1 = 1 | |
1636 | ChainLink.TextureLength = 3 | |
1637 | ChainLink.Attachment0 = B | |
1638 | ChainLink.Attachment1 = A | |
1639 | ChainLink.CurveSize0 = 1.3 | |
1640 | ChainLink.CurveSize1 = 1.3 | |
1641 | ChainLink.FaceCamera = true | |
1642 | ChainLink.Transparency = NumberSequence.new(0) | |
1643 | ||
1644 | local A = IT("Attachment",RightBarrel) | |
1645 | A.Position = VT(0,-2.5,0) | |
1646 | local B = IT("Attachment",RightBarrel) | |
1647 | B.Position = VT(0,2.5,0) | |
1648 | local Trail = IT("Trail",RightBarrel) | |
1649 | Trail.Attachment0 = A | |
1650 | Trail.Attachment1 = B | |
1651 | Trail.Lifetime = 0.2 | |
1652 | Trail.Color = ColorSequence.new(BRICKC"Lime green".Color) | |
1653 | Trail.Transparency = NumberSequence.new(0, 1) | |
1654 | Trail.Enabled = false | |
1655 | ||
1656 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightLeg, Emit = 100, Offset = 360, Enabled = true}) | |
1657 | PRT.LockedToPart = true | |
1658 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftLeg, Emit = 100, Offset = 360, Enabled = true}) | |
1659 | PRT.LockedToPart = true | |
1660 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = true}) | |
1661 | PRT.LockedToPart = true | |
1662 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightArm, Emit = 100, Offset = 360, Enabled = true}) | |
1663 | PRT.LockedToPart = true | |
1664 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftArm, Emit = 100, Offset = 360, Enabled = true}) | |
1665 | PRT.LockedToPart = true | |
1666 | for _, c in pairs(Character:GetDescendants()) do | |
1667 | if c and c.Parent then | |
1668 | if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then | |
1669 | local ACCESSORY = c.Parent | |
1670 | c.Parent = Character | |
1671 | if c then | |
1672 | if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then | |
1673 | weldBetween(Head,c) | |
1674 | else | |
1675 | weldBetween(Torso,c) | |
1676 | end | |
1677 | end | |
1678 | end | |
1679 | end | |
1680 | end | |
1681 | local BODY = {} | |
1682 | for _, c in pairs(Character:GetDescendants()) do | |
1683 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
1684 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
1685 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1686 | end | |
1687 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name}) | |
1688 | elseif c:IsA("JointInstance") then | |
1689 | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil}) | |
1690 | end | |
1691 | end | |
1692 | function refit() | |
1693 | Character.Parent = workspace | |
1694 | for e = 1, #BODY do | |
1695 | if BODY[e] ~= nil then | |
1696 | local STUFF = BODY[e] | |
1697 | local PART = STUFF[1] | |
1698 | local PARENT = STUFF[2] | |
1699 | local MATERIAL = STUFF[3] | |
1700 | local COLOR = STUFF[4] | |
1701 | local TRANSPARENCY = STUFF[5] | |
1702 | --local SIZE = STUFF[6] | |
1703 | local NAME = STUFF[7] | |
1704 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1705 | PART.Material = MATERIAL | |
1706 | PART.Transparency = TRANSPARENCY | |
1707 | PART.Name = NAME | |
1708 | end | |
1709 | if PART.Parent ~= PARENT then | |
1710 | Humanoid:remove() | |
1711 | PART.Parent = PARENT | |
1712 | Humanoid = IT("Humanoid",Character) | |
1713 | end | |
1714 | end | |
1715 | end | |
1716 | end | |
1717 | ||
1718 | ||
1719 | local Particle = IT("ParticleEmitter",nil) | |
1720 | Particle.Enabled = false | |
1721 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
1722 | Particle.LightEmission = 0.5 | |
1723 | Particle.Rate = 150 | |
1724 | Particle.ZOffset = 0.2 | |
1725 | Particle.Rotation = NumberRange.new(-180, 180) | |
1726 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
1727 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
1728 | Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0)) | |
1729 | ||
1730 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
1731 | function ParticleEmitter(Table) | |
1732 | local PRTCL = Particle:Clone() | |
1733 | local Speed = Table.Speed or 5 | |
1734 | local Drag = Table.Drag or 0 | |
1735 | local Size1 = Table.Size1 or 1 | |
1736 | local Size2 = Table.Size2 or 5 | |
1737 | local Lifetime1 = Table.Lifetime1 or 1 | |
1738 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
1739 | local Parent = Table.Parent or Torso | |
1740 | local Emit = Table.Emit or 100 | |
1741 | local Offset = Table.Offset or 360 | |
1742 | local Acel = Table.Acel or VT(0,0,0) | |
1743 | local Enabled = Table.Enabled or false | |
1744 | PRTCL.Parent = Parent | |
1745 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
1746 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1747 | PRTCL.Speed = NumberRange.new(Speed) | |
1748 | PRTCL.VelocitySpread = Offset | |
1749 | PRTCL.Drag = Drag | |
1750 | PRTCL.Acceleration = Acel | |
1751 | if Enabled == false then | |
1752 | PRTCL:Emit(Emit) | |
1753 | Debris:AddItem(PRTCL,Lifetime2) | |
1754 | else | |
1755 | PRTCL.Enabled = true | |
1756 | end | |
1757 | return PRTCL | |
1758 | end | |
1759 | ||
1760 | local Handle = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.2,1.2,0.2),false) | |
1761 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0)) | |
1762 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.2,0.8,0.2),false) | |
1763 | MakeForm(Part,"Wedge") | |
1764 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1765 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.3,0.5,0.6),false) | |
1766 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1767 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.4,0.4,0.4),false) | |
1768 | MakeForm(Part,"Cyl") | |
1769 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1770 | for i = 1, 8 do | |
1771 | local Piece = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Eye", VT(0,0.35,0.41),false) | |
1772 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1773 | end | |
1774 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.2,0.5,0.2),false) | |
1775 | MakeForm(Part,"Wedge") | |
1776 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1777 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Eye", VT(0.39,0.41,0.39),false) | |
1778 | MakeForm(Part,"Cyl") | |
1779 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1780 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.3,0.5,0.5),false) | |
1781 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1782 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.3,0.4,0.5),false) | |
1783 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1784 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.2,0,0.6),false) | |
1785 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3)) | |
1786 | local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.28,5,0.28),false) | |
1787 | MakeForm(RightBarrel,"Cyl") | |
1788 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, RightBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0)) | |
1789 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0,0.2,0.2),false) | |
1790 | MakeForm(Part,"Wedge") | |
1791 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1792 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Eye", VT(0.2,0,0.2),false) | |
1793 | MakeForm(RightHole,"Cyl") | |
1794 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, RightHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
1795 | local Handle = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.2,1.2,0.2),false) | |
1796 | local LeftArmGraps = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0)) | |
1797 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.2,0.8,0.2),false) | |
1798 | MakeForm(Part,"Wedge") | |
1799 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1800 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.3,0.5,0.6),false) | |
1801 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1802 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.4,0.4,0.4),false) | |
1803 | MakeForm(Part,"Cyl") | |
1804 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1805 | for i = 1, 8 do | |
1806 | local Piece = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Eye", VT(0,0.35,0.41),false) | |
1807 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1808 | end | |
1809 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.2,0.5,0.2),false) | |
1810 | MakeForm(Part,"Wedge") | |
1811 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1812 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Eye", VT(0.39,0.41,0.39),false) | |
1813 | MakeForm(Part,"Cyl") | |
1814 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1815 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.3,0.5,0.5),false) | |
1816 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1817 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.3,0.4,0.5),false) | |
1818 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1819 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.2,0,0.6),false) | |
1820 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3)) | |
1821 | local LeftBarrel = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0.28,5,0.28),false) | |
1822 | MakeForm(LeftBarrel,"Cyl") | |
1823 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, LeftBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0)) | |
1824 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Part", VT(0,0.2,0.2),false) | |
1825 | MakeForm(Part,"Wedge") | |
1826 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1827 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Lime green", "Eye", VT(0.2,0,0.2),false) | |
1828 | MakeForm(LeftHole,"Cyl") | |
1829 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
1830 | ||
1831 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1832 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1833 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1834 | MakeForm(Part,"Wedge") | |
1835 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1836 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1837 | MakeForm(Part,"Wedge") | |
1838 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1839 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1840 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1841 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1842 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1843 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
1844 | MakeForm(Part,"Cyl") | |
1845 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1846 | for i = 1, 8 do | |
1847 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1848 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1849 | end | |
1850 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1851 | MakeForm(Part,"Cyl") | |
1852 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1853 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1854 | MakeForm(Part,"Ball") | |
1855 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1856 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1857 | MakeForm(Part,"Wedge") | |
1858 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1859 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1860 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1861 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1862 | MakeForm(Part,"Cyl") | |
1863 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1864 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1865 | MakeForm(Part,"Cyl") | |
1866 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1867 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1868 | MakeForm(Part,"Cyl") | |
1869 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1870 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1871 | MakeForm(Part,"Wedge") | |
1872 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1873 | local LASTPART = Handle | |
1874 | for i = 1, 10 do | |
1875 | if LASTPART == Handle then | |
1876 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1877 | LASTPART = Part | |
1878 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1879 | else | |
1880 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1881 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1882 | LASTPART = Part | |
1883 | end | |
1884 | end | |
1885 | ||
1886 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
1887 | MakeForm(Barrel,"Cyl") | |
1888 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1889 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1890 | MakeForm(Part,"Cyl") | |
1891 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1892 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1893 | MakeForm(Part,"Wedge") | |
1894 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1895 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1896 | MakeForm(Hole,"Cyl") | |
1897 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1898 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1899 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1900 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1901 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1902 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1903 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1904 | coroutine.resume(coroutine.create(function() | |
1905 | while wait() do | |
1906 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1907 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1908 | end | |
1909 | end)) | |
1910 | ||
1911 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
1912 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
1913 | ||
1914 | for _, c in pairs(Weapon:GetDescendants()) do | |
1915 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1916 | c.Material = "Glass" | |
1917 | c.Color = C3(0,0,0) | |
1918 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1919 | c.Color = C3(0,1,0) | |
1920 | c.Material = "Neon" | |
1921 | end | |
1922 | end | |
1923 | ||
1924 | Weapon.Parent = Character | |
1925 | for _, c in pairs(Weapon:GetChildren()) do | |
1926 | if c.ClassName == "Part" then | |
1927 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1928 | end | |
1929 | end | |
1930 | ||
1931 | local SKILLTEXTCOLOR = C3(0,1,0) | |
1932 | local SKILLFONT = "Fantasy" | |
1933 | local SKILLTEXTSIZE = 6 | |
1934 | ||
1935 | ||
1936 | ||
1937 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1938 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1939 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1940 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1941 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1942 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
1943 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
1944 | ||
1945 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] SHOT!", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 2, 0, "Text 1") | |
1946 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[V] MORNING STAR!", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 2, 0, "Text 2") | |
1947 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] DEATH BOUND!", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3") | |
1948 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[C] WARP!", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4") | |
1949 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[Q] DASH!", SKILLTEXTCOLOR, SKILLTEXTSIZE+1, SKILLFONT, 0, 2, 0, "Text 5") | |
1950 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Y] AUTO AIM SHOT!", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6") | |
1951 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7") | |
1952 | ||
1953 | function printbye(Name) | |
1954 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
1955 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
1956 | end | |
1957 | ||
1958 | workspace.ChildAdded:connect(function(instance) | |
1959 | for BANISH = 1, #TOBANISH do | |
1960 | if TOBANISH[BANISH] ~= nil then | |
1961 | if instance.Name == TOBANISH[BANISH] then | |
1962 | coroutine.resume(coroutine.create(function() | |
1963 | printbye(instance.Name) | |
1964 | instance:ClearAllChildren() | |
1965 | Debris:AddItem(instance,0.0005) | |
1966 | end)) | |
1967 | end | |
1968 | end | |
1969 | end | |
1970 | end) | |
1971 | ||
1972 | --//=================================\\ | |
1973 | --|| DAMAGING | |
1974 | --\\=================================// | |
1975 | ||
1976 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1977 | if hit.Parent == nil then | |
1978 | return | |
1979 | end | |
1980 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1981 | for _, v in pairs(hit.Parent:children()) do | |
1982 | if v:IsA("Humanoid") then | |
1983 | h = v | |
1984 | end | |
1985 | end | |
1986 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
1987 | ||
1988 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
1989 | end | |
1990 | ||
1991 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
1992 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
1993 | if hit.Parent.DebounceHit.Value == true then | |
1994 | return | |
1995 | end | |
1996 | end | |
1997 | if insta == true then | |
1998 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
1999 | end | |
2000 | local c = Create("ObjectValue"){ | |
2001 | Name = "creator", | |
2002 | Value = game:service("Players").LocalPlayer, | |
2003 | Parent = h, | |
2004 | } | |
2005 | game:GetService("Debris"):AddItem(c, .5) | |
2006 | if HitSound ~= nil and HitPitch ~= nil then | |
2007 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
2008 | end | |
2009 | local Damage = math.random(minim, maxim) | |
2010 | local blocked = false | |
2011 | local block = hit.Parent:findFirstChild("Block") | |
2012 | if block ~= nil then | |
2013 | if block.className == "IntValue" then | |
2014 | if block.Value > 0 then | |
2015 | blocked = true | |
2016 | block.Value = block.Value - 1 | |
2017 | print(block.Value) | |
2018 | end | |
2019 | end | |
2020 | end | |
2021 | if blocked == false then | |
2022 | h.Health = h.Health - Damage | |
2023 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
2024 | else | |
2025 | h.Health = h.Health - (Damage / 2) | |
2026 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
2027 | end | |
2028 | if Type == "Knockdown" then | |
2029 | local hum = hit.Parent.Humanoid | |
2030 | hum.PlatformStand = true | |
2031 | coroutine.resume(coroutine.create(function(HHumanoid) | |
2032 | swait(1) | |
2033 | HHumanoid.PlatformStand = false | |
2034 | end), hum) | |
2035 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
2036 | local bodvol = Create("BodyVelocity"){ | |
2037 | velocity = angle * knockback, | |
2038 | P = 5000, | |
2039 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2040 | Parent = hit, | |
2041 | } | |
2042 | local rl = Create("BodyAngularVelocity"){ | |
2043 | P = 3000, | |
2044 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
2045 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
2046 | Parent = hit, | |
2047 | } | |
2048 | game:GetService("Debris"):AddItem(bodvol, .5) | |
2049 | game:GetService("Debris"):AddItem(rl, .5) | |
2050 | elseif Type == "Normal" then | |
2051 | local vp = Create("BodyVelocity"){ | |
2052 | P = 500, | |
2053 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
2054 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
2055 | } | |
2056 | if knockback > 0 then | |
2057 | vp.Parent = hit.Parent.Torso | |
2058 | end | |
2059 | game:GetService("Debris"):AddItem(vp, .5) | |
2060 | elseif Type == "Up" then | |
2061 | local bodyVelocity = Create("BodyVelocity"){ | |
2062 | velocity = Vector3.new(0, 20, 0), | |
2063 | P = 5000, | |
2064 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2065 | Parent = hit, | |
2066 | } | |
2067 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
2068 | elseif Type == "DarkUp" then | |
2069 | coroutine.resume(coroutine.create(function() | |
2070 | for i = 0, 1, 0.1 do | |
2071 | swait() | |
2072 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
2073 | end | |
2074 | end)) | |
2075 | local bodyVelocity = Create("BodyVelocity"){ | |
2076 | velocity = Vector3.new(0, 20, 0), | |
2077 | P = 5000, | |
2078 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2079 | Parent = hit, | |
2080 | } | |
2081 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
2082 | elseif Type == "Snare" then | |
2083 | local bp = Create("BodyPosition"){ | |
2084 | P = 2000, | |
2085 | D = 100, | |
2086 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
2087 | position = hit.Parent.Torso.Position, | |
2088 | Parent = hit.Parent.Torso, | |
2089 | } | |
2090 | game:GetService("Debris"):AddItem(bp, 1) | |
2091 | elseif Type == "Freeze" then | |
2092 | local BodPos = Create("BodyPosition"){ | |
2093 | P = 50000, | |
2094 | D = 1000, | |
2095 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
2096 | position = hit.Parent.Torso.Position, | |
2097 | Parent = hit.Parent.Torso, | |
2098 | } | |
2099 | local BodGy = Create("BodyGyro") { | |
2100 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
2101 | P = 20e+003, | |
2102 | Parent = hit.Parent.Torso, | |
2103 | cframe = hit.Parent.Torso.CFrame, | |
2104 | } | |
2105 | hit.Parent.Torso.Anchored = true | |
2106 | coroutine.resume(coroutine.create(function(Part) | |
2107 | swait(1.5) | |
2108 | Part.Anchored = false | |
2109 | end), hit.Parent.Torso) | |
2110 | game:GetService("Debris"):AddItem(BodPos, 3) | |
2111 | game:GetService("Debris"):AddItem(BodGy, 3) | |
2112 | end | |
2113 | local debounce = Create("BoolValue"){ | |
2114 | Name = "DebounceHit", | |
2115 | Parent = hit.Parent, | |
2116 | Value = true, | |
2117 | } | |
2118 | game:GetService("Debris"):AddItem(debounce, Delay) | |
2119 | c = Create("ObjectValue"){ | |
2120 | Name = "creator", | |
2121 | Value = Player, | |
2122 | Parent = h, | |
2123 | } | |
2124 | game:GetService("Debris"):AddItem(c, .5) | |
2125 | end | |
2126 | end | |
2127 | ||
2128 | function Kill(Char) | |
2129 | local NewCharacter = IT("Model",Effects) | |
2130 | NewCharacter.Name = "Ow im ded ;-;" | |
2131 | for _, c in pairs(Char:GetDescendants()) do | |
2132 | if c:IsA("BasePart") and c.Transparency == 0 then | |
2133 | if c.Parent == Char then | |
2134 | getbloody(c,5) | |
2135 | end | |
2136 | c:BreakJoints() | |
2137 | c.Material = "Glass" | |
2138 | c.Color = C3(0,1,0) | |
2139 | c.CanCollide = true | |
2140 | c.Transparency = 0.3 | |
2141 | if c:FindFirstChildOfClass("SpecialMesh") then | |
2142 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
2143 | end | |
2144 | if c.Name == "Head" then | |
2145 | c:ClearAllChildren() | |
2146 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
2147 | end | |
2148 | if c.ClassName == "MeshPart" then | |
2149 | c.TextureID = "" | |
2150 | end | |
2151 | if c:FindFirstChildOfClass("BodyPosition") then | |
2152 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
2153 | end | |
2154 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2155 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
2156 | end | |
2157 | c.Parent = NewCharacter | |
2158 | c.Name = "DeadPart" | |
2159 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
2160 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
2161 | end | |
2162 | end | |
2163 | Char:remove() | |
2164 | Debris:AddItem(NewCharacter,5) | |
2165 | end | |
2166 | ||
2167 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
2168 | local CHILDREN = workspace:GetDescendants() | |
2169 | for index, CHILD in pairs(CHILDREN) do | |
2170 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2171 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2172 | if HUM then | |
2173 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2174 | if TORSO then | |
2175 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
2176 | if BRUTAL == true then | |
2177 | Kill(CHILD) | |
2178 | else | |
2179 | CHILD:BreakJoints() | |
2180 | end | |
2181 | end | |
2182 | end | |
2183 | end | |
2184 | end | |
2185 | end | |
2186 | end | |
2187 | ||
2188 | function BulletDetection(FROM,TO,BRUTAL) | |
2189 | local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character) | |
2190 | coroutine.resume(coroutine.create(function() | |
2191 | if AIMHIT ~= nil then | |
2192 | if AIMHIT.Parent ~= Character then | |
2193 | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
2194 | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then | |
2195 | if BRUTAL == true then | |
2196 | Kill(AIMHIT.Parent) | |
2197 | else | |
2198 | getbloody(AIMHIT,15) | |
2199 | Banish(AIMHIT.Parent) | |
2200 | if AIMHIT.Name == "Head" then | |
2201 | AIMHIT.Name = "HEADSHOT" | |
2202 | AIMHIT:remove() | |
2203 | end | |
2204 | end | |
2205 | else | |
2206 | if BRUTAL == true then | |
2207 | Kill(AIMHIT.Parent.Parent) | |
2208 | else | |
2209 | AIMHIT.Parent.Parent:BreakJoints() | |
2210 | end | |
2211 | end | |
2212 | end | |
2213 | end | |
2214 | end | |
2215 | end)) | |
2216 | SpawnTrail(FROM,AIMPOS) | |
2217 | return AIMHIT,AIMPOS,NORMAL | |
2218 | end | |
2219 | ||
2220 | function Banish(Foe) | |
2221 | if Foe then | |
2222 | coroutine.resume(coroutine.create(function() | |
2223 | --if game.Players:FindFirstChild(Foe.Name) then | |
2224 | table.insert(TOBANISH,Foe.Name) | |
2225 | printbye(Foe.Name) | |
2226 | --end | |
2227 | Foe.Archivable = true | |
2228 | local CLONE = Foe:Clone() | |
2229 | Foe:Destroy() | |
2230 | CLONE.Parent = Effects | |
2231 | CLONE:BreakJoints() | |
2232 | local MATERIALS = {"Glass","Neon"} | |
2233 | for _, c in pairs(CLONE:GetDescendants()) do | |
2234 | if c:IsA("BasePart") then | |
2235 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
2236 | CreateSound(340722848, c, 10, 1, false) | |
2237 | end | |
2238 | c.Anchored = true | |
2239 | c.Transparency = c.Transparency + 0.2 | |
2240 | c.Material = MATERIALS[MRANDOM(1,2)] | |
2241 | c.Color = C3(0,1,0) | |
2242 | if c.ClassName == "MeshPart" then | |
2243 | c.TextureID = "" | |
2244 | end | |
2245 | if c:FindFirstChildOfClass("SpecialMesh") then | |
2246 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
2247 | end | |
2248 | if c:FindFirstChildOfClass("Decal") then | |
2249 | c:FindFirstChildOfClass("Decal"):remove() | |
2250 | end | |
2251 | c.Name = "Banished" | |
2252 | c.CanCollide = false | |
2253 | else | |
2254 | c:remove() | |
2255 | end | |
2256 | end | |
2257 | local A = false | |
2258 | for i = 1, 35 do | |
2259 | if A == false then | |
2260 | A = true | |
2261 | elseif A == true then | |
2262 | A = false | |
2263 | end | |
2264 | for _, c in pairs(CLONE:GetDescendants()) do | |
2265 | if c:IsA("BasePart") then | |
2266 | c.Anchored = true | |
2267 | c.Material = MATERIALS[MRANDOM(1,2)] | |
2268 | c.Transparency = c.Transparency + 0.8/35 | |
2269 | if A == false then | |
2270 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
2271 | elseif A == true then | |
2272 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
2273 | end | |
2274 | end | |
2275 | end | |
2276 | Swait() | |
2277 | end | |
2278 | CLONE:remove() | |
2279 | end)) | |
2280 | end | |
2281 | end | |
2282 | ||
2283 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
2284 | local CHILDREN = workspace:GetDescendants() | |
2285 | for index, CHILD in pairs(CHILDREN) do | |
2286 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2287 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2288 | if HUM then | |
2289 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2290 | if TORSO then | |
2291 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
2292 | if ISBANISH == true then | |
2293 | Banish(CHILD) | |
2294 | else | |
2295 | if ISBANISH == "Gravity" then | |
2296 | HUM.PlatformStand = true | |
2297 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
2298 | local grav = Instance.new("BodyPosition",TORSO) | |
2299 | grav.D = 15 | |
2300 | grav.P = 20000 | |
2301 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2302 | grav.position = TORSO.Position | |
2303 | grav.Name = "V3BanishForce"..Player.Name | |
2304 | else | |
2305 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
2306 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
2307 | end | |
2308 | else | |
2309 | HUM.PlatformStand = false | |
2310 | end | |
2311 | end | |
2312 | elseif ISBANISH == "Gravity" then | |
2313 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
2314 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
2315 | HUM.PlatformStand = false | |
2316 | end | |
2317 | end | |
2318 | end | |
2319 | end | |
2320 | end | |
2321 | end | |
2322 | end | |
2323 | ||
2324 | --//=================================\\ | |
2325 | --|| ATTACK FUNCTIONS AND STUFF | |
2326 | --\\=================================// | |
2327 | ||
2328 | function Colorful_Death() | |
2329 | ATTACK = true | |
2330 | Rooted = false | |
2331 | for i=0, 0.05, 0.1 / Animation_Speed do | |
2332 | Swait() | |
2333 | turnto(Mouse.Hit.p) | |
2334 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2335 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2336 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2337 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2338 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2339 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2340 | end | |
2341 | repeat | |
2342 | for i=0, 0.05, 0.1 / Animation_Speed do | |
2343 | Swait() | |
2344 | turnto(Mouse.Hit.p) | |
2345 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2346 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2347 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2348 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2349 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2350 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2351 | end | |
2352 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
2353 | SpawnTrail(Hole.Position,POS) | |
2354 | if HIT ~= nil then | |
2355 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
2356 | Banish(HIT.Parent) | |
2357 | end | |
2358 | end | |
2359 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2360 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2361 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2362 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2363 | for i=0, 0.05, 0.1 / Animation_Speed do | |
2364 | Swait() | |
2365 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2366 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
2367 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2368 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2369 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2370 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2371 | end | |
2372 | until KEYHOLD == false | |
2373 | ATTACK = false | |
2374 | Rooted = false | |
2375 | end | |
2376 | ||
2377 | ||
2378 | function TakeOnMe() | |
2379 | Speed = 5 | |
2380 | local MEME = CreateSound(0, Effects, 2, 1, false) | |
2381 | ATTACK = true | |
2382 | Rooted = false | |
2383 | local DANCE = true | |
2384 | local KEY = Mouse.KeyDown:connect(function(NEWKEY) | |
2385 | if NEWKEY == "p" then | |
2386 | DANCE = false | |
2387 | end | |
2388 | end) | |
2389 | ||
2390 | --- PLAYSONG = false | |
2391 | ||
2392 | while true do | |
2393 | ||
2394 | for i = 1, 15 do | |
2395 | Swait() | |
2396 | MEME.Parent = Effects | |
2397 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2398 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2399 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2400 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2401 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2402 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2403 | end | |
2404 | if DANCE == false then | |
2405 | break | |
2406 | end | |
2407 | for i = 1, 15 do | |
2408 | Swait() | |
2409 | MEME.Parent = Effects | |
2410 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2411 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2412 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2413 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2414 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2415 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2416 | end | |
2417 | end | |
2418 | ||
2419 | KEY:Disconnect() | |
2420 | MEME:remove() | |
2421 | Speed = 25 | |
2422 | ATTACK = false | |
2423 | Rooted = false | |
2424 | end | |
2425 | ||
2426 | function RTaunt() | |
2427 | ATTACK = true | |
2428 | Rooted = true | |
2429 | local TAUNT = CreateSound(159882635, Torso, 7, 1, false) | |
2430 | repeat | |
2431 | Swait() | |
2432 | TAUNT.Parent = Torso | |
2433 | TAUNT.Playing = true | |
2434 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2435 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(-0.02, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
2436 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2437 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2438 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2439 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2440 | until TAUNT.TimePosition >= 1.25 | |
2441 | for i=0, 1.6, 0.1 / Animation_Speed do | |
2442 | Swait() | |
2443 | TAUNT.Parent = Torso | |
2444 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) | |
2445 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
2446 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2447 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2448 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2449 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2450 | end | |
2451 | ATTACK = false | |
2452 | Rooted = false | |
2453 | end | |
2454 | function Lock_n_Load() | |
2455 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2456 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
2457 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
2458 | if TORSO and HUM.Health > 0 then | |
2459 | ---CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) | |
2460 | ATTACK = true | |
2461 | Rooted = true | |
2462 | local GYRO = IT("BodyGyro",RootPart) | |
2463 | GYRO.D = 175 | |
2464 | GYRO.P = 20000 | |
2465 | GYRO.MaxTorque = VT(0,40000,0) | |
2466 | if COMBO == 1 then | |
2467 | COMBO = 2 | |
2468 | for i=0, 1, 0.1 / Animation_Speed do | |
2469 | Swait() | |
2470 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
2471 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
2472 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) | |
2473 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2474 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2475 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2476 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2477 | end | |
2478 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = LeftHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2479 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2480 | CreateSound(145080998, LeftHole, 7, 1, false) | |
2481 | BulletDetection(LeftHole.Position,TORSO.Position,false) | |
2482 | for i=0, 0.4, 0.1 / Animation_Speed do | |
2483 | Swait() | |
2484 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
2485 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) | |
2486 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2487 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2488 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2489 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2490 | end | |
2491 | elseif COMBO == 2 then | |
2492 | COMBO = 1 | |
2493 | for i=0, 1, 0.1 / Animation_Speed do | |
2494 | Swait() | |
2495 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
2496 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) | |
2497 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
2498 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2499 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2500 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2501 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2502 | end | |
2503 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2504 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2505 | CreateSound(145080998, RightHole, 7, 1, false) | |
2506 | BulletDetection(RightHole.Position,TORSO.Position,false) | |
2507 | for i=0, 0.4, 0.1 / Animation_Speed do | |
2508 | Swait() | |
2509 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) | |
2510 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
2511 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2512 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2513 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2514 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2515 | end | |
2516 | end | |
2517 | GYRO:remove() | |
2518 | ATTACK = false | |
2519 | Rooted = false | |
2520 | end | |
2521 | end | |
2522 | end | |
2523 | function Morning_Star() | |
2524 | ATTACK = true | |
2525 | Rooted = true | |
2526 | ---CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) | |
2527 | for i=0, 1, 0.1 / Animation_Speed do | |
2528 | Swait() | |
2529 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2530 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2531 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2532 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2533 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2534 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2535 | end | |
2536 | coroutine.resume(coroutine.create(function() | |
2537 | local POS = Mouse.Hit.p | |
2538 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Strike", VT(0,2000,0)) | |
2539 | MakeForm(RAY,"Cyl") | |
2540 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Strike", VT(0,0,0)) | |
2541 | MakeForm(SPHERE,"Ball") | |
2542 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0)) | |
2543 | MakeForm(SHIELD,"Ball") | |
2544 | SHIELD.CFrame = CF(POS) | |
2545 | RAY.CFrame = CF(POS) | |
2546 | SPHERE.CFrame = CF(POS) | |
2547 | CreateSound(440145570, SPHERE, 10, 0.8, false) | |
2548 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
2549 | for i = 1, 200 do | |
2550 | Swait() | |
2551 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2552 | RAY.Size = RAY.Size + VT(0.05,0,0.05) | |
2553 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
2554 | SHIELD.Size = SPHERE.Size + VT(3,3,3) | |
2555 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
2556 | end | |
2557 | for i = 1, 45 do | |
2558 | Swait() | |
2559 | RAY.Transparency = RAY.Transparency + 1/45 | |
2560 | SPHERE.Transparency = RAY.Transparency | |
2561 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
2562 | end | |
2563 | RAY:remove() | |
2564 | SHIELD:remove() | |
2565 | SPHERE:remove() | |
2566 | end)) | |
2567 | for i=0, 1, 0.1 / Animation_Speed do | |
2568 | Swait() | |
2569 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2570 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2571 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2572 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2573 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2574 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2575 | end | |
2576 | ATTACK = false | |
2577 | Rooted = false | |
2578 | end | |
2579 | ||
2580 | function Deathbound() | |
2581 | ATTACK = true | |
2582 | Rooted = true | |
2583 | for i=0, 1, 0.1 / Animation_Speed do | |
2584 | Swait() | |
2585 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2586 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2587 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2588 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2589 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2590 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2591 | end | |
2592 | local DONE = false | |
2593 | local GATE = nil | |
2594 | local GATESPIN = true | |
2595 | coroutine.resume(coroutine.create(function() | |
2596 | repeat | |
2597 | Swait() | |
2598 | if GATE ~= nil then | |
2599 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
2600 | end | |
2601 | until GATESPIN == false | |
2602 | end)) | |
2603 | coroutine.resume(coroutine.create(function() | |
2604 | repeat | |
2605 | Swait() | |
2606 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2607 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2608 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2609 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2610 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2611 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2612 | until DONE == true | |
2613 | Swait(50) | |
2614 | for i = 1, 35 do | |
2615 | Swait(4) | |
2616 | local FIRED = false | |
2617 | local CHILDREN = workspace:GetDescendants() | |
2618 | for index, CHILD in pairs(CHILDREN) do | |
2619 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2620 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2621 | if HUM then | |
2622 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2623 | if TORSO then | |
2624 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2625 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2626 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2627 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(10,10,10), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6}) | |
2628 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(10,10,10), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2629 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2630 | Kill(CHILD) | |
2631 | FIRED = true | |
2632 | break | |
2633 | end | |
2634 | end | |
2635 | end | |
2636 | end | |
2637 | end | |
2638 | if FIRED == false then | |
2639 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2640 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(10,10,10), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6}) | |
2641 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(10,10,10), Size2 = VT(10,10,01), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2642 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2643 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2644 | if HITBOD ~= nil then | |
2645 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2646 | Kill(HITBOD.Parent) | |
2647 | end | |
2648 | end | |
2649 | end | |
2650 | end | |
2651 | for i = 1, 45 do | |
2652 | Swait() | |
2653 | GATE.Size = GATE.Size - VT(30,30,30) | |
2654 | end | |
2655 | GATESPIN = false | |
2656 | GATE:remove() | |
2657 | end)) | |
2658 | Swait(15) | |
2659 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2660 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Lime green", "Gate", VT(0,0,0)) | |
2661 | local DECAL = IT("Decal",GATE) | |
2662 | DECAL.Texture = "http://www.roblox.com/asset/?id=1526406096" | |
2663 | DECAL.Face = "Top" | |
2664 | GATE.CFrame = CF(HITPOS) | |
2665 | CreateSound(160772554, GATE, 7, 1.3, false) | |
2666 | for i = 1, 45 do | |
2667 | Swait() | |
2668 | GATE.Size = GATE.Size + VT(3,0,3) | |
2669 | end | |
2670 | CreateSound(145080998, RightHole, 7, 1, false) | |
2671 | CreateSound(145080998, LeftHole, 7, 1, false) | |
2672 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(10,10,10), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2673 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(10,10,10), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2674 | ATTACK = false | |
2675 | Rooted = false | |
2676 | DONE = true | |
2677 | end | |
2678 | ||
2679 | function Dash() | |
2680 | ATTACK = true | |
2681 | Rooted = false | |
2682 | local TARGET = nil | |
2683 | local TORS = nil | |
2684 | local GYRO = IT("BodyGyro",RootPart) | |
2685 | GYRO.D = 175 | |
2686 | GYRO.P = 20000 | |
2687 | GYRO.MaxTorque = VT(0,40000,0) | |
2688 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2689 | local RANGE = 5 | |
2690 | CreateSound(541909867, Torso, 7, 1, false) | |
2691 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(12,0.5,12), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2692 | for i=0, 1, 0.1 / Animation_Speed do | |
2693 | Swait() | |
2694 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-2) | |
2695 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2696 | local CHILDREN = workspace:GetDescendants() | |
2697 | for index, CHILD in pairs(CHILDREN) do | |
2698 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2699 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2700 | if HUM then | |
2701 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2702 | if TORSO then | |
2703 | if (TORSO.Position - LeftHole.Position).Magnitude <= RANGE + TORSO.Size.Magnitude/5 then | |
2704 | RANGE = (TORSO.Position - LeftHole.Position).Magnitude | |
2705 | TARGET = HUM | |
2706 | TORS = TORSO | |
2707 | end | |
2708 | end | |
2709 | end | |
2710 | end | |
2711 | end | |
2712 | if TARGET then | |
2713 | break | |
2714 | end | |
2715 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed) | |
2716 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(80)), 1 / Animation_Speed) | |
2717 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2718 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2719 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2720 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2721 | end | |
2722 | GYRO:remove() | |
2723 | if TORS and TARGET then | |
2724 | Rooted = true | |
2725 | local BODYPOSITION = IT("BodyPosition", TORS) | |
2726 | BODYPOSITION.P = 2000 | |
2727 | BODYPOSITION.D = 100 | |
2728 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
2729 | for i=0, 1, 0.1 / Animation_Speed do | |
2730 | Swait() | |
2731 | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2732 | BODYPOSITION.Position = TORS.Position | |
2733 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
2734 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) | |
2735 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2736 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2737 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2738 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2739 | end | |
2740 | for i=0, 0.4, 0.1 / Animation_Speed do | |
2741 | Swait() | |
2742 | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2743 | BODYPOSITION.Position = TORS.Position | |
2744 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
2745 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) | |
2746 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2747 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2748 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2749 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2750 | end | |
2751 | local LOOP = 0 | |
2752 | local LOOP2 = 0 | |
2753 | for i=0, 5, 0.1 / Animation_Speed do | |
2754 | Swait() | |
2755 | LOOP = LOOP + 1 | |
2756 | TORS.Anchored = true | |
2757 | LOOP2 = LOOP2 + 1 | |
2758 | if LOOP2 >= 5 then | |
2759 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2760 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2761 | CreateSound(145080998, RightHole, 7, 1, false) | |
2762 | SpawnTrail(RightHole.Position,RightHole.CFrame*CF(0,500,0).p) | |
2763 | LOOP2 = 0 | |
2764 | getbloody(TORS,1) | |
2765 | end | |
2766 | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2767 | BODYPOSITION.Position = TORS.Position | |
2768 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
2769 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) | |
2770 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145 + 2 * SIN(LOOP / 12)), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2771 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2772 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2773 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2774 | end | |
2775 | BODYPOSITION:remove() | |
2776 | if TORS then | |
2777 | TORS.Anchored = false | |
2778 | Banish(TORS.Parent) | |
2779 | end | |
2780 | end | |
2781 | ATTACK = false | |
2782 | Rooted = false | |
2783 | end | |
2784 | ||
2785 | function Taunt() | |
2786 | ATTACK = true | |
2787 | Rooted = true | |
2788 | local TAUNT = CreateSound(159882303,Torso,10,1,false) | |
2789 | coroutine.resume(coroutine.create(function() | |
2790 | repeat | |
2791 | Swait() | |
2792 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2793 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2794 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2795 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(90), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2796 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2797 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2798 | until ATTACK == false | |
2799 | end)) | |
2800 | repeat wait() until TAUNT.Playing == false | |
2801 | ATTACK = false | |
2802 | Rooted = false | |
2803 | end | |
2804 | ||
2805 | ||
2806 | function Debree(POS,SWAIT) | |
2807 | coroutine.resume(coroutine.create(function() | |
2808 | local HOLDER = IT("Model",Effects) | |
2809 | HOLDER.Name = "Debree" | |
2810 | local HITFLOOR = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
2811 | MagicSphere(VT(15,1,15),SWAIT,CF(POS),"Reddish brown",VT(0,0,0)) | |
2812 | MagicSphere(VT(13,1,13),SWAIT,CF(POS),"Reddish brown",VT(0,0,0)) | |
2813 | MagicSphere(VT(12,1,12),SWAIT,CF(POS),"Reddish brown",VT(0,0,0)) | |
2814 | repeat Swait() until HITFLOOR ~= nil | |
2815 | local O = 0 | |
2816 | for i = 1, 18 do | |
2817 | local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3,3,3)) | |
2818 | Part.CFrame = CF(CF(POS) * CF((45/4.5)-i,0,O).p) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))) | |
2819 | O = O - (45/4)/5+i/4 | |
2820 | coroutine.resume(coroutine.create(function() | |
2821 | Swait(SWAIT) | |
2822 | for i = 1, 60 do | |
2823 | Swait() | |
2824 | local RayHit, Way = CastProperRay(Part.Position,POS,0.1,workspace) | |
2825 | Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))) | |
2826 | end | |
2827 | for i = 1, 50 do | |
2828 | Swait() | |
2829 | Part.Size = Part.Size * 0.9 | |
2830 | end | |
2831 | end)) | |
2832 | end | |
2833 | local O = 0 | |
2834 | for i = 1, 18 do | |
2835 | local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3,3,3)) | |
2836 | Part.CFrame = CF(CF(POS) * CF((45/4.5)-i,0,O).p) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))) | |
2837 | O = O + (45/4)/5-i/4 | |
2838 | coroutine.resume(coroutine.create(function() | |
2839 | Swait(SWAIT) | |
2840 | for i = 1, 60 do | |
2841 | Swait() | |
2842 | local RayHit, Way = CastProperRay(Part.Position,POS,0.1,workspace) | |
2843 | Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))) | |
2844 | end | |
2845 | for i = 1, 50 do | |
2846 | Swait() | |
2847 | Part.Size = Part.Size * 0.9 | |
2848 | end | |
2849 | end)) | |
2850 | end | |
2851 | Swait(SWAIT+110) | |
2852 | HOLDER:remove() | |
2853 | end)) | |
2854 | end | |
2855 | ||
2856 | ||
2857 | ||
2858 | ||
2859 | function WarpVector() | |
2860 | ATTACK = false | |
2861 | Rooted = true | |
2862 | ||
2863 | Debree(CF(RootPart.Position)*CF(0,-2.8,0).p,75) | |
2864 | UNANCHOR = false | |
2865 | ||
2866 | RootPart.Anchored = true | |
2867 | for i=0, 2, 0.1 / Animation_Speed do | |
2868 | Swait() | |
2869 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2870 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2871 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2872 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2873 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2874 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2875 | end | |
2876 | ||
2877 | local POS = RootPart.Position | |
2878 | RootPart.CFrame = CF(CF(Mouse.Hit.p)*CF(0,2.8,0).p,POS) | |
2879 | Debree(CF(RootPart.Position)*CF(0,-2.5,0).p,150) | |
2880 | for i=0, 2, 0.1 / Animation_Speed do | |
2881 | Swait() | |
2882 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2883 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2884 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2885 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2886 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2887 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2888 | end | |
2889 | UNANCHOR = true | |
2890 | ATTACK = false | |
2891 | Rooted = false | |
2892 | end | |
2893 | ||
2894 | function Banisher_Bullet() | |
2895 | ATTACK = true | |
2896 | Rooted = false | |
2897 | for i=2, 2, 2 / Animation_Speed do | |
2898 | Swait() | |
2899 | turnto(Mouse.Hit.p) | |
2900 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed) | |
2901 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 2 / Animation_Speed) | |
2902 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2903 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2904 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2905 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2906 | end | |
2907 | repeat | |
2908 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2909 | Swait() | |
2910 | turnto(Mouse.Hit.p) | |
2911 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed) | |
2912 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 2 / Animation_Speed) | |
2913 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2914 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2915 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2916 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2917 | end | |
2918 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
2919 | SpawnTrail(Hole.Position,POS) | |
2920 | if HIT ~= nil then | |
2921 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
2922 | Banish(HIT.Parent) | |
2923 | end | |
2924 | end | |
2925 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2926 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2927 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2928 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2929 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2930 | Swait() | |
2931 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed) | |
2932 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 2 / Animation_Speed) | |
2933 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2934 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2935 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2936 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2937 | end | |
2938 | until KEYHOLD == false | |
2939 | ATTACK = false | |
2940 | Rooted = false | |
2941 | end | |
2942 | ||
2943 | function AttackTemplate() | |
2944 | ATTACK = true | |
2945 | Rooted = false | |
2946 | for i=0, 1, 0.1 / Animation_Speed do | |
2947 | Swait() | |
2948 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2949 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2950 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2951 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2952 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2953 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2954 | end | |
2955 | ATTACK = false | |
2956 | Rooted = false | |
2957 | end | |
2958 | ||
2959 | --//=================================\\ | |
2960 | --|| ASSIGN THINGS TO KEYS | |
2961 | --\\=================================// | |
2962 | function MouseDown(Mouse) | |
2963 | if ATTACK == false then | |
2964 | end | |
2965 | end | |
2966 | ||
2967 | function MouseUp(Mouse) | |
2968 | HOLD = false | |
2969 | end | |
2970 | ||
2971 | function KeyDown(Key) | |
2972 | KEYHOLD = true | |
2973 | if Key == "z" and ATTACK == false then | |
2974 | Banisher_Bullet() | |
2975 | end | |
2976 | ||
2977 | if Key == "v" and ATTACK == false then | |
2978 | Morning_Star() | |
2979 | end | |
2980 | ||
2981 | if Key == "b" and ATTACK == false then | |
2982 | RTaunt() | |
2983 | end | |
2984 | ||
2985 | if Key == "y" and ATTACK == false then | |
2986 | Lock_n_Load() | |
2987 | end | |
2988 | ||
2989 | if Key == "n" and ATTACK == false then | |
2990 | TakeOnMe() | |
2991 | end | |
2992 | ||
2993 | if Key == "q" and ATTACK == false then | |
2994 | Dash() | |
2995 | end | |
2996 | ||
2997 | if Key == "t" and ATTACK == false then | |
2998 | Taunt() | |
2999 | end | |
3000 | ||
3001 | if Key == "x" and ATTACK == false then | |
3002 | Deathbound() | |
3003 | end | |
3004 | ||
3005 | if Key == "c" and ATTACK == false then | |
3006 | WarpVector() | |
3007 | end | |
3008 | end | |
3009 | ||
3010 | function KeyUp(Key) | |
3011 | KEYHOLD = false | |
3012 | end | |
3013 | ||
3014 | Mouse.Button1Down:connect(function(NEWKEY) | |
3015 | MouseDown(NEWKEY) | |
3016 | end) | |
3017 | Mouse.Button1Up:connect(function(NEWKEY) | |
3018 | MouseUp(NEWKEY) | |
3019 | end) | |
3020 | Mouse.KeyDown:connect(function(NEWKEY) | |
3021 | KeyDown(NEWKEY) | |
3022 | end) | |
3023 | Mouse.KeyUp:connect(function(NEWKEY) | |
3024 | KeyUp(NEWKEY) | |
3025 | end) | |
3026 | ||
3027 | --//=================================\\ | |
3028 | --\\=================================// | |
3029 | ||
3030 | ||
3031 | function unanchor() | |
3032 | if UNANCHOR == true then | |
3033 | g = Character:GetChildren() | |
3034 | for i = 1, #g do | |
3035 | if g[i].ClassName == "Part" then | |
3036 | g[i].Anchored = false | |
3037 | end | |
3038 | end | |
3039 | end | |
3040 | end | |
3041 | ||
3042 | ||
3043 | --//=================================\\ | |
3044 | --|| WRAP THE WHOLE SCRIPT UP | |
3045 | --\\=================================// | |
3046 | ||
3047 | Humanoid.Changed:connect(function(Jump) | |
3048 | if Jump == "Jump" and (Disable_Jump == true) then | |
3049 | Humanoid.Jump = false | |
3050 | end | |
3051 | end) | |
3052 | ||
3053 | local CONNECT = nil | |
3054 | ||
3055 | while true do | |
3056 | Swait() | |
3057 | ANIMATE.Parent = nil | |
3058 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
3059 | Humanoid = IT("Humanoid",Character) | |
3060 | end | |
3061 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
3062 | v:Stop(); | |
3063 | end | |
3064 | SINE = SINE + CHANGE | |
3065 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
3066 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
3067 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
3068 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
3069 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
3070 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3071 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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) | |
3072 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3073 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3074 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
3075 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
3076 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
3077 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
3078 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
3079 | end | |
3080 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
3081 | ANIM = "Jump" | |
3082 | if ATTACK == false then | |
3083 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
3084 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
3085 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.16 / Animation_Speed) | |
3086 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
3087 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.3 / Animation_Speed) | |
3088 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.3 / Animation_Speed) | |
3089 | end | |
3090 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
3091 | ANIM = "Fall" | |
3092 | if ATTACK == false then | |
3093 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
3094 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
3095 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.16 / Animation_Speed) | |
3096 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
3097 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.3 / Animation_Speed) | |
3098 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.3 / Animation_Speed) | |
3099 | end | |
3100 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
3101 | ANIM = "Idle" | |
3102 | if ATTACK == false then | |
3103 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.16 / Animation_Speed) | |
3104 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.16 / Animation_Speed) | |
3105 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.16 / Animation_Speed) | |
3106 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.16 / Animation_Speed) | |
3107 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.16 / Animation_Speed) | |
3108 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.16 / Animation_Speed) | |
3109 | end | |
3110 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
3111 | ANIM = "Walk" | |
3112 | if ATTACK == false then | |
3113 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.16 / Animation_Speed) | |
3114 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.16 / Animation_Speed) | |
3115 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.16 / Animation_Speed) | |
3116 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
3117 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
3118 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
3119 | end | |
3120 | end | |
3121 | unanchor() | |
3122 | Humanoid.MaxHealth = "inf" | |
3123 | Humanoid.Health = "inf" | |
3124 | if Rooted == false then | |
3125 | Disable_Jump = false | |
3126 | Humanoid.WalkSpeed = Speed | |
3127 | elseif Rooted == true then | |
3128 | Disable_Jump = true | |
3129 | Humanoid.WalkSpeed = 0 | |
3130 | end | |
3131 | sick.Parent = Character.Torso | |
3132 | sick:resume() | |
3133 | sick.Volume = 50 | |
3134 | ||
3135 | sick.SoundId = "rbxassetid://539526132" | |
3136 | sick.Name = "BanishV3Music" | |
3137 | end | |
3138 | if Head:FindFirstChild("face") then | |
3139 | Head.face.Texture = "rbxassetid://176217464" | |
3140 | end | |
3141 | ||
3142 | Humanoid.Changed:connect(function(Jump) | |
3143 | if Jump == "Jump" and (Disable_Jump == true) then | |
3144 | Humanoid.Jump = false | |
3145 | end | |
3146 | end) | |
3147 | ||
3148 | local BLINKLOOP = 0 | |
3149 | ||
3150 | while true do | |
3151 | Swait() | |
3152 | script.Parent = WEAPONGUI | |
3153 | ANIMATE.Parent = nil | |
3154 | Humanoid.Parent = Character | |
3155 | if Humanoid then | |
3156 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
3157 | IDLEANIMATION:Play() | |
3158 | end | |
3159 | SINE = SINE + CHANGE | |
3160 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
3161 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
3162 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
3163 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
3164 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
3165 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3166 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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) | |
3167 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3168 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3169 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
3170 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3171 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3172 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3173 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3174 | end | |
3175 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
3176 | ANIM = "Jump" | |
3177 | if ATTACK == false then | |
3178 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3179 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3180 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3181 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3182 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
3183 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3184 | end | |
3185 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
3186 | ANIM = "Fall" | |
3187 | if ATTACK == false then | |
3188 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3189 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3190 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3191 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3192 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3193 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
3194 | end | |
3195 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
3196 | ANIM = "Idle" | |
3197 | if ATTACK == false then | |
3198 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
3199 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
3200 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3201 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3202 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3203 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3204 | end | |
3205 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
3206 | ANIM = "Walk" | |
3207 | if ATTACK == false then | |
3208 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3209 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3210 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3211 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
3212 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
3213 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
3214 | end | |
3215 | end | |
3216 | unanchor() | |
3217 | Humanoid.MaxHealth = "inf" | |
3218 | Humanoid.Health = "inf" | |
3219 | if Rooted == false then | |
3220 | Disable_Jump = false | |
3221 | Humanoid.WalkSpeed = Speed | |
3222 | elseif Rooted == true then | |
3223 | Disable_Jump = true | |
3224 | Humanoid.WalkSpeed = 0 | |
3225 | end | |
3226 | sick.SoundId = "rbxassetid://0" | |
3227 | sick.Looped = true | |
3228 | sick.Pitch = 0.9 | |
3229 | sick.Volume = 50 | |
3230 | sick.Playing = true | |
3231 | sick.Parent = Torso | |
3232 | if Head:FindFirstChild("face") then | |
3233 | Head.face.Texture = "rbxassetid://404306534" | |
3234 | end | |
3235 | BLINKLOOP = BLINKLOOP + 1 | |
3236 | if BLINKLOOP >=650 then | |
3237 | BLINKLOOP = 0 | |
3238 | ---Blink() | |
3239 | end | |
3240 | if #GHOSTS>0 then | |
3241 | for e=1,#GHOSTS do | |
3242 | if GHOSTS[e]~=nil then | |
3243 | local Thing=GHOSTS[e] | |
3244 | if Thing~=nil then | |
3245 | if Thing:FindFirstChild("Head") then | |
3246 | if Thing:FindFirstChild("Head"):FindFirstChild("face") then | |
3247 | Thing:FindFirstChild("Head").face.Texture = "rbxassetid://479674570" | |
3248 | end | |
3249 | if Thing:FindFirstChild("Head"):FindFirstChildOfClass("Sound") then | |
3250 | Thing:FindFirstChild("Head"):FindFirstChildOfClass("Sound"):remove() | |
3251 | end | |
3252 | end | |
3253 | local TORSO = Thing:FindFirstChild("Torso") | |
3254 | if TORSO then | |
3255 | TORSO.Anchored = false | |
3256 | local ROOT = Thing.HumanoidRootPart | |
3257 | local RootJoint1 = ROOT:FindFirstChild("RootJoint") | |
3258 | local Neck1 = TORSO:FindFirstChild("Neck") | |
3259 | local RightShoulder1 = TORSO:FindFirstChild("Right Shoulder") | |
3260 | local LeftShoulder1 = TORSO:FindFirstChild("Left Shoulder") | |
3261 | local RightHip1 = TORSO:FindFirstChild("Right Hip") | |
3262 | local LeftHip1 = TORSO:FindFirstChild("Left Hip") | |
3263 | if ROOT and RootJoint1 then | |
3264 | local VELOCITY = (ROOT.Velocity * VT(1, 0, 1)).magnitude | |
3265 | if VELOCITY < 1 then | |
3266 | RootJoint1.C0 = ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 * SIN(SINE / 12))) | |
3267 | Neck1.C0 = NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD( - 2.5 * SIN(SINE / 12))) | |
3268 | RightShoulder1.C0 = CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 1.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0 | |
3269 | LeftShoulder1.C0 = CF(-1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 1.5 * SIN(SINE / 12))) * LEFTSHOULDERC0 | |
3270 | RightHip1.C0 = CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) | |
3271 | LeftHip1.C0 = CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) | |
3272 | elseif VELOCITY > 1 then | |
3273 | RootJoint1.C0 = ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 * SIN(SINE / 12))) | |
3274 | Neck1.C0 = NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD( - 2.5 * SIN(SINE / 12))) | |
3275 | RightShoulder1.C0 = CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 1.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0 | |
3276 | LeftShoulder1.C0 = CF(-1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 1.5 * SIN(SINE / 12))) * LEFTSHOULDERC0 | |
3277 | RightHip1.C0 = CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)) | |
3278 | LeftHip1.C0 = CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) | |
3279 | end | |
3280 | end | |
3281 | local Human = Thing.Humanoid | |
3282 | if Human then | |
3283 | Human.HipHeight = 0.3 | |
3284 | for _, c in pairs(Thing:GetChildren()) do | |
3285 | if c.ClassName == "Part" and c.Transparency < 1 then | |
3286 | c.Color = C3(0,0,0) | |
3287 | c.Transparency = 0.65 + 0.15 * COS(SINE / 25) | |
3288 | elseif c.ClassName == "Accessory" or c.ClassName == "Hat" or c.ClassName == "CharacterMesh" or c.ClassName == "Shirt" or c.ClassName == "Pants" then | |
3289 | c:remove() | |
3290 | end | |
3291 | end | |
3292 | if Human then | |
3293 | local IDLEANIMATION = Human:LoadAnimation(ROBLOXIDLEANIMATION) | |
3294 | IDLEANIMATION:Play() | |
3295 | end | |
3296 | local list = game.Workspace:children() | |
3297 | local torso = nil | |
3298 | local dist = 50 | |
3299 | local temp = nil | |
3300 | local human = nil | |
3301 | local temp2 = nil | |
3302 | local OwnerInDanger = false | |
3303 | for x = 1, #list do | |
3304 | temp2 = list[x] | |
3305 | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= Thing) then | |
3306 | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso") | |
3307 | human = temp2:findFirstChildOfClass("Humanoid") | |
3308 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
3309 | if (temp.Position - Torso.Position).magnitude < 15 then | |
3310 | OwnerInDanger = true | |
3311 | newdist = (temp.Position - TORSO.Position).magnitude | |
3312 | dist = (Torso.Position - temp.Position).magnitude | |
3313 | Human:MoveTo(temp.Position) | |
3314 | torso = temp | |
3315 | if newdist < 7 then | |
3316 | torso.CFrame = CF(torso.Position,TORSO.Position)*CF(0,0,5) | |
3317 | CreateSound(814168787, temp, 1, 2, false) | |
3318 | ApplyDamage(human,MRANDOM(15,35),temp) | |
3319 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(3,1,3), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position,torso.Position)*CF(0,0,-2) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
3320 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(3,1,3), Transparency = 0, Transparency2 = 1, CFrame = torso.CFrame*CF(0,-4*torso.Size.Y/2,0), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
3321 | end | |
3322 | end | |
3323 | end | |
3324 | end | |
3325 | end | |
3326 | if OwnerInDanger == false then | |
3327 | for x = 1, #list do | |
3328 | temp2 = list[x] | |
3329 | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= Thing) then | |
3330 | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso") | |
3331 | human = temp2:findFirstChildOfClass("Humanoid") | |
3332 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
3333 | if (temp.Position - Torso.Position).magnitude < dist then | |
3334 | newdist = (temp.Position - TORSO.Position).magnitude | |
3335 | Human:MoveTo(temp.Position) | |
3336 | torso = temp | |
3337 | if newdist < 15 then | |
3338 | if MRANDOM(1,35) == 1 then | |
3339 | CreateSound(438665935, temp, 1, 3, false) | |
3340 | ApplyDamage(human,MRANDOM(2,20),temp) | |
3341 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(1,1,1), Size2 = VT(3,1,3), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position,torso.Position)*CF(0,0,-2) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
3342 | end | |
3343 | end | |
3344 | end | |
3345 | end | |
3346 | end | |
3347 | end | |
3348 | end | |
3349 | if torso == nil then | |
3350 | Human.WalkSpeed = Speed -0.2 | |
3351 | if (Torso.Position - TORSO.Position).magnitude < 12 and (Torso.Position - TORSO.Position).magnitude >= 11 then | |
3352 | Human:MoveTo(TORSO.Position) | |
3353 | elseif (Torso.Position - TORSO.Position).magnitude > 15 then | |
3354 | Human:MoveTo(Torso.Position) | |
3355 | elseif (Torso.Position - TORSO.Position).magnitude < 11 then | |
3356 | Human:MoveTo(CF(Torso.Position,TORSO.Position)*CF(0,0,-5).p) | |
3357 | end | |
3358 | else | |
3359 | if OwnerInDanger == false then | |
3360 | Human.WalkSpeed = Speed*1.2 | |
3361 | else | |
3362 | Human.WalkSpeed = Speed*5 | |
3363 | end | |
3364 | end | |
3365 | if Human.Health == 0 then | |
3366 | Thing:remove() | |
3367 | table.remove(GHOSTS,e) | |
3368 | else | |
3369 | Human.Health = Human.Health + 0.5 | |
3370 | end | |
3371 | else | |
3372 | Thing:remove() | |
3373 | table.remove(GHOSTS,e) | |
3374 | end | |
3375 | else | |
3376 | Thing:remove() | |
3377 | table.remove(GHOSTS,e) | |
3378 | end | |
3379 | end | |
3380 | end | |
3381 | end | |
3382 | end | |
3383 | ||
3384 | end | |
3385 | ||
3386 | --//=================================\\ | |
3387 | --\\=================================// | |
3388 | ||
3389 | ||
3390 | ||
3391 | ||
3392 | ||
3393 | --//====================================================\\-- | |
3394 | --|| END OF SCRIPT | |
3395 | --\\====================================================//-- |