SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
6 | --//====================================================\\-- | |
7 | --|| CREATED BY SHACKLUSTER | |
8 | --\\====================================================//-- | |
9 | ||
10 | script:ClearAllChildren() | |
11 | wait(0.2) | |
12 | ||
13 | Player = game:GetService("Players").LocalPlayer | |
14 | PlayerGui = Player.PlayerGui | |
15 | Cam = workspace.CurrentCamera | |
16 | Backpack = Player.Backpack | |
17 | Character = Player.Character | |
18 | Humanoid = Character.Humanoid | |
19 | Mouse = Player:GetMouse() | |
20 | RootPart = Character["HumanoidRootPart"] | |
21 | Torso = Character["Torso"] | |
22 | Head = Character["Head"] | |
23 | RightArm = Character["Right Arm"] | |
24 | LeftArm = Character["Left Arm"] | |
25 | RightLeg = Character["Right Leg"] | |
26 | LeftLeg = Character["Left Leg"] | |
27 | RootJoint = RootPart["RootJoint"] | |
28 | Neck = Torso["Neck"] | |
29 | RightShoulder = Torso["Right Shoulder"] | |
30 | LeftShoulder = Torso["Left Shoulder"] | |
31 | RightHip = Torso["Right Hip"] | |
32 | LeftHip = Torso["Left Hip"] | |
33 | local TIME = 0 | |
34 | local sick = Instance.new("Sound",Torso) | |
35 | ||
36 | IT = Instance.new | |
37 | CF = CFrame.new | |
38 | VT = Vector3.new | |
39 | RAD = math.rad | |
40 | C3 = Color3.new | |
41 | UD2 = UDim2.new | |
42 | BRICKC = BrickColor.new | |
43 | ANGLES = CFrame.Angles | |
44 | EULER = CFrame.fromEulerAnglesXYZ | |
45 | COS = math.cos | |
46 | ACOS = math.acos | |
47 | SIN = math.sin | |
48 | ASIN = math.asin | |
49 | ABS = math.abs | |
50 | MRANDOM = math.random | |
51 | FLOOR = math.floor | |
52 | --//=================================\\ | |
53 | --|| USEFUL VALUES | |
54 | --\\=================================// | |
55 | ||
56 | Animation_Speed = 3 | |
57 | local FORCERESET = false | |
58 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
59 | local Speed = 16 | |
60 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
61 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
62 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
63 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
64 | local DAMAGEMULTIPLIER = 1 | |
65 | local ANIM = "Idle" | |
66 | local ATTACK = false | |
67 | local EQUIPPED = false | |
68 | local HOLD = false | |
69 | local COMBO = 1 | |
70 | local Rooted = false | |
71 | local SINE = 0 | |
72 | local KEYHOLD = false | |
73 | local CHANGE = 2 / Animation_Speed | |
74 | local WALKINGANIM = false | |
75 | local VALUE1 = false | |
76 | local VALUE2 = false | |
77 | local ROBLOXIDLEANIMATION = IT("Animation") | |
78 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
79 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
80 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
81 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
82 | WEAPONGUI.Name = "BanishV3Gui" | |
83 | local Weapon = IT("Model") | |
84 | Weapon.Name = "Adds" | |
85 | local Effects = IT("Folder", Weapon) | |
86 | Effects.Name = "Effects" | |
87 | local ANIMATOR = Humanoid.Animator | |
88 | local ANIMATE = Character:FindFirstChild("Animate") | |
89 | local UNANCHOR = true | |
90 | local TOBANISH = {} | |
91 | script.Parent = PlayerGui | |
92 | ||
93 | --//=================================\\ | |
94 | --\\=================================// | |
95 | ||
96 | ||
97 | --//=================================\\ | |
98 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
99 | --\\=================================// | |
100 | ||
101 | ArtificialHB = Instance.new("BindableEvent", script) | |
102 | ArtificialHB.Name = "ArtificialHB" | |
103 | ||
104 | script:WaitForChild("ArtificialHB") | |
105 | ||
106 | frame = Frame_Speed | |
107 | tf = 0 | |
108 | allowframeloss = false | |
109 | tossremainder = false | |
110 | lastframe = tick() | |
111 | script.ArtificialHB:Fire() | |
112 | ||
113 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
114 | tf = tf + s | |
115 | if tf >= frame then | |
116 | if allowframeloss then | |
117 | script.ArtificialHB:Fire() | |
118 | lastframe = tick() | |
119 | else | |
120 | for i = 1, math.floor(tf / frame) do | |
121 | script.ArtificialHB:Fire() | |
122 | end | |
123 | lastframe = tick() | |
124 | end | |
125 | if tossremainder then | |
126 | tf = 0 | |
127 | else | |
128 | tf = tf - frame * math.floor(tf / frame) | |
129 | end | |
130 | end | |
131 | end) | |
132 | ||
133 | --//=================================\\ | |
134 | --\\=================================// | |
135 | ||
136 | --//=================================\\ | |
137 | --|| SOME FUNCTIONS | |
138 | --\\=================================// | |
139 | ||
140 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
141 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
142 | end | |
143 | ||
144 | function PositiveAngle(NUMBER) | |
145 | if NUMBER >= 0 then | |
146 | NUMBER = 0 | |
147 | end | |
148 | return NUMBER | |
149 | end | |
150 | ||
151 | function NegativeAngle(NUMBER) | |
152 | if NUMBER <= 0 then | |
153 | NUMBER = 0 | |
154 | end | |
155 | return NUMBER | |
156 | end | |
157 | ||
158 | function Swait(NUMBER) | |
159 | if NUMBER == 0 or NUMBER == nil then | |
160 | ArtificialHB.Event:wait() | |
161 | else | |
162 | for i = 1, NUMBER do | |
163 | ArtificialHB.Event:wait() | |
164 | end | |
165 | end | |
166 | end | |
167 | ||
168 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
169 | local NEWMESH = IT(MESH) | |
170 | if MESH == "SpecialMesh" then | |
171 | NEWMESH.MeshType = MESHTYPE | |
172 | if MESHID ~= "nil" and MESHID ~= "" then | |
173 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
174 | end | |
175 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
176 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
177 | end | |
178 | end | |
179 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
180 | NEWMESH.Scale = SCALE | |
181 | NEWMESH.Parent = PARENT | |
182 | return NEWMESH | |
183 | end | |
184 | ||
185 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
186 | local NEWPART = IT("Part") | |
187 | NEWPART.formFactor = FORMFACTOR | |
188 | NEWPART.Reflectance = REFLECTANCE | |
189 | NEWPART.Transparency = TRANSPARENCY | |
190 | NEWPART.CanCollide = false | |
191 | NEWPART.Locked = true | |
192 | NEWPART.Anchored = true | |
193 | if ANCHOR == false then | |
194 | NEWPART.Anchored = false | |
195 | end | |
196 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
197 | NEWPART.Name = NAME | |
198 | NEWPART.Size = SIZE | |
199 | NEWPART.Position = Torso.Position | |
200 | NEWPART.Material = MATERIAL | |
201 | NEWPART:BreakJoints() | |
202 | NEWPART.Parent = PARENT | |
203 | return NEWPART | |
204 | end | |
205 | ||
206 | local function weldBetween(a, b) | |
207 | local weldd = Instance.new("ManualWeld") | |
208 | weldd.Part0 = a | |
209 | weldd.Part1 = b | |
210 | weldd.C0 = CFrame.new() | |
211 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
212 | weldd.Parent = a | |
213 | return weldd | |
214 | end | |
215 | ||
216 | ||
217 | function QuaternionFromCFrame(cf) | |
218 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
219 | local trace = m00 + m11 + m22 | |
220 | if trace > 0 then | |
221 | local s = math.sqrt(1 + trace) | |
222 | local recip = 0.5 / s | |
223 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
224 | else | |
225 | local i = 0 | |
226 | if m11 > m00 then | |
227 | i = 1 | |
228 | end | |
229 | if m22 > (i == 0 and m00 or m11) then | |
230 | i = 2 | |
231 | end | |
232 | if i == 0 then | |
233 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
234 | local recip = 0.5 / s | |
235 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
236 | elseif i == 1 then | |
237 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
238 | local recip = 0.5 / s | |
239 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
240 | elseif i == 2 then | |
241 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
242 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
243 | end | |
244 | end | |
245 | end | |
246 | ||
247 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
248 | local xs, ys, zs = x + x, y + y, z + z | |
249 | local wx, wy, wz = w * xs, w * ys, w * zs | |
250 | local xx = x * xs | |
251 | local xy = x * ys | |
252 | local xz = x * zs | |
253 | local yy = y * ys | |
254 | local yz = y * zs | |
255 | local zz = z * zs | |
256 | 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)) | |
257 | end | |
258 | ||
259 | function QuaternionSlerp(a, b, t) | |
260 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
261 | local startInterp, finishInterp; | |
262 | if cosTheta >= 0.0001 then | |
263 | if (1 - cosTheta) > 0.0001 then | |
264 | local theta = ACOS(cosTheta) | |
265 | local invSinTheta = 1 / SIN(theta) | |
266 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
267 | finishInterp = SIN(t * theta) * invSinTheta | |
268 | else | |
269 | startInterp = 1 - t | |
270 | finishInterp = t | |
271 | end | |
272 | else | |
273 | if (1 + cosTheta) > 0.0001 then | |
274 | local theta = ACOS(-cosTheta) | |
275 | local invSinTheta = 1 / SIN(theta) | |
276 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
277 | finishInterp = SIN(t * theta) * invSinTheta | |
278 | else | |
279 | startInterp = t - 1 | |
280 | finishInterp = t | |
281 | end | |
282 | end | |
283 | 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 | |
284 | end | |
285 | ||
286 | function Clerp(a, b, t) | |
287 | local qa = {QuaternionFromCFrame(a)} | |
288 | local qb = {QuaternionFromCFrame(b)} | |
289 | local ax, ay, az = a.x, a.y, a.z | |
290 | local bx, by, bz = b.x, b.y, b.z | |
291 | local _t = 1 - t | |
292 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
293 | end | |
294 | ||
295 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
296 | local frame = IT("Frame") | |
297 | frame.BackgroundTransparency = TRANSPARENCY | |
298 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
299 | frame.Position = POSITION | |
300 | frame.Size = SIZE | |
301 | frame.BackgroundColor3 = COLOR | |
302 | frame.BorderColor3 = BORDERCOLOR | |
303 | frame.Name = NAME | |
304 | frame.Parent = PARENT | |
305 | return frame | |
306 | end | |
307 | ||
308 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
309 | local label = IT("TextLabel") | |
310 | label.BackgroundTransparency = 1 | |
311 | label.Size = UD2(1, 0, 1, 0) | |
312 | label.Position = UD2(0, 0, 0, 0) | |
313 | label.TextColor3 = TEXTCOLOR | |
314 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
315 | label.TextTransparency = TRANSPARENCY | |
316 | label.FontSize = TEXTFONTSIZE | |
317 | label.Font = TEXTFONT | |
318 | label.BorderSizePixel = BORDERSIZEPIXEL | |
319 | label.TextScaled = false | |
320 | label.Text = TEXT | |
321 | label.Name = NAME | |
322 | label.Parent = PARENT | |
323 | return label | |
324 | end | |
325 | ||
326 | function NoOutlines(PART) | |
327 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
328 | end | |
329 | ||
330 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
331 | local NEWWELD = IT(TYPE) | |
332 | NEWWELD.Part0 = PART0 | |
333 | NEWWELD.Part1 = PART1 | |
334 | NEWWELD.C0 = C0 | |
335 | NEWWELD.C1 = C1 | |
336 | NEWWELD.Parent = PARENT | |
337 | return NEWWELD | |
338 | end | |
339 | ||
340 | local S = IT("Sound") | |
341 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
342 | local NEWSOUND = nil | |
343 | coroutine.resume(coroutine.create(function() | |
344 | NEWSOUND = S:Clone() | |
345 | NEWSOUND.Parent = PARENT | |
346 | NEWSOUND.Volume = VOLUME | |
347 | NEWSOUND.Pitch = PITCH | |
348 | NEWSOUND.SoundId = "1753701701"..ID | |
349 | NEWSOUND:play() | |
350 | if DOESLOOP == true then | |
351 | NEWSOUND.Looped = true | |
352 | else | |
353 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
354 | NEWSOUND:remove() | |
355 | end | |
356 | end)) | |
357 | return NEWSOUND | |
358 | end | |
359 | ||
360 | function CFrameFromTopBack(at, top, back) | |
361 | local right = top:Cross(back) | |
362 | 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) | |
363 | end | |
364 | ||
365 | --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}) | |
366 | function WACKYEFFECT(Table) | |
367 | local TYPE = (Table.EffectType or "Sphere") | |
368 | local SIZE = (Table.Size or VT(1,1,1)) | |
369 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
370 | local TRANSPARENCY = (Table.Transparency or 0) | |
371 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
372 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
373 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
374 | local ROTATION1 = (Table.RotationX or 0) | |
375 | local ROTATION2 = (Table.RotationY or 0) | |
376 | local ROTATION3 = (Table.RotationZ or 0) | |
377 | local MATERIAL = (Table.Material or "Neon") | |
378 | local COLOR = (Table.Color or C3(1,1,1)) | |
379 | local TIME = (Table.Time or 45) | |
380 | local SOUNDID = (Table.SoundID or nil) | |
381 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
382 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
383 | coroutine.resume(coroutine.create(function() | |
384 | local PLAYSSOUND = false | |
385 | local SOUND = nil | |
386 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
387 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
388 | PLAYSSOUND = true | |
389 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
390 | end | |
391 | EFFECT.Color = COLOR | |
392 | local MSH = nil | |
393 | if TYPE == "Sphere" then | |
394 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
395 | elseif TYPE == "Block" then | |
396 | MSH = IT("BlockMesh",EFFECT) | |
397 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
398 | elseif TYPE == "Wave" then | |
399 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
400 | elseif TYPE == "Ring" then | |
401 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
402 | elseif TYPE == "Slash" then | |
403 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
404 | elseif TYPE == "Round Slash" then | |
405 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
406 | elseif TYPE == "Swirl" then | |
407 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
408 | elseif TYPE == "Skull" then | |
409 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
410 | elseif TYPE == "Crystal" then | |
411 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
412 | end | |
413 | if MSH ~= nil then | |
414 | local MOVESPEED = nil | |
415 | if MOVEDIRECTION ~= nil then | |
416 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
417 | end | |
418 | local GROWTH = SIZE - ENDSIZE | |
419 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
420 | if TYPE == "Block" then | |
421 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
422 | else | |
423 | EFFECT.CFrame = CFRAME | |
424 | end | |
425 | for LOOP = 1, TIME+1 do | |
426 | Swait() | |
427 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
428 | if TYPE == "Wave" then | |
429 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
430 | end | |
431 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
432 | if TYPE == "Block" then | |
433 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
434 | else | |
435 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
436 | end | |
437 | if MOVEDIRECTION ~= nil then | |
438 | local ORI = EFFECT.Orientation | |
439 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
440 | EFFECT.Orientation = ORI | |
441 | end | |
442 | end | |
443 | if PLAYSSOUND == false then | |
444 | EFFECT:remove() | |
445 | else | |
446 | SOUND.Stopped:Connect(function() | |
447 | EFFECT:remove() | |
448 | end) | |
449 | end | |
450 | else | |
451 | if PLAYSSOUND == false then | |
452 | EFFECT:remove() | |
453 | else | |
454 | repeat Swait() until SOUND.Playing == false | |
455 | EFFECT:remove() | |
456 | end | |
457 | end | |
458 | end)) | |
459 | end | |
460 | ||
461 | function MakeForm(PART,TYPE) | |
462 | if TYPE == "Cyl" then | |
463 | local MSH = IT("CylinderMesh",PART) | |
464 | elseif TYPE == "Ball" then | |
465 | local MSH = IT("SpecialMesh",PART) | |
466 | MSH.MeshType = "Sphere" | |
467 | elseif TYPE == "Wedge" then | |
468 | local MSH = IT("SpecialMesh",PART) | |
469 | MSH.MeshType = "Wedge" | |
470 | end | |
471 | end | |
472 | ||
473 | function SpawnTrail(FROM,TO,BIG) | |
474 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Bright yellow", "Trail", VT(0,0,0)) | |
475 | MakeForm(TRAIL,"Cyl") | |
476 | local DIST = (FROM - TO).Magnitude | |
477 | if BIG == true then | |
478 | TRAIL.Size = VT(0.5,DIST,0.5) | |
479 | else | |
480 | TRAIL.Size = VT(0.25,DIST,0.25) | |
481 | end | |
482 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
483 | coroutine.resume(coroutine.create(function() | |
484 | for i = 1, 5 do | |
485 | Swait() | |
486 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
487 | end | |
488 | TRAIL:remove() | |
489 | end)) | |
490 | end | |
491 | ||
492 | Debris = game:GetService("Debris") | |
493 | ||
494 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
495 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
496 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
497 | end | |
498 | ||
499 | function turnto(position) | |
500 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
501 | end | |
502 | ||
503 | --//=================================\\ | |
504 | --|| WEAPON CREATION | |
505 | --\\=================================// | |
506 | ||
507 | local Particle = IT("ParticleEmitter",nil) | |
508 | Particle.Enabled = false | |
509 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
510 | Particle.LightEmission = 0.5 | |
511 | Particle.Rate = 150 | |
512 | Particle.ZOffset = 0.2 | |
513 | Particle.Rotation = NumberRange.new(-180, 180) | |
514 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
515 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
516 | Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0)) | |
517 | ||
518 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
519 | function ParticleEmitter(Table) | |
520 | local PRTCL = Particle:Clone() | |
521 | local Speed = Table.Speed or 5 | |
522 | local Drag = Table.Drag or 0 | |
523 | local Size1 = Table.Size1 or 1 | |
524 | local Size2 = Table.Size2 or 5 | |
525 | local Lifetime1 = Table.Lifetime1 or 1 | |
526 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
527 | local Parent = Table.Parent or Torso | |
528 | local Emit = Table.Emit or 100 | |
529 | local Offset = Table.Offset or 360 | |
530 | local Acel = Table.Acel or VT(0,0,0) | |
531 | local Enabled = Table.Enabled or false | |
532 | PRTCL.Parent = Parent | |
533 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
534 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
535 | PRTCL.Speed = NumberRange.new(Speed) | |
536 | PRTCL.VelocitySpread = Offset | |
537 | PRTCL.Drag = Drag | |
538 | PRTCL.Acceleration = Acel | |
539 | if Enabled == false then | |
540 | PRTCL:Emit(Emit) | |
541 | Debris:AddItem(PRTCL,Lifetime2) | |
542 | else | |
543 | PRTCL.Enabled = true | |
544 | end | |
545 | return PRTCL | |
546 | end | |
547 | ||
548 | Character.Head.face.Texture = "rbxassetid://1327813409" | |
549 | ||
550 | local LASTPART = Head | |
551 | for i = 1, 20 do | |
552 | local MATH = (1-(i/25)) | |
553 | if LASTPART == Head then | |
554 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
555 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0)) | |
556 | LASTPART = Horn | |
557 | Horn.Color = C3((i*3-3)/255,0,0) | |
558 | ||
559 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
560 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0)) | |
561 | LASTPART = Horn | |
562 | Horn.Color = C3((i*3-3)/255,0,0) | |
563 | end | |
564 | end | |
565 | ||
566 | local LASTPART = Head | |
567 | for i = 1, 20 do | |
568 | local MATH = (1-(i/25)) | |
569 | if LASTPART == Head then | |
570 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
571 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0)) | |
572 | LASTPART = Horn | |
573 | Horn.Color = C3((i*3-3)/255,0,0) | |
574 | else | |
575 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
576 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0)) | |
577 | LASTPART = Horn | |
578 | Horn.Color = C3((i*3-3)/255,0,0) | |
579 | end | |
580 | end | |
581 | ||
582 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.6,0.2),false) | |
583 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
584 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.5,0.2),false) | |
585 | MakeForm(Part,"Wedge") | |
586 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
587 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.3,0.2),false) | |
588 | MakeForm(Part,"Wedge") | |
589 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
590 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.3,0.3,0.3),false) | |
591 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
592 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.3,0.5,0.5),false) | |
593 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
594 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.4,0.4,0.4),false) | |
595 | MakeForm(Part,"Cyl") | |
596 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
597 | for i = 1, 8 do | |
598 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Eye", VT(0,0.35,0.41),false) | |
599 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
600 | end | |
601 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Eye", VT(0.38,0.41,0.38),false) | |
602 | MakeForm(Part,"Cyl") | |
603 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
604 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.37,0.5,0.37),false) | |
605 | MakeForm(Part,"Ball") | |
606 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
607 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.7,0.4),false) | |
608 | MakeForm(Part,"Wedge") | |
609 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
610 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.3,0.4,0.2),false) | |
611 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
612 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.35,0.35,0.35),false) | |
613 | MakeForm(Part,"Cyl") | |
614 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
615 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.5,0.1,0.5),false) | |
616 | MakeForm(Part,"Cyl") | |
617 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
618 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.5,0.1,0.45),false) | |
619 | MakeForm(Part,"Cyl") | |
620 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
621 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.2,0.5,0.2),false) | |
622 | MakeForm(Part,"Wedge") | |
623 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
624 | local LASTPART = Handle | |
625 | for i = 1, 10 do | |
626 | if LASTPART == Handle then | |
627 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.1,0.2,0),false) | |
628 | LASTPART = Part | |
629 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
630 | else | |
631 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.1,0.05,0),false) | |
632 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
633 | LASTPART = Part | |
634 | end | |
635 | end | |
636 | ||
637 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.15,2,0.15),false) | |
638 | MakeForm(Barrel,"Cyl") | |
639 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
640 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0.25,1,0.25),false) | |
641 | MakeForm(Part,"Cyl") | |
642 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
643 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0,0.1,0.2),false) | |
644 | MakeForm(Part,"Wedge") | |
645 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
646 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Eye", VT(0.125,0,0.125),false) | |
647 | MakeForm(Hole,"Cyl") | |
648 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
649 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Brown", "Part", VT(0,0,0),false) | |
650 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
651 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
652 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Brown", "Eye", VT(0,0,0),false) | |
653 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
654 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
655 | ||
656 | local Handle = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,1.2,0.2),false) | |
657 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0)) | |
658 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.8,0.2),false) | |
659 | MakeForm(Part,"Wedge") | |
660 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
661 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.6),false) | |
662 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
663 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false) | |
664 | MakeForm(Part,"Cyl") | |
665 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
666 | for i = 1, 8 do | |
667 | local Piece = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false) | |
668 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
669 | end | |
670 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false) | |
671 | MakeForm(Part,"Wedge") | |
672 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
673 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.39,0.41,0.39),false) | |
674 | MakeForm(Part,"Cyl") | |
675 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
676 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false) | |
677 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
678 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.5),false) | |
679 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
680 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0,0.6),false) | |
681 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3)) | |
682 | local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.28,5,0.28),false) | |
683 | MakeForm(RightBarrel,"Cyl") | |
684 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, RightBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0)) | |
685 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0,0.2,0.2),false) | |
686 | MakeForm(Part,"Wedge") | |
687 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
688 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.2,0,0.2),false) | |
689 | MakeForm(RightHole,"Cyl") | |
690 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, RightHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
691 | local Handle = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,1.2,0.2),false) | |
692 | local LeftArmGraps = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0)) | |
693 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.8,0.2),false) | |
694 | MakeForm(Part,"Wedge") | |
695 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
696 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.6),false) | |
697 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
698 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false) | |
699 | MakeForm(Part,"Cyl") | |
700 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
701 | for i = 1, 8 do | |
702 | local Piece = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false) | |
703 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
704 | end | |
705 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false) | |
706 | MakeForm(Part,"Wedge") | |
707 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
708 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.39,0.41,0.39),false) | |
709 | MakeForm(Part,"Cyl") | |
710 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
711 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false) | |
712 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
713 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.5),false) | |
714 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
715 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0,0.6),false) | |
716 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3)) | |
717 | local LeftBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.28,5,0.28),false) | |
718 | MakeForm(LeftBarrel,"Cyl") | |
719 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, LeftBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0)) | |
720 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0,0.2,0.2),false) | |
721 | MakeForm(Part,"Wedge") | |
722 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
723 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Eye", VT(0.2,0,0.2),false) | |
724 | MakeForm(LeftHole,"Cyl") | |
725 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
726 | ||
727 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really red", "Metal", VT(1.1,1,0.525),false) | |
728 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
729 | MakeForm(Part,"Wedge") | |
730 | ||
731 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really red", "Metal", VT(1,1,1.2),false) | |
732 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
733 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really red", "Metal", VT(0.3,1.7,1.15),false) | |
734 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0)) | |
735 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really red", "Metal", VT(0.3,1.7,1.15),false) | |
736 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0)) | |
737 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really red", "Metal", VT(0.8,0.8,1.225),false) | |
738 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
739 | local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false) | |
740 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
741 | ||
742 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really red", "Metal", VT(1.1,0.7,1.1),false) | |
743 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
744 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really red", "Metal", VT(0.55,0.7,1.1),false) | |
745 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0.25, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
746 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Really red", "Metal", VT(1.1,0.7,0.525),false) | |
747 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(-0.28, 0, 0) * ANGLES(RAD(180), RAD(90), RAD(0)), CF(0, 0, 0)) | |
748 | MakeForm(Part,"Wedge") | |
749 | ||
750 | local BasePart = CreatePart(3, Weapon, "DiamondPlate", 1, 1, "Really red", "BraceletPart", VT(1.01,0.3,1.01),false) | |
751 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
752 | ||
753 | for i = 1, 3 do | |
754 | local Part = CreatePart(3, Weapon, "DiamondPlate", 1, 1, "Really red", "BraceletPart", VT(0.2,1.02,0.2),false) | |
755 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.6-0.3*i, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(90)), CF(0, 0, 0)) | |
756 | MakeForm(Part,"Cyl") | |
757 | end | |
758 | local Part = CreatePart(3, Weapon, "DiamondPlate", 1, 1, "Really red", "BraceletPart", VT(0.51,0.6,0.25),false) | |
759 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0)) | |
760 | MakeForm(Part,"Wedge") | |
761 | local Part = CreatePart(3, Weapon, "DiamondPlate", 1, 1, "Really red", "BraceletPart", VT(0.51,0.6,0.25),false) | |
762 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0)) | |
763 | MakeForm(Part,"Wedge") | |
764 | local Part = CreatePart(3, Weapon, "DiamondPlate", 1, 1, "Really red", "BraceletPart", VT(0.52,0.5,0.25/2.3),false) | |
765 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0)) | |
766 | MakeForm(Part,"Wedge") | |
767 | local Part = CreatePart(3, Weapon, "DiamondPlate", 1, 1, "Really red", "BraceletPart", VT(0.52,0.5,0.25/2.3),false) | |
768 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0)) | |
769 | MakeForm(Part,"Wedge") | |
770 | coroutine.resume(coroutine.create(function() | |
771 | while wait() do | |
772 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
773 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
774 | end | |
775 | end)) | |
776 | ||
777 | 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)}) | |
778 | --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)}) | |
779 | ||
780 | for _, c in pairs(Weapon:GetDescendants()) do | |
781 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
782 | c.Material = "Glass" | |
783 | c.Color = C3(0,0,0) | |
784 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
785 | c.Color = C3(1,0,0) | |
786 | c.Material = "Neon" | |
787 | end | |
788 | end | |
789 | ||
790 | Weapon.Parent = Character | |
791 | for _, c in pairs(Weapon:GetChildren()) do | |
792 | if c.ClassName == "Part" then | |
793 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
794 | end | |
795 | end | |
796 | ||
797 | local SKILLTEXTCOLOR = C3(1,0,0) | |
798 | local SKILLFONT = "Antique" | |
799 | local SKILLTEXTSIZE = 7 | |
800 | ||
801 | - | 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") |
801 | + | |
802 | ATTACK = true | |
803 | - | local SKILL4FRAME = 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 4 Frame") |
803 | + | |
804 | ||
805 | 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") | |
806 | - | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Banish Bullets", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") |
806 | + | --[[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") |
807 | - | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Banishing Stab", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") |
807 | + | |
808 | - | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") |
808 | + | 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") |
809 | 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") | |
810 | ]] | |
811 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Mad Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
812 | --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
813 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
814 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
815 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
816 | ]] | |
817 | function printbye(Name) | |
818 | 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, "} | |
819 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
820 | end | |
821 | ||
822 | workspace.ChildAdded:connect(function(instance) | |
823 | for BANISH = 1, #TOBANISH do | |
824 | if TOBANISH[BANISH] ~= nil then | |
825 | if instance.Name == TOBANISH[BANISH] then | |
826 | coroutine.resume(coroutine.create(function() | |
827 | printbye(instance.Name) | |
828 | instance:ClearAllChildren() | |
829 | Debris:AddItem(instance,0.0005) | |
830 | end)) | |
831 | end | |
832 | end | |
833 | end | |
834 | end) | |
835 | ||
836 | --//=================================\\ | |
837 | --|| DAMAGING | |
838 | --\\=================================// | |
839 | ||
840 | function Banish(Foe) | |
841 | if Foe then | |
842 | coroutine.resume(coroutine.create(function() | |
843 | --if game.Players:FindFirstChild(Foe.Name) then | |
844 | table.insert(TOBANISH,Foe.Name) | |
845 | printbye(Foe.Name) | |
846 | --end | |
847 | Foe.Archivable = true | |
848 | local CLONE = Foe:Clone() | |
849 | Foe:Destroy() | |
850 | CLONE.Parent = Effects | |
851 | CLONE:BreakJoints() | |
852 | local MATERIALS = {"Glass","Neon"} | |
853 | for _, c in pairs(CLONE:GetDescendants()) do | |
854 | if c:IsA("BasePart") then | |
855 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
856 | CreateSound(340722848, c, 10, 1, false) | |
857 | end | |
858 | c.Anchored = true | |
859 | c.Transparency = c.Transparency + 0.2 | |
860 | c.Material = MATERIALS[MRANDOM(1,2)] | |
861 | c.Color = C3(1,0,0) | |
862 | if c.ClassName == "MeshPart" then | |
863 | c.TextureID = "" | |
864 | end | |
865 | if c:FindFirstChildOfClass("SpecialMesh") then | |
866 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
867 | end | |
868 | if c:FindFirstChildOfClass("Decal") then | |
869 | c:FindFirstChildOfClass("Decal"):remove() | |
870 | end | |
871 | c.Name = "Banished" | |
872 | c.CanCollide = false | |
873 | else | |
874 | c:remove() | |
875 | end | |
876 | end | |
877 | local A = false | |
878 | for i = 1, 35 do | |
879 | if A == false then | |
880 | A = true | |
881 | elseif A == true then | |
882 | A = false | |
883 | end | |
884 | for _, c in pairs(CLONE:GetDescendants()) do | |
885 | if c:IsA("BasePart") then | |
886 | c.Anchored = true | |
887 | c.Material = MATERIALS[MRANDOM(1,2)] | |
888 | c.Transparency = c.Transparency + 0.8/35 | |
889 | if A == false then | |
890 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
891 | elseif A == true then | |
892 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
893 | end | |
894 | end | |
895 | end | |
896 | Swait() | |
897 | end | |
898 | CLONE:remove() | |
899 | end)) | |
900 | end | |
901 | end | |
902 | ||
903 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
904 | local CHILDREN = workspace:GetDescendants() | |
905 | for index, CHILD in pairs(CHILDREN) do | |
906 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
907 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
908 | if HUM then | |
909 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
910 | if TORSO then | |
911 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
912 | if ISBANISH == true then | |
913 | Banish(CHILD) | |
914 | else | |
915 | if ISBANISH == "Gravity" then | |
916 | HUM.PlatformStand = true | |
917 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
918 | local grav = Instance.new("BodyPosition",TORSO) | |
919 | grav.D = 15 | |
920 | grav.P = 20000 | |
921 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
922 | grav.position = TORSO.Position | |
923 | grav.Name = "V3BanishForce"..Player.Name | |
924 | else | |
925 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
926 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
927 | end | |
928 | else | |
929 | HUM.PlatformStand = false | |
930 | end | |
931 | end | |
932 | elseif ISBANISH == "Gravity" then | |
933 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
934 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
935 | HUM.PlatformStand = false | |
936 | end | |
937 | end | |
938 | end | |
939 | end | |
940 | end | |
941 | end | |
942 | end | |
943 | ||
944 | --//=================================\\ | |
945 | --|| ATTACK FUNCTIONS AND STUFF | |
946 | --\\=================================// | |
947 | ||
948 | function Banisher_Bullet() | |
949 | ATTACK = true | |
950 | Rooted = false | |
951 | for i=0, 0.4, 0.1 / Animation_Speed do | |
952 | Swait() | |
953 | turnto(Mouse.Hit.p) | |
954 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
955 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
956 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
957 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
958 | 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) | |
959 | 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) | |
960 | end | |
961 | repeat | |
962 | for i=0, 0.2, 0.1 / Animation_Speed do | |
963 | Swait() | |
964 | turnto(Mouse.Hit.p) | |
965 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
966 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
967 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
968 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
969 | 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) | |
970 | 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) | |
971 | end | |
972 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
973 | SpawnTrail(Hole.Position,POS) | |
974 | if HIT ~= nil then | |
975 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
976 | Banish(HIT.Parent) | |
977 | end | |
978 | end | |
979 | 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(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
980 | 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(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
981 | 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(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
982 | 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(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
983 | for i=0, 0.3, 0.1 / Animation_Speed do | |
984 | Swait() | |
985 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
986 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
987 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
988 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
989 | 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) | |
990 | 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) | |
991 | end | |
992 | until KEYHOLD == false | |
993 | ATTACK = false | |
994 | Rooted = false | |
995 | end | |
996 | ||
997 | function Deathbound() | |
998 | ATTACK = true | |
999 | Rooted = true | |
1000 | for i=0, 1, 0.1 / Animation_Speed do | |
1001 | Swait() | |
1002 | 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) | |
1003 | 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) | |
1004 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1005 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1006 | 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) | |
1007 | 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) | |
1008 | end | |
1009 | local DONE = false | |
1010 | local GATE = nil | |
1011 | local GATESPIN = true | |
1012 | coroutine.resume(coroutine.create(function() | |
1013 | repeat | |
1014 | Swait() | |
1015 | if GATE ~= nil then | |
1016 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
1017 | end | |
1018 | until GATESPIN == false | |
1019 | end)) | |
1020 | coroutine.resume(coroutine.create(function() | |
1021 | repeat | |
1022 | Swait() | |
1023 | 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) | |
1024 | 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) | |
1025 | 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) | |
1026 | 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) | |
1027 | 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) | |
1028 | 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) | |
1029 | until DONE == true | |
1030 | Swait(50) | |
1031 | for i = 1, 35 do | |
1032 | Swait(4) | |
1033 | local FIRED = false | |
1034 | local CHILDREN = workspace:GetDescendants() | |
1035 | for index, CHILD in pairs(CHILDREN) do | |
1036 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1037 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1038 | if HUM then | |
1039 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1040 | if TORSO then | |
1041 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
1042 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1043 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1044 | 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}) | |
1045 | 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}) | |
1046 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1047 | Banish(CHILD) | |
1048 | FIRED = true | |
1049 | break | |
1050 | end | |
1051 | end | |
1052 | end | |
1053 | end | |
1054 | end | |
1055 | if FIRED == false then | |
1056 | 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))) | |
1057 | 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}) | |
1058 | 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}) | |
1059 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1060 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
1061 | if HITBOD ~= nil then | |
1062 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
1063 | Banish(HITBOD.Parent) | |
1064 | end | |
1065 | end | |
1066 | end | |
1067 | end | |
1068 | for i = 1, 45 do | |
1069 | Swait() | |
1070 | GATE.Size = GATE.Size - VT(3,0,3) | |
1071 | end | |
1072 | GATESPIN = false | |
1073 | GATE:remove() | |
1074 | end)) | |
1075 | Swait(15) | |
1076 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1077 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Gate", VT(0,0,0)) | |
1078 | local DECAL = IT("Decal",GATE) | |
1079 | DECAL.Texture = "http://www.roblox.com/asset/?id=1526406096" | |
1080 | DECAL.Face = "Top" | |
1081 | GATE.CFrame = CF(HITPOS) | |
1082 | CreateSound(160772554, GATE, 7, 1.3, false) | |
1083 | for i = 1, 45 do | |
1084 | Swait() | |
1085 | GATE.Size = GATE.Size + VT(3,0,3) | |
1086 | end | |
1087 | CreateSound(145080998, RightHole, 7, 1, false) | |
1088 | CreateSound(145080998, LeftHole, 7, 1, false) | |
1089 | 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}) | |
1090 | 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}) | |
1091 | ATTACK = false | |
1092 | Rooted = false | |
1093 | DONE = true | |
1094 | end | |
1095 | ||
1096 | function Execute() | |
1097 | ATTACK = true | |
1098 | Rooted = false | |
1099 | local Part = CreatePart(3, Character, "Neon", 0, 0, "Mid gray", "Part", VT(0,1,4),false) | |
1100 | Part.Color = C3(0,0,0) | |
1101 | MakeForm(Part,"Wedge") | |
1102 | Part.CanCollide = true | |
1103 | 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)) | |
1104 | for i=0, 1, 0.1 / Animation_Speed do | |
1105 | Swait() | |
1106 | 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) | |
1107 | 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) | |
1108 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1109 | 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) | |
1110 | 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) | |
1111 | 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) | |
1112 | end | |
1113 | CreateSound(541909867, RightBarrel, 7, 1, false) | |
1114 | local TOCH = Part.Touched:Connect(function(hit) | |
1115 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= Character then | |
1116 | Banish(hit.Parent) | |
1117 | end | |
1118 | end) | |
1119 | for i=0, 0.35, 0.1 / Animation_Speed do | |
1120 | Swait() | |
1121 | 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) | |
1122 | 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) | |
1123 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1124 | 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) | |
1125 | 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) | |
1126 | 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) | |
1127 | end | |
1128 | TOCH:disconnect() | |
1129 | for i=0, 0.35, 0.1 / Animation_Speed do | |
1130 | Swait() | |
1131 | 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) | |
1132 | 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) | |
1133 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1134 | 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) | |
1135 | 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) | |
1136 | 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) | |
1137 | end | |
1138 | Part:remove() | |
1139 | ATTACK = false | |
1140 | Rooted = false | |
1141 | end | |
1142 | ||
1143 | ||
1144 | function AttackTemplate() | |
1145 | ATTACK = true | |
1146 | Rooted = false | |
1147 | for i=0, 1, 0.1 / Animation_Speed do | |
1148 | Swait() | |
1149 | 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) | |
1150 | 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) | |
1151 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1152 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1153 | 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) | |
1154 | 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) | |
1155 | end | |
1156 | ATTACK = false | |
1157 | Rooted = false | |
1158 | end | |
1159 | ||
1160 | --//=================================\\ | |
1161 | --|| ASSIGN THINGS TO KEYS | |
1162 | --\\=================================// | |
1163 | ||
1164 | function MouseDown(Mouse) | |
1165 | if ATTACK == false then | |
1166 | end | |
1167 | end | |
1168 | ||
1169 | function MouseUp(Mouse) | |
1170 | HOLD = false | |
1171 | end | |
1172 | ||
1173 | function KeyDown(Key) | |
1174 | KEYHOLD = true | |
1175 | if Key == "z" and ATTACK == false then | |
1176 | Banisher_Bullet() | |
1177 | end | |
1178 | ||
1179 | if Key == "b" and ATTACK == false then | |
1180 | Deathbound() | |
1181 | end | |
1182 | ||
1183 | if Key == "c" and ATTACK == false then | |
1184 | Execute() | |
1185 | end | |
1186 | ||
1187 | if Key == "g" and ATTACK == false then | |
1188 | TOBANISH = {} | |
1189 | end | |
1190 | ||
1191 | if Key == "x" and ATTACK == false then | |
1192 | end | |
1193 | end | |
1194 | ||
1195 | function KeyUp(Key) | |
1196 | KEYHOLD = false | |
1197 | end | |
1198 | ||
1199 | Mouse.Button1Down:connect(function(NEWKEY) | |
1200 | MouseDown(NEWKEY) | |
1201 | end) | |
1202 | Mouse.Button1Up:connect(function(NEWKEY) | |
1203 | MouseUp(NEWKEY) | |
1204 | end) | |
1205 | Mouse.KeyDown:connect(function(NEWKEY) | |
1206 | KeyDown(NEWKEY) | |
1207 | end) | |
1208 | Mouse.KeyUp:connect(function(NEWKEY) | |
1209 | KeyUp(NEWKEY) | |
1210 | end) | |
1211 | ||
1212 | --//=================================\\ | |
1213 | --\\=================================// | |
1214 | ||
1215 | ||
1216 | function unanchor() | |
1217 | if UNANCHOR == true then | |
1218 | g = Character:GetChildren() | |
1219 | for i = 1, #g do | |
1220 | if g[i].ClassName == "Part" then | |
1221 | g[i].Anchored = false | |
1222 | end | |
1223 | end | |
1224 | end | |
1225 | end | |
1226 | ||
1227 | ||
1228 | --//=================================\\ | |
1229 | --|| WRAP THE WHOLE SCRIPT UP | |
1230 | --\\=================================// | |
1231 | ||
1232 | Humanoid.Changed:connect(function(Jump) | |
1233 | if Jump == "Jump" and (Disable_Jump == true) then | |
1234 | Humanoid.Jump = false | |
1235 | end | |
1236 | end) | |
1237 | ||
1238 | local CONNECT = nil | |
1239 | ||
1240 | while true do | |
1241 | Swait() | |
1242 | ANIMATE.Parent = nil | |
1243 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
1244 | Humanoid = IT("Humanoid",Character) | |
1245 | end | |
1246 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
1247 | v:Stop(); | |
1248 | end | |
1249 | SINE = SINE + CHANGE | |
1250 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1251 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1252 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
1253 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1254 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1255 | 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) | |
1256 | 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) | |
1257 | 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) | |
1258 | 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) | |
1259 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
1260 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1261 | 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) | |
1262 | 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) | |
1263 | 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) | |
1264 | end | |
1265 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1266 | ANIM = "Jump" | |
1267 | if ATTACK == false then | |
1268 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1269 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1270 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1271 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1272 | 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) | |
1273 | 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) | |
1274 | end | |
1275 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1276 | ANIM = "Fall" | |
1277 | if ATTACK == false then | |
1278 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1279 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1280 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1281 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1282 | 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) | |
1283 | 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) | |
1284 | end | |
1285 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1286 | ANIM = "Idle" | |
1287 | if ATTACK == false then | |
1288 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1289 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1290 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1291 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1292 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1293 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1294 | end | |
1295 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1296 | ANIM = "Walk" | |
1297 | if ATTACK == false then | |
1298 | 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) | |
1299 | 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) | |
1300 | 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(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed) | |
1301 | 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(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed) | |
1302 | end | |
1303 | end | |
1304 | unanchor() | |
1305 | Humanoid.MaxHealth = "inf" | |
1306 | Humanoid.Health = "inf" | |
1307 | if Rooted == false then | |
1308 | Disable_Jump = false | |
1309 | Humanoid.WalkSpeed = Speed | |
1310 | - | sick.SoundId = "rbxassetid://410533850" |
1310 | + | |
1311 | Disable_Jump = true | |
1312 | Humanoid.WalkSpeed = 0 | |
1313 | end | |
1314 | sick.Parent = Torso | |
1315 | sick:resume() | |
1316 | sick.Volume = 5 | |
1317 | sick.SoundId = "rbxassetid://1494340971" | |
1318 | sick.Name = "BanishV3Music" | |
1319 | end | |
1320 | ||
1321 | --//=================================\\ | |
1322 | --\\=================================// | |
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | --//====================================================\\-- | |
1329 | --|| END OF SCRIPT | |
1330 | --\\====================================================//-- |