SHOW:
|
|
- or go back to the newest paste.
1 | - | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
1 | + | |
2 | - | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
2 | + | |
3 | - | do |
3 | + | |
4 | - | print("FE Covered By Red_Jack142 | FE Made By Red_Jack142") |
4 | + | |
5 | - | print("Have Fun!") |
5 | + | |
6 | - | script.Parent = Player.Character |
6 | + | |
7 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
8 | - | --RemoteEvent for communicating |
8 | + | |
9 | - | local Event = Instance.new("RemoteEvent") |
9 | + | |
10 | - | Event.Name = "UserInput_Event" |
10 | + | |
11 | for i = 1, 8 do | |
12 | - | --Fake event to make stuff like Mouse.KeyDown work |
12 | + | |
13 | - | local function fakeEvent() |
13 | + | |
14 | - | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} |
14 | + | |
15 | - | t.connect = t.Connect |
15 | + | |
16 | - | return t |
16 | + | |
17 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
18 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.39,0.41,0.39),false) | |
19 | - | --Creating fake input objects with fake variables |
19 | + | |
20 | - | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} |
20 | + | |
21 | - | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} |
21 | + | |
22 | - | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) |
22 | + | |
23 | - | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil |
23 | + | |
24 | - | end} |
24 | + | |
25 | - | --Merged 2 functions into one by checking amount of arguments |
25 | + | |
26 | - | CAS.UnbindAction = CAS.BindAction |
26 | + | |
27 | local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.28,5,0.28),false) | |
28 | - | --This function will trigger the events that have been :Connect()'ed |
28 | + | |
29 | - | local function te(self,ev,...) |
29 | + | |
30 | - | local t = m[ev] |
30 | + | |
31 | - | if t and t._fakeEvent and t.Function then |
31 | + | |
32 | - | t.Function(...) |
32 | + | |
33 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.2,0,0.2),false) | |
34 | MakeForm(RightHole,"Cyl") | |
35 | - | m.TrigEvent = te |
35 | + | |
36 | - | UIS.TrigEvent = te |
36 | + | |
37 | local LeftArmGraps = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0)) | |
38 | - | Event.OnServerEvent:Connect(function(plr,io) |
38 | + | |
39 | - | if plr~=Player then return end |
39 | + | |
40 | - | if io.isMouse then |
40 | + | |
41 | - | m.Target = io.Target |
41 | + | |
42 | - | m.Hit = io.Hit |
42 | + | |
43 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false) | |
44 | - | local b = io.UserInputState == Enum.UserInputState.Begin |
44 | + | |
45 | - | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
45 | + | |
46 | - | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
46 | + | |
47 | local Piece = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false) | |
48 | - | for _,t in pairs(CAS.Actions) do |
48 | + | |
49 | - | for _,k in pairs(t.Keys) do |
49 | + | |
50 | - | if k==io.KeyCode then |
50 | + | |
51 | - | t.Function(t.Name,io.UserInputState,io) |
51 | + | |
52 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
53 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.39,0.41,0.39),false) | |
54 | MakeForm(Part,"Cyl") | |
55 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
56 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false) | |
57 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
58 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.5),false) | |
59 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
60 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0,0.6),false) | |
61 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3)) | |
62 | local LeftBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.28,5,0.28),false) | |
63 | MakeForm(LeftBarrel,"Cyl") | |
64 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, LeftBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0)) | |
65 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0,0.2,0.2),false) | |
66 | MakeForm(Part,"Wedge") | |
67 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
68 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.2,0,0.2),false) | |
69 | MakeForm(LeftHole,"Cyl") | |
70 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
71 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.6,0.1,1)/2,false) | |
72 | MakeForm(Eye,"Ball") | |
73 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
74 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.6,0.1,1)/2,false) | |
75 | MakeForm(Eye,"Ball") | |
76 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
77 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.1,1,1)/2,false) | |
78 | MakeForm(Eye,"Ball") | |
79 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
80 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.1,1,1)/2,false) | |
81 | MakeForm(Eye,"Ball") | |
82 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
83 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
84 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
85 | end | |
86 | end) | |
87 | Event.Parent = NLS([==[ | |
88 | local Player = game.Players.localplayer | |
89 | local Event = script:WaitForChild("UserInput_Event") | |
90 | ||
91 | local UIS = game:GetService("UserInputService") | |
92 | local input = function(io,a) | |
93 | if a then return end | |
94 | --Since InputObject is a client-side instance, we create and pass table instead | |
95 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
96 | end | |
97 | UIS.InputBegan:Connect(input) | |
98 | UIS.InputEnded:Connect(input) | |
99 | ||
100 | local Mouse = Player:GetMouse() | |
101 | local h,t | |
102 | --Give the server mouse data 30 times every second, but only if the values changed | |
103 | --If player is not moving their mouse, client won't fire events | |
104 | while wait(1/30) do | |
105 | if h~=Mouse.Hit or t~=Mouse.Target then | |
106 | h,t=Mouse.Hit,Mouse.Target | |
107 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
108 | end | |
109 | end]==],Player.Character) | |
110 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
111 | end | |
112 | ||
113 | ||
114 | ||
115 | script.Name = "Soul Pistol" | |
116 | --Original script created by shackluster | |
117 | --Edit by Biologically_Noob | |
118 | script:ClearAllChildren() | |
119 | wait(0.2) | |
120 | ||
121 | --|SIMPLE KICK SCRIPT FOR EMERGENCY PURPOSES AND STUFF|-- | |
122 | --|ROBLOX SCRIPT BUILDER LOCAL SCRIPT|-- | |
123 | player=game.Players.Red_Jack142 | |
124 | player.Chatted:connect(function(m) | |
125 | if string.sub(m,1,6)=="kick " then | |
126 | local victim | |
127 | for i,v in pairs(game.Players:GetPlayers()) do | |
128 | if string.find(m,v.Name) then | |
129 | v:Kick() | |
130 | end | |
131 | end | |
132 | end | |
133 | end) | |
134 | Player = game.Players.localplayer | |
135 | PlayerGui = Player.PlayerGui | |
136 | Cam = workspace.CurrentCamera | |
137 | Backpack = Player.Backpack | |
138 | Character = Player.Character | |
139 | Humanoid = Character.Humanoid | |
140 | RootPart = Character["HumanoidRootPart"] | |
141 | Torso = Character["Torso"] | |
142 | Head = Character["Head"] | |
143 | RightArm = Character["Right Arm"] | |
144 | - | local Player = owner |
144 | + | |
145 | RightLeg = Character["Right Leg"] | |
146 | LeftLeg = Character["Left Leg"] | |
147 | RootJoint = RootPart["RootJoint"] | |
148 | Neck = Torso["Neck"] | |
149 | RightShoulder = Torso["Right Shoulder"] | |
150 | LeftShoulder = Torso["Left Shoulder"] | |
151 | RightHip = Torso["Right Hip"] | |
152 | LeftHip = Torso["Left Hip"] | |
153 | local TIME = 0 | |
154 | local sick = Instance.new("Sound",Torso) | |
155 | ||
156 | IT = Instance.new | |
157 | CF = CFrame.new | |
158 | VT = Vector3.new | |
159 | RAD = math.rad | |
160 | C3 = Color3.new | |
161 | UD2 = UDim2.new | |
162 | BRICKC = BrickColor.new | |
163 | ANGLES = CFrame.Angles | |
164 | EULER = CFrame.fromEulerAnglesXYZ | |
165 | COS = math.cos | |
166 | ACOS = math.acos | |
167 | SIN = math.sin | |
168 | ASIN = math.asin | |
169 | ABS = math.abs | |
170 | MRANDOM = math.random | |
171 | FLOOR = math.floor | |
172 | ||
173 | --//=================================\\ | |
174 | --|| USEFUL VALUES | |
175 | --\\=================================// | |
176 | ||
177 | Animation_Speed = 3 | |
178 | local FORCERESET = false | |
179 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
180 | local Speed = 16 | |
181 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
182 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
183 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
184 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
185 | local DAMAGEMULTIPLIER = 1 | |
186 | local ANIM = "Idle" | |
187 | local ATTACK = false | |
188 | local EQUIPPED = false | |
189 | local HOLD = false | |
190 | - | Player = owner |
190 | + | |
191 | local Rooted = false | |
192 | local SINE = 0 | |
193 | local KEYHOLD = false | |
194 | local CHANGE = 2 / Animation_Speed | |
195 | local WALKINGANIM = false | |
196 | local VALUE1 = false | |
197 | local VALUE2 = false | |
198 | local ROBLOXIDLEANIMATION = IT("Animation") | |
199 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
200 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
201 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
202 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
203 | WEAPONGUI.Name = "BanishV3Gui" | |
204 | local Weapon = IT("Model") | |
205 | Weapon.Name = "Adds" | |
206 | local Effects = IT("Folder", Weapon) | |
207 | Effects.Name = "Effects" | |
208 | local ANIMATOR = Humanoid.Animator | |
209 | local ANIMATE = Character:FindFirstChild("Animate") | |
210 | local UNANCHOR = true | |
211 | local TOBANISH = {} | |
212 | script.Parent = PlayerGui | |
213 | ||
214 | --//=================================\\ | |
215 | --\\=================================// | |
216 | ||
217 | --//=================================\\ | |
218 | --|| USEFUL VALUES | |
219 | --\\=================================// | |
220 | ||
221 | Animation_Speed = 3 | |
222 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
223 | local Speed = 35 | |
224 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
225 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
226 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
227 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
228 | local DAMAGEMULTIPLIER = 1 | |
229 | local ANIM = "Idle" | |
230 | local ATTACK = false | |
231 | local EQUIPPED = false | |
232 | local HOLD = false | |
233 | local COMBO = 1 | |
234 | local Rooted = false | |
235 | local SINE = 0 | |
236 | local KEYHOLD = false | |
237 | local CHANGE = 2 / Animation_Speed | |
238 | local WALKINGANIM = false | |
239 | local VALUE1 = false | |
240 | local VALUE2 = false | |
241 | local ROBLOXIDLEANIMATION = IT("Animation") | |
242 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
243 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
244 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
245 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
246 | WEAPONGUI.Name = "Weapon GUI" | |
247 | local Effects = IT("Folder", Character) | |
248 | Effects.Name = "Effects" | |
249 | local ANIMATOR = Humanoid.Animator | |
250 | local ANIMATE = Character.Animate | |
251 | local UNANCHOR = true | |
252 | local LAUGHS = {834001699,834001752,834001797,834001828} | |
253 | local SONGS = {534861083,530959353,1534958855,0} | |
254 | local CHOICE = MRANDOM(1,4) | |
255 | ||
256 | --//=================================\\ | |
257 | --\\=================================// | |
258 | ||
259 | ||
260 | ||
261 | ||
262 | --//=================================\\ | |
263 | --|| USEFUL VALUES | |
264 | --\\=================================// | |
265 | ||
266 | Animation_Speed = 3 | |
267 | local FORCERESET = false | |
268 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
269 | local Speed = 16 | |
270 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
271 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
272 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
273 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
274 | local DAMAGEMULTIPLIER = 1 | |
275 | local ANIM = "Idle" | |
276 | local ATTACK = false | |
277 | local EQUIPPED = false | |
278 | local HOLD = false | |
279 | local COMBO = 1 | |
280 | local Rooted = false | |
281 | local SINE = 0 | |
282 | local KEYHOLD = false | |
283 | local CHANGE = 2 / Animation_Speed | |
284 | local WALKINGANIM = false | |
285 | local VALUE1 = false | |
286 | local VALUE2 = false | |
287 | local ROBLOXIDLEANIMATION = IT("Animation") | |
288 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
289 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
290 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
291 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
292 | WEAPONGUI.Name = "BanishV3Gui" | |
293 | local Weapon = IT("Model") | |
294 | Weapon.Name = "Adds" | |
295 | local Effects = IT("Folder", Weapon) | |
296 | Effects.Name = "Effects" | |
297 | local ANIMATOR = Humanoid.Animator | |
298 | local ANIMATE = Character:FindFirstChild("Animate") | |
299 | local UNANCHOR = true | |
300 | local TOBANISH = {} | |
301 | script.Parent = PlayerGui | |
302 | ||
303 | --//=================================\\ | |
304 | --\\=================================// | |
305 | ||
306 | --//=================================\\ | |
307 | --|| ATTACK FUNCTIONS AND STUFF | |
308 | --\\=================================// | |
309 | ||
310 | function Unload() | |
311 | ATTACK = true | |
312 | Rooted = false | |
313 | repeat | |
314 | local GYRO = IT("BodyGyro",RootPart) | |
315 | GYRO.D = 175 | |
316 | GYRO.P = 20000 | |
317 | GYRO.MaxTorque = VT(0,40000,0) | |
318 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
319 | if COMBO == 1 then | |
320 | COMBO = 2 | |
321 | for i=0, 0.6, 0.1 / Animation_Speed do | |
322 | Swait() | |
323 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
324 | 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) | |
325 | 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) | |
326 | 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) | |
327 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
328 | 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) | |
329 | 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) | |
330 | end | |
331 | 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}) | |
332 | 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}) | |
333 | CreateSound(145080998, LeftHole, 7, 1, false) | |
334 | BulletDetection(LeftHole.Position,Mouse.Hit.p,false) | |
335 | for i=0, 0.2, 0.1 / Animation_Speed do | |
336 | Swait() | |
337 | 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) | |
338 | 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) | |
339 | 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) | |
340 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
341 | 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) | |
342 | 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) | |
343 | end | |
344 | elseif COMBO == 2 then | |
345 | COMBO = 1 | |
346 | for i=0, 0.6, 0.1 / Animation_Speed do | |
347 | Swait() | |
348 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
349 | 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) | |
350 | 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) | |
351 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
352 | 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) | |
353 | 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) | |
354 | 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) | |
355 | end | |
356 | 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}) | |
357 | 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}) | |
358 | CreateSound(145080998, RightHole, 7, 1, false) | |
359 | BulletDetection(RightHole.Position,Mouse.Hit.p,false) | |
360 | for i=0, 0.2, 0.1 / Animation_Speed do | |
361 | Swait() | |
362 | 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) | |
363 | 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) | |
364 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
365 | 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) | |
366 | 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) | |
367 | 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) | |
368 | end | |
369 | end | |
370 | GYRO:remove() | |
371 | until KEYHOLD == false | |
372 | ATTACK = false | |
373 | Rooted = false | |
374 | end | |
375 | function Psyo() | |
376 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
377 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
378 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
379 | if TORSO and HUM.Health > 0 then | |
380 | ATTACK = true | |
381 | Rooted = false | |
382 | local GYRO = IT("BodyGyro",RootPart) | |
383 | GYRO.D = 275 | |
384 | GYRO.P = 20000 | |
385 | GYRO.MaxTorque = VT(0,40000,0) | |
386 | for i=0, 0.8, 0.1 / Animation_Speed do | |
387 | Swait() | |
388 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
389 | 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) | |
390 | 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) | |
391 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
392 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
393 | 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) | |
394 | 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) | |
395 | end | |
396 | local MAGIC = ParticleEmitter({Speed = 5, Drag = 3, Size1 = 1.7, Size2 = 0, Lifetime1 = 1, Lifetime2 = 3, Parent = TORSO, Emit = 100, Offset = 360, Enabled = true}) | |
397 | MAGIC.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) | |
398 | local grav = Instance.new("BodyPosition",TORSO) | |
399 | grav.D = 1500 | |
400 | grav.P = 20000 | |
401 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
402 | grav.position = TORSO.Position+VT(0,15,0) | |
403 | Debris:AddItem(grav,10) | |
404 | Debris:AddItem(MAGIC,10) | |
405 | CreateSound(429459101, Torso, 7, 1, false) | |
406 | CreateSound(429459101, TORSO, 7, 1, false) | |
407 | for i=0, 1, 0.1 / Animation_Speed do | |
408 | Swait() | |
409 | 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) | |
410 | 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) | |
411 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
412 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(45), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
413 | 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) | |
414 | 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) | |
415 | end | |
416 | GYRO:remove() | |
417 | ATTACK = false | |
418 | Rooted = false | |
419 | end | |
420 | end | |
421 | end | |
422 | function Cleave() | |
423 | ATTACK = true | |
424 | Rooted = false | |
425 | local TARGET = nil | |
426 | local TORS = nil | |
427 | local GYRO = IT("BodyGyro",RootPart) | |
428 | GYRO.D = 175 | |
429 | GYRO.P = 20000 | |
430 | GYRO.MaxTorque = VT(0,40000,0) | |
431 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
432 | local RANGE = 5 | |
433 | CreateSound(541909867, Torso, 7, 1, false) | |
434 | 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(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
435 | for i=0, 1, 0.1 / Animation_Speed do | |
436 | Swait() | |
437 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-2) | |
438 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
439 | local CHILDREN = workspace:GetDescendants() | |
440 | for index, CHILD in pairs(CHILDREN) do | |
441 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
442 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
443 | if HUM then | |
444 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
445 | if TORSO then | |
446 | if (TORSO.Position - LeftHole.Position).Magnitude <= RANGE + TORSO.Size.Magnitude/5 then | |
447 | RANGE = (TORSO.Position - LeftHole.Position).Magnitude | |
448 | TARGET = HUM | |
449 | TORS = TORSO | |
450 | end | |
451 | end | |
452 | end | |
453 | end | |
454 | end | |
455 | if TARGET then | |
456 | break | |
457 | end | |
458 | 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) | |
459 | 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) | |
460 | 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) | |
461 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
462 | 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) | |
463 | 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) | |
464 | end | |
465 | GYRO:remove() | |
466 | if TORS and TARGET then | |
467 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) | |
468 | Rooted = true | |
469 | local BODYPOSITION = IT("BodyPosition", TORS) | |
470 | BODYPOSITION.P = 2000 | |
471 | BODYPOSITION.D = 100 | |
472 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
473 | for i=0, 1, 0.1 / Animation_Speed do | |
474 | Swait() | |
475 | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
476 | BODYPOSITION.Position = TORS.Position | |
477 | 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) | |
478 | 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) | |
479 | 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) | |
480 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
481 | 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) | |
482 | 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) | |
483 | end | |
484 | for i=0, 0.4, 0.1 / Animation_Speed do | |
485 | Swait() | |
486 | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
487 | BODYPOSITION.Position = TORS.Position | |
488 | 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) | |
489 | 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) | |
490 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
491 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
492 | 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) | |
493 | 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) | |
494 | end | |
495 | local LOOP = 0 | |
496 | local LOOP2 = 0 | |
497 | for i=0, 5, 0.1 / Animation_Speed do | |
498 | Swait() | |
499 | LOOP = LOOP + 1 | |
500 | TORS.Anchored = true | |
501 | LOOP2 = LOOP2 + 1 | |
502 | if LOOP2 >= 5 then | |
503 | 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}) | |
504 | 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}) | |
505 | CreateSound(145080998, RightHole, 7, 1, false) | |
506 | SpawnTrail(RightHole.Position,RightHole.CFrame*CF(0,500,0).p) | |
507 | LOOP2 = 0 | |
508 | getbloody(TORS,1) | |
509 | end | |
510 | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
511 | BODYPOSITION.Position = TORS.Position | |
512 | 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) | |
513 | 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) | |
514 | 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) | |
515 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
516 | 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) | |
517 | 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) | |
518 | end | |
519 | BODYPOSITION:remove() | |
520 | if TORS then | |
521 | TORS.Anchored = false | |
522 | Kill(TORS.Parent) | |
523 | end | |
524 | end | |
525 | ATTACK = false | |
526 | Rooted = false | |
527 | end | |
528 | function Lock_n_Load() | |
529 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
530 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
531 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
532 | if TORSO and HUM.Health > 0 then | |
533 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) | |
534 | ATTACK = true | |
535 | Rooted = true | |
536 | local GYRO = IT("BodyGyro",RootPart) | |
537 | GYRO.D = 175 | |
538 | GYRO.P = 20000 | |
539 | GYRO.MaxTorque = VT(0,40000,0) | |
540 | if COMBO == 1 then | |
541 | COMBO = 2 | |
542 | for i=0, 1, 0.1 / Animation_Speed do | |
543 | Swait() | |
544 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
545 | 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) | |
546 | 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) | |
547 | 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) | |
548 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
549 | 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) | |
550 | 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) | |
551 | end | |
552 | 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}) | |
553 | 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}) | |
554 | CreateSound(145080998, LeftHole, 7, 1, false) | |
555 | BulletDetection(LeftHole.Position,TORSO.Position,false) | |
556 | for i=0, 0.4, 0.1 / Animation_Speed do | |
557 | Swait() | |
558 | 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) | |
559 | 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) | |
560 | 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) | |
561 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
562 | 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) | |
563 | 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) | |
564 | end | |
565 | elseif COMBO == 2 then | |
566 | COMBO = 1 | |
567 | for i=0, 1, 0.1 / Animation_Speed do | |
568 | Swait() | |
569 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
570 | 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) | |
571 | 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) | |
572 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
573 | 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) | |
574 | 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) | |
575 | 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) | |
576 | end | |
577 | 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}) | |
578 | 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}) | |
579 | CreateSound(145080998, RightHole, 7, 1, false) | |
580 | BulletDetection(RightHole.Position,TORSO.Position,false) | |
581 | for i=0, 0.4, 0.1 / Animation_Speed do | |
582 | Swait() | |
583 | 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) | |
584 | 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) | |
585 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
586 | 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) | |
587 | 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) | |
588 | 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) | |
589 | end | |
590 | end | |
591 | GYRO:remove() | |
592 | ATTACK = false | |
593 | Rooted = false | |
594 | end | |
595 | end | |
596 | end | |
597 | function Morning_Star() | |
598 | ATTACK = true | |
599 | Rooted = true | |
600 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) | |
601 | for i=0, 1, 0.1 / Animation_Speed do | |
602 | Swait() | |
603 | 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) | |
604 | 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) | |
605 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
606 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
607 | 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) | |
608 | 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) | |
609 | end | |
610 | coroutine.resume(coroutine.create(function() | |
611 | local POS = Mouse.Hit.p | |
612 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Strike", VT(0,2000,0)) | |
613 | MakeForm(RAY,"Cyl") | |
614 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Strike", VT(0,0,0)) | |
615 | MakeForm(SPHERE,"Ball") | |
616 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0)) | |
617 | MakeForm(SHIELD,"Ball") | |
618 | SHIELD.CFrame = CF(POS) | |
619 | RAY.CFrame = CF(POS) | |
620 | SPHERE.CFrame = CF(POS) | |
621 | CreateSound(440145570, SPHERE, 10, 0.8, false) | |
622 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
623 | for i = 1, 200 do | |
624 | Swait() | |
625 | 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}) | |
626 | RAY.Size = RAY.Size + VT(0.05,0,0.05) | |
627 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
628 | SHIELD.Size = SPHERE.Size + VT(3,3,3) | |
629 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
630 | end | |
631 | for i = 1, 45 do | |
632 | Swait() | |
633 | RAY.Transparency = RAY.Transparency + 1/45 | |
634 | SPHERE.Transparency = RAY.Transparency | |
635 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
636 | end | |
637 | RAY:remove() | |
638 | SHIELD:remove() | |
639 | SPHERE:remove() | |
640 | end)) | |
641 | for i=0, 1, 0.1 / Animation_Speed do | |
642 | Swait() | |
643 | 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) | |
644 | 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) | |
645 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
646 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
647 | 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) | |
648 | 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) | |
649 | end | |
650 | ATTACK = false | |
651 | Rooted = false | |
652 | end | |
653 | function Deathbound() | |
654 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) | |
655 | ATTACK = true | |
656 | Rooted = true | |
657 | for i=0, 1, 0.1 / Animation_Speed do | |
658 | Swait() | |
659 | 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) | |
660 | 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) | |
661 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
662 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
663 | 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) | |
664 | 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) | |
665 | end | |
666 | local DONE = false | |
667 | local GATE = nil | |
668 | local GATESPIN = true | |
669 | coroutine.resume(coroutine.create(function() | |
670 | repeat | |
671 | Swait() | |
672 | if GATE ~= nil then | |
673 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
674 | end | |
675 | until GATESPIN == false | |
676 | end)) | |
677 | coroutine.resume(coroutine.create(function() | |
678 | repeat | |
679 | Swait() | |
680 | 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) | |
681 | 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) | |
682 | 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) | |
683 | 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) | |
684 | 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) | |
685 | 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) | |
686 | until DONE == true | |
687 | Swait(50) | |
688 | for i = 1, 35 do | |
689 | Swait(4) | |
690 | local FIRED = false | |
691 | local CHILDREN = workspace:GetDescendants() | |
692 | for index, CHILD in pairs(CHILDREN) do | |
693 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
694 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
695 | if HUM then | |
696 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
697 | if TORSO then | |
698 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
699 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
700 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
701 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6}) | |
702 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
703 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
704 | Kill(CHILD) | |
705 | FIRED = true | |
706 | break | |
707 | end | |
708 | end | |
709 | end | |
710 | end | |
711 | end | |
712 | if FIRED == false then | |
713 | 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))) | |
714 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6}) | |
715 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
716 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
717 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
718 | if HITBOD ~= nil then | |
719 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
720 | Kill(HITBOD.Parent) | |
721 | end | |
722 | end | |
723 | end | |
724 | end | |
725 | for i = 1, 45 do | |
726 | Swait() | |
727 | GATE.Size = GATE.Size - VT(3,0,3) | |
728 | end | |
729 | GATESPIN = false | |
730 | GATE:remove() | |
731 | end)) | |
732 | Swait(15) | |
733 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
734 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Gate", VT(0,0,0)) | |
735 | local DECAL = IT("Decal",GATE) | |
736 | DECAL.Texture = "http://www.roblox.com/asset/?id=1526406096" | |
737 | DECAL.Face = "Top" | |
738 | GATE.CFrame = CF(HITPOS) | |
739 | CreateSound(160772554, GATE, 7, 1.3, false) | |
740 | for i = 1, 45 do | |
741 | Swait() | |
742 | GATE.Size = GATE.Size + VT(3,0,3) | |
743 | end | |
744 | CreateSound(145080998, RightHole, 7, 1, false) | |
745 | CreateSound(145080998, LeftHole, 7, 1, false) | |
746 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), 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(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
747 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), 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(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
748 | ATTACK = false | |
749 | Rooted = false | |
750 | DONE = true | |
751 | end | |
752 | function Execute() | |
753 | ATTACK = true | |
754 | Rooted = false | |
755 | local Part = CreatePart(3, Character, "Neon", 0, 0, "Mid gray", "Part", VT(0,1,4),false) | |
756 | Part.Color = C3(0,0,0) | |
757 | MakeForm(Part,"Wedge") | |
758 | Part.CanCollide = true | |
759 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(135)) *CF(0, 0.5, 0), CF(0, 0, 0)) | |
760 | for i=0, 1, 0.1 / Animation_Speed do | |
761 | Swait() | |
762 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
763 | 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) | |
764 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
765 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
766 | 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) | |
767 | 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) | |
768 | end | |
769 | Trail.Enabled = true | |
770 | CreateSound(541909867, RightBarrel, 7, 1, false) | |
771 | local TOCH = Part.Touched:Connect(function(hit) | |
772 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= Character then | |
773 | Kill(hit.Parent) | |
774 | end | |
775 | end) | |
776 | for i=0, 0.35, 0.1 / Animation_Speed do | |
777 | Swait() | |
778 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) | |
779 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
780 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
781 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
782 | 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) | |
783 | 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) | |
784 | end | |
785 | TOCH:disconnect() | |
786 | Trail.Enabled = false | |
787 | for i=0, 0.35, 0.1 / Animation_Speed do | |
788 | Swait() | |
789 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(60)), 1 / Animation_Speed) | |
790 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-55)), 1 / Animation_Speed) | |
791 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
792 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
793 | 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) | |
794 | 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) | |
795 | end | |
796 | Part:remove() | |
797 | ATTACK = false | |
798 | Rooted = false | |
799 | end | |
800 | ||
801 | --//=================================\\ | |
802 | --|| ASSIGN THINGS TO KEYS | |
803 | --\\=================================// | |
804 | ||
805 | ||
806 | --//=================================\\ | |
807 | --|| WRAP THE WHOLE SCRIPT UP | |
808 | --\\=================================// | |
809 | ||
810 | Humanoid.Changed:connect(function(Jump) | |
811 | if Jump == "Jump" and (Disable_Jump == true) then | |
812 | Humanoid.Jump = false | |
813 | end | |
814 | end) | |
815 | ||
816 | while true do | |
817 | Swait() | |
818 | Humanoid.HipHeight = 1.5 | |
819 | script.Parent = WEAPONGUI | |
820 | ANIMATE.Parent = nil | |
821 | if Humanoid then | |
822 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
823 | IDLEANIMATION:Play() | |
824 | end | |
825 | SINE = SINE + CHANGE | |
826 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
827 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
828 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
829 | if ATTACK == false then | |
830 | if TORSOVELOCITY < 1 then | |
831 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
832 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
833 | 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) | |
834 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
835 | 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) | |
836 | 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) | |
837 | elseif TORSOVELOCITY > 1 then | |
838 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
839 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
840 | 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) | |
841 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
842 | RightHip.C0 = Clerp(RightHip.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)), 1 / Animation_Speed) | |
843 | 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) | |
844 | end | |
845 | end | |
846 | RightArmGrasp.C0 = Clerp(RightArmGrasp.C0, CF(0, -0.815+0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(90-4.5 * SIN(SINE / 12)), RAD(-1.5 * SIN(SINE / 12)), RAD(0)), 1 / Animation_Speed) | |
847 | LeftArmGraps.C0 = Clerp(LeftArmGraps.C0, CF(0, -0.815+0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(90-4.5 * SIN(SINE / 12)), RAD(1.5 * SIN(SINE / 12)), RAD(0)), 1 / Animation_Speed) | |
848 | unanchor() | |
849 | Humanoid.MaxHealth = "inf" | |
850 | Humanoid.Health = "inf" | |
851 | if Rooted == false then | |
852 | Disable_Jump = false | |
853 | Humanoid.WalkSpeed = Speed | |
854 | elseif Rooted == true then | |
855 | Disable_Jump = true | |
856 | Humanoid.WalkSpeed = 0 | |
857 | end | |
858 | for _, c in pairs(Character:GetDescendants()) do | |
859 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
860 | c.Material = "Neon" | |
861 | c.Color = C3(0,0,0) | |
862 | if c:FindFirstChildOfClass("SpecialMesh") then | |
863 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
864 | end | |
865 | if c == Head then | |
866 | if c:FindFirstChild("face") then | |
867 | c.face:remove() | |
868 | end | |
869 | end | |
870 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
871 | c.Color = C3(1,0,0) | |
872 | c.Material = "Neon" | |
873 | elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then | |
874 | c:remove() | |
875 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
876 | c:remove() | |
877 | end | |
878 | end | |
879 | refit() | |
880 | Humanoid.Name = "Deadeyes" | |
881 | sick.Parent = Torso | |
882 | sick:resume() | |
883 | sick.Volume = 5 | |
884 | sick.Pitch = 1 | |
885 | sick.SoundId = "rbxassetid://"..SONGS[CHOICE] | |
886 | if Head:FindFirstChildOfClass("Sound") then | |
887 | Head:FindFirstChildOfClass("Sound"):remove() | |
888 | end | |
889 | end | |
890 | ||
891 | --//=================================\\ | |
892 | --\\=================================// | |
893 | ||
894 | ||
895 | --//=================================\\ | |
896 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
897 | --\\=================================// | |
898 | ||
899 | ArtificialHB = Instance.new("BindableEvent", script) | |
900 | ArtificialHB.Name = "ArtificialHB" | |
901 | ||
902 | script:WaitForChild("ArtificialHB") | |
903 | ||
904 | frame = Frame_Speed | |
905 | tf = 0 | |
906 | allowframeloss = false | |
907 | tossremainder = false | |
908 | lastframe = tick() | |
909 | script.ArtificialHB:Fire() | |
910 | ||
911 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
912 | tf = tf + s | |
913 | if tf >= frame then | |
914 | if allowframeloss then | |
915 | script.ArtificialHB:Fire() | |
916 | lastframe = tick() | |
917 | else | |
918 | for i = 1, math.floor(tf / frame) do | |
919 | script.ArtificialHB:Fire() | |
920 | end | |
921 | lastframe = tick() | |
922 | end | |
923 | if tossremainder then | |
924 | tf = 0 | |
925 | else | |
926 | tf = tf - frame * math.floor(tf / frame) | |
927 | end | |
928 | end | |
929 | end) | |
930 | ||
931 | --//=================================\\ | |
932 | --\\=================================// | |
933 | ||
934 | --//=================================\\ | |
935 | --|| SOME FUNCTIONS | |
936 | --\\=================================// | |
937 | ||
938 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
939 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
940 | end | |
941 | ||
942 | function PositiveAngle(NUMBER) | |
943 | if NUMBER >= 0 then | |
944 | NUMBER = 0 | |
945 | end | |
946 | return NUMBER | |
947 | end | |
948 | ||
949 | function NegativeAngle(NUMBER) | |
950 | if NUMBER <= 0 then | |
951 | NUMBER = 0 | |
952 | end | |
953 | return NUMBER | |
954 | end | |
955 | ||
956 | function Swait(NUMBER) | |
957 | if NUMBER == 0 or NUMBER == nil then | |
958 | ArtificialHB.Event:wait() | |
959 | else | |
960 | for i = 1, NUMBER do | |
961 | ArtificialHB.Event:wait() | |
962 | end | |
963 | end | |
964 | end | |
965 | ||
966 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
967 | local NEWMESH = IT(MESH) | |
968 | if MESH == "SpecialMesh" then | |
969 | NEWMESH.MeshType = MESHTYPE | |
970 | if MESHID ~= "nil" and MESHID ~= "" then | |
971 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
972 | end | |
973 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
974 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
975 | end | |
976 | end | |
977 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
978 | NEWMESH.Scale = SCALE | |
979 | NEWMESH.Parent = PARENT | |
980 | return NEWMESH | |
981 | end | |
982 | ||
983 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
984 | local NEWPART = IT("Part") | |
985 | NEWPART.formFactor = FORMFACTOR | |
986 | NEWPART.Reflectance = REFLECTANCE | |
987 | NEWPART.Transparency = TRANSPARENCY | |
988 | NEWPART.CanCollide = false | |
989 | NEWPART.Locked = true | |
990 | NEWPART.Anchored = true | |
991 | if ANCHOR == false then | |
992 | NEWPART.Anchored = false | |
993 | end | |
994 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
995 | NEWPART.Name = NAME | |
996 | NEWPART.Size = SIZE | |
997 | NEWPART.Position = Torso.Position | |
998 | NEWPART.Material = MATERIAL | |
999 | NEWPART:BreakJoints() | |
1000 | NEWPART.Parent = PARENT | |
1001 | return NEWPART | |
1002 | end | |
1003 | ||
1004 | local function weldBetween(a, b) | |
1005 | local weldd = Instance.new("ManualWeld") | |
1006 | weldd.Part0 = a | |
1007 | weldd.Part1 = b | |
1008 | weldd.C0 = CFrame.new() | |
1009 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
1010 | weldd.Parent = a | |
1011 | return weldd | |
1012 | end | |
1013 | ||
1014 | ||
1015 | function QuaternionFromCFrame(cf) | |
1016 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1017 | local trace = m00 + m11 + m22 | |
1018 | if trace > 0 then | |
1019 | local s = math.sqrt(1 + trace) | |
1020 | local recip = 0.5 / s | |
1021 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1022 | else | |
1023 | local i = 0 | |
1024 | if m11 > m00 then | |
1025 | i = 1 | |
1026 | end | |
1027 | if m22 > (i == 0 and m00 or m11) then | |
1028 | i = 2 | |
1029 | end | |
1030 | if i == 0 then | |
1031 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1032 | local recip = 0.5 / s | |
1033 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1034 | elseif i == 1 then | |
1035 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1036 | local recip = 0.5 / s | |
1037 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1038 | elseif i == 2 then | |
1039 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1040 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1041 | end | |
1042 | end | |
1043 | end | |
1044 | ||
1045 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1046 | local xs, ys, zs = x + x, y + y, z + z | |
1047 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1048 | local xx = x * xs | |
1049 | local xy = x * ys | |
1050 | local xz = x * zs | |
1051 | local yy = y * ys | |
1052 | local yz = y * zs | |
1053 | local zz = z * zs | |
1054 | 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)) | |
1055 | end | |
1056 | ||
1057 | function QuaternionSlerp(a, b, t) | |
1058 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1059 | local startInterp, finishInterp; | |
1060 | if cosTheta >= 0.0001 then | |
1061 | if (1 - cosTheta) > 0.0001 then | |
1062 | local theta = ACOS(cosTheta) | |
1063 | local invSinTheta = 1 / SIN(theta) | |
1064 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
1065 | finishInterp = SIN(t * theta) * invSinTheta | |
1066 | else | |
1067 | startInterp = 1 - t | |
1068 | finishInterp = t | |
1069 | end | |
1070 | else | |
1071 | if (1 + cosTheta) > 0.0001 then | |
1072 | local theta = ACOS(-cosTheta) | |
1073 | local invSinTheta = 1 / SIN(theta) | |
1074 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
1075 | finishInterp = SIN(t * theta) * invSinTheta | |
1076 | else | |
1077 | startInterp = t - 1 | |
1078 | finishInterp = t | |
1079 | end | |
1080 | end | |
1081 | 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 | |
1082 | end | |
1083 | ||
1084 | function Clerp(a, b, t) | |
1085 | local qa = {QuaternionFromCFrame(a)} | |
1086 | local qb = {QuaternionFromCFrame(b)} | |
1087 | local ax, ay, az = a.x, a.y, a.z | |
1088 | local bx, by, bz = b.x, b.y, b.z | |
1089 | local _t = 1 - t | |
1090 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1091 | end | |
1092 | ||
1093 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
1094 | local frame = IT("Frame") | |
1095 | frame.BackgroundTransparency = TRANSPARENCY | |
1096 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
1097 | frame.Position = POSITION | |
1098 | frame.Size = SIZE | |
1099 | frame.BackgroundColor3 = COLOR | |
1100 | frame.BorderColor3 = BORDERCOLOR | |
1101 | frame.Name = NAME | |
1102 | frame.Parent = PARENT | |
1103 | return frame | |
1104 | end | |
1105 | ||
1106 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
1107 | local label = IT("TextLabel") | |
1108 | label.BackgroundTransparency = 1 | |
1109 | label.Size = UD2(1, 0, 1, 0) | |
1110 | label.Position = UD2(0, 0, 0, 0) | |
1111 | label.TextColor3 = TEXTCOLOR | |
1112 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
1113 | label.TextTransparency = TRANSPARENCY | |
1114 | label.FontSize = TEXTFONTSIZE | |
1115 | label.Font = TEXTFONT | |
1116 | label.BorderSizePixel = BORDERSIZEPIXEL | |
1117 | label.TextScaled = false | |
1118 | label.Text = TEXT | |
1119 | label.Name = NAME | |
1120 | label.Parent = PARENT | |
1121 | return label | |
1122 | end | |
1123 | ||
1124 | function NoOutlines(PART) | |
1125 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
1126 | end | |
1127 | ||
1128 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
1129 | local NEWWELD = IT(TYPE) | |
1130 | NEWWELD.Part0 = PART0 | |
1131 | NEWWELD.Part1 = PART1 | |
1132 | NEWWELD.C0 = C0 | |
1133 | NEWWELD.C1 = C1 | |
1134 | NEWWELD.Parent = PARENT | |
1135 | return NEWWELD | |
1136 | end | |
1137 | ||
1138 | local S = IT("Sound") | |
1139 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
1140 | local NEWSOUND = nil | |
1141 | coroutine.resume(coroutine.create(function() | |
1142 | NEWSOUND = S:Clone() | |
1143 | NEWSOUND.Parent = PARENT | |
1144 | NEWSOUND.Volume = VOLUME | |
1145 | NEWSOUND.Pitch = PITCH | |
1146 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1147 | NEWSOUND:play() | |
1148 | if DOESLOOP == true then | |
1149 | NEWSOUND.Looped = true | |
1150 | else | |
1151 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
1152 | NEWSOUND:remove() | |
1153 | end | |
1154 | end)) | |
1155 | return NEWSOUND | |
1156 | end | |
1157 | ||
1158 | function CFrameFromTopBack(at, top, back) | |
1159 | local right = top:Cross(back) | |
1160 | 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) | |
1161 | end | |
1162 | ||
1163 | --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}) | |
1164 | function WACKYEFFECT(Table) | |
1165 | local TYPE = (Table.EffectType or "Sphere") | |
1166 | local SIZE = (Table.Size or VT(1,1,1)) | |
1167 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
1168 | local TRANSPARENCY = (Table.Transparency or 0) | |
1169 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1170 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1171 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1172 | local ROTATION1 = (Table.RotationX or 0) | |
1173 | local ROTATION2 = (Table.RotationY or 0) | |
1174 | local ROTATION3 = (Table.RotationZ or 0) | |
1175 | local MATERIAL = (Table.Material or "Neon") | |
1176 | local COLOR = (Table.Color or C3(1,1,1)) | |
1177 | local TIME = (Table.Time or 45) | |
1178 | local SOUNDID = (Table.SoundID or nil) | |
1179 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1180 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1181 | coroutine.resume(coroutine.create(function() | |
1182 | local PLAYSSOUND = false | |
1183 | local SOUND = nil | |
1184 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
1185 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1186 | PLAYSSOUND = true | |
1187 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1188 | end | |
1189 | EFFECT.Color = COLOR | |
1190 | local MSH = nil | |
1191 | if TYPE == "Sphere" then | |
1192 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1193 | elseif TYPE == "Block" then | |
1194 | MSH = IT("BlockMesh",EFFECT) | |
1195 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
1196 | elseif TYPE == "Wave" then | |
1197 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1198 | elseif TYPE == "Ring" then | |
1199 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1200 | elseif TYPE == "Slash" then | |
1201 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1202 | elseif TYPE == "Round Slash" then | |
1203 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1204 | elseif TYPE == "Swirl" then | |
1205 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1206 | elseif TYPE == "Skull" then | |
1207 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1208 | elseif TYPE == "Crystal" then | |
1209 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1210 | end | |
1211 | if MSH ~= nil then | |
1212 | local MOVESPEED = nil | |
1213 | if MOVEDIRECTION ~= nil then | |
1214 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1215 | end | |
1216 | local GROWTH = SIZE - ENDSIZE | |
1217 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1218 | if TYPE == "Block" then | |
1219 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1220 | else | |
1221 | EFFECT.CFrame = CFRAME | |
1222 | end | |
1223 | for LOOP = 1, TIME+1 do | |
1224 | Swait() | |
1225 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1226 | if TYPE == "Wave" then | |
1227 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1228 | end | |
1229 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1230 | if TYPE == "Block" then | |
1231 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1232 | else | |
1233 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1234 | end | |
1235 | if MOVEDIRECTION ~= nil then | |
1236 | local ORI = EFFECT.Orientation | |
1237 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1238 | EFFECT.Orientation = ORI | |
1239 | end | |
1240 | end | |
1241 | if PLAYSSOUND == false then | |
1242 | EFFECT:remove() | |
1243 | else | |
1244 | SOUND.Stopped:Connect(function() | |
1245 | EFFECT:remove() | |
1246 | end) | |
1247 | end | |
1248 | else | |
1249 | if PLAYSSOUND == false then | |
1250 | EFFECT:remove() | |
1251 | else | |
1252 | repeat Swait() until SOUND.Playing == false | |
1253 | EFFECT:remove() | |
1254 | end | |
1255 | end | |
1256 | end)) | |
1257 | end | |
1258 | ||
1259 | function MakeForm(PART,TYPE) | |
1260 | if TYPE == "Cyl" then | |
1261 | local MSH = IT("CylinderMesh",PART) | |
1262 | elseif TYPE == "Ball" then | |
1263 | local MSH = IT("SpecialMesh",PART) | |
1264 | MSH.MeshType = "Sphere" | |
1265 | elseif TYPE == "Wedge" then | |
1266 | local MSH = IT("SpecialMesh",PART) | |
1267 | MSH.MeshType = "Wedge" | |
1268 | end | |
1269 | end | |
1270 | ||
1271 | function SpawnTrail(FROM,TO,BIG) | |
1272 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Cyan", "Trail", VT(0,0,0)) | |
1273 | MakeForm(TRAIL,"Cyl") | |
1274 | local DIST = (FROM - TO).Magnitude | |
1275 | if BIG == true then | |
1276 | TRAIL.Size = VT(0.5,DIST,0.5) | |
1277 | else | |
1278 | TRAIL.Size = VT(0.25,DIST,0.25) | |
1279 | end | |
1280 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
1281 | coroutine.resume(coroutine.create(function() | |
1282 | for i = 1, 5 do | |
1283 | Swait() | |
1284 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
1285 | end | |
1286 | TRAIL:remove() | |
1287 | end)) | |
1288 | end | |
1289 | ||
1290 | Debris = game:GetService("Debris") | |
1291 | ||
1292 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
1293 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
1294 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
1295 | end | |
1296 | ||
1297 | function turnto(position) | |
1298 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
1299 | end | |
1300 | ||
1301 | --//=================================\\ | |
1302 | --|| WEAPON CREATION | |
1303 | --\\=================================// | |
1304 | ||
1305 | local Particle = IT("ParticleEmitter",nil) | |
1306 | Particle.Enabled = false | |
1307 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
1308 | Particle.LightEmission = 0.5 | |
1309 | Particle.Rate = 150 | |
1310 | Particle.ZOffset = 0.2 | |
1311 | Particle.Rotation = NumberRange.new(-180, 180) | |
1312 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
1313 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
1314 | Particle.Color = ColorSequence.new(C3(0,0,255),C3(0,255,255)) | |
1315 | local Particle2 = IT("ParticleEmitter",nil) | |
1316 | Particle2.Enabled = false | |
1317 | Particle2.Texture = "http://www.roblox.com/asset/?id=1369397597" | |
1318 | Particle2.Color = ColorSequence.new(C3(0,0,255),C3(0,0,255)) | |
1319 | Particle2.LightEmission = 0 | |
1320 | Particle2.RotSpeed = NumberRange.new(0, 180) | |
1321 | Particle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
1322 | Particle2.LightEmission = 1 | |
1323 | Particle2.Rate = 20 | |
1324 | Particle2.RotSpeed = NumberRange.new(-20, 20) | |
1325 | local Particle3 = IT("ParticleEmitter",nil) | |
1326 | Particle3.Enabled = false | |
1327 | Particle3.Texture = "http://www.roblox.com/asset/?id=1546470121" | |
1328 | Particle3.Color = ColorSequence.new(C3(0,0,255),C3(0,0,255)) | |
1329 | Particle3.LightEmission = 0 | |
1330 | Particle3.RotSpeed = NumberRange.new(0, 180) | |
1331 | Particle3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.7),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)}) | |
1332 | Particle3.LightEmission = 1 | |
1333 | Particle3.Rate = 20 | |
1334 | Particle3.RotSpeed = NumberRange.new(-20, 20) | |
1335 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
1336 | function ParticleEmitter(Table) | |
1337 | local PRTCL = Particle:Clone() | |
1338 | local Speed = Table.Speed or 5 | |
1339 | local Drag = Table.Drag or 0 | |
1340 | local Size1 = Table.Size1 or 1 | |
1341 | local Size2 = Table.Size2 or 5 | |
1342 | local Lifetime1 = Table.Lifetime1 or 1 | |
1343 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
1344 | local Parent = Table.Parent or Torso | |
1345 | local Emit = Table.Emit or 100 | |
1346 | local Offset = Table.Offset or 360 | |
1347 | local Acel = Table.Acel or VT(0,0,0) | |
1348 | local Enabled = Table.Enabled or false | |
1349 | PRTCL.Parent = Parent | |
1350 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
1351 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1352 | PRTCL.Speed = NumberRange.new(Speed) | |
1353 | PRTCL.VelocitySpread = Offset | |
1354 | PRTCL.Drag = Drag | |
1355 | PRTCL.Acceleration = Acel | |
1356 | if Enabled == false then | |
1357 | PRTCL:Emit(Emit) | |
1358 | Debris:AddItem(PRTCL,Lifetime2) | |
1359 | else | |
1360 | PRTCL.Enabled = true | |
1361 | end | |
1362 | return PRTCL | |
1363 | end | |
1364 | function ParticleEmitter2(Table) | |
1365 | local PRTCL2 = Particle2:Clone() | |
1366 | local LockedToPart = Table.LTP or true | |
1367 | local Speed = Table.Speed or 0 | |
1368 | local Drag = Table.Drag or 0 | |
1369 | local Size1 = Table.Size1 or 1 | |
1370 | local Size2 = Table.Size2 or 2 | |
1371 | local Lifetime1 = Table.Lifetime1 or 1 | |
1372 | local Lifetime2 = Table.Lifetime2 or 1 | |
1373 | local Parent = Table.Parent or Torso | |
1374 | local Emit = Table.Emit or 100 | |
1375 | local Offset = Table.Offset or 360 | |
1376 | local Acel = Table.Acel or VT(0,0,0) | |
1377 | local Enabled = Table.Enabled or false | |
1378 | PRTCL2.Parent = Parent | |
1379 | PRTCL2.Size = NumberSequence.new(Size1,Size2) | |
1380 | PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1381 | PRTCL2.Speed = NumberRange.new(Speed) | |
1382 | PRTCL2.VelocitySpread = Offset | |
1383 | PRTCL2.Drag = Drag | |
1384 | PRTCL2.Acceleration = Acel | |
1385 | PRTCL2.Parent = Parent | |
1386 | PRTCL2.Size = NumberSequence.new(Size1,Size2) | |
1387 | PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1388 | PRTCL2.Speed = NumberRange.new(Speed) | |
1389 | PRTCL2.VelocitySpread = Offset | |
1390 | PRTCL2.Drag = Drag | |
1391 | PRTCL2.Acceleration = Acel | |
1392 | PRTCL2.LockedToPart = true | |
1393 | if Enabled == false then | |
1394 | PRTCL2:Emit(Emit) | |
1395 | Debris:AddItem(PRTCL2,Lifetime2) | |
1396 | else | |
1397 | PRTCL2.Enabled = true | |
1398 | end | |
1399 | return PRTCL2 | |
1400 | end | |
1401 | function ParticleEmitter3(Table) | |
1402 | local PRTCL3 = Particle2:Clone() | |
1403 | local Speed = Table.Speed or 0 | |
1404 | local Drag = Table.Drag or 0 | |
1405 | local Size1 = Table.Size1 or 1 | |
1406 | local Size2 = Table.Size2 or 2 | |
1407 | local Lifetime1 = Table.Lifetime1 or 1 | |
1408 | local Lifetime2 = Table.Lifetime2 or 1 | |
1409 | local Parent = Table.Parent or Torso | |
1410 | local Emit = Table.Emit or 100 | |
1411 | local Offset = Table.Offset or 0 | |
1412 | local Acel = Table.Acel or VT(0,0,0) | |
1413 | local Enabled = Table.Enabled or false | |
1414 | PRTCL3.Parent = Parent | |
1415 | PRTCL3.Size = NumberSequence.new(Size1,Size2) | |
1416 | PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1417 | PRTCL3.Speed = NumberRange.new(Speed) | |
1418 | PRTCL3.VelocitySpread = Offset | |
1419 | PRTCL3.Drag = Drag | |
1420 | PRTCL3.Acceleration = Acel | |
1421 | PRTCL3.Parent = Parent | |
1422 | PRTCL3.Size = NumberSequence.new(Size1,Size2) | |
1423 | PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1424 | PRTCL3.Speed = NumberRange.new(Speed) | |
1425 | PRTCL3.VelocitySpread = Offset | |
1426 | PRTCL3.Drag = Drag | |
1427 | PRTCL3.Acceleration = Acel | |
1428 | if Enabled == false then | |
1429 | PRTCL3:Emit(Emit) | |
1430 | Debris:AddItem(PRTCL3,Lifetime2) | |
1431 | else | |
1432 | PRTCL3.Enabled = true | |
1433 | end | |
1434 | return PRTCL3 | |
1435 | end | |
1436 | ||
1437 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1438 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1439 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1440 | MakeForm(Part,"Wedge") | |
1441 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1442 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1443 | MakeForm(Part,"Wedge") | |
1444 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1445 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1446 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1447 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1448 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1449 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
1450 | MakeForm(Part,"Cyl") | |
1451 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1452 | for i = 1, 8 do | |
1453 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1454 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1455 | end | |
1456 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1457 | MakeForm(Part,"Cyl") | |
1458 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1459 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1460 | MakeForm(Part,"Ball") | |
1461 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1462 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1463 | MakeForm(Part,"Wedge") | |
1464 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1465 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1466 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1467 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1468 | MakeForm(Part,"Cyl") | |
1469 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1470 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1471 | MakeForm(Part,"Cyl") | |
1472 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1473 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1474 | MakeForm(Part,"Cyl") | |
1475 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1476 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1477 | MakeForm(Part,"Wedge") | |
1478 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1479 | local LASTPART = Handle | |
1480 | for i = 1, 10 do | |
1481 | if LASTPART == Handle then | |
1482 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1483 | LASTPART = Part | |
1484 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1485 | else | |
1486 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1487 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1488 | LASTPART = Part | |
1489 | end | |
1490 | end | |
1491 | ||
1492 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
1493 | MakeForm(Barrel,"Cyl") | |
1494 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1495 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1496 | MakeForm(Part,"Cyl") | |
1497 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1498 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1499 | MakeForm(Part,"Wedge") | |
1500 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1501 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1502 | MakeForm(Hole,"Cyl") | |
1503 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1504 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1505 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1506 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1507 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1508 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1509 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1510 | coroutine.resume(coroutine.create(function() | |
1511 | while wait() do | |
1512 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1513 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1514 | end | |
1515 | end)) | |
1516 | --PARTICLES REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE | |
1517 | --[[ | |
1518 | YEAH BOIIIIIIIII | |
1519 | PARTICLE TIME | |
1520 | --]] | |
1521 | 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)}) | |
1522 | --ParticleEmitter3({Speed = 0, Drag = 0, Size1 = 20, Size2 = 25, Lifetime1 = 0.3, Lifetime2 = 1, Parent = Barrel, Emit = 100, Offset = 0, Enabled = true, Acel = VT(0,0,0)}) | |
1523 | 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)}) | |
1524 | ParticleEmitter2({Speed = 0, Drag = 0, Size1 = .5, Size2 = 1, Lifetime1 = 1, Lifetime2 = 1, Parent = Hole, Emit = 20, Offset = 360, Enabled = true, Acel = VT(0,0,0)}) | |
1525 | ParticleEmitter2({Speed = 0, Drag = 0, Size1 = 3, Size2 = 1, Lifetime1 = 1, Lifetime2 = 2, Parent = Handle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,0,0)}) | |
1526 | --Trails | |
1527 | local A1 = Instance.new("Attachment",Barrel) | |
1528 | local A2 = Instance.new("Attachment",Barrel) | |
1529 | local Trail = Instance.new("Trail",Barrel) | |
1530 | A1.Position = Vector3.new(0,1,0) | |
1531 | A2.Position = Vector3.new(0,-0.8,0) | |
1532 | Trail.Attachment0 = A1 | |
1533 | Trail.Attachment1 = A2 | |
1534 | Trail.LightEmission = 1 | |
1535 | Trail.Color = ColorSequence.new(Color3.new(0,0,0),Color3.new(0,0,0)) | |
1536 | Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)}) | |
1537 | for _, c in pairs(Weapon:GetDescendants()) do | |
1538 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1539 | c.Material = "Glass" | |
1540 | c.Color = C3(0,0,0) | |
1541 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1542 | c.Color = C3(0,0,1) | |
1543 | c.Material = "Neon" | |
1544 | end | |
1545 | end | |
1546 | ||
1547 | Weapon.Parent = Character | |
1548 | for _, c in pairs(Weapon:GetChildren()) do | |
1549 | if c.ClassName == "Part" then | |
1550 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1551 | end | |
1552 | end | |
1553 | ||
1554 | local SKILLTEXTCOLOR = C3(0,0,1) | |
1555 | local SKILLFONT = "Antique" | |
1556 | local SKILLTEXTSIZE = 7 | |
1557 | ||
1558 | Humanoid.Died:connect(function() | |
1559 | ATTACK = true | |
1560 | end) | |
1561 | ||
1562 | 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") | |
1563 | --[[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") | |
1564 | 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") | |
1565 | 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") | |
1566 | 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") | |
1567 | --]] | |
1568 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
1569 | --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
1570 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
1571 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
1572 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
1573 | --]] | |
1574 | function printbye(Name) | |
1575 | 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, "} | |
1576 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
1577 | ||
1578 | end | |
1579 | ||
1580 | workspace.ChildAdded:connect(function(instance) | |
1581 | for BANISH = 1, #TOBANISH do | |
1582 | if TOBANISH[BANISH] ~= nil then | |
1583 | if instance.Name == TOBANISH[BANISH] then | |
1584 | coroutine.resume(coroutine.create(function() | |
1585 | printbye(instance.Name) | |
1586 | instance:ClearAllChildren() | |
1587 | Debris:AddItem(instance,0.0005) | |
1588 | end)) | |
1589 | end | |
1590 | end | |
1591 | end | |
1592 | end) | |
1593 | ||
1594 | --//=================================\\ | |
1595 | --|| DAMAGING | |
1596 | --\\=================================// | |
1597 | ||
1598 | function Banish(Foe) | |
1599 | if Foe then | |
1600 | coroutine.resume(coroutine.create(function() | |
1601 | --if game.Players:FindFirstChild(Foe.Name) then | |
1602 | table.insert(TOBANISH,Foe.Name) | |
1603 | printbye(Foe.Name) | |
1604 | --end | |
1605 | Foe.Archivable = true | |
1606 | local CLONE = Foe:Clone() | |
1607 | Foe:Destroy() | |
1608 | CLONE.Parent = Effects | |
1609 | CLONE:BreakJoints() | |
1610 | local MATERIALS = {"Glass","Neon"} | |
1611 | for _, c in pairs(CLONE:GetDescendants()) do | |
1612 | if c:IsA("BasePart") then | |
1613 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1614 | CreateSound(340722848, c, 10, 1, false) | |
1615 | end | |
1616 | c.Anchored = true | |
1617 | c.Transparency = c.Transparency + 0.2 | |
1618 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1619 | c.Color = C3(0,0,255) | |
1620 | if c.ClassName == "MeshPart" then | |
1621 | c.TextureID = "" | |
1622 | end | |
1623 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1624 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1625 | end | |
1626 | if c:FindFirstChildOfClass("Decal") then | |
1627 | c:FindFirstChildOfClass("Decal"):remove() | |
1628 | end | |
1629 | c.Name = "Banished" | |
1630 | c.CanCollide = false | |
1631 | else | |
1632 | c:remove() | |
1633 | end | |
1634 | end | |
1635 | local A = false | |
1636 | for i = 1, 35 do | |
1637 | if A == false then | |
1638 | A = true | |
1639 | elseif A == true then | |
1640 | A = false | |
1641 | end | |
1642 | for _, c in pairs(CLONE:GetDescendants()) do | |
1643 | if c:IsA("BasePart") then | |
1644 | c.Anchored = true | |
1645 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1646 | c.Transparency = c.Transparency + 0.8/35 | |
1647 | if A == false then | |
1648 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1649 | elseif A == true then | |
1650 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1651 | end | |
1652 | end | |
1653 | end | |
1654 | Swait() | |
1655 | end | |
1656 | CLONE:remove() | |
1657 | end)) | |
1658 | end | |
1659 | end | |
1660 | ||
1661 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
1662 | local CHILDREN = workspace:GetDescendants() | |
1663 | for index, CHILD in pairs(CHILDREN) do | |
1664 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1665 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1666 | if HUM then | |
1667 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1668 | if TORSO then | |
1669 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1670 | if ISBANISH == true then | |
1671 | Banish(CHILD) | |
1672 | else | |
1673 | if ISBANISH == "Gravity" then | |
1674 | HUM.PlatformStand = true | |
1675 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1676 | local grav = Instance.new("BodyPosition",TORSO) | |
1677 | grav.D = 15 | |
1678 | grav.P = 20000 | |
1679 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1680 | grav.position = TORSO.Position | |
1681 | grav.Name = "V3BanishForce"..Player.Name | |
1682 | else | |
1683 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
1684 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
1685 | end | |
1686 | else | |
1687 | HUM.PlatformStand = false | |
1688 | end | |
1689 | end | |
1690 | elseif ISBANISH == "Gravity" then | |
1691 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1692 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
1693 | HUM.PlatformStand = false | |
1694 | end | |
1695 | end | |
1696 | end | |
1697 | end | |
1698 | end | |
1699 | end | |
1700 | end | |
1701 | ||
1702 | --//=================================\\ | |
1703 | --|| ATTACK FUNCTIONS AND STUFF | |
1704 | --\\=================================// | |
1705 | ||
1706 | function Banisher_Bullet() | |
1707 | ATTACK = true | |
1708 | Rooted = false | |
1709 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1710 | Swait() | |
1711 | turnto(Mouse.Hit.p) | |
1712 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1713 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1714 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1715 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1716 | 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) | |
1717 | 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) | |
1718 | end | |
1719 | repeat | |
1720 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1721 | Swait() | |
1722 | turnto(Mouse.Hit.p) | |
1723 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1724 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1725 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1726 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1727 | 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) | |
1728 | 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) | |
1729 | end | |
1730 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
1731 | SpawnTrail(Hole.Position,POS) | |
1732 | if HIT ~= nil then | |
1733 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1734 | Banish(HIT.Parent) | |
1735 | end | |
1736 | end | |
1737 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), 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,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1738 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,1), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1739 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), 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}) | |
1740 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), 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}) | |
1741 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1742 | Swait() | |
1743 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1744 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
1745 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1746 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1747 | 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) | |
1748 | 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) | |
1749 | end | |
1750 | until KEYHOLD == false | |
1751 | ATTACK = false | |
1752 | Rooted = false | |
1753 | end | |
1754 | ||
1755 | function AttackTemplate() | |
1756 | ATTACK = true | |
1757 | Rooted = false | |
1758 | for i=0, 1, 0.1 / Animation_Speed do | |
1759 | Swait() | |
1760 | 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) | |
1761 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1762 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1763 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1764 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1765 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1766 | end | |
1767 | ATTACK = false | |
1768 | Rooted = false | |
1769 | end | |
1770 | ||
1771 | --//=================================\\ | |
1772 | --|| ASSIGN THINGS TO KEYS | |
1773 | --\\=================================// | |
1774 | ||
1775 | function MouseDown(Mouse) | |
1776 | if ATTACK == false then | |
1777 | end | |
1778 | end | |
1779 | ||
1780 | function MouseUp(Mouse) | |
1781 | HOLD = false | |
1782 | end | |
1783 | ||
1784 | function KeyDown(Key) | |
1785 | KEYHOLD = true | |
1786 | if Key == "z" and ATTACK == false then | |
1787 | Banisher_Bullet() | |
1788 | end | |
1789 | ||
1790 | if Key == "b" and ATTACK == false then | |
1791 | end | |
1792 | ||
1793 | if Key == "c" and ATTACK == false then | |
1794 | end | |
1795 | ||
1796 | if Key == "v" and ATTACK == false then | |
1797 | end | |
1798 | ||
1799 | if Key == "x" and ATTACK == false then | |
1800 | end | |
1801 | end | |
1802 | ||
1803 | function KeyUp(Key) | |
1804 | KEYHOLD = false | |
1805 | end | |
1806 | ||
1807 | Mouse.Button1Down:connect(function(NEWKEY) | |
1808 | MouseDown(NEWKEY) | |
1809 | end) | |
1810 | Mouse.Button1Up:connect(function(NEWKEY) | |
1811 | MouseUp(NEWKEY) | |
1812 | end) | |
1813 | Mouse.KeyDown:connect(function(NEWKEY) | |
1814 | KeyDown(NEWKEY) | |
1815 | end) | |
1816 | Mouse.KeyUp:connect(function(NEWKEY) | |
1817 | KeyUp(NEWKEY) | |
1818 | end) | |
1819 | ||
1820 | --//=================================\\ | |
1821 | --\\=================================// | |
1822 | ||
1823 | ||
1824 | function unanchor() | |
1825 | if UNANCHOR == true then | |
1826 | g = Character:GetChildren() | |
1827 | for i = 1, #g do | |
1828 | if g[i].ClassName == "Part" then | |
1829 | g[i].Anchored = false | |
1830 | end | |
1831 | end | |
1832 | end | |
1833 | end | |
1834 | ||
1835 | ||
1836 | --//=================================\\ | |
1837 | --|| WRAP THE WHOLE SCRIPT UP | |
1838 | --\\=================================// | |
1839 | ||
1840 | Humanoid.Changed:connect(function(Jump) | |
1841 | if Jump == "Jump" and (Disable_Jump == true) then | |
1842 | Humanoid.Jump = false | |
1843 | end | |
1844 | end) | |
1845 | ||
1846 | local CONNECT = nil | |
1847 | ||
1848 | while true do | |
1849 | Swait() | |
1850 | ANIMATE.Parent = nil | |
1851 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
1852 | Humanoid = IT("Humanoid",Character) | |
1853 | end | |
1854 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
1855 | v:Stop(); | |
1856 | end | |
1857 | SINE = SINE + CHANGE | |
1858 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1859 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1860 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
1861 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1862 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1863 | 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) | |
1864 | 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) | |
1865 | 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) | |
1866 | 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) | |
1867 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
1868 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1869 | 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) | |
1870 | 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) | |
1871 | 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) | |
1872 | end | |
1873 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1874 | ANIM = "Jump" | |
1875 | if ATTACK == false then | |
1876 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1877 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1878 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1879 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1880 | 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) | |
1881 | 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) | |
1882 | end | |
1883 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1884 | ANIM = "Fall" | |
1885 | if ATTACK == false then | |
1886 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1887 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1888 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1889 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1890 | 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) | |
1891 | 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) | |
1892 | end | |
1893 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1894 | ANIM = "Idle" | |
1895 | if ATTACK == false then | |
1896 | 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) | |
1897 | 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) | |
1898 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1899 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1900 | 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) | |
1901 | 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) | |
1902 | end | |
1903 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1904 | ANIM = "Walk" | |
1905 | if ATTACK == false then | |
1906 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1907 | 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) | |
1908 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1909 | 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) | |
1910 | 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) | |
1911 | 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) | |
1912 | end | |
1913 | end | |
1914 | unanchor() | |
1915 | Humanoid.MaxHealth = math.huge | |
1916 | Humanoid.Health = math.huge | |
1917 | ---------------------------------------------------------------------------------- | |
1918 | local naeeym2 = Instance.new("BillboardGui",char) | |
1919 | naeeym2.AlwaysOnTop = true | |
1920 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1921 | naeeym2.StudsOffset = Vector3.new(0, 3.5, 0) | |
1922 | naeeym2.Adornee = hed | |
1923 | naeeym2.Name = "Name" | |
1924 | --naeeym2.PlayerToHideFrom = Player | |
1925 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1926 | tecks2.BackgroundTransparency = 1 | |
1927 | tecks2.TextScaled = true | |
1928 | tecks2.BorderSizePixel = 0 | |
1929 | tecks2.Font = Enum.Font.Antique | |
1930 | tecks2.TextSize = 30 | |
1931 | tecks2.TextStrokeTransparency = 0 | |
1932 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
1933 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
1934 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1935 | tecks2.Parent = naeeym2 | |
1936 | wait(0.1) | |
1937 | tecks2.Text = "Possessed..?" | |
1938 | -------------------------------------------------------- | |
1939 | local EyeSizes={ | |
1940 | NumberSequenceKeypoint.new(0,0.65,0), | |
1941 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
1942 | NumberSequenceKeypoint.new(1,0,0) | |
1943 | } | |
1944 | local EyeTrans={ | |
1945 | NumberSequenceKeypoint.new(0,0,0), | |
1946 | NumberSequenceKeypoint.new(0.5,0,0), | |
1947 | NumberSequenceKeypoint.new(1,1,0) | |
1948 | } | |
1949 | local PE2=Instance.new("ParticleEmitter", ra) | |
1950 | PE2.LightEmission=.9 | |
1951 | PE2.Color = ColorSequence.new(BrickC("Really red").Color,BrickC("Really blue").Color) | |
1952 | PE2.Transparency=NumberSequence.new(EyeTrans) | |
1953 | PE2.Lifetime=NumberRange.new(0.35) | |
1954 | PE2.Rotation=NumberRange.new(0,360) | |
1955 | PE2.Rate=999 | |
1956 | PE2.VelocitySpread = 10000 | |
1957 | PE2.Acceleration = Vector3.new(0,25,0) | |
1958 | PE2.ZOffset = 0.5 | |
1959 | PE2.Drag = 0 | |
1960 | PE2.Speed = NumberRange.new(0,0,0) | |
1961 | PE2.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
1962 | PE2.Name = "PE2" | |
1963 | PE2.Enabled = true | |
1964 | PE2.LockedToPart = true | |
1965 | local EyeSizes={ | |
1966 | NumberSequenceKeypoint.new(0,0.65,0), | |
1967 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
1968 | NumberSequenceKeypoint.new(1,0,0) | |
1969 | } | |
1970 | local EyeTrans={ | |
1971 | NumberSequenceKeypoint.new(0,0,0), | |
1972 | NumberSequenceKeypoint.new(0.5,0,0), | |
1973 | NumberSequenceKeypoint.new(1,1,0) | |
1974 | } | |
1975 | local PE3=Instance.new("ParticleEmitter", ra) | |
1976 | PE3.LightEmission=.9 | |
1977 | PE3.Color = ColorSequence.new(BrickC("Lime green").Color,BrickC("Really blue").Color) | |
1978 | PE3.Transparency=NumberSequence.new(EyeTrans) | |
1979 | PE3.Lifetime=NumberRange.new(0.35) | |
1980 | PE3.Rotation=NumberRange.new(0,360) | |
1981 | PE3.Rate=999 | |
1982 | PE3.VelocitySpread = 10000 | |
1983 | PE3.Acceleration = Vector3.new(0,25,0) | |
1984 | PE3.ZOffset = 0.5 | |
1985 | PE3.Drag = 0 | |
1986 | PE3.Speed = NumberRange.new(0,0,0) | |
1987 | PE3.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
1988 | PE3.Name = "PE3" | |
1989 | PE3.Enabled = true | |
1990 | PE3.LockedToPart = true | |
1991 | ||
1992 | local EyeSizes={ | |
1993 | NumberSequenceKeypoint.new(0,0.65,0), | |
1994 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
1995 | NumberSequenceKeypoint.new(1,0,0) | |
1996 | } | |
1997 | local EyeTrans={ | |
1998 | NumberSequenceKeypoint.new(0,0,0), | |
1999 | NumberSequenceKeypoint.new(0.5,0,0), | |
2000 | NumberSequenceKeypoint.new(1,1,0) | |
2001 | } | |
2002 | local PE4=Instance.new("ParticleEmitter", ll) | |
2003 | PE4.LightEmission=.9 | |
2004 | PE4.Color = ColorSequence.new(BrickC("Really red").Color,BrickC("Really blue").Color) | |
2005 | PE4.Transparency=NumberSequence.new(EyeTrans) | |
2006 | PE4.Lifetime=NumberRange.new(0.35) | |
2007 | PE4.Rotation=NumberRange.new(0,360) | |
2008 | PE4.Rate=999 | |
2009 | PE4.VelocitySpread = 10000 | |
2010 | PE4.Acceleration = Vector3.new(0,25,0) | |
2011 | PE4.ZOffset = 0.5 | |
2012 | PE4.Drag = 0 | |
2013 | PE4.Speed = NumberRange.new(0,0,0) | |
2014 | PE4.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
2015 | PE4.Name = "PE4" | |
2016 | PE4.Enabled = true | |
2017 | PE4.LockedToPart = true | |
2018 | local EyeSizes={ | |
2019 | NumberSequenceKeypoint.new(0,0.65,0), | |
2020 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
2021 | NumberSequenceKeypoint.new(1,0,0) | |
2022 | } | |
2023 | local EyeTrans={ | |
2024 | NumberSequenceKeypoint.new(0,0,0), | |
2025 | NumberSequenceKeypoint.new(0.5,0,0), | |
2026 | NumberSequenceKeypoint.new(1,1,0) | |
2027 | } | |
2028 | local PE5=Instance.new("ParticleEmitter", ll) | |
2029 | PE5.LightEmission=.9 | |
2030 | PE5.Color = ColorSequence.new(BrickC("Lime green").Color,BrickC("Really blue").Color) | |
2031 | PE5.Transparency=NumberSequence.new(EyeTrans) | |
2032 | PE5.Lifetime=NumberRange.new(0.35) | |
2033 | PE5.Rotation=NumberRange.new(0,360) | |
2034 | PE5.Rate=999 | |
2035 | PE5.VelocitySpread = 10000 | |
2036 | PE5.Acceleration = Vector3.new(0,25,0) | |
2037 | PE5.ZOffset = 0.5 | |
2038 | PE5.Drag = 0 | |
2039 | PE5.Speed = NumberRange.new(0,0,0) | |
2040 | PE5.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
2041 | PE5.Name = "PE5" | |
2042 | PE5.Enabled = true | |
2043 | PE5.LockedToPart = true | |
2044 | ------------------------------------------------------- | |
2045 | --End Customization-- | |
2046 | ------------------------------------------------------- | |
2047 | ||
2048 | if Rooted == false then | |
2049 | Disable_Jump = false | |
2050 | Humanoid.WalkSpeed = Speed | |
2051 | elseif Rooted == true then | |
2052 | Disable_Jump = true | |
2053 | Humanoid.WalkSpeed = 0 | |
2054 | end | |
2055 | sick.Parent = Torso | |
2056 | sick:resume() | |
2057 | sick.Volume = 5 | |
2058 | sick.Pitch = 1 | |
2059 | sick.SoundId = "rbxassetid://924339757" | |
2060 | sick.Name = "BanishV3Music" | |
2061 | end | |
2062 | ||
2063 | --//=================================\\ | |
2064 | --\\=================================// | |
2065 | ||
2066 | ||
2067 | ||
2068 | ||
2069 | ||
2070 | --//====================================================\\-- | |
2071 | --|| END OF SCRIPT | |
2072 | --\\====================================================//-- |