SHOW:
|
|
- or go back to the newest paste.
1 | - | --------------- |
1 | + | |
2 | - | --nahid chara v1.2.6-- |
2 | + | |
3 | - | ---------------------------------------------------------------- |
3 | + | |
4 | - | print([[ |
4 | + | |
5 | - | --made by Makhail07 |
5 | + | print("FE Compatibility code by Mokiros") |
6 | - | --FE code by Mokiros |
6 | + | |
7 | - | --Edited by ozzak1003 -- |
7 | + | |
8 | - | --YT: https://www.youtube.com/channel/UC38cAdtSgPWJVEHV8zgZi6A-- |
8 | + | |
9 | - | --Discord: ozzak1003#3275 |
9 | + | |
10 | - | -------------------------------- |
10 | + | |
11 | - | hello good sir |
11 | + | |
12 | - | Don't leak pls |
12 | + | |
13 | - | Enjoy ;) |
13 | + | |
14 | - | -------------------------------- |
14 | + | |
15 | - | ]]) |
15 | + | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | ||
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | - | self._btrs[name] = self.Heartbeat:Connect(fun) |
140 | + | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | ||
145 | --//====================================================\\-- | |
146 | --|| CREATED BY SHACKLUSTER | |
147 | --\\====================================================//-- | |
148 | ||
149 | wait(0.2) | |
150 | ||
151 | Player = owner | |
152 | PlayerGui = Player.PlayerGui | |
153 | Cam = workspace.CurrentCamera | |
154 | Backpack = Player.Backpack | |
155 | Character = Player.Character | |
156 | Humanoid = Character.Humanoid | |
157 | Mouse = Player:GetMouse() | |
158 | RootPart = Character["HumanoidRootPart"] | |
159 | Torso = Character["Torso"] | |
160 | Head = Character["Head"] | |
161 | RightArm = Character["Right Arm"] | |
162 | LeftArm = Character["Left Arm"] | |
163 | RightLeg = Character["Right Leg"] | |
164 | LeftLeg = Character["Left Leg"] | |
165 | RootJoint = RootPart["RootJoint"] | |
166 | Neck = Torso["Neck"] | |
167 | RightShoulder = Torso["Right Shoulder"] | |
168 | LeftShoulder = Torso["Left Shoulder"] | |
169 | RightHip = Torso["Right Hip"] | |
170 | LeftHip = Torso["Left Hip"] | |
171 | local sick = Instance.new("Sound",Torso) | |
172 | sick.SoundId = "rbxassetid://603565821" | |
173 | sick.Looped = true | |
174 | sick.Pitch = 1 | |
175 | sick.Volume = 20 | |
176 | sick:Play() | |
177 | ||
178 | IT = Instance.new | |
179 | CF = CFrame.new | |
180 | VT = Vector3.new | |
181 | RAD = math.rad | |
182 | C3 = Color3.new | |
183 | - | ------------------------------------------------------- |
183 | + | UD2 = UDim2.new |
184 | BRICKC = BrickColor.new | |
185 | - | local FavIDs = { |
185 | + | ANGLES = CFrame.Angles |
186 | - | 340106355, --Nefl Crystals |
186 | + | EULER = CFrame.fromEulerAnglesXYZ |
187 | - | 927529620, --Dimension |
187 | + | COS = math.cos |
188 | - | 876981900, --Fantasy |
188 | + | ACOS = math.acos |
189 | - | 398987889, --Ordinary Days |
189 | + | SIN = math.sin |
190 | - | 1117396305, --Oh wait, it's you. |
190 | + | ASIN = math.asin |
191 | - | 885996042, --Action Winter Journey |
191 | + | ABS = math.abs |
192 | - | 919231299, --Sprawling Idiot Effigy |
192 | + | MRANDOM = math.random |
193 | - | 743466274, --Good Day Sunshine |
193 | + | FLOOR = math.floor |
194 | - | 727411183, --Knife Fight |
194 | + | |
195 | - | 1402748531, --The Earth Is Counting On You! |
195 | + | --//=================================\\ |
196 | - | 595230126 --Robot Language |
196 | + | --|| USEFUL VALUES |
197 | --\\=================================// | |
198 | ||
199 | Animation_Speed = 3 | |
200 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
201 | local Speed = 12 | |
202 | - | local plr = game:service'Players'.LocalPlayer |
202 | + | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
203 | - | local char = plr.Character |
203 | + | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
204 | - | local hum = char.Humanoid |
204 | + | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) |
205 | - | local hed = char.Head |
205 | + | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) |
206 | - | local root = char.HumanoidRootPart |
206 | + | local DAMAGEMULTIPLIER = 1 |
207 | - | local rootj = root.RootJoint |
207 | + | local ANIM = "Idle" |
208 | - | local tors = char.Torso |
208 | + | local ATTACK = false |
209 | - | local ra = char["Right Arm"] |
209 | + | local EQUIPPED = false |
210 | - | local la = char["Left Arm"] |
210 | + | local HOLD = false |
211 | - | local rl = char["Right Leg"] |
211 | + | local COMBO = 1 |
212 | - | local ll = char["Left Leg"] |
212 | + | local Rooted = false |
213 | - | local neck = tors["Neck"] |
213 | + | local SINE = 0 |
214 | - | local mouse = plr:GetMouse() |
214 | + | local KEYHOLD = false |
215 | - | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) |
215 | + | local CHANGE = 2 / Animation_Speed |
216 | - | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) |
216 | + | local WALKINGANIM = false |
217 | - | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) |
217 | + | local VALUE1 = false |
218 | - | local maincolor = BrickColor.new("Institutional white") |
218 | + | local VALUE2 = false |
219 | local ROBLOXIDLEANIMATION = IT("Animation") | |
220 | - | ------------------------------------------------------- |
220 | + | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" |
221 | - | --Start Good Stuff-- |
221 | + | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" |
222 | - | ------------------------------------------------------- |
222 | + | --ROBLOXIDLEANIMATION.Parent = Humanoid |
223 | - | cam = game.Workspace.CurrentCamera |
223 | + | local WEAPONGUI = IT("ScreenGui", PlayerGui) |
224 | WEAPONGUI.Name = "Weapon GUI" | |
225 | - | angles = CFrame.Angles |
225 | + | local Effects = IT("Folder", Character) |
226 | - | attack = false |
226 | + | Effects.Name = "Effects" |
227 | - | Euler = CFrame.fromEulerAnglesXYZ |
227 | + | local ANIMATOR = Humanoid.Animator |
228 | - | Rad = math.rad |
228 | + | local ANIMATE = Character.Animate |
229 | local UNANCHOR = true | |
230 | - | BrickC = BrickColor.new |
230 | + | local WHITELIST = {} |
231 | - | Cos = math.cos |
231 | + | local TAUNT = false |
232 | - | Acos = math.acos |
232 | + | local OFFSET = 0 |
233 | - | Sin = math.sin |
233 | + | local FULL = false |
234 | - | Asin = math.asin |
234 | + | |
235 | - | Abs = math.abs |
235 | + | --//=================================\\ |
236 | - | Mrandom = math.random |
236 | + | --\\=================================// |
237 | - | Floor = math.floor |
237 | + | |
238 | - | ------------------------------------------------------- |
238 | + | |
239 | - | --End Good Stuff-- |
239 | + | --//=================================\\ |
240 | - | ------------------------------------------------------- |
240 | + | --|| SAZERENOS' ARTIFICIAL HEARTBEAT |
241 | - | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
241 | + | --\\=================================// |
242 | - | RSH, LSH = nil, nil |
242 | + | |
243 | - | RW = Instance.new("Weld") |
243 | + | |
244 | - | LW = Instance.new("Weld") |
244 | + | ArtificialHB.Name = "ArtificialHB" |
245 | - | RH = tors["Right Hip"] |
245 | + | |
246 | - | LH = tors["Left Hip"] |
246 | + | script:WaitForChild("ArtificialHB") |
247 | - | RSH = tors["Right Shoulder"] |
247 | + | |
248 | - | LSH = tors["Left Shoulder"] |
248 | + | frame = Frame_Speed |
249 | - | RSH.Parent = nil |
249 | + | |
250 | - | LSH.Parent = nil |
250 | + | |
251 | - | RW.Name = "RW" |
251 | + | |
252 | - | RW.Part0 = tors |
252 | + | |
253 | - | RW.C0 = CF(1.5, 0.5, 0) |
253 | + | script.ArtificialHB:Fire() |
254 | - | RW.C1 = CF(0, 0.5, 0) |
254 | + | |
255 | - | RW.Part1 = ra |
255 | + | |
256 | - | RW.Parent = tors |
256 | + | |
257 | - | LW.Name = "LW" |
257 | + | |
258 | - | LW.Part0 = tors |
258 | + | |
259 | - | LW.C0 = CF(-1.5, 0.5, 0) |
259 | + | script.ArtificialHB:Fire() |
260 | - | LW.C1 = CF(0, 0.5, 0) |
260 | + | |
261 | - | LW.Part1 = la |
261 | + | |
262 | - | LW.Parent = tors |
262 | + | |
263 | - | Effects = {} |
263 | + | script.ArtificialHB:Fire() |
264 | - | ------------------------------------------------------- |
264 | + | |
265 | - | --Start HeartBeat-- |
265 | + | lastframe = tick() |
266 | - | ------------------------------------------------------- |
266 | + | |
267 | if tossremainder then | |
268 | - | ArtificialHB.Name = "Heartbeat" |
268 | + | |
269 | - | script:WaitForChild("Heartbeat") |
269 | + | |
270 | tf = tf - frame * math.floor(tf / frame) | |
271 | - | frame = 1 / 60 |
271 | + | |
272 | end | |
273 | end) | |
274 | ||
275 | --//=================================\\ | |
276 | --\\=================================// | |
277 | ||
278 | - | script.Heartbeat:Fire() |
278 | + | --//=================================\\ |
279 | --|| SOME FUNCTIONS | |
280 | --\\=================================// | |
281 | ||
282 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
283 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
284 | end | |
285 | - | script.Heartbeat:Fire() |
285 | + | |
286 | function PositiveAngle(NUMBER) | |
287 | if NUMBER >= 0 then | |
288 | NUMBER = 0 | |
289 | - | script.Heartbeat:Fire() |
289 | + | |
290 | return NUMBER | |
291 | end | |
292 | ||
293 | function NegativeAngle(NUMBER) | |
294 | if NUMBER <= 0 then | |
295 | NUMBER = 0 | |
296 | end | |
297 | return NUMBER | |
298 | end | |
299 | ||
300 | - | ------------------------------------------------------- |
300 | + | function Swait(NUMBER) |
301 | - | --End HeartBeat-- |
301 | + | if NUMBER == 0 or NUMBER == nil then |
302 | - | ------------------------------------------------------- |
302 | + | ArtificialHB.Event:wait() |
303 | else | |
304 | - | ------------------------------------------------------- |
304 | + | for i = 1, NUMBER do |
305 | - | --Start Important Functions-- |
305 | + | ArtificialHB.Event:wait() |
306 | - | ------------------------------------------------------- |
306 | + | |
307 | - | function swait(num) |
307 | + | |
308 | - | if num == 0 or num == nil then |
308 | + | |
309 | - | game:service("RunService").Stepped:wait(0) |
309 | + | |
310 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
311 | - | for i = 0, num do |
311 | + | local NEWMESH = IT(MESH) |
312 | - | game:service("RunService").Stepped:wait(0) |
312 | + | if MESH == "SpecialMesh" then |
313 | NEWMESH.MeshType = MESHTYPE | |
314 | if MESHID ~= "nil" and MESHID ~= "" then | |
315 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
316 | - | function thread(f) |
316 | + | |
317 | - | coroutine.resume(coroutine.create(f)) |
317 | + | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
318 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
319 | - | function clerp(a, b, t) |
319 | + | |
320 | - | local qa = { |
320 | + | |
321 | - | QuaternionFromCFrame(a) |
321 | + | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
322 | NEWMESH.Scale = SCALE | |
323 | - | local qb = { |
323 | + | NEWMESH.Parent = PARENT |
324 | - | QuaternionFromCFrame(b) |
324 | + | return NEWMESH |
325 | end | |
326 | ||
327 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
328 | local NEWPART = IT("Part") | |
329 | NEWPART.formFactor = FORMFACTOR | |
330 | NEWPART.Reflectance = REFLECTANCE | |
331 | NEWPART.Transparency = TRANSPARENCY | |
332 | NEWPART.CanCollide = false | |
333 | NEWPART.Locked = true | |
334 | - | if trace > 0 then |
334 | + | NEWPART.Anchored = true |
335 | if ANCHOR == false then | |
336 | NEWPART.Anchored = false | |
337 | end | |
338 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
339 | NEWPART.Name = NAME | |
340 | - | if m00 < m11 then |
340 | + | NEWPART.Size = SIZE |
341 | NEWPART.Position = Torso.Position | |
342 | NEWPART.Material = MATERIAL | |
343 | NEWPART:BreakJoints() | |
344 | NEWPART.Parent = PARENT | |
345 | return NEWPART | |
346 | end | |
347 | ||
348 | local function weldBetween(a, b) | |
349 | local weldd = Instance.new("ManualWeld") | |
350 | weldd.Part0 = a | |
351 | weldd.Part1 = b | |
352 | weldd.C0 = CFrame.new() | |
353 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
354 | weldd.Parent = a | |
355 | return weldd | |
356 | end | |
357 | - | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
357 | + | |
358 | ||
359 | function QuaternionFromCFrame(cf) | |
360 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
361 | local trace = m00 + m11 + m22 | |
362 | if trace > 0 then | |
363 | local s = math.sqrt(1 + trace) | |
364 | local recip = 0.5 / s | |
365 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
366 | else | |
367 | local i = 0 | |
368 | if m11 > m00 then | |
369 | i = 1 | |
370 | end | |
371 | if m22 > (i == 0 and m00 or m11) then | |
372 | i = 2 | |
373 | end | |
374 | - | local startInterp, finishInterp |
374 | + | |
375 | - | if cosTheta >= 1.0E-4 then |
375 | + | |
376 | - | if 1 - cosTheta > 1.0E-4 then |
376 | + | |
377 | - | local theta = math.acos(cosTheta) |
377 | + | |
378 | - | local invSinTheta = 1 / Sin(theta) |
378 | + | |
379 | - | startInterp = Sin((1 - t) * theta) * invSinTheta |
379 | + | |
380 | - | finishInterp = Sin(t * theta) * invSinTheta |
380 | + | |
381 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
382 | elseif i == 2 then | |
383 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
384 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
385 | - | elseif 1 + cosTheta > 1.0E-4 then |
385 | + | |
386 | - | local theta = math.acos(-cosTheta) |
386 | + | |
387 | - | local invSinTheta = 1 / Sin(theta) |
387 | + | |
388 | - | startInterp = Sin((t - 1) * theta) * invSinTheta |
388 | + | |
389 | - | finishInterp = Sin(t * theta) * invSinTheta |
389 | + | |
390 | local xs, ys, zs = x + x, y + y, z + z | |
391 | - | startInterp = t - 1 |
391 | + | |
392 | - | finishInterp = t |
392 | + | |
393 | local xy = x * ys | |
394 | local xz = x * zs | |
395 | local yy = y * ys | |
396 | - | function rayCast(Position, Direction, Range, Ignore) |
396 | + | |
397 | - | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) |
397 | + | |
398 | 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)) | |
399 | - | local RbxUtility = LoadLibrary("RbxUtility") |
399 | + | |
400 | - | local Create = RbxUtility.Create |
400 | + | |
401 | function QuaternionSlerp(a, b, t) | |
402 | - | ------------------------------------------------------- |
402 | + | |
403 | - | --Start Damage Function-- |
403 | + | local startInterp, finishInterp; |
404 | - | ------------------------------------------------------- |
404 | + | if cosTheta >= 0.0001 then |
405 | - | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) |
405 | + | if (1 - cosTheta) > 0.0001 then |
406 | - | if hit.Parent == nil then |
406 | + | local theta = ACOS(cosTheta) |
407 | - | return |
407 | + | local invSinTheta = 1 / SIN(theta) |
408 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
409 | - | local h = hit.Parent:FindFirstChildOfClass("Humanoid") |
409 | + | finishInterp = SIN(t * theta) * invSinTheta |
410 | - | for _, v in pairs(hit.Parent:children()) do |
410 | + | |
411 | - | if v:IsA("Humanoid") then |
411 | + | |
412 | - | h = v |
412 | + | |
413 | end | |
414 | else | |
415 | - | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then |
415 | + | if (1 + cosTheta) > 0.0001 then |
416 | local theta = ACOS(-cosTheta) | |
417 | - | hit.Parent:FindFirstChild("Head"):BreakJoints() |
417 | + | local invSinTheta = 1 / SIN(theta) |
418 | - | end |
418 | + | startInterp = SIN((t - 1) * theta) * invSinTheta |
419 | finishInterp = SIN(t * theta) * invSinTheta | |
420 | - | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then |
420 | + | |
421 | - | if hit.Parent:findFirstChild("DebounceHit") ~= nil then |
421 | + | startInterp = t - 1 |
422 | - | if hit.Parent.DebounceHit.Value == true then |
422 | + | |
423 | - | return |
423 | + | |
424 | end | |
425 | 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 | |
426 | - | if insta == true then |
426 | + | |
427 | - | hit.Parent:FindFirstChild("Head"):BreakJoints() |
427 | + | |
428 | - | end |
428 | + | function Clerp(a, b, t) |
429 | - | local c = Create("ObjectValue"){ |
429 | + | local qa = {QuaternionFromCFrame(a)} |
430 | - | Name = "creator", |
430 | + | local qb = {QuaternionFromCFrame(b)} |
431 | - | Value = game:service("Players").LocalPlayer, |
431 | + | |
432 | - | Parent = h, |
432 | + | |
433 | - | } |
433 | + | |
434 | - | game:GetService("Debris"):AddItem(c, .5) |
434 | + | |
435 | - | if HitSound ~= nil and HitPitch ~= nil then |
435 | + | |
436 | - | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) |
436 | + | |
437 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
438 | - | local Damage = math.random(minim, maxim) |
438 | + | local frame = IT("Frame") |
439 | - | local blocked = false |
439 | + | frame.BackgroundTransparency = TRANSPARENCY |
440 | - | local block = hit.Parent:findFirstChild("Block") |
440 | + | frame.BorderSizePixel = BORDERSIZEPIXEL |
441 | - | if block ~= nil then |
441 | + | frame.Position = POSITION |
442 | - | if block.className == "IntValue" then |
442 | + | frame.Size = SIZE |
443 | - | if block.Value > 0 then |
443 | + | frame.BackgroundColor3 = COLOR |
444 | - | blocked = true |
444 | + | frame.BorderColor3 = BORDERCOLOR |
445 | - | block.Value = block.Value - 1 |
445 | + | frame.Name = NAME |
446 | - | print(block.Value) |
446 | + | frame.Parent = PARENT |
447 | return frame | |
448 | end | |
449 | ||
450 | - | if blocked == false then |
450 | + | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) |
451 | - | h.Health = h.Health - Damage |
451 | + | local label = IT("TextLabel") |
452 | - | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) |
452 | + | label.BackgroundTransparency = 1 |
453 | label.Size = UD2(1, 0, 1, 0) | |
454 | - | h.Health = h.Health - (Damage / 2) |
454 | + | label.Position = UD2(0, 0, 0, 0) |
455 | - | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) |
455 | + | label.TextColor3 = TEXTCOLOR |
456 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
457 | - | if Type == "Knockdown" then |
457 | + | label.TextTransparency = TRANSPARENCY |
458 | - | local hum = hit.Parent.Humanoid |
458 | + | label.FontSize = TEXTFONTSIZE |
459 | - | hum.PlatformStand = true |
459 | + | label.Font = TEXTFONT |
460 | - | coroutine.resume(coroutine.create(function(HHumanoid) |
460 | + | label.BorderSizePixel = BORDERSIZEPIXEL |
461 | - | swait(1) |
461 | + | label.TextScaled = false |
462 | - | HHumanoid.PlatformStand = false |
462 | + | label.Text = TEXT |
463 | - | end), hum) |
463 | + | label.Name = NAME |
464 | - | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit |
464 | + | label.Parent = PARENT |
465 | - | local bodvol = Create("BodyVelocity"){ |
465 | + | return label |
466 | - | velocity = angle * knockback, |
466 | + | |
467 | - | P = 5000, |
467 | + | |
468 | - | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), |
468 | + | function NoOutlines(PART) |
469 | - | Parent = hit, |
469 | + | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 |
470 | - | } |
470 | + | |
471 | - | local rl = Create("BodyAngularVelocity"){ |
471 | + | |
472 | - | P = 3000, |
472 | + | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) |
473 | - | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, |
473 | + | local NEWWELD = IT(TYPE) |
474 | - | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), |
474 | + | NEWWELD.Part0 = PART0 |
475 | - | Parent = hit, |
475 | + | NEWWELD.Part1 = PART1 |
476 | - | } |
476 | + | NEWWELD.C0 = C0 |
477 | - | game:GetService("Debris"):AddItem(bodvol, .5) |
477 | + | NEWWELD.C1 = C1 |
478 | - | game:GetService("Debris"):AddItem(rl, .5) |
478 | + | NEWWELD.Parent = PARENT |
479 | - | elseif Type == "Normal" then |
479 | + | return NEWWELD |
480 | - | local vp = Create("BodyVelocity"){ |
480 | + | |
481 | - | P = 500, |
481 | + | |
482 | - | maxForce = Vector3.new(math.huge, 0, math.huge), |
482 | + | local S = IT("Sound") |
483 | - | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, |
483 | + | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) |
484 | - | } |
484 | + | local NEWSOUND = nil |
485 | - | if knockback > 0 then |
485 | + | |
486 | - | vp.Parent = hit.Parent.Torso |
486 | + | NEWSOUND = S:Clone() |
487 | NEWSOUND.Parent = PARENT | |
488 | - | game:GetService("Debris"):AddItem(vp, .5) |
488 | + | NEWSOUND.Volume = VOLUME |
489 | - | elseif Type == "Up" then |
489 | + | NEWSOUND.Pitch = PITCH |
490 | - | local bodyVelocity = Create("BodyVelocity"){ |
490 | + | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID |
491 | - | velocity = Vector3.new(0, 20, 0), |
491 | + | NEWSOUND:play() |
492 | - | P = 5000, |
492 | + | if DOESLOOP == true then |
493 | - | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), |
493 | + | NEWSOUND.Looped = true |
494 | - | Parent = hit, |
494 | + | |
495 | - | } |
495 | + | repeat wait(1) until NEWSOUND.Playing == false |
496 | - | game:GetService("Debris"):AddItem(bodyVelocity, .5) |
496 | + | NEWSOUND:remove() |
497 | - | elseif Type == "DarkUp" then |
497 | + | |
498 | end)) | |
499 | - | for i = 0, 1, 0.1 do |
499 | + | return NEWSOUND |
500 | - | swait() |
500 | + | |
501 | - | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) |
501 | + | |
502 | function CFrameFromTopBack(at, top, back) | |
503 | local right = top:Cross(back) | |
504 | - | local bodyVelocity = Create("BodyVelocity"){ |
504 | + | 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) |
505 | - | velocity = Vector3.new(0, 20, 0), |
505 | + | |
506 | - | P = 5000, |
506 | + | |
507 | - | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), |
507 | + | --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}) |
508 | - | Parent = hit, |
508 | + | function WACKYEFFECT(Table) |
509 | - | } |
509 | + | local TYPE = (Table.EffectType or "Sphere") |
510 | - | game:GetService("Debris"):AddItem(bodyVelocity, 1) |
510 | + | local SIZE = (Table.Size or VT(1,1,1)) |
511 | - | elseif Type == "Snare" then |
511 | + | local ENDSIZE = (Table.Size2 or VT(0,0,0)) |
512 | - | local bp = Create("BodyPosition"){ |
512 | + | local TRANSPARENCY = (Table.Transparency or 0) |
513 | - | P = 2000, |
513 | + | local ENDTRANSPARENCY = (Table.Transparency2 or 1) |
514 | - | D = 100, |
514 | + | local CFRAME = (Table.CFrame or Torso.CFrame) |
515 | - | maxForce = Vector3.new(math.huge, math.huge, math.huge), |
515 | + | local MOVEDIRECTION = (Table.MoveToPos or nil) |
516 | - | position = hit.Parent.Torso.Position, |
516 | + | local ROTATION1 = (Table.RotationX or 0) |
517 | - | Parent = hit.Parent.Torso, |
517 | + | local ROTATION2 = (Table.RotationY or 0) |
518 | - | } |
518 | + | local ROTATION3 = (Table.RotationZ or 0) |
519 | - | game:GetService("Debris"):AddItem(bp, 1) |
519 | + | local MATERIAL = (Table.Material or "Neon") |
520 | - | elseif Type == "Freeze" then |
520 | + | local COLOR = (Table.Color or C3(1,1,1)) |
521 | - | local BodPos = Create("BodyPosition"){ |
521 | + | local TIME = (Table.Time or 45) |
522 | - | P = 50000, |
522 | + | local SOUNDID = (Table.SoundID or nil) |
523 | - | D = 1000, |
523 | + | local SOUNDPITCH = (Table.SoundPitch or nil) |
524 | - | maxForce = Vector3.new(math.huge, math.huge, math.huge), |
524 | + | local SOUNDVOLUME = (Table.SoundVolume or nil) |
525 | - | position = hit.Parent.Torso.Position, |
525 | + | |
526 | - | Parent = hit.Parent.Torso, |
526 | + | local PLAYSSOUND = false |
527 | - | } |
527 | + | local SOUND = nil |
528 | - | local BodGy = Create("BodyGyro") { |
528 | + | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) |
529 | - | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , |
529 | + | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then |
530 | - | P = 20e+003, |
530 | + | PLAYSSOUND = true |
531 | - | Parent = hit.Parent.Torso, |
531 | + | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) |
532 | - | cframe = hit.Parent.Torso.CFrame, |
532 | + | |
533 | - | } |
533 | + | EFFECT.Color = COLOR |
534 | - | hit.Parent.Torso.Anchored = true |
534 | + | local MSH = nil |
535 | - | coroutine.resume(coroutine.create(function(Part) |
535 | + | if TYPE == "Sphere" then |
536 | - | swait(1.5) |
536 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) |
537 | - | Part.Anchored = false |
537 | + | elseif TYPE == "Block" then |
538 | - | end), hit.Parent.Torso) |
538 | + | MSH = IT("BlockMesh",EFFECT) |
539 | - | game:GetService("Debris"):AddItem(BodPos, 3) |
539 | + | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) |
540 | - | game:GetService("Debris"):AddItem(BodGy, 3) |
540 | + | elseif TYPE == "Wave" then |
541 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
542 | - | local debounce = Create("BoolValue"){ |
542 | + | elseif TYPE == "Ring" then |
543 | - | Name = "DebounceHit", |
543 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) |
544 | - | Parent = hit.Parent, |
544 | + | elseif TYPE == "Slash" then |
545 | - | Value = true, |
545 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
546 | - | } |
546 | + | elseif TYPE == "Round Slash" then |
547 | - | game:GetService("Debris"):AddItem(debounce, Delay) |
547 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
548 | - | c = Create("ObjectValue"){ |
548 | + | elseif TYPE == "Swirl" then |
549 | - | Name = "creator", |
549 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) |
550 | - | Value = Player, |
550 | + | elseif TYPE == "Skull" then |
551 | - | Parent = h, |
551 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) |
552 | - | } |
552 | + | elseif TYPE == "Crystal" then |
553 | - | game:GetService("Debris"):AddItem(c, .5) |
553 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) |
554 | end | |
555 | if MSH ~= nil then | |
556 | - | ------------------------------------------------------- |
556 | + | local MOVESPEED = nil |
557 | - | --End Damage Function-- |
557 | + | if MOVEDIRECTION ~= nil then |
558 | - | ------------------------------------------------------- |
558 | + | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME |
559 | end | |
560 | - | ------------------------------------------------------- |
560 | + | local GROWTH = SIZE - ENDSIZE |
561 | - | --Start Damage Function Customization-- |
561 | + | local TRANS = TRANSPARENCY - ENDTRANSPARENCY |
562 | - | ------------------------------------------------------- |
562 | + | if TYPE == "Block" then |
563 | - | function ShowDamage(Pos, Text, Time, Color) |
563 | + | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
564 | - | local Rate = (1 / 30) |
564 | + | else |
565 | - | local Pos = (Pos or Vector3.new(0, 0, 0)) |
565 | + | EFFECT.CFrame = CFRAME |
566 | - | local Text = (Text or "") |
566 | + | |
567 | - | local Time = (Time or 2) |
567 | + | for LOOP = 1, TIME+1 do |
568 | - | local Color = (Color or Color3.new(1, 0, 1)) |
568 | + | |
569 | - | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) |
569 | + | MSH.Scale = MSH.Scale - GROWTH/TIME |
570 | - | EffectPart.Anchored = true |
570 | + | if TYPE == "Wave" then |
571 | - | local BillboardGui = Create("BillboardGui"){ |
571 | + | MSH.Offset = VT(0,0,-MSH.Scale.X/8) |
572 | - | Size = UDim2.new(3, 0, 3, 0), |
572 | + | |
573 | - | Adornee = EffectPart, |
573 | + | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME |
574 | - | Parent = EffectPart, |
574 | + | if TYPE == "Block" then |
575 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
576 | - | local TextLabel = Create("TextLabel"){ |
576 | + | else |
577 | - | BackgroundTransparency = 1, |
577 | + | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) |
578 | - | Size = UDim2.new(1, 0, 1, 0), |
578 | + | |
579 | - | Text = Text, |
579 | + | if MOVEDIRECTION ~= nil then |
580 | - | Font = "Bodoni", |
580 | + | local ORI = EFFECT.Orientation |
581 | - | TextColor3 = Color, |
581 | + | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) |
582 | - | TextScaled = true, |
582 | + | EFFECT.Orientation = ORI |
583 | - | TextStrokeColor3 = Color3.fromRGB(0,0,0), |
583 | + | |
584 | - | Parent = BillboardGui, |
584 | + | |
585 | if PLAYSSOUND == false then | |
586 | - | game.Debris:AddItem(EffectPart, (Time)) |
586 | + | EFFECT:remove() |
587 | - | EffectPart.Parent = game:GetService("Workspace") |
587 | + | else |
588 | - | delay(0, function() |
588 | + | SOUND.Stopped:Connect(function() |
589 | - | local Frames = (Time / Rate) |
589 | + | EFFECT:remove() |
590 | - | for Frame = 1, Frames do |
590 | + | end) |
591 | - | wait(Rate) |
591 | + | |
592 | - | local Percent = (Frame / Frames) |
592 | + | |
593 | - | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) |
593 | + | if PLAYSSOUND == false then |
594 | - | TextLabel.TextTransparency = Percent |
594 | + | EFFECT:remove() |
595 | else | |
596 | - | if EffectPart and EffectPart.Parent then |
596 | + | repeat Swait() until SOUND.Playing == false |
597 | - | EffectPart:Destroy() |
597 | + | EFFECT:remove() |
598 | end | |
599 | end | |
600 | end)) | |
601 | - | ------------------------------------------------------- |
601 | + | |
602 | - | --End Damage Function Customization-- |
602 | + | |
603 | - | ------------------------------------------------------- |
603 | + | function MakeForm(PART,TYPE) |
604 | if TYPE == "Cyl" then | |
605 | - | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) |
605 | + | local MSH = IT("CylinderMesh",PART) |
606 | - | for _, c in pairs(workspace:children()) do |
606 | + | elseif TYPE == "Ball" then |
607 | - | local hum = c:findFirstChild("Humanoid") |
607 | + | local MSH = IT("SpecialMesh",PART) |
608 | - | if hum ~= nil then |
608 | + | MSH.MeshType = "Sphere" |
609 | - | local head = c:findFirstChild("Head") |
609 | + | elseif TYPE == "Wedge" then |
610 | - | if head ~= nil then |
610 | + | local MSH = IT("SpecialMesh",PART) |
611 | - | local targ = head.Position - Part.Position |
611 | + | MSH.MeshType = "Wedge" |
612 | - | local mag = targ.magnitude |
612 | + | |
613 | - | if magni >= mag and c.Name ~= plr.Name then |
613 | + | |
614 | - | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) |
614 | + | |
615 | - | end |
615 | + | Debris = game:GetService("Debris") |
616 | - | end |
616 | + | |
617 | - | end |
617 | + | function CastProperRay(StartPos, EndPos, Distance, Ignore) |
618 | - | end |
618 | + | local DIRECTION = CF(StartPos,EndPos).lookVector |
619 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
620 | end | |
621 | ||
622 | - | CFuncs = { |
622 | + | local EyeSizes={ |
623 | - | Part = { |
623 | + | NumberSequenceKeypoint.new(0,1,0), |
624 | - | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) |
624 | + | NumberSequenceKeypoint.new(1,0,0) |
625 | - | local Part = Create("Part")({ |
625 | + | |
626 | - | Parent = Parent, |
626 | + | local EyeTrans={ |
627 | - | Reflectance = Reflectance, |
627 | + | NumberSequenceKeypoint.new(0,0.8,0), |
628 | - | Transparency = Transparency, |
628 | + | NumberSequenceKeypoint.new(1,1,0) |
629 | - | CanCollide = false, |
629 | + | |
630 | - | Locked = true, |
630 | + | local PE=Instance.new("ParticleEmitter",nil) |
631 | - | BrickColor = BrickColor.new(tostring(BColor)), |
631 | + | PE.LightEmission=.8 |
632 | - | Name = Name, |
632 | + | PE.Color = ColorSequence.new(BRICKC("Really red").Color) |
633 | - | Size = Size, |
633 | + | PE.Size=NumberSequence.new(EyeSizes) |
634 | - | Material = Material |
634 | + | PE.Transparency=NumberSequence.new(EyeTrans) |
635 | - | }) |
635 | + | PE.Lifetime=NumberRange.new(0.35,1.5) |
636 | - | RemoveOutlines(Part) |
636 | + | PE.Rotation=NumberRange.new(0,360) |
637 | - | return Part |
637 | + | PE.Rate=999 |
638 | PE.VelocitySpread = 10000 | |
639 | - | }, |
639 | + | PE.Acceleration = Vector3.new(0,0,0) |
640 | - | Mesh = { |
640 | + | PE.Drag = 5 |
641 | - | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
641 | + | PE.Speed = NumberRange.new(0,0,0) |
642 | - | local Msh = Create(Mesh)({ |
642 | + | PE.Texture="http://www.roblox.com/asset/?id=1351966707" |
643 | - | Parent = Part, |
643 | + | PE.ZOffset = -0 |
644 | - | Offset = OffSet, |
644 | + | PE.Name = "PE" |
645 | - | Scale = Scale |
645 | + | PE.Enabled = false |
646 | - | }) |
646 | + | |
647 | - | if Mesh == "SpecialMesh" then |
647 | + | function particles(art) |
648 | - | Msh.MeshType = MeshType |
648 | + | local PARTICLES = PE:Clone() |
649 | - | Msh.MeshId = MeshId |
649 | + | PARTICLES.Parent = art |
650 | end | |
651 | - | return Msh |
651 | + | |
652 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
653 | - | }, |
653 | + | if FLOOR ~= nil then |
654 | - | Mesh = { |
654 | + | |
655 | - | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
655 | + | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) |
656 | - | local Msh = Create(Mesh)({ |
656 | + | PART.CFrame = CF(POSITION) |
657 | - | Parent = Part, |
657 | + | for i = 1, 45 do |
658 | - | Offset = OffSet, |
658 | + | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) |
659 | - | Scale = Scale |
659 | + | RingPiece.Material = FLOOR.Material |
660 | - | }) |
660 | + | RingPiece.Color = FLOOR.Color |
661 | - | if Mesh == "SpecialMesh" then |
661 | + | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) |
662 | - | Msh.MeshType = MeshType |
662 | + | Debris:AddItem(RingPiece,SWAIT) |
663 | - | Msh.MeshId = MeshId |
663 | + | |
664 | PART:remove() | |
665 | - | return Msh |
665 | + | |
666 | end | |
667 | - | }, |
667 | + | |
668 | - | Weld = { |
668 | + | |
669 | - | Create = function(Parent, Part0, Part1, C0, C1) |
669 | + | function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH) |
670 | - | local Weld = Create("Weld")({ |
670 | + | if FLOOR ~= nil then |
671 | - | Parent = Parent, |
671 | + | for i = 1, AMOUNT do |
672 | - | Part0 = Part0, |
672 | + | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) |
673 | - | Part1 = Part1, |
673 | + | DEBREE.Material = FLOOR.Material |
674 | - | C0 = C0, |
674 | + | DEBREE.Color = FLOOR.Color |
675 | - | C1 = C1 |
675 | + | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) |
676 | - | }) |
676 | + | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH)) |
677 | - | return Weld |
677 | + | |
678 | Swait(15) | |
679 | - | }, |
679 | + | DEBREE.Parent = workspace |
680 | - | Sound = { |
680 | + | DEBREE.CanCollide = true |
681 | - | Create = function(id, par, vol, pit) |
681 | + | Debris:AddItem(DEBREE,SWAIT) |
682 | end)) | |
683 | - | local S = Create("Sound")({ |
683 | + | |
684 | - | Volume = vol, |
684 | + | |
685 | - | Pitch = pit or 1, |
685 | + | |
686 | - | SoundId = id, |
686 | + | |
687 | - | Parent = par or workspace |
687 | + | --//=================================\\ |
688 | - | }) |
688 | + | --|| WEAPON CREATION |
689 | - | wait() |
689 | + | --\\=================================// |
690 | - | S:play() |
690 | + | |
691 | - | game:GetService("Debris"):AddItem(S, 6) |
691 | + | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really red", "Hood", VT(1,1,1),false) |
692 | PRT.Color = C3(0,0,0) | |
693 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0)) | |
694 | - | }, |
694 | + | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0)) |
695 | - | ParticleEmitter = { |
695 | + | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really red", "Scarf", VT(1,1,1),false) |
696 | - | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) |
696 | + | PRT.Color = C3(0,0,0) |
697 | - | local fp = Create("ParticleEmitter")({ |
697 | + | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0)) |
698 | - | Parent = Parent, |
698 | + | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0)) |
699 | - | Color = ColorSequence.new(Color1, Color2), |
699 | + | for i = 1, 16 do |
700 | - | LightEmission = LightEmission, |
700 | + | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false) |
701 | - | Size = Size, |
701 | + | FACE.Color = C3(0,0,0) |
702 | - | Texture = Texture, |
702 | + | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE |
703 | - | Transparency = Transparency, |
703 | + | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0)) |
704 | - | ZOffset = ZOffset, |
704 | + | |
705 | - | Acceleration = Accel, |
705 | + | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Eyeball", VT(0.15,0.15,0.15),false) |
706 | - | Drag = Drag, |
706 | + | MakeForm(EYE,"Ball") |
707 | - | LockedToPart = LockedToPart, |
707 | + | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0)) |
708 | - | VelocityInheritance = VelocityInheritance, |
708 | + | local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Eyeball", VT(0.15,0.15,0.15),false) |
709 | - | EmissionDirection = EmissionDirection, |
709 | + | MakeForm(EYE2,"Ball") |
710 | - | Enabled = Enabled, |
710 | + | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0)) |
711 | - | Lifetime = LifeTime, |
711 | + | local LASTPART = Head |
712 | - | Rate = Rate, |
712 | + | for i = 1, 20 do |
713 | - | Rotation = Rotation, |
713 | + | local MATH = (1-(i/25)) |
714 | - | RotSpeed = RotSpeed, |
714 | + | if LASTPART == Head then |
715 | - | Speed = Speed, |
715 | + | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) |
716 | - | VelocitySpread = VelocitySpread |
716 | + | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0)) |
717 | - | }) |
717 | + | LASTPART = Horn |
718 | - | return fp |
718 | + | Horn.Color = C3((i*3-3)/255,0,0) |
719 | else | |
720 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
721 | 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)) | |
722 | - | function RemoveOutlines(part) |
722 | + | LASTPART = Horn |
723 | - | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 |
723 | + | Horn.Color = C3((i*3-3)/255,0,0) |
724 | end | |
725 | - | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) |
725 | + | |
726 | - | local Part = Create("Part")({ |
726 | + | local LASTPART = Head |
727 | - | formFactor = FormFactor, |
727 | + | for i = 1, 20 do |
728 | - | Parent = Parent, |
728 | + | local MATH = (1-(i/25)) |
729 | - | Reflectance = Reflectance, |
729 | + | if LASTPART == Head then |
730 | - | Transparency = Transparency, |
730 | + | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) |
731 | - | CanCollide = false, |
731 | + | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0)) |
732 | - | Locked = true, |
732 | + | LASTPART = Horn |
733 | - | BrickColor = BrickColor.new(tostring(BColor)), |
733 | + | Horn.Color = C3((i*3-3)/255,0,0) |
734 | - | Name = Name, |
734 | + | |
735 | - | Size = Size, |
735 | + | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) |
736 | - | Material = Material |
736 | + | 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)) |
737 | LASTPART = Horn | |
738 | - | RemoveOutlines(Part) |
738 | + | Horn.Color = C3((i*3-3)/255,0,0) |
739 | - | return Part |
739 | + | |
740 | end | |
741 | - | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
741 | + | local Hair = CreatePart(3, Character, "Fabric", 0, 0, "Black", "Hair", VT(1,1,1),false) |
742 | - | local Msh = Create(Mesh)({ |
742 | + | local HairWeld1 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.1,-0.25) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
743 | - | Parent = Part, |
743 | + | CreateMesh("SpecialMesh", Hair, "FileMesh", "873651376", "", VT(0.025, 0.025, 0.02), VT(0,0,0)) |
744 | - | Offset = OffSet, |
744 | + | local Hair = CreatePart(3, Character, "Fabric", 0, 0, "Black", "Hair", VT(1,1,1),false) |
745 | - | Scale = Scale |
745 | + | local HairWeld2 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) |
746 | CreateMesh("SpecialMesh", Hair, "FileMesh", "873651376", "", VT(0.03, 0.015, 0.01), VT(0,0,-0.1)) | |
747 | - | if Mesh == "SpecialMesh" then |
747 | + | |
748 | - | Msh.MeshType = MeshType |
748 | + | local BODY = {} |
749 | - | Msh.MeshId = MeshId |
749 | + | |
750 | for _, c in pairs(Character:GetDescendants()) do | |
751 | - | return Msh |
751 | + | if c:IsA("BasePart") and c.Name ~= "Handle" then |
752 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
753 | - | function CreateWeld(Parent, Part0, Part1, C0, C1) |
753 | + | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
754 | - | local Weld = Create("Weld")({ |
754 | + | |
755 | - | Parent = Parent, |
755 | + | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) |
756 | - | Part0 = Part0, |
756 | + | elseif c:IsA("JointInstance") then |
757 | - | Part1 = Part1, |
757 | + | table.insert(BODY,{c,c.Parent,nil,nil,nil}) |
758 | - | C0 = C0, |
758 | + | |
759 | - | C1 = C1 |
759 | + | |
760 | ||
761 | - | return Weld |
761 | + | for e = 1, #BODY do |
762 | if BODY[e] ~= nil then | |
763 | local STUFF = BODY[e] | |
764 | local PART = STUFF[1] | |
765 | - | ------------------------------------------------------- |
765 | + | local PARENT = STUFF[2] |
766 | - | --Start Effect Function-- |
766 | + | local MATERIAL = STUFF[3] |
767 | - | ------------------------------------------------------- |
767 | + | local COLOR = STUFF[4] |
768 | - | EffectModel = Instance.new("Model", char) |
768 | + | local TRANSPARENCY = STUFF[5] |
769 | - | Effects = { |
769 | + | if PART.ClassName == "Part" and PART ~= RootPart then |
770 | - | Block = { |
770 | + | PART.Material = MATERIAL |
771 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) |
771 | + | PART.Color = COLOR |
772 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
772 | + | PART.Transparency = TRANSPARENCY |
773 | - | prt.Anchored = true |
773 | + | |
774 | - | prt.CFrame = cframe |
774 | + | PART.AncestryChanged:Connect(function() |
775 | - | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
775 | + | PART.Parent = PARENT |
776 | - | game:GetService("Debris"):AddItem(prt, 10) |
776 | + | |
777 | - | if Type == 1 or Type == nil then |
777 | + | |
778 | - | table.insert(Effects, { |
778 | + | |
779 | - | prt, |
779 | + | |
780 | - | "Block1", |
780 | + | function refit() |
781 | - | delay, |
781 | + | Character.Parent = workspace |
782 | - | x3, |
782 | + | for e = 1, #BODY do |
783 | - | y3, |
783 | + | if BODY[e] ~= nil then |
784 | - | z3, |
784 | + | local STUFF = BODY[e] |
785 | - | msh |
785 | + | local PART = STUFF[1] |
786 | - | }) |
786 | + | local PARENT = STUFF[2] |
787 | - | elseif Type == 2 then |
787 | + | local MATERIAL = STUFF[3] |
788 | - | table.insert(Effects, { |
788 | + | local COLOR = STUFF[4] |
789 | - | prt, |
789 | + | local TRANSPARENCY = STUFF[5] |
790 | - | "Block2", |
790 | + | if PART.ClassName == "Part" and PART ~= RootPart then |
791 | - | delay, |
791 | + | PART.Material = MATERIAL |
792 | - | x3, |
792 | + | PART.Color = COLOR |
793 | - | y3, |
793 | + | PART.Transparency = TRANSPARENCY |
794 | - | z3, |
794 | + | |
795 | - | msh |
795 | + | if PART.Parent ~= PARENT then |
796 | - | }) |
796 | + | Humanoid:remove() |
797 | - | else |
797 | + | PART.Parent = PARENT |
798 | - | table.insert(Effects, { |
798 | + | Humanoid = IT("Humanoid",Character) |
799 | - | prt, |
799 | + | |
800 | - | "Block3", |
800 | + | |
801 | - | delay, |
801 | + | |
802 | - | x3, |
802 | + | |
803 | - | y3, |
803 | + | |
804 | - | z3, |
804 | + | local SKILLTEXTCOLOR = C3(0,0,0) |
805 | - | msh |
805 | + | local SKILLFONT = "Antique" |
806 | - | }) |
806 | + | local SKILLTEXTSIZE = 7 |
807 | - | end |
807 | + | |
808 | - | end |
808 | + | Humanoid.Died:connect(function() |
809 | - | }, |
809 | + | refit() |
810 | - | Sphere = { |
810 | + | |
811 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
811 | + | |
812 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) |
812 | + | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") |
813 | - | prt.Anchored = true |
813 | + | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") |
814 | - | prt.CFrame = cframe |
814 | + | local SKILL3FRAME = 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 3 Frame") |
815 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
815 | + | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") |
816 | - | game:GetService("Debris"):AddItem(prt, 10) |
816 | + | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") |
817 | - | table.insert(Effects, { |
817 | + | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.05, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") |
818 | - | prt, |
818 | + | |
819 | - | "Cylinder", |
819 | + | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Whitelist", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1") |
820 | - | delay, |
820 | + | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Clear whitelist", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2") |
821 | - | x3, |
821 | + | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Smite", SKILLTEXTCOLOR, 8, SKILLFONT, 0, 2, 1, "Text 3") |
822 | - | y3, |
822 | + | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Meteor Shower", SKILLTEXTCOLOR, 10, SKILLFONT, 0, 2, 1, "Text 4") |
823 | - | z3, |
823 | + | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[Q] Teleport", SKILLTEXTCOLOR, 10, SKILLFONT, 0, 2, 1, "Text 5") |
824 | - | msh |
824 | + | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[P] Equivalent Pain", SKILLTEXTCOLOR, 12, SKILLFONT, 0, 2, 1, "Text 6") |
825 | - | }) |
825 | + | |
826 | - | end |
826 | + | function Blink() |
827 | - | }, |
827 | + | |
828 | - | Cylinder = { |
828 | + | if EYE ~= nil then |
829 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
829 | + | for i = 1, 5 do |
830 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
830 | + | |
831 | - | prt.Anchored = true |
831 | + | EYE.Mesh.Scale = EYE.Mesh.Scale - VT(0,0.2,0) |
832 | - | prt.CFrame = cframe |
832 | + | EYE2.Mesh.Scale = EYE.Mesh.Scale |
833 | - | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
833 | + | |
834 | - | game:GetService("Debris"):AddItem(prt, 10) |
834 | + | for i = 1, 7 do |
835 | - | table.insert(Effects, { |
835 | + | |
836 | - | prt, |
836 | + | EYE.Mesh.Scale = EYE.Mesh.Scale + VT(0,0.2,0) |
837 | - | "Cylinder", |
837 | + | EYE2.Mesh.Scale = EYE.Mesh.Scale |
838 | - | delay, |
838 | + | |
839 | - | x3, |
839 | + | EYE.Mesh.Scale = VT(1,1,1) |
840 | - | y3, |
840 | + | EYE2.Mesh.Scale = EYE.Mesh.Scale |
841 | - | z3, |
841 | + | |
842 | - | msh |
842 | + | |
843 | - | }) |
843 | + | |
844 | - | end |
844 | + | |
845 | - | }, |
845 | + | --//=================================\\ |
846 | - | Wave = { |
846 | + | --|| DAMAGE FUNCTIONS |
847 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
847 | + | --\\=================================// |
848 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) |
848 | + | |
849 | - | prt.Anchored = true |
849 | + | function StatLabel(CFRAME, TEXT, COLOR) |
850 | - | prt.CFrame = cframe |
850 | + | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) |
851 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) |
851 | + | STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5))) |
852 | - | game:GetService("Debris"):AddItem(prt, 10) |
852 | + | local BODYGYRO = IT("BodyGyro", STATPART) |
853 | - | table.insert(Effects, { |
853 | + | game:GetService("Debris"):AddItem(STATPART ,5) |
854 | - | prt, |
854 | + | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) |
855 | - | "Cylinder", |
855 | + | BILLBOARDGUI.Adornee = STATPART |
856 | - | delay, |
856 | + | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) |
857 | - | x3 / 60, |
857 | + | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) |
858 | - | y3 / 60, |
858 | + | BILLBOARDGUI.AlwaysOnTop = false |
859 | - | z3 / 60, |
859 | + | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) |
860 | - | msh |
860 | + | TEXTLABEL.BackgroundTransparency = 1 |
861 | - | }) |
861 | + | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) |
862 | - | end |
862 | + | TEXTLABEL.Text = TEXT |
863 | - | }, |
863 | + | TEXTLABEL.Font = SKILLFONT |
864 | - | Ring = { |
864 | + | TEXTLABEL.FontSize="Size42" |
865 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
865 | + | TEXTLABEL.TextColor3 = COLOR |
866 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
866 | + | TEXTLABEL.TextStrokeTransparency = 0 |
867 | - | prt.Anchored = true |
867 | + | TEXTLABEL.TextScaled = true |
868 | - | prt.CFrame = cframe |
868 | + | TEXTLABEL.TextWrapped = true |
869 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
869 | + | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) |
870 | - | game:GetService("Debris"):AddItem(prt, 10) |
870 | + | for i = 1, 50 do |
871 | - | table.insert(Effects, { |
871 | + | |
872 | - | prt, |
872 | + | STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2) |
873 | - | "Cylinder", |
873 | + | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50) |
874 | - | delay, |
874 | + | TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency |
875 | - | x3, |
875 | + | |
876 | - | y3, |
876 | + | THEPART.Parent = nil |
877 | - | z3, |
877 | + | end),STATPART, TEXTLABEL) |
878 | - | msh |
878 | + | |
879 | - | }) |
879 | + | |
880 | - | end |
880 | + | --//=================================\\ |
881 | - | }, |
881 | + | --|| DAMAGING |
882 | - | Break = { |
882 | + | --\\=================================// |
883 | - | Create = function(brickcolor, cframe, x1, y1, z1) |
883 | + | |
884 | - | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) |
884 | + | function KillChildren(v) |
885 | - | prt.Anchored = true |
885 | + | v:BreakJoints() |
886 | - | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) |
886 | + | for _, c in pairs(v:GetChildren()) do |
887 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
887 | + | if c:IsA("BasePart") then |
888 | - | local num = math.random(10, 50) / 1000 |
888 | + | if c.Transparency < 1 then |
889 | - | game:GetService("Debris"):AddItem(prt, 10) |
889 | + | if c:FindFirstChildOfClass("Decal") then |
890 | - | table.insert(Effects, { |
890 | + | c:FindFirstChildOfClass("Decal"):remove() |
891 | - | prt, |
891 | + | |
892 | - | "Shatter", |
892 | + | particles(c) |
893 | - | num, |
893 | + | c.PE.Enabled = true |
894 | - | prt.CFrame, |
894 | + | c.Parent = Effects |
895 | - | math.random() - math.random(), |
895 | + | c.CanCollide = false |
896 | - | 0, |
896 | + | c.Material = "Neon" |
897 | - | math.random(50, 100) / 100 |
897 | + | c.Color = C3(1,0,0) |
898 | - | }) |
898 | + | c.Transparency = 1 |
899 | - | end |
899 | + | local grav = Instance.new("BodyPosition",c) |
900 | - | }, |
900 | + | grav.P = 20000 |
901 | - | Spiral = { |
901 | + | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
902 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
902 | + | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) |
903 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
903 | + | grav.Name = "GravityForce" |
904 | - | prt.Anchored = true |
904 | + | coroutine.resume(coroutine.create(function() |
905 | - | prt.CFrame = cframe |
905 | + | for i = 1, 20 do |
906 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
906 | + | Swait() |
907 | - | game:GetService("Debris"):AddItem(prt, 10) |
907 | + | c.Transparency = c.Transparency + 1/20 |
908 | - | table.insert(Effects, { |
908 | + | |
909 | - | prt, |
909 | + | c.PE.Enabled = false |
910 | - | "Cylinder", |
910 | + | Debris:AddItem(c,2) |
911 | - | delay, |
911 | + | end)) |
912 | - | x3, |
912 | + | |
913 | - | y3, |
913 | + | |
914 | - | z3, |
914 | + | |
915 | - | msh |
915 | + | |
916 | - | }) |
916 | + | |
917 | - | end |
917 | + | function ApplyAoE(POSITION,RANGE) |
918 | - | }, |
918 | + | local CHILDREN = workspace:GetDescendants() |
919 | - | Push = { |
919 | + | for index, CHILD in pairs(CHILDREN) do |
920 | - | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
920 | + | if CHILD.ClassName == "Model" and CHILD ~= Character then |
921 | - | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
921 | + | local LISTED = false |
922 | - | prt.Anchored = true |
922 | + | for LIST = 1, #WHITELIST do |
923 | - | prt.CFrame = cframe |
923 | + | if WHITELIST[LIST] ~= nil then |
924 | - | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
924 | + | if CHILD.Name == WHITELIST[LIST] then |
925 | - | game:GetService("Debris"):AddItem(prt, 10) |
925 | + | LISTED = true |
926 | - | table.insert(Effects, { |
926 | + | |
927 | - | prt, |
927 | + | |
928 | - | "Cylinder", |
928 | + | |
929 | - | delay, |
929 | + | if LISTED == false then |
930 | - | x3, |
930 | + | local HUM = CHILD:FindFirstChildOfClass("Humanoid") |
931 | - | y3, |
931 | + | if HUM then |
932 | - | z3, |
932 | + | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") |
933 | - | msh |
933 | + | if TORSO then |
934 | - | }) |
934 | + | if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then |
935 | - | end |
935 | + | KillChildren(CHILD) |
936 | - | } |
936 | + | |
937 | end | |
938 | - | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) |
938 | + | |
939 | - | local fp = IT("Part") |
939 | + | |
940 | - | fp.formFactor = formfactor |
940 | + | |
941 | - | fp.Parent = parent |
941 | + | |
942 | - | fp.Reflectance = reflectance |
942 | + | |
943 | - | fp.Transparency = transparency |
943 | + | |
944 | - | fp.CanCollide = false |
944 | + | --//=================================\\ |
945 | - | fp.Locked = true |
945 | + | --|| ATTACK FUNCTIONS AND STUFF |
946 | - | fp.BrickColor = brickcolor |
946 | + | --\\=================================// |
947 | - | fp.Name = name |
947 | + | |
948 | - | fp.Size = size |
948 | + | function Click() |
949 | - | fp.Position = tors.Position |
949 | + | ATTACK = true |
950 | - | RemoveOutlines(fp) |
950 | + | Rooted = false |
951 | - | fp.Material = "SmoothPlastic" |
951 | + | local HIT = nil |
952 | - | fp:BreakJoints() |
952 | + | OFFSET = -45 |
953 | - | return fp |
953 | + | for i=0, 1, 0.1 / Animation_Speed do |
954 | - | end |
954 | + | Swait() |
955 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
956 | - | function mesh(Mesh,part,meshtype,meshid,offset,scale) |
956 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) |
957 | - | local mesh = IT(Mesh) |
957 | + | |
958 | - | mesh.Parent = part |
958 | + | OFFSET = 45 |
959 | - | if Mesh == "SpecialMesh" then |
959 | + | local PUNCH = CreatePart(3, Effects, "Granite", 0, 1, "Really black", "Hit", VT(0.7,0.7,0.7),false) |
960 | - | mesh.MeshType = meshtype |
960 | + | PUNCH.CanCollide = true |
961 | - | if meshid ~= "nil" then |
961 | + | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PUNCH, CF(0,-1,0), CF(0, 0, 0)) |
962 | - | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid |
962 | + | TAUNT = true |
963 | local TOUCH = PUNCH.Touched:Connect(function(hit) | |
964 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
965 | - | mesh.Offset = offset |
965 | + | HIT = hit.Parent |
966 | - | mesh.Scale = scale |
966 | + | |
967 | - | return mesh |
967 | + | |
968 | for i=0, 0.3, 0.1 / Animation_Speed do | |
969 | Swait() | |
970 | - | function Magic(bonuspeed, type, pos, scale, value, color, MType) |
970 | + | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.3) |
971 | - | local type = type |
971 | + | if HIT ~= nil then |
972 | - | local rng = Instance.new("Part", char) |
972 | + | break |
973 | - | rng.Anchored = true |
973 | + | |
974 | - | rng.BrickColor = color |
974 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(-45)), 0.15 / Animation_Speed) |
975 | - | rng.CanCollide = false |
975 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed) |
976 | - | rng.FormFactor = 3 |
976 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) |
977 | - | rng.Name = "Ring" |
977 | + | |
978 | - | rng.Material = "Neon" |
978 | + | PUNCH:remove() |
979 | - | rng.Size = Vector3.new(1, 1, 1) |
979 | + | TOUCH:disconnect() |
980 | - | rng.Transparency = 0 |
980 | + | if HIT ~= nil then |
981 | - | rng.TopSurface = 0 |
981 | + | for _, c in pairs(HIT:GetChildren()) do |
982 | - | rng.BottomSurface = 0 |
982 | + | if c:IsA("BasePart") then |
983 | - | rng.CFrame = pos |
983 | + | c.Anchored = true |
984 | - | local rngm = Instance.new("SpecialMesh", rng) |
984 | + | |
985 | - | rngm.MeshType = MType |
985 | + | |
986 | - | rngm.Scale = scale |
986 | + | Rooted = true |
987 | - | local scaler2 = 1 |
987 | + | CreateSound(649634100, Torso, 10, 0.8) |
988 | - | if type == "Add" then |
988 | + | CreateSound(1368573150, RightArm, 3, 1.5) |
989 | - | scaler2 = 1 * value |
989 | + | for i=0, 0.6, 0.1 / Animation_Speed do |
990 | - | elseif type == "Divide" then |
990 | + | |
991 | - | scaler2 = 1 / value |
991 | + | WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) |
992 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(25), RAD(-45)), 0.05 / Animation_Speed) | |
993 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
994 | - | for i = 0, 10 / bonuspeed, 0.1 do |
994 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) |
995 | - | swait() |
995 | + | |
996 | - | if type == "Add" then |
996 | + | for _, c in pairs(HIT:GetChildren()) do |
997 | - | scaler2 = scaler2 - 0.01 * value / bonuspeed |
997 | + | if c:IsA("BasePart") then |
998 | - | elseif type == "Divide" then |
998 | + | c.Anchored = false |
999 | - | scaler2 = scaler2 - 0.01 / value * bonuspeed |
999 | + | |
1000 | end | |
1001 | - | rng.Transparency = rng.Transparency + 0.01 * bonuspeed |
1001 | + | KillChildren(HIT) |
1002 | - | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) |
1002 | + | |
1003 | OFFSET = 0 | |
1004 | - | rng:Destroy() |
1004 | + | ATTACK = false |
1005 | Rooted = false | |
1006 | TAUNT = false | |
1007 | end | |
1008 | - | function Eviscerate(dude) |
1008 | + | |
1009 | - | if dude.Name ~= char then |
1009 | + | function Whitelist() |
1010 | - | local bgf = IT("BodyGyro", dude.Head) |
1010 | + | if Mouse.Target ~= nil then |
1011 | - | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) |
1011 | + | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then |
1012 | - | local val = IT("BoolValue", dude) |
1012 | + | if game.Players:FindFirstChild(Mouse.Target.Parent.Name) then |
1013 | - | val.Name = "IsHit" |
1013 | + | table.insert(WHITELIST,Mouse.Target.Parent.Name) |
1014 | - | local ds = coroutine.wrap(function() |
1014 | + | |
1015 | - | dude:WaitForChild("Head"):BreakJoints() |
1015 | + | |
1016 | - | wait(0.5) |
1016 | + | |
1017 | - | target = nil |
1017 | + | |
1018 | ||
1019 | - | for i, v in pairs(dude:GetChildren()) do |
1019 | + | function Clear_Whitelist() |
1020 | - | if v:IsA("Accessory") then |
1020 | + | if Mouse.Target ~= nil then |
1021 | - | v:Destroy() |
1021 | + | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then |
1022 | for LIST = 1, #WHITELIST do | |
1023 | - | if v:IsA("Humanoid") then |
1023 | + | if WHITELIST[LIST] ~= nil then |
1024 | - | v:Destroy() |
1024 | + | if Mouse.Target.Parent.Name == WHITELIST[LIST] then |
1025 | table.remove(WHITELIST,LIST) | |
1026 | - | if v:IsA("CharacterMesh") then |
1026 | + | for _, c in pairs(Cam:GetChildren()) do |
1027 | - | v:Destroy() |
1027 | + | if c.Name == Mouse.Target.Parent.Name then |
1028 | c:remove() | |
1029 | - | if v:IsA("Model") then |
1029 | + | |
1030 | - | v:Destroy() |
1030 | + | |
1031 | end | |
1032 | - | if v:IsA("Part") or v:IsA("MeshPart") then |
1032 | + | |
1033 | - | for x, o in pairs(v:GetChildren()) do |
1033 | + | |
1034 | - | if o:IsA("Decal") then |
1034 | + | |
1035 | - | o:Destroy() |
1035 | + | |
1036 | end | |
1037 | ||
1038 | - | coroutine.resume(coroutine.create(function() |
1038 | + | function SpawnSmite(POS) |
1039 | - | v.Material = "Neon" |
1039 | + | local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character) |
1040 | - | v.CanCollide = false |
1040 | + | local EMITPOS = HITPOS |
1041 | - | local PartEmmit1 = IT("ParticleEmitter", v) |
1041 | + | |
1042 | - | PartEmmit1.LightEmission = 1 |
1042 | + | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then |
1043 | - | PartEmmit1.Texture = "rbxassetid://284205403" |
1043 | + | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent) |
1044 | - | PartEmmit1.Color = ColorSequence.new(maincolor.Color) |
1044 | + | EMITPOS = HITPOS |
1045 | - | PartEmmit1.Rate = 150 |
1045 | + | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then |
1046 | - | PartEmmit1.Lifetime = NumberRange.new(1) |
1046 | + | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent) |
1047 | - | PartEmmit1.Size = NumberSequence.new({ |
1047 | + | EMITPOS = HITPOS |
1048 | - | NumberSequenceKeypoint.new(0, 0.75, 0), |
1048 | + | |
1049 | - | NumberSequenceKeypoint.new(1, 0, 0) |
1049 | + | |
1050 | - | }) |
1050 | + | |
1051 | - | PartEmmit1.Transparency = NumberSequence.new({ |
1051 | + | ApplyAoE(EMITPOS,10) |
1052 | - | NumberSequenceKeypoint.new(0, 0, 0), |
1052 | + | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) |
1053 | - | NumberSequenceKeypoint.new(1, 1, 0) |
1053 | + | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) |
1054 | - | }) |
1054 | + | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) |
1055 | - | PartEmmit1.Speed = NumberRange.new(0, 0) |
1055 | + | for i = 1, 5 do |
1056 | - | PartEmmit1.VelocitySpread = 30000 |
1056 | + | local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12) |
1057 | - | PartEmmit1.Rotation = NumberRange.new(-500, 500) |
1057 | + | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) |
1058 | - | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) |
1058 | + | |
1059 | - | local BodPoss = IT("BodyPosition", v) |
1059 | + | |
1060 | - | BodPoss.P = 3000 |
1060 | + | |
1061 | - | BodPoss.D = 1000 |
1061 | + | |
1062 | - | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) |
1062 | + | function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS) |
1063 | - | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) |
1063 | + | |
1064 | - | v.Color = maincolor.Color |
1064 | + | local METEOR = IT("Model",Effects) |
1065 | - | coroutine.resume(coroutine.create(function() |
1065 | + | METEOR.Name = "Meteorite" |
1066 | - | for i = 0, 49 do |
1066 | + | local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) |
1067 | - | swait(1) |
1067 | + | METEOR.PrimaryPart = CENTER |
1068 | - | v.Transparency = v.Transparency + 0.08 |
1068 | + | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) |
1069 | - | end |
1069 | + | PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
1070 | - | wait(0.5) |
1070 | + | |
1071 | - | PartEmmit1.Enabled = false |
1071 | + | local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "Fire", VT(5.1,1,5.1)*SIZE) |
1072 | - | wait(3) |
1072 | + | FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
1073 | - | v:Destroy() |
1073 | + | |
1074 | - | dude:Destroy() |
1074 | + | if ISDEBREE ~= true then |
1075 | - | end)) |
1075 | + | METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) |
1076 | - | end)) |
1076 | + | |
1077 | METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
1078 | end | |
1079 | local IMPACT = false | |
1080 | CreateSound(463593339, CENTER, 10, 0.6) | |
1081 | - | ds() |
1081 | + | if SIZE >= 3.5 then |
1082 | for i = 1, MRANDOM(3,7) do | |
1083 | SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p) | |
1084 | end | |
1085 | - | function FindNearestHead(Position, Distance, SinglePlayer) |
1085 | + | |
1086 | - | if SinglePlayer then |
1086 | + | for i = 1, 200 do |
1087 | - | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude |
1087 | + | |
1088 | local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character) | |
1089 | - | local List = {} |
1089 | + | if HITFLOOR == nil then |
1090 | - | for i, v in pairs(workspace:GetChildren()) do |
1090 | + | local ORI = CENTER.Orientation |
1091 | - | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then |
1091 | + | METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) |
1092 | - | table.insert(List, v) |
1092 | + | else |
1093 | if HITFLOOR.Anchored == true then | |
1094 | CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5) | |
1095 | - | return List |
1095 | + | CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175) |
1096 | end | |
1097 | IMPACT = true | |
1098 | - | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) |
1098 | + | break |
1099 | - | local type = type |
1099 | + | |
1100 | - | local rng = Instance.new("Part", char) |
1100 | + | |
1101 | - | rng.Anchored = true |
1101 | + | if IMPACT == true then |
1102 | - | rng.BrickColor = color |
1102 | + | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) |
1103 | - | rng.CanCollide = false |
1103 | + | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5}) |
1104 | - | rng.FormFactor = 3 |
1104 | + | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) |
1105 | - | rng.Name = "Ring" |
1105 | + | ApplyAoE(CENTER.Position,30*SIZE) |
1106 | - | rng.Material = "Neon" |
1106 | + | |
1107 | - | rng.Size = Vector3.new(1, 1, 1) |
1107 | + | METEOR:remove() |
1108 | - | rng.Transparency = 0 |
1108 | + | |
1109 | - | rng.TopSurface = 0 |
1109 | + | |
1110 | - | rng.BottomSurface = 0 |
1110 | + | |
1111 | - | rng.CFrame = pos |
1111 | + | function Smite() |
1112 | - | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos |
1112 | + | ATTACK = true |
1113 | - | local rngm = Instance.new("SpecialMesh", rng) |
1113 | + | Rooted = false |
1114 | - | rngm.MeshType = MType |
1114 | + | CreateSound(1368573150, RightArm, 3, 1.5) |
1115 | - | rngm.Scale = Vector3.new(x1, y1, z1) |
1115 | + | for i=0, 0.6, 0.1 / Animation_Speed do |
1116 | - | local scaler2 = 1 |
1116 | + | Swait() |
1117 | - | local speeder = FastSpeed |
1117 | + | WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) |
1118 | - | if type == "Add" then |
1118 | + | 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) |
1119 | - | scaler2 = 1 * value |
1119 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) |
1120 | - | elseif type == "Divide" then |
1120 | + | |
1121 | - | scaler2 = 1 / value |
1121 | + | local POWER = 0 |
1122 | repeat | |
1123 | Swait() | |
1124 | - | for i = 0, 10 / bonuspeed, 0.1 do |
1124 | + | WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) |
1125 | - | swait() |
1125 | + | 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) |
1126 | - | if type == "Add" then |
1126 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) |
1127 | - | scaler2 = scaler2 - 0.01 * value / bonuspeed |
1127 | + | POWER = POWER + 0.5 |
1128 | - | elseif type == "Divide" then |
1128 | + | if POWER >= 85 then |
1129 | - | scaler2 = scaler2 - 0.01 / value * bonuspeed |
1129 | + | POWER = 85 |
1130 | end | |
1131 | - | speeder = speeder - 0.01 * FastSpeed * bonuspeed |
1131 | + | until KEYHOLD == false |
1132 | - | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed |
1132 | + | if POWER < 0.6 then |
1133 | - | rng.Transparency = rng.Transparency + 0.01 * bonuspeed |
1133 | + | SpawnSmite(Mouse.Hit.p) |
1134 | - | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) |
1134 | + | |
1135 | if POWER < 15 then | |
1136 | - | rng:Destroy() |
1136 | + | POWER = 15 |
1137 | end | |
1138 | SpawnMeteor(Mouse.Hit.p,POWER/15) | |
1139 | end | |
1140 | - | function SoulSteal(dude) |
1140 | + | ATTACK = false |
1141 | - | if dude.Name ~= char then |
1141 | + | Rooted = false |
1142 | - | local bgf = IT("BodyGyro", dude.Head) |
1142 | + | |
1143 | - | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) |
1143 | + | |
1144 | - | local val = IT("BoolValue", dude) |
1144 | + | function Meteor_Shower() |
1145 | - | val.Name = "IsHit" |
1145 | + | ATTACK = true |
1146 | - | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') |
1146 | + | Rooted = false |
1147 | - | local soulst = coroutine.wrap(function() |
1147 | + | CreateSound(1368573150, RightArm, 3, 0.8) |
1148 | - | local soul = Instance.new("Part",dude) |
1148 | + | CreateSound(649634100, Torso, 10, 0.8) |
1149 | - | soul.Size = Vector3.new(1,1,1) |
1149 | + | for i=0, 1.2, 0.1 / Animation_Speed do |
1150 | - | soul.CanCollide = false |
1150 | + | Swait() |
1151 | - | soul.Anchored = false |
1151 | + | WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/2, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) |
1152 | - | soul.Position = torso.Position |
1152 | + | 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) |
1153 | - | soul.Transparency = 1 |
1153 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) |
1154 | - | local PartEmmit1 = IT("ParticleEmitter", soul) |
1154 | + | |
1155 | - | PartEmmit1.LightEmission = 1 |
1155 | + | local POS = Mouse.Hit.p |
1156 | - | PartEmmit1.Texture = "rbxassetid://569507414" |
1156 | + | CreateSound(463593339, Effects, 3, 1) |
1157 | - | PartEmmit1.Color = ColorSequence.new(maincolor.Color) |
1157 | + | |
1158 | - | PartEmmit1.Rate = 250 |
1158 | + | for i = 1, 35 do |
1159 | - | PartEmmit1.Lifetime = NumberRange.new(1.6) |
1159 | + | wait(MRANDOM(5,150)/100) |
1160 | - | PartEmmit1.Size = NumberSequence.new({ |
1160 | + | SpawnMeteor(CF(POS) * ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(0,1500)/10).p,MRANDOM(10,25)/10) |
1161 | - | NumberSequenceKeypoint.new(0, 1, 0), |
1161 | + | |
1162 | - | NumberSequenceKeypoint.new(1, 0, 0) |
1162 | + | |
1163 | - | }) |
1163 | + | ATTACK = false |
1164 | - | PartEmmit1.Transparency = NumberSequence.new({ |
1164 | + | Rooted = false |
1165 | - | NumberSequenceKeypoint.new(0, 0, 0), |
1165 | + | |
1166 | - | NumberSequenceKeypoint.new(1, 1, 0) |
1166 | + | |
1167 | - | }) |
1167 | + | function Taunt() |
1168 | - | PartEmmit1.Speed = NumberRange.new(0, 0) |
1168 | + | ATTACK = true |
1169 | - | PartEmmit1.VelocitySpread = 30000 |
1169 | + | Rooted = false |
1170 | - | PartEmmit1.Rotation = NumberRange.new(-360, 360) |
1170 | + | TAUNT = true |
1171 | - | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) |
1171 | + | for i=0, 0.1, 0.1 / Animation_Speed do |
1172 | - | local BodPoss = IT("BodyPosition", soul) |
1172 | + | Swait() |
1173 | - | BodPoss.P = 3000 |
1173 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1174 | - | BodPoss.D = 1000 |
1174 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) |
1175 | - | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) |
1175 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) |
1176 | - | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) |
1176 | + | |
1177 | - | wait(1.6) |
1177 | + | for i=0, 3, 0.1 / Animation_Speed do |
1178 | - | soul.Touched:connect(function(hit) |
1178 | + | Swait() |
1179 | - | if hit.Parent == char then |
1179 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1180 | - | soul:Destroy() |
1180 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1181 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1182 | end | |
1183 | - | wait(1.2) |
1183 | + | CreateSound(363808674, Torso, 10, 1.3) |
1184 | - | while soul do |
1184 | + | for i=0, 1, 0.1 / Animation_Speed do |
1185 | - | swait() |
1185 | + | Swait() |
1186 | - | PartEmmit1.Color = ColorSequence.new(maincolor.Color) |
1186 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(120)), 3 / Animation_Speed) |
1187 | - | BodPoss.Position = tors.Position |
1187 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 3/ Animation_Speed) |
1188 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(230), RAD(0), RAD(35)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1189 | end | |
1190 | - | soulst() |
1190 | + | WACKYEFFECT({EffectType = "Block", Size = VT(6,6,6), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) |
1191 | CreateSound(649634100, Torso, 10, 0.8) | |
1192 | for i=0, 0.01, 0.1 / Animation_Speed do | |
1193 | - | function FaceMouse() |
1193 | + | Swait() |
1194 | - | local Cam = workspace.CurrentCamera |
1194 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) |
1195 | - | return { |
1195 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) |
1196 | - | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), |
1196 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 3 / Animation_Speed) |
1197 | - | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) |
1197 | + | |
1198 | ATTACK = false | |
1199 | Rooted = false | |
1200 | TAUNT = false | |
1201 | - | BTAUNT = Instance.new("Sound", tors) |
1201 | + | |
1202 | - | BTAUNT.SoundId = "http://www.roblox.com/asset/?id=363239413" |
1202 | + | |
1203 | - | BTAUNT.Volume = 10 |
1203 | + | function Teleport() |
1204 | - | BTAUNT.Pitch = 1 |
1204 | + | ATTACK = true |
1205 | - | BTAUNT.Looped = true |
1205 | + | Rooted = false |
1206 | - | BTAUNT.TimePosition = 0.2 |
1206 | + | for i=0, 0.5, 0.1 / Animation_Speed do |
1207 | Swait() | |
1208 | - | BTAUNT1 = Instance.new("Sound", tors) |
1208 | + | 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) |
1209 | - | BTAUNT1.SoundId = "http://www.roblox.com/asset/?id=0" |
1209 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) |
1210 | - | BTAUNT1.Volume = 10 |
1210 | + | |
1211 | - | BTAUNT1.Pitch = 1 |
1211 | + | for e = 1, #BODY do |
1212 | - | BTAUNT1.Looped = true |
1212 | + | if BODY[e] ~= nil then |
1213 | - | BTAUNT1.TimePosition = 0.2 |
1213 | + | local STUFF = BODY[e] |
1214 | local PART = STUFF[1] | |
1215 | - | BTAUNT3 = Instance.new("Sound", tors) |
1215 | + | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then |
1216 | - | BTAUNT3.SoundId = "http://www.roblox.com/asset/?id=463122022" |
1216 | + | local PRT = PART:Clone() |
1217 | - | BTAUNT3.Volume = 10 |
1217 | + | PRT.Anchored = true |
1218 | - | BTAUNT3.Pitch = 1 |
1218 | + | PRT.CanCollide = false |
1219 | - | BTAUNT3.Looped = true |
1219 | + | PRT.Material = "Neon" |
1220 | - | BTAUNT3.TimePosition = 0.2 |
1220 | + | PRT.Color = C3(1,0,0) |
1221 | PRT.Name = "WarpEffect" | |
1222 | - | BTAUNT2 = Instance.new("Sound", tors) |
1222 | + | PRT.Parent = Effects |
1223 | - | BTAUNT2.SoundId = "http://www.roblox.com/asset/?id=363239413" |
1223 | + | PRT.CFrame = PART.CFrame |
1224 | - | BTAUNT2.Volume = 10 |
1224 | + | PRT:BreakJoints() |
1225 | - | BTAUNT2.Pitch = 1 |
1225 | + | if PRT:FindFirstChildOfClass("Sound") then |
1226 | - | BTAUNT2.Looped = true |
1226 | + | PRT:FindFirstChildOfClass("Sound"):remove() |
1227 | - | BTAUNT2.TimePosition = 0.2 |
1227 | + | |
1228 | - | ------------------------------------------------------ |
1228 | + | if PRT:FindFirstChildOfClass("Decal") then |
1229 | - | --End Effect Function-- |
1229 | + | PRT:FindFirstChildOfClass("Decal"):remove() |
1230 | - | ------------------------------------------------------- |
1230 | + | |
1231 | - | function Cso(ID, PARENT, VOLUME, PITCH) |
1231 | + | coroutine.resume(coroutine.create(function() |
1232 | - | local NSound = nil |
1232 | + | for i = 1, 100 do |
1233 | Swait() | |
1234 | - | NSound = IT("Sound", PARENT) |
1234 | + | PRT.Transparency = PRT.Transparency + 1/100 |
1235 | - | NSound.Volume = VOLUME |
1235 | + | |
1236 | - | NSound.Pitch = PITCH |
1236 | + | PRT:remove() |
1237 | - | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID |
1237 | + | end)) |
1238 | - | swait() |
1238 | + | |
1239 | - | NSound:play() |
1239 | + | |
1240 | - | game:GetService("Debris"):AddItem(NSound, 50) |
1240 | + | |
1241 | CreateSound(217767125, Torso, 10, 1) | |
1242 | - | return NSound |
1242 | + | local POS = RootPart.Orientation |
1243 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
1244 | - | function CameraEnshaking(Length, Intensity) |
1244 | + | RootPart.Orientation = POS |
1245 | RootJoint.Parent = RootPart | |
1246 | - | local intensity = 1 * Intensity |
1246 | + | for i=0, 0.5, 0.1 / Animation_Speed do |
1247 | - | local rotM = 0.01 * Intensity |
1247 | + | Swait() |
1248 | - | for i = 0, Length, 0.1 do |
1248 | + | 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) |
1249 | - | swait() |
1249 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) |
1250 | - | intensity = intensity - 0.05 * Intensity / Length |
1250 | + | |
1251 | - | rotM = rotM - 5.0E-4 * Intensity / Length |
1251 | + | for i=0, 0.1, 0.1 / Animation_Speed do |
1252 | - | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) |
1252 | + | Swait() |
1253 | - | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) |
1253 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) |
1254 | end | |
1255 | - | hum.CameraOffset = Vector3.new(0, 0, 0) |
1255 | + | ATTACK = false |
1256 | Rooted = false | |
1257 | end | |
1258 | - | ------------------------------------------------------- |
1258 | + | |
1259 | - | --End Important Functions-- |
1259 | + | function Equivalent_Pain() |
1260 | - | ------------------------------------------------------- |
1260 | + | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) |
1261 | if HITFLOOR then | |
1262 | ATTACK = true | |
1263 | - | ------------------------------------------------------- |
1263 | + | Rooted = true |
1264 | - | --Start Customization-- |
1264 | + | FULL = true |
1265 | - | ------------------------------------------------------- |
1265 | + | local GYRO = IT("BodyGyro",RootPart) |
1266 | - | local Player_Size = 1 |
1266 | + | GYRO.D = 25 |
1267 | - | if Player_Size ~= 1 then |
1267 | + | GYRO.P = 20000 |
1268 | - | root.Size = root.Size * Player_Size |
1268 | + | GYRO.MaxTorque = VT(0,math.huge,0) |
1269 | - | tors.Size = tors.Size * Player_Size |
1269 | + | for i=0, 0.3, 0.1 / Animation_Speed do |
1270 | - | hed.Size = hed.Size * Player_Size |
1270 | + | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) |
1271 | - | ra.Size = ra.Size * Player_Size |
1271 | + | |
1272 | - | la.Size = la.Size * Player_Size |
1272 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-15)), 1 / Animation_Speed) |
1273 | - | rl.Size = rl.Size * Player_Size |
1273 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1274 | - | ll.Size = ll.Size * Player_Size |
1274 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1275 | - | ---------------------------------------------------------------------------------- |
1275 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1276 | - | rootj.Parent = root |
1276 | + | 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(-35)), 1 / Animation_Speed) |
1277 | - | neck.Parent = tors |
1277 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(5)), 1 / Animation_Speed) |
1278 | - | RW.Parent = tors |
1278 | + | |
1279 | - | LW.Parent = tors |
1279 | + | GYRO:remove() |
1280 | - | RH.Parent = tors |
1280 | + | CreateSound(12222200, RightArm, 10, 1) |
1281 | - | LH.Parent = tors |
1281 | + | for i=0, 0.4, 0.1 / Animation_Speed do |
1282 | - | ---------------------------------------------------------------------------------- |
1282 | + | |
1283 | - | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) |
1283 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed) |
1284 | - | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) |
1284 | + | 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) |
1285 | - | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) |
1285 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed) |
1286 | - | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) |
1286 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(-12)) * ANGLES(RAD(-35), RAD(55), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) |
1287 | - | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 |
1287 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.5) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(65)), 1 / Animation_Speed) |
1288 | - | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 |
1288 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 1 / Animation_Speed) |
1289 | - | ---------------------------------------------------------------------------------- |
1289 | + | |
1290 | - | RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) |
1290 | + | CreateSound(289842971, RightArm, 10, 1) |
1291 | - | LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) |
1291 | + | |
1292 | - | RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) |
1292 | + | local HIT,POS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(Mouse.Hit.p+VT(0,1,0), Mouse.Hit.p-VT(0,1,0))).lookVector, 45, Character) |
1293 | - | LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) |
1293 | + | local ECHO = POS |
1294 | - | --hat.Parent = Character |
1294 | + | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then |
1295 | HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent) | |
1296 | - | ---------------------------------------------------------------------------------- |
1296 | + | ECHO = POS |
1297 | - | ---------------------------------------------------------------------------------- |
1297 | + | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then |
1298 | - | local equipped = false |
1298 | + | HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent) |
1299 | - | local idle = 0 |
1299 | + | ECHO = POS |
1300 | - | local change = 1 |
1300 | + | |
1301 | - | local val = 0 |
1301 | + | if ECHO.Y == HITPOS.Y then |
1302 | - | local toim = 0 |
1302 | + | local DISTANCE = (HITPOS - ECHO).Magnitude/3 |
1303 | - | local idleanim = 0.4 |
1303 | + | local CFRAME = CF(HITPOS,ECHO) |
1304 | - | local sine = 0 |
1304 | + | local RANGE = math.ceil(DISTANCE) |
1305 | - | local Sit = 1 |
1305 | + | for i = 1, RANGE-1 do |
1306 | - | ---------------------------------------------------------------------------------- |
1306 | + | Swait(3) |
1307 | - | hum.WalkSpeed = 8 |
1307 | + | local A = CFRAME*CF(0,0,-i*3) |
1308 | - | hum.JumpPower = 57 |
1308 | + | ApplyAoE(A.p,4) |
1309 | - | hum.Animator.Parent = nil |
1309 | + | CreateFlyingDebree(HITFLOOR,A,2,VT(2,2,2),2,65) |
1310 | - | ---------------------------------------------------------------------------------- |
1310 | + | |
1311 | - | local Blobby = Instance.new("Part", char) |
1311 | + | local SIZE = 3 |
1312 | - | Blobby.Name = "Blob" |
1312 | + | local POS = CFRAME*CF(0,0,-RANGE*3).p |
1313 | - | Blobby.CanCollide = false |
1313 | + | WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(55,0,55)*SIZE, Size2 = VT(55,15,55)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 0.8, SoundVolume = 10}) |
1314 | - | Blobby.BrickColor = BrickColor.new("Really black") |
1314 | + | WACKYEFFECT({EffectType = "Sphere", Size = VT(10,250,10)*SIZE, Size2 = VT(20,1000,20)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10}) |
1315 | - | Blobby.Transparency = 0 |
1315 | + | WACKYEFFECT({EffectType = "Sphere", Size = VT(30,150,30)*SIZE, Size2 = VT(50,300,50)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10}) |
1316 | - | Blobby.Material = "Plastic" |
1316 | + | for i = 1, 9 do |
1317 | - | Blobby.Size = Vector3.new(1, 1, 2) |
1317 | + | WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,15*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,15*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5}) |
1318 | - | Blobby.TopSurface = Enum.SurfaceType.Smooth |
1318 | + | |
1319 | - | Blobby.BottomSurface = Enum.SurfaceType.Smooth |
1319 | + | for i = 1, 9 do |
1320 | WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5}) | |
1321 | - | local Weld = Instance.new("Weld", Blobby) |
1321 | + | |
1322 | - | Weld.Part0 = ra |
1322 | + | ApplyAoE(POS,30*SIZE) |
1323 | - | Weld.Part1 = Blobby |
1323 | + | CreateDebreeRing(HITFLOOR,POS,30*SIZE,VT(8,8,8)*SIZE,5) |
1324 | - | Weld.C1 = CFrame.new(0, -2, 1.1) |
1324 | + | CreateDebreeRing(HITFLOOR,POS,50*SIZE,VT(2,2,2)*SIZE,5) |
1325 | - | Weld.C0 = CFrame.Angles(Rad(-86),0,0) |
1325 | + | |
1326 | end)) | |
1327 | - | local M2 = Instance.new("SpecialMesh") |
1327 | + | for i=0, 0.6, 0.1 / Animation_Speed do |
1328 | - | M2.Parent = Blobby |
1328 | + | |
1329 | - | M2.MeshId = "http://www.roblox.com/asset/?id=345969872" |
1329 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed) |
1330 | - | M2.TextureId = "http://www.roblox.com/asset/?id=345969933" |
1330 | + | 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) |
1331 | - | M2.Scale = Vector3.new(2, 2, 2) |
1331 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed) |
1332 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(-12)) * ANGLES(RAD(-35), RAD(55), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1333 | - | --[[local naeeym2 = Instance.new("BillboardGui",char) |
1333 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.5) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(65)), 1 / Animation_Speed) |
1334 | - | naeeym2.AlwaysOnTop = true |
1334 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 1 / Animation_Speed) |
1335 | - | naeeym2.Size = UDim2.new(5,35,2,15) |
1335 | + | |
1336 | - | naeeym2.StudsOffset = Vector3.new(0, 3.5, 0) |
1336 | + | FULL = false |
1337 | - | naeeym2.Adornee = hed |
1337 | + | |
1338 | - | naeeym2.Name = "Name" |
1338 | + | |
1339 | - | --naeeym2.PlayerToHideFrom = Player |
1339 | + | |
1340 | - | local tecks2 = Instance.new("TextLabel",naeeym2) |
1340 | + | |
1341 | - | tecks2.BackgroundTransparency = 1 |
1341 | + | |
1342 | - | tecks2.TextScaled = true |
1342 | + | --//=================================\\ |
1343 | - | tecks2.BorderSizePixel = 0 |
1343 | + | --|| ASSIGN THINGS TO KEYS |
1344 | - | tecks2.Text = "Fight Me" |
1344 | + | --\\=================================// |
1345 | - | tecks2.Font = Enum.Font.Bodoni |
1345 | + | |
1346 | - | tecks2.TextSize = 30 |
1346 | + | function MouseDown(Mouse) |
1347 | - | tecks2.TextStrokeTransparency = 0 |
1347 | + | if ATTACK == false then |
1348 | - | tecks2.TextColor3 = Color3.new(0, 0, 0) |
1348 | + | Click() |
1349 | - | tecks2.TextStrokeColor3 = Color3.new(1, 1, 1) |
1349 | + | |
1350 | - | tecks2.Size = UDim2.new(1,0,0.5,0) |
1350 | + | |
1351 | - | tecks2.Parent = naeeym2]] |
1351 | + | |
1352 | - | ------------------------------------------------------- |
1352 | + | function MouseUp(Mouse) |
1353 | - | --End Customization-- |
1353 | + | HOLD = false |
1354 | - | ------------------------------------------------------- |
1354 | + | |
1355 | ||
1356 | - | ------------------------------------------------------- |
1356 | + | function KeyDown(Key) |
1357 | - | --Start Attacks N Stuff-- |
1357 | + | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then |
1358 | - | ------------------------------------------------------- |
1358 | + | KEYHOLD = true |
1359 | - | local naeeym2 = Instance.new("BillboardGui",char) |
1359 | + | if Key == "z" and ATTACK == false then |
1360 | - | naeeym2.AlwaysOnTop = true |
1360 | + | Whitelist() |
1361 | - | naeeym2.Size = UDim2.new(5,35,2,35) |
1361 | + | |
1362 | - | naeeym2.StudsOffset = Vector3.new(0,2,0) |
1362 | + | |
1363 | - | naeeym2.Adornee = hed |
1363 | + | if Key == "b" and ATTACK == false then |
1364 | - | naeeym2.Name = "Name" |
1364 | + | Clear_Whitelist() |
1365 | end | |
1366 | - | local tecks2 = Instance.new("TextLabel",naeeym2) |
1366 | + | |
1367 | - | tecks2.BackgroundTransparency = 1 |
1367 | + | if Key == "c" and ATTACK == false then |
1368 | - | tecks2.TextScaled = true |
1368 | + | Smite() |
1369 | - | tecks2.BorderSizePixel = 0 |
1369 | + | |
1370 | - | tecks2.Text = "welcome to the krusty krab" |
1370 | + | |
1371 | - | tecks2.Font = "Garamond" |
1371 | + | if Key == "x" and ATTACK == false then |
1372 | - | tecks2.TextSize = 30 |
1372 | + | Meteor_Shower() |
1373 | - | tecks2.TextStrokeTransparency = 0 |
1373 | + | |
1374 | - | tecks2.TextColor3 = BrickColor.new('Really black').Color |
1374 | + | |
1375 | - | tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color |
1375 | + | if Key == "t" and ATTACK == false then |
1376 | - | tecks2.Size = UDim2.new(1,0,0.5,0) |
1376 | + | Taunt() |
1377 | - | tecks2.Parent = naeeym2 |
1377 | + | |
1378 | - | textfag = tecks2 |
1378 | + | |
1379 | - | tecks2.Text = "Welcome to the krusty krab" |
1379 | + | if Key == "q" and ATTACK == false then |
1380 | - | wait(2) |
1380 | + | Teleport() |
1381 | - | tecks2.Text = "may I take your order?" |
1381 | + | |
1382 | - | wait(1) |
1382 | + | |
1383 | - | tecks2.Text = "Ultimate nahid chara" |
1383 | + | if Key == "p" and ATTACK == false then |
1384 | - | BTAUNT:Play() |
1384 | + | Equivalent_Pain() |
1385 | - | coroutine.resume(coroutine.create(function() |
1385 | + | |
1386 | - | while textfag ~= nil do |
1386 | + | |
1387 | - | swait() |
1387 | + | |
1388 | - | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) |
1388 | + | |
1389 | - | textfag.Rotation = math.random(-3,3) |
1389 | + | function KeyUp(Key) |
1390 | - | end |
1390 | + | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then |
1391 | - | end)) |
1391 | + | KEYHOLD = false |
1392 | end | |
1393 | - | hed.face.Texture = "http://www.roblox.com/asset/?id=946610608" |
1393 | + | |
1394 | - | for i,v in pairs(char:children()) do |
1394 | + | |
1395 | - | if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then |
1395 | + | Mouse.Button1Down:connect(function(NEWKEY) |
1396 | - | v:Remove() |
1396 | + | MouseDown(NEWKEY) |
1397 | end) | |
1398 | Mouse.Button1Up:connect(function(NEWKEY) | |
1399 | - | shirt = Instance.new("Shirt", char) |
1399 | + | MouseUp(NEWKEY) |
1400 | - | shirt.Name = "Shirt" |
1400 | + | |
1401 | - | pants = Instance.new("Pants", char) |
1401 | + | Mouse.KeyDown:connect(function(NEWKEY) |
1402 | - | pants.Name = "Pants" |
1402 | + | KeyDown(NEWKEY) |
1403 | - | char.Shirt.ShirtTemplate = "rbxassetid://676428254" |
1403 | + | |
1404 | - | char.Pants.PantsTemplate = "rbxassetid://676428351" |
1404 | + | Mouse.KeyUp:connect(function(NEWKEY) |
1405 | - | local Hair2 = Instance.new("Part", char) |
1405 | + | KeyUp(NEWKEY) |
1406 | - | Hair2.Name = "Hair2" |
1406 | + | |
1407 | - | Hair2.CanCollide = false |
1407 | + | |
1408 | - | Hair2.BrickColor = BrickColor.new("CGA brown") |
1408 | + | --//=================================\\ |
1409 | - | Hair2.Transparency = 0 |
1409 | + | --\\=================================// |
1410 | - | Hair2.Material = "Plastic" |
1410 | + | |
1411 | - | Hair2.Size = Vector3.new(1, 1, 2) |
1411 | + | |
1412 | - | Hair2.TopSurface = Enum.SurfaceType.Smooth |
1412 | + | function unanchor() |
1413 | - | Hair2.BottomSurface = Enum.SurfaceType.Smooth |
1413 | + | if UNANCHOR == true then |
1414 | g = Character:GetChildren() | |
1415 | - | local Weld = Instance.new("Weld", Hair2) |
1415 | + | for i = 1, #g do |
1416 | - | Weld.Part0 = hed |
1416 | + | if g[i].ClassName == "Part" then |
1417 | - | Weld.Part1 = Hair2 |
1417 | + | g[i].Anchored = false |
1418 | - | Weld.C1 = CFrame.new(0,-0.1,0.60) |
1418 | + | |
1419 | - | Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0) |
1419 | + | |
1420 | end | |
1421 | - | local M2 = Instance.new("SpecialMesh") |
1421 | + | |
1422 | - | M2.Parent = Hair2 |
1422 | + | |
1423 | - | M2.MeshId = "http://www.roblox.com/asset/?id=0" |
1423 | + | |
1424 | - | M2.TextureId = "http://www.roblox.com/asset/?id=0" |
1424 | + | --//=================================\\ |
1425 | - | M2.Scale = Vector3.new(1, 1, 1) |
1425 | + | --|| WRAP THE WHOLE SCRIPT UP |
1426 | - | local l = game.Lighting |
1426 | + | --\\=================================// |
1427 | - | local sky = Instance.new("Sky",l) |
1427 | + | |
1428 | - | l.TimeOfDay = "00:00:00" |
1428 | + | Humanoid.Changed:connect(function(Jump) |
1429 | - | l.Brightness = 1 |
1429 | + | if Jump == "Jump" and (Disable_Jump == true) then |
1430 | - | l.Ambient = Color3.new(0.25, 0.5, 0.75) |
1430 | + | Humanoid.Jump = false |
1431 | - | ---------------------------------------------------------------------------------- |
1431 | + | |
1432 | - | wait() |
1432 | + | |
1433 | - | player = game.Players.LocalPlayer |
1433 | + | |
1434 | - | torso = player.Character:WaitForChild("Torso") |
1434 | + | local BLINKLOOP = 0 |
1435 | - | mouse = player:GetMouse() |
1435 | + | script.Parent = WEAPONGUI |
1436 | ANIMATE.Parent = nil | |
1437 | - | mouse.KeyDown:connect(function(key) |
1437 | + | |
1438 | - | if key == "t" then |
1438 | + | |
1439 | - | dist = (torso.Position - mouse.Hit.p).magnitude |
1439 | + | Swait() |
1440 | - | if dist <= 10000 then |
1440 | + | if Humanoid then |
1441 | - | torso.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,3,0) |
1441 | + | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) |
1442 | - | end |
1442 | + | IDLEANIMATION:Play() |
1443 | - | end |
1443 | + | |
1444 | SINE = SINE + CHANGE*2 | |
1445 | - | ---------------------------------------------------------------------------------- |
1445 | + | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude |
1446 | - | local AddInstance = function(Object, ...) |
1446 | + | local TORSOVERTICALVELOCITY = RootPart.Velocity.y |
1447 | - | local Obj = Instance.new(Object) |
1447 | + | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) |
1448 | - | for i,v in next,(...) do |
1448 | + | local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16) |
1449 | - | Obj[i] = v |
1449 | + | HairWeld1.C1 = Clerp(HairWeld1.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0 + 1.5 * SIN(SINE / 12) - 2.5 * COS(SINE / 12)), RAD(4.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
1450 | HairWeld2.C1 = Clerp(HairWeld2.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0 - 1.5 * SIN(SINE / 12) + 2.5 * COS(SINE / 12)), RAD(-4.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1451 | - | return Obj |
1451 | + | HoodWeld.C1 = Clerp(HoodWeld.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0 + 0.75 * SIN(SINE / 12) - 1.75 * COS(SINE / 12)), RAD(2.75 * SIN(SINE / 12))), 1 / Animation_Speed) |
1452 | if ANIM == "Walk" and TORSOVELOCITY > 1 and FULL == false then | |
1453 | - | ---------------------------------------------------- |
1453 | + | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
1454 | - | local Reaper = AddInstance("Part",{ |
1454 | + | 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) |
1455 | - | Parent = hed, |
1455 | + | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.1 * 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(35 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed) |
1456 | - | CFrame = hed.CFrame, |
1456 | + | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.1 * 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(35 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed) |
1457 | - | formFactor = "Symmetric", |
1457 | + | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or FULL == true then |
1458 | - | Size = Vector3.new(1, 1, 1), |
1458 | + | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1459 | - | CanCollide = false, |
1459 | + | 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) |
1460 | - | TopSurface = "Smooth", |
1460 | + | 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) |
1461 | - | BottomSurface = "Smooth", |
1461 | + | 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) |
1462 | - | Locked = true, |
1462 | + | |
1463 | - | }) |
1463 | + | if FULL == false then |
1464 | - | local Weld = AddInstance("Weld",{ |
1464 | + | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then |
1465 | - | Parent = Reaper, |
1465 | + | ANIM = "Jump" |
1466 | - | Part0 = hed, |
1466 | + | if ATTACK == false then |
1467 | - | C0 = CFrame.new(0, 0, 0)*CFrame.Angles(0, 0, 0), |
1467 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.4 / Animation_Speed) |
1468 | - | Part1 = Reaper, |
1468 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(-15), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1469 | - | }) |
1469 | + | |
1470 | - | local Mesh = AddInstance("SpecialMesh",{ |
1470 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1471 | - | Parent = Reaper, |
1471 | + | if TAUNT == false then |
1472 | - | MeshId = "rbxassetid://83499032", |
1472 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1473 | - | TextureId = "rbxassetid://184744284", |
1473 | + | |
1474 | - | Scale = Vector3.new(1.1, 1.1, 1.1), |
1474 | + | 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) |
1475 | - | VertexColor = Vector3.new(0.3, 0.3, 0.3), |
1475 | + | 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) |
1476 | - | }) |
1476 | + | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then |
1477 | - | ------------------------------------------------------- |
1477 | + | ANIM = "Fall" |
1478 | - | wait() |
1478 | + | if ATTACK == false then |
1479 | - | plr = game.Players.LocalPlayer |
1479 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1480 | - | char = plr.Character |
1480 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1481 | - | mouse = plr:GetMouse() |
1481 | + | |
1482 | - | whitecolor = Color3.new(1,1,1) |
1482 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(OFFSET)), 0.2 / Animation_Speed) |
1483 | - | epicmode = false |
1483 | + | if TAUNT == false then |
1484 | - | normal = true |
1484 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1485 | - | for i,v in pairs(char:GetChildren()) do |
1485 | + | |
1486 | - | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then |
1486 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.4 / Animation_Speed) |
1487 | - | v:Destroy() |
1487 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed) |
1488 | - | end |
1488 | + | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then |
1489 | ANIM = "Idle" | |
1490 | - | local shirt = Instance.new("Shirt",char) |
1490 | + | if ATTACK == false then |
1491 | - | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=676428254" |
1491 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1492 | - | local pants = Instance.new("Pants",char) |
1492 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(-3.5 * COS(SINE / 12)), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1493 | - | pants.PantsTemplate = "http://www.roblox.com/asset/?id=676428351" |
1493 | + | |
1494 | - | local bdycolors = char["Body Colors"] |
1494 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(OFFSET)), 0.8 / Animation_Speed) |
1495 | - | bdycolors.HeadColor3 = whitecolor |
1495 | + | if TAUNT == false then |
1496 | - | bdycolors.LeftArmColor3 = whitecolor |
1496 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1497 | - | bdycolors.LeftLegColor3 = whitecolor |
1497 | + | |
1498 | - | bdycolors.RightArmColor3 = whitecolor |
1498 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) |
1499 | - | bdycolors.RightLegColor3 = whitecolor |
1499 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(5), RAD(15-2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) |
1500 | - | bdycolors.TorsoColor3 = whitecolor |
1500 | + | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then |
1501 | - | for i,v in pairs(char:GetChildren()) do |
1501 | + | ANIM = "Walk" |
1502 | - | if v.ClassName == "Hat" or v.ClassName == "Accessory" then |
1502 | + | if ATTACK == false then |
1503 | - | v:Destroy() |
1503 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(5), RAD(0)), 0.15 / Animation_Speed) |
1504 | - | end |
1504 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
1505 | end | |
1506 | - | ---------------------------------------------------------------------- |
1506 | + | if TAUNT == false then |
1507 | - | Circle = nil |
1507 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
1508 | - | CircleParts = {} |
1508 | + | |
1509 | - | Equipped = false |
1509 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(OFFSET)), 0.8 / Animation_Speed) |
1510 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
1511 | - | function RayCast(Position, Direction, MaxDistance, IgnoreList) |
1511 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) |
1512 | - | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) |
1512 | + | |
1513 | end | |
1514 | - | Equipped = true |
1514 | + | unanchor() |
1515 | - | Circle = Instance.new("Model") |
1515 | + | Humanoid.MaxHealth = "inf" |
1516 | - | Circle.Name = "Circle" |
1516 | + | Humanoid.Health = "inf" |
1517 | - | Angle = 0 |
1517 | + | if Rooted == false then |
1518 | - | for i = 1, 1 do |
1518 | + | Disable_Jump = false |
1519 | - | local CirclePart = Instance.new("Part") |
1519 | + | Humanoid.WalkSpeed = Speed |
1520 | - | CirclePart.Name = "CirclePart" |
1520 | + | elseif Rooted == true then |
1521 | - | CirclePart.Transparency = 1 |
1521 | + | Disable_Jump = true |
1522 | - | CirclePart.BrickColor = BrickColor.new("Really black") |
1522 | + | Humanoid.WalkSpeed = 0 |
1523 | - | CirclePart.Material = Enum.Material.Plastic |
1523 | + | |
1524 | - | CirclePart.Shape = Enum.PartType.Block |
1524 | + | sick.Volume = 2 |
1525 | - | CirclePart.FormFactor = Enum.FormFactor.Custom |
1525 | + | sick.Pitch = 1 |
1526 | - | CirclePart.TopSurface = Enum.SurfaceType.Smooth |
1526 | + | sick.Playing = true |
1527 | - | CirclePart.BottomSurface = Enum.SurfaceType.Smooth |
1527 | + | sick.Parent = Torso |
1528 | - | CirclePart.Anchored = true |
1528 | + | Humanoid.Name = MRANDOM(100000000,999999999) |
1529 | - | CirclePart.CanCollide = false |
1529 | + | Humanoid.PlatformStand = false |
1530 | - | CirclePart.Locked = true |
1530 | + | for _, c in pairs(Cam:GetChildren()) do |
1531 | - | CirclePart.Size = Vector3.new(10, 0.2, 10) |
1531 | + | if game.Players:FindFirstChild(c.Name) == nil and c.ClassName == "BillboardGui" then |
1532 | - | local Aura = Instance.new('ParticleEmitter') |
1532 | + | c:remove() |
1533 | - | Aura.Name = "Aura" |
1533 | + | |
1534 | - | Aura.Texture = "rbxassetid://818983932" |
1534 | + | |
1535 | - | Aura.Parent = CirclePart |
1535 | + | for LIST = 1, #WHITELIST do |
1536 | - | Aura.LightEmission = 0 |
1536 | + | if WHITELIST[LIST] ~= nil then |
1537 | - | Aura.Transparency = NumberSequence.new(0.2,0.4,1) |
1537 | + | local CHARACTER = workspace:FindFirstChild(WHITELIST[LIST]) |
1538 | - | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 0/255),Color3.new(255/200, 200/200, 200/200)) |
1538 | + | if CHARACTER then |
1539 | - | Aura.Size = NumberSequence.new(0.9,0.5,0.3) |
1539 | + | if Cam:FindFirstChild(WHITELIST[LIST]) == nil then |
1540 | - | Aura.LockedToPart = false |
1540 | + | local TORSO = CHARACTER:FindFirstChild("Torso") or CHARACTER:FindFirstChild("UpperTorso") |
1541 | - | Aura.Lifetime = NumberRange.new(1) |
1541 | + | if TORSO then |
1542 | - | Aura.Rate = 50 |
1542 | + | CreateSound(201858045, Cam, 3, 1) |
1543 | - | Aura.Speed = NumberRange.new(2.5) |
1543 | + | local GUI = Instance.new("BillboardGui",Cam) |
1544 | - | Aura.SpreadAngle = Vector2.new(80,80) |
1544 | + | GUI.Name = WHITELIST[LIST] |
1545 | - | local BlockMesh = Instance.new("BlockMesh") |
1545 | + | GUI.Size = UDim2.new(5,0,5,0) |
1546 | - | BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1) |
1546 | + | GUI.Adornee = TORSO |
1547 | - | BlockMesh.Parent = CirclePart |
1547 | + | local GUI2 = IT("ImageLabel",GUI) |
1548 | - | CirclePart.Parent = Circle |
1548 | + | GUI2.BackgroundTransparency = 1 |
1549 | - | local Star = Instance.new("Decal", CirclePart) |
1549 | + | GUI2.BorderSizePixel = 0 |
1550 | - | Star.Texture = "http://www.roblox.com/asset/?id=771221224" |
1550 | + | GUI2.ImageTransparency = 1 |
1551 | - | Star.Face = "Top" |
1551 | + | GUI2.Size = UDim2.new(1,0,1,0) |
1552 | - | local Light = Instance.new("PointLight", CirclePart) |
1552 | + | GUI2.SizeConstraint = "RelativeYY" |
1553 | - | Light.Color = Color3.new(.20,0,0) |
1553 | + | GUI.AlwaysOnTop = true |
1554 | - | Light.Brightness = 100 |
1554 | + | GUI2.Image = "http://www.roblox.com/asset/?id=142164463" |
1555 | - | Light.Range = 15 |
1555 | + | |
1556 | - | table.insert(CircleParts, CirclePart) |
1556 | + | else |
1557 | - | end |
1557 | + | local GUI = Cam:FindFirstChild(WHITELIST[LIST]) |
1558 | - | Spawn(function() |
1558 | + | if GUI.ImageLabel.ImageTransparency <= 1 then |
1559 | - | while Equipped and Humanoid.Parent and Torso.Parent do |
1559 | + | GUI.ImageLabel.ImageTransparency = GUI.ImageLabel.ImageTransparency - 0.03 |
1560 | - | if Angle == 360 then |
1560 | + | |
1561 | - | Angle = 0 |
1561 | + | local TORSO = CHARACTER:FindFirstChild("Torso") or CHARACTER:FindFirstChild("UpperTorso") |
1562 | - | end |
1562 | + | if TORSO then |
1563 | - | Angle = Angle + 0.05 |
1563 | + | GUI.Adornee = TORSO |
1564 | - | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character}) |
1564 | + | |
1565 | - | if Hit then |
1565 | + | |
1566 | - | if not Circle.Parent then |
1566 | + | else |
1567 | - | Circle.Parent = Character |
1567 | + | if Cam:FindFirstChild(WHITELIST[LIST]) then |
1568 | - | end |
1568 | + | Cam:FindFirstChild(WHITELIST[LIST]):remove() |
1569 | - | for i, v in pairs(CircleParts) do |
1569 | + | |
1570 | - | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) |
1570 | + | |
1571 | - | end |
1571 | + | |
1572 | - | else |
1572 | + | if Cam:FindFirstChild(WHITELIST[LIST]) then |
1573 | - | Circle.Parent = nil |
1573 | + | Cam:FindFirstChild(WHITELIST[LIST]):remove() |
1574 | - | end |
1574 | + | |
1575 | - | wait() |
1575 | + | table.remove(WHITELIST,LIST) |
1576 | - | end |
1576 | + | |
1577 | - | end) |
1577 | + | |
1578 | if Character:FindFirstChildOfClass("Accessory") then | |
1579 | - | function chatfunc(text, color) |
1579 | + | Character:FindFirstChildOfClass("Accessory"):remove() |
1580 | - | local chat = coroutine.wrap(function() |
1580 | + | elseif Character:FindFirstChildOfClass("Hat") then |
1581 | - | if char:FindFirstChild("TalkingBillBoard") ~= nil then |
1581 | + | Character:FindFirstChildOfClass("Hat"):remove() |
1582 | - | char:FindFirstChild("TalkingBillBoard"):destroy() |
1582 | + | |
1583 | if Head:FindFirstChild("face") then | |
1584 | - | local naeeym2 = Instance.new("BillboardGui", char) |
1584 | + | Head.face.Texture = "rbxassetid://403870689" |
1585 | - | naeeym2.Size = UDim2.new(0, 100, 0, 40) |
1585 | + | |
1586 | - | naeeym2.StudsOffset = Vector3.new(0, 3, 0) |
1586 | + | BLINKLOOP = BLINKLOOP + 1 |
1587 | - | naeeym2.Adornee = hed |
1587 | + | if BLINKLOOP >=650 then |
1588 | - | naeeym2.Name = "TalkingBillBoard" |
1588 | + | BLINKLOOP = 0 |
1589 | - | local tecks2 = Instance.new("TextLabel", naeeym2) |
1589 | + | Blink() |
1590 | - | tecks2.BackgroundTransparency = 1 |
1590 | + | |
1591 | - | tecks2.BorderSizePixel = 0 |
1591 | + | Humanoid.DisplayDistanceType = "None" |
1592 | - | tecks2.Text = "" |
1592 | + | Humanoid.PlatformStand = false |
1593 | - | tecks2.Font = "SciFi" |
1593 | + | refit() |
1594 | - | tecks2.TextSize = 30 |
1594 | + | for _, c in pairs(Torso:GetChildren()) do |
1595 | - | tecks2.TextStrokeTransparency = 0 |
1595 | + | if c:IsA("JointInstance") or c.ClassName == "Sound" then |
1596 | - | tecks2.TextColor3 = color |
1596 | + | |
1597 | - | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) |
1597 | + | c:remove() |
1598 | - | tecks2.Size = UDim2.new(1, 0, 0.5, 0) |
1598 | + | |
1599 | - | local tecks3 = Instance.new("TextLabel", naeeym2) |
1599 | + | |
1600 | - | tecks3.BackgroundTransparency = 1 |
1600 | + | |
1601 | - | tecks3.BorderSizePixel = 0 |
1601 | + | |
1602 | - | tecks3.Text = "" |
1602 | + | --//=================================\\ |
1603 | - | tecks3.Font = "SciFi" |
1603 | + | --\\=================================// |
1604 | - | tecks3.TextSize = 30 |
1604 | + | |
1605 | - | tecks3.TextStrokeTransparency = 0 |
1605 | + | |
1606 | - | tecks3.TextColor3 = Color3.new(0, 0, 0) |
1606 | + | |
1607 | - | tecks3.TextStrokeColor3 = color |
1607 | + | |
1608 | - | tecks3.Size = UDim2.new(1, 0, 0.5, 0) |
1608 | + | |
1609 | --//====================================================\\-- | |
1610 | - | while true do |
1610 | + | --|| END OF SCRIPT |
1611 | - | swait(1) |
1611 | + | --\\====================================================//-- |