SHOW:
|
|
- or go back to the newest paste.
1 | --Jevil Done (I think)-- | |
2 | ---------------------------------------------------------------- | |
3 | print([[ | |
4 | --made by Makhail07 | |
5 | --FE code by Mokiros | |
6 | --Edited by ozzak1003 and then by 1nd1k -- | |
7 | --YT: https://www.youtube.com/channel/UC38cAdtSgPWJVEHV8zgZi6A-- | |
8 | --Discord: ozzak1003#3275 | |
9 | -------------------------------- | |
10 | hello good sir | |
11 | Don't leak pls | |
12 | Enjoy ;) | |
13 | -------------------------------- | |
14 | ]]) | |
15 | ||
16 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
17 | - | local Player,game,owner = owner,game |
17 | + | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
18 | - | local RealPlayer = Player |
18 | + | local Mouse,mouse,UserInputService,ContextActionService = owner |
19 | do | |
20 | - | local rp = RealPlayer |
20 | + | print("FE Compatibility code by Mokiros Edited by basstracker1970") |
21 | - | script.Parent = rp.Character |
21 | + | script.Parent = Player.Character |
22 | ||
23 | - | --RemoteEvent for communicating |
23 | + | --RemoteEvent for communicating |
24 | - | local Event = Instance.new("RemoteEvent") |
24 | + | local Event = Instance.new("RemoteEvent") |
25 | - | Event.Name = "UserInput_Event" |
25 | + | Event.Name = "UserInput_Event" |
26 | ||
27 | - | --Fake event to make stuff like Mouse.KeyDown work |
27 | + | --Fake event to make stuff like Mouse.KeyDown work |
28 | - | local function fakeEvent() |
28 | + | local function fakeEvent() |
29 | - | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} |
29 | + | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} |
30 | - | t.connect = t.Connect |
30 | + | t.connect = t.Connect |
31 | - | return t |
31 | + | return t |
32 | end | |
33 | ||
34 | - | --Creating fake input objects with fake variables |
34 | + | --Creating fake input objects with fake variables |
35 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
36 | - | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} |
36 | + | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} |
37 | - | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) |
37 | + | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) |
38 | - | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil |
38 | + | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil |
39 | - | end} |
39 | + | end} |
40 | - | --Merged 2 functions into one by checking amount of arguments |
40 | + | --Merged 2 functions into one by checking amount of arguments |
41 | - | CAS.UnbindAction = CAS.BindAction |
41 | + | CAS.UnbindAction = CAS.BindAction |
42 | ||
43 | - | --This function will trigger the events that have been :Connect()'ed |
43 | + | --This function will trigger the events that have been :Connect()'ed |
44 | - | local function te(self,ev,...) |
44 | + | local function te(self,ev,...) |
45 | - | local t = m[ev] |
45 | + | local t = m[ev] |
46 | - | if t and t._fakeEvent then |
46 | + | if t and t._fakeEvent and t.Function then |
47 | - | for _,f in pairs(t.Functions) do |
47 | + | t.Function(...) |
48 | - | f(...) |
48 | + | |
49 | end | |
50 | m.TrigEvent = te | |
51 | UIS.TrigEvent = te | |
52 | - | m.TrigEvent = te |
52 | + | |
53 | - | UIS.TrigEvent = te |
53 | + | Event.OnServerEvent:Connect(function(plr,io) |
54 | if plr~=Player then return end | |
55 | - | Event.OnServerEvent:Connect(function(plr,io) |
55 | + | if io.isMouse then |
56 | - | if plr~=rp then return end |
56 | + | m.Target = io.Target |
57 | - | m.Target = io.Target |
57 | + | m.Hit = io.Hit |
58 | - | m.Hit = io.Hit |
58 | + | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then |
59 | - | if not io.isMouse then |
59 | + | if io.UserInputState == Enum.UserInputState.Begin then |
60 | - | local b = io.UserInputState == Enum.UserInputState.Begin |
60 | + | m:TrigEvent("Button1Down") |
61 | - | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
61 | + | else |
62 | - | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
62 | + | m:TrigEvent("Button1Up") |
63 | end | |
64 | - | for _,t in pairs(CAS.Actions) do |
64 | + | else |
65 | - | for _,k in pairs(t.Keys) do |
65 | + | for n,t in pairs(CAS.Actions) do |
66 | - | if k==io.KeyCode then |
66 | + | for _,k in pairs(t.Keys) do |
67 | - | t.Function(t.Name,io.UserInputState,io) |
67 | + | if k==io.KeyCode then |
68 | t.Function(t.Name,io.UserInputState,io) | |
69 | end | |
70 | end | |
71 | - | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
71 | + | end |
72 | - | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
72 | + | if io.UserInputState == Enum.UserInputState.Begin then |
73 | - | end |
73 | + | m:TrigEvent("KeyDown",io.KeyCode.Name:lower()) |
74 | UIS:TrigEvent("InputBegan",io,false) | |
75 | - | Event.Parent = NLS([==[ |
75 | + | else |
76 | - | local Player = game:GetService("Players").LocalPlayer |
76 | + | m:TrigEvent("KeyUp",io.KeyCode.Name:lower()) |
77 | - | local Event = script:WaitForChild("UserInput_Event") |
77 | + | UIS:TrigEvent("InputEnded",io,false) |
78 | end | |
79 | - | local Mouse = Player:GetMouse() |
79 | + | |
80 | - | local UIS = game:GetService("UserInputService") |
80 | + | end) |
81 | - | local input = function(io,a) |
81 | + | Event.Parent = NLS([==[ |
82 | - | if a then return end |
82 | + | local Player = game:GetService("Players").LocalPlayer |
83 | - | --Since InputObject is a client-side instance, we create and pass table instead |
83 | + | local Event = script:WaitForChild("UserInput_Event") |
84 | - | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) |
84 | + | |
85 | local UIS = game:GetService("UserInputService") | |
86 | - | UIS.InputBegan:Connect(input) |
86 | + | local input = function(io,a) |
87 | - | UIS.InputEnded:Connect(input) |
87 | + | if a then return end |
88 | --Since InputObject is a client-side instance, we create and pass table instead | |
89 | - | local h,t |
89 | + | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) |
90 | - | --Give the server mouse data 30 times every second, but only if the values changed |
90 | + | |
91 | - | --If player is not moving their mouse, client won't fire events |
91 | + | UIS.InputBegan:Connect(input) |
92 | - | while wait(1/30) do |
92 | + | UIS.InputEnded:Connect(input) |
93 | - | if h~=Mouse.Hit or t~=Mouse.Target then |
93 | + | |
94 | - | h,t=Mouse.Hit,Mouse.Target |
94 | + | local Mouse = Player:GetMouse() |
95 | - | Event:FireServer({isMouse=true,Target=t,Hit=h}) |
95 | + | local h,t |
96 | --Give the server mouse data 30 times every second, but only if the values changed | |
97 | - | end]==],Player.Character) |
97 | + | --If player is not moving their mouse, client won't fire events |
98 | while wait(1/30) do | |
99 | - | ----Sandboxed game object that allows the usage of client-side methods and services |
99 | + | if h~=Mouse.Hit or t~=Mouse.Target then |
100 | - | --Real game object |
100 | + | h,t=Mouse.Hit,Mouse.Target |
101 | - | local _rg = game |
101 | + | Event:FireServer({isMouse=true,Target=t,Hit=h}) |
102 | end | |
103 | - | --Metatable for fake service |
103 | + | end]==],Player.Character) |
104 | - | local fsmt = { |
104 | + | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS |
105 | - | __index = function(self,k) |
105 | + | |
106 | - | local s = rawget(self,"_RealService") |
106 | + | |
107 | - | if s then return s[k] end |
107 | + | |
108 | - | end, |
108 | + | --Paste This Above Any Script |
109 | - | __newindex = function(self,k,v) |
109 | + | |
110 | - | local s = rawget(self,"_RealService") |
110 | + | |
111 | - | if s then s[k]=v end |
111 | + | |
112 | - | end, |
112 | + | |
113 | - | __call = function(self,...) |
113 | + | |
114 | - | local s = rawget(self,"_RealService") |
114 | + | |
115 | - | if s then return s(...) end |
115 | + | |
116 | RootPart = Character["HumanoidRootPart"] | |
117 | Torso = Character["Torso"] | |
118 | - | local function FakeService(t,RealService) |
118 | + | |
119 | - | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService |
119 | + | |
120 | - | return setmetatable(t,fsmt) |
120 | + | |
121 | RightLeg = Character["Right Leg"] | |
122 | LeftLeg = Character["Left Leg"] | |
123 | - | --Fake game object |
123 | + | |
124 | - | local g = { |
124 | + | |
125 | - | GetService = function(self,s) |
125 | + | |
126 | - | return self[s] |
126 | + | |
127 | - | end, |
127 | + | |
128 | - | Players = FakeService({ |
128 | + | |
129 | - | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) |
129 | + | |
130 | - | },"Players"), |
130 | + | |
131 | - | UserInputService = FakeService(UIS,"UserInputService"), |
131 | + | |
132 | - | ContextActionService = FakeService(CAS,"ContextActionService"), |
132 | + | |
133 | --------- | |
134 | - | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) |
134 | + | plr = owner |
135 | - | g.service = g.GetService |
135 | + | |
136 | ||
137 | - | g.RunService = FakeService({ |
137 | + | |
138 | - | RenderStepped = _rg:GetService("RunService").Heartbeat, |
138 | + | |
139 | - | BindToRenderStep = function(self,name,_,fun) |
139 | + | |
140 | - | self._btrs[name] = self.Heartbeat:Connect(fun) |
140 | + | |
141 | - | end, |
141 | + | |
142 | - | UnbindFromRenderStep = function(self,name) |
142 | + | |
143 | - | self._btrs[name]:Disconnect() |
143 | + | |
144 | - | end, |
144 | + | |
145 | - | },"RunService") |
145 | + | |
146 | shadowheadmesh.MeshType = "Head" | |
147 | - | setmetatable(g,{ |
147 | + | |
148 | - | __index=function(self,s) |
148 | + | |
149 | - | return _rg:GetService(s) or typeof(_rg[s])=="function" |
149 | + | |
150 | - | and function(_,...)return _rg[s](_rg,...)end or _rg[s] |
150 | + | |
151 | - | end, |
151 | + | |
152 | - | __newindex = fsmt.__newindex, |
152 | + | |
153 | - | __call = fsmt.__call |
153 | + | |
154 | PlayerGui = Player.PlayerGui | |
155 | - | --Changing owner to fake player object to support owner:GetMouse() |
155 | + | |
156 | - | game,owner = g,g.Players.LocalPlayer |
156 | + | |
157 | Character = Player.Character | |
158 | char = Player.Character | |
159 | Humanoid = Character.Humanoid | |
160 | ||
161 | RootPart = Character["HumanoidRootPart"] | |
162 | Torso = Character["Torso"] | |
163 | Head = Character["Head"] | |
164 | RightArm = Character["Right Arm"] | |
165 | - | Mouse = Player:GetMouse() |
165 | + | |
166 | RightLeg = Character["Right Leg"] | |
167 | LeftLeg = Character["Left Leg"] | |
168 | RootJoint = RootPart["RootJoint"] | |
169 | Neck = Torso["Neck"] | |
170 | RightShoulder = Torso["Right Shoulder"] | |
171 | LeftShoulder = Torso["Left Shoulder"] | |
172 | RightHip = Torso["Right Hip"] | |
173 | LeftHip = Torso["Left Hip"] | |
174 | ||
175 | local Orin = "http://www.roblox.com/asset/?id=7074786" | |
176 | Head.face.Texture = Orin | |
177 | function weld(a, b, acf) | |
178 | local w = Instance.new("Weld", a) | |
179 | w.Part0 = a | |
180 | w.Part1 = b | |
181 | w.C0 = acf | |
182 | end | |
183 | ||
184 | - | plr = game.Players.LocalPlayer |
184 | + | |
185 | local reye = Instance.new("Part", char) | |
186 | - | mouse = plr:GetMouse() |
186 | + | |
187 | reye.BrickColor = BrickColor.new(righteyebrickcolor) | |
188 | reye.Material = "Neon" | |
189 | reye.Size = Vector3.new(.25,.35,.25) | |
190 | weld(reye, char.Head, CFrame.new(-0.12,-0.2,0.55), CFrame.new(1,0,0)) | |
191 | m1 = Instance.new("SpecialMesh", reye) | |
192 | m1.MeshType = "Sphere" | |
193 | m1.Scale = Vector3.new(0.9,0.9,0.9) | |
194 | reye.Locked = true | |
195 | reye.Name = "re" | |
196 | ||
197 | ||
198 | local righteyebrickcolor = "Institutional white" | |
199 | local reye = Instance.new("Part", char) | |
200 | reye.CanCollide = false | |
201 | reye.BrickColor = BrickColor.new(righteyebrickcolor) | |
202 | reye.Material = "Neon" | |
203 | - | Player = game:GetService("Players").LocalPlayer |
203 | + | |
204 | weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0)) | |
205 | m1 = Instance.new("SpecialMesh", reye) | |
206 | m1.MeshType = "Sphere" | |
207 | m1.Scale = Vector3.new(0.9,0.9,0.9) | |
208 | reye.Locked = true | |
209 | reye.Name = "re" | |
210 | - | Mouse = Player:GetMouse() |
210 | + | |
211 | char.Head.face.Texture = "rbxassetid://241553801" | |
212 | -------------------------------- | |
213 | ||
214 | ------------------------------------------------------- | |
215 | ||
216 | local FavIDs = { | |
217 | 340106355, --Nefl Crystals | |
218 | 927529620, --Dimension | |
219 | 876981900, --Fantasy | |
220 | 398987889, --Ordinary Days | |
221 | 1117396305, --Oh wait, it's you. | |
222 | 885996042, --Action Winter Journey | |
223 | 919231299, --Sprawling Idiot Effigy | |
224 | 743466274, --Good Day Sunshine | |
225 | 727411183, --Knife Fight | |
226 | 1402748531, --The Earth Is Counting On You! | |
227 | 595230126 --Robot Language | |
228 | } | |
229 | ||
230 | ||
231 | ||
232 | --The reality of my life isn't real but a Universe -makhail07 | |
233 | wait(0.2) | |
234 | local plr = owner | |
235 | print('Local User is '..plr.Name) | |
236 | ||
237 | local char = plr.Character | |
238 | local hum = char.Humanoid | |
239 | local hed = char.Head | |
240 | local root = char.HumanoidRootPart | |
241 | local rootj = root.RootJoint | |
242 | local tors = char.Torso | |
243 | local ra = char["Right Arm"] | |
244 | local la = char["Left Arm"] | |
245 | local rl = char["Right Leg"] | |
246 | local ll = char["Left Leg"] | |
247 | local neck = tors["Neck"] | |
248 | ||
249 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
250 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
251 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
252 | local maincolor = BrickColor.new("Storm blue") | |
253 | ||
254 | ------------------------------------------------------- | |
255 | --Start Good Stuff-- | |
256 | ------------------------------------------------------- | |
257 | cam = game.Workspace.CurrentCamera | |
258 | CF = CFrame.new | |
259 | angles = CFrame.Angles | |
260 | attack = false | |
261 | Euler = CFrame.fromEulerAnglesXYZ | |
262 | Rad = math.rad | |
263 | IT = Instance.new | |
264 | BrickC = BrickColor.new | |
265 | Cos = math.cos | |
266 | Acos = math.acos | |
267 | Sin = math.sin | |
268 | Asin = math.asin | |
269 | Abs = math.abs | |
270 | Mrandom = math.random | |
271 | Floor = math.floor | |
272 | ------------------------------------------------------- | |
273 | --End Good Stuff-- | |
274 | ------------------------------------------------------- | |
275 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
276 | RSH, LSH = nil, nil | |
277 | RW = Instance.new("Weld") | |
278 | LW = Instance.new("Weld") | |
279 | RH = tors["Right Hip"] | |
280 | LH = tors["Left Hip"] | |
281 | RSH = tors["Right Shoulder"] | |
282 | LSH = tors["Left Shoulder"] | |
283 | RSH.Parent = nil | |
284 | - | local plr = game:service'Players'.LocalPlayer |
284 | + | |
285 | RW.Name = "RW" | |
286 | - | print('SCRIPTNAME Loaded') |
286 | + | |
287 | - | print('SCRIPT DESCRIPTION') |
287 | + | |
288 | RW.C1 = CF(0, 0.5, 0) | |
289 | RW.Part1 = ra | |
290 | RW.Parent = tors | |
291 | LW.Name = "LW" | |
292 | LW.Part0 = tors | |
293 | LW.C0 = CF(-1.5, 0.5, 0) | |
294 | LW.C1 = CF(0, 0.5, 0) | |
295 | LW.Part1 = la | |
296 | LW.Parent = tors | |
297 | Effects = {} | |
298 | ------------------------------------------------------- | |
299 | - | local mouse = plr:GetMouse() |
299 | + | |
300 | ------------------------------------------------------- | |
301 | ArtificialHB = Instance.new("BindableEvent", script) | |
302 | ArtificialHB.Name = "Heartbeat" | |
303 | script:WaitForChild("Heartbeat") | |
304 | ||
305 | frame = 1 / 60 | |
306 | tf = 0 | |
307 | allowframeloss = false | |
308 | tossremainder = false | |
309 | ||
310 | ||
311 | lastframe = tick() | |
312 | script.Heartbeat:Fire() | |
313 | ||
314 | ||
315 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
316 | tf = tf + s | |
317 | if tf >= frame then | |
318 | if allowframeloss then | |
319 | script.Heartbeat:Fire() | |
320 | lastframe = tick() | |
321 | else | |
322 | for i = 1, math.floor(tf / frame) do | |
323 | script.Heartbeat:Fire() | |
324 | end | |
325 | lastframe = tick() | |
326 | end | |
327 | if tossremainder then | |
328 | tf = 0 | |
329 | else | |
330 | tf = tf - frame * math.floor(tf / frame) | |
331 | end | |
332 | end | |
333 | end) | |
334 | ------------------------------------------------------- | |
335 | --End HeartBeat-- | |
336 | ------------------------------------------------------- | |
337 | ||
338 | ------------------------------------------------------- | |
339 | --Start Important Functions-- | |
340 | ------------------------------------------------------- | |
341 | function swait(num) | |
342 | if num == 0 or num == nil then | |
343 | game:service("RunService").Stepped:wait(0) | |
344 | else | |
345 | for i = 0, num do | |
346 | game:service("RunService").Stepped:wait(0) | |
347 | end | |
348 | end | |
349 | end | |
350 | function thread(f) | |
351 | coroutine.resume(coroutine.create(f)) | |
352 | end | |
353 | function clerp(a, b, t) | |
354 | local qa = { | |
355 | QuaternionFromCFrame(a) | |
356 | } | |
357 | local qb = { | |
358 | QuaternionFromCFrame(b) | |
359 | } | |
360 | local ax, ay, az = a.x, a.y, a.z | |
361 | local bx, by, bz = b.x, b.y, b.z | |
362 | local _t = 1 - t | |
363 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
364 | end | |
365 | function QuaternionFromCFrame(cf) | |
366 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
367 | local trace = m00 + m11 + m22 | |
368 | if trace > 0 then | |
369 | local s = math.sqrt(1 + trace) | |
370 | local recip = 0.5 / s | |
371 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
372 | else | |
373 | local i = 0 | |
374 | if m00 < m11 then | |
375 | i = 1 | |
376 | end | |
377 | if m22 > (i == 0 and m00 or m11) then | |
378 | i = 2 | |
379 | end | |
380 | if i == 0 then | |
381 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
382 | local recip = 0.5 / s | |
383 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
384 | elseif i == 1 then | |
385 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
386 | local recip = 0.5 / s | |
387 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
388 | elseif i == 2 then | |
389 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
390 | local recip = 0.5 / s | |
391 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
392 | end | |
393 | end | |
394 | end | |
395 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
396 | local xs, ys, zs = x + x, y + y, z + z | |
397 | local wx, wy, wz = w * xs, w * ys, w * zs | |
398 | local xx = x * xs | |
399 | local xy = x * ys | |
400 | local xz = x * zs | |
401 | local yy = y * ys | |
402 | local yz = y * zs | |
403 | local zz = z * zs | |
404 | 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)) | |
405 | end | |
406 | function QuaternionSlerp(a, b, t) | |
407 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
408 | local startInterp, finishInterp | |
409 | if cosTheta >= 1.0E-4 then | |
410 | if 1 - cosTheta > 1.0E-4 then | |
411 | local theta = math.acos(cosTheta) | |
412 | local invSinTheta = 1 / Sin(theta) | |
413 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
414 | finishInterp = Sin(t * theta) * invSinTheta | |
415 | else | |
416 | startInterp = 1 - t | |
417 | finishInterp = t | |
418 | end | |
419 | elseif 1 + cosTheta > 1.0E-4 then | |
420 | local theta = math.acos(-cosTheta) | |
421 | local invSinTheta = 1 / Sin(theta) | |
422 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
423 | finishInterp = Sin(t * theta) * invSinTheta | |
424 | else | |
425 | startInterp = t - 1 | |
426 | finishInterp = t | |
427 | end | |
428 | 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 | |
429 | end | |
430 | function rayCast(Position, Direction, Range, Ignore) | |
431 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
432 | end | |
433 | local RbxUtility = LoadLibrary("RbxUtility") | |
434 | local Create = RbxUtility.Create | |
435 | ||
436 | ------------------------------------------------------- | |
437 | --Start Damage Function-- | |
438 | ------------------------------------------------------- | |
439 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
440 | if hit.Parent == nil then | |
441 | return | |
442 | end | |
443 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
444 | for _, v in pairs(hit.Parent:children()) do | |
445 | if v:IsA("Humanoid") then | |
446 | h = v | |
447 | end | |
448 | end | |
449 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
450 | ||
451 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
452 | end | |
453 | ||
454 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
455 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
456 | if hit.Parent.DebounceHit.Value == true then | |
457 | return | |
458 | end | |
459 | end | |
460 | if insta == true then | |
461 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
462 | end | |
463 | local c = Create("ObjectValue"){ | |
464 | Name = "creator", | |
465 | Value = game:service("Players").LocalPlayer, | |
466 | Parent = h, | |
467 | } | |
468 | game:GetService("Debris"):AddItem(c, .5) | |
469 | if HitSound ~= nil and HitPitch ~= nil then | |
470 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
471 | end | |
472 | local Damage = math.random(minim, maxim) | |
473 | local blocked = false | |
474 | local block = hit.Parent:findFirstChild("Block") | |
475 | if block ~= nil then | |
476 | if block.className == "IntValue" then | |
477 | if block.Value > 0 then | |
478 | blocked = true | |
479 | block.Value = block.Value - 1 | |
480 | print(block.Value) | |
481 | end | |
482 | end | |
483 | end | |
484 | if blocked == false then | |
485 | h.Health = h.Health - Damage | |
486 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
487 | else | |
488 | h.Health = h.Health - (Damage / 2) | |
489 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
490 | end | |
491 | if Type == "Knockdown" then | |
492 | local hum = hit.Parent.Humanoid | |
493 | hum.PlatformStand = true | |
494 | coroutine.resume(coroutine.create(function(HHumanoid) | |
495 | swait(1) | |
496 | HHumanoid.PlatformStand = false | |
497 | end), hum) | |
498 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
499 | local bodvol = Create("BodyVelocity"){ | |
500 | velocity = angle * knockback, | |
501 | P = 5000, | |
502 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
503 | Parent = hit, | |
504 | } | |
505 | local rl = Create("BodyAngularVelocity"){ | |
506 | P = 3000, | |
507 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
508 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
509 | Parent = hit, | |
510 | } | |
511 | game:GetService("Debris"):AddItem(bodvol, .5) | |
512 | game:GetService("Debris"):AddItem(rl, .5) | |
513 | elseif Type == "Normal" then | |
514 | local vp = Create("BodyVelocity"){ | |
515 | P = 500, | |
516 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
517 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
518 | } | |
519 | if knockback > 0 then | |
520 | vp.Parent = hit.Parent.Torso | |
521 | end | |
522 | game:GetService("Debris"):AddItem(vp, .5) | |
523 | elseif Type == "Up" then | |
524 | local bodyVelocity = Create("BodyVelocity"){ | |
525 | velocity = Vector3.new(0, 20, 0), | |
526 | P = 5000, | |
527 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
528 | Parent = hit, | |
529 | } | |
530 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
531 | elseif Type == "DarkUp" then | |
532 | coroutine.resume(coroutine.create(function() | |
533 | for i = 0, 1, 0.1 do | |
534 | swait() | |
535 | Effects.Block.Create(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
536 | end | |
537 | end)) | |
538 | local bodyVelocity = Create("BodyVelocity"){ | |
539 | velocity = Vector3.new(0, 20, 0), | |
540 | P = 5000, | |
541 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
542 | Parent = hit, | |
543 | } | |
544 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
545 | elseif Type == "Snare" then | |
546 | local bp = Create("BodyPosition"){ | |
547 | P = 2000, | |
548 | D = 100, | |
549 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
550 | position = hit.Parent.Torso.Position, | |
551 | Parent = hit.Parent.Torso, | |
552 | } | |
553 | game:GetService("Debris"):AddItem(bp, 1) | |
554 | elseif Type == "Freeze" then | |
555 | local BodPos = Create("BodyPosition"){ | |
556 | P = 50000, | |
557 | D = 1000, | |
558 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
559 | position = hit.Parent.Torso.Position, | |
560 | Parent = hit.Parent.Torso, | |
561 | } | |
562 | local BodGy = Create("BodyGyro") { | |
563 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
564 | P = 20e+003, | |
565 | Parent = hit.Parent.Torso, | |
566 | cframe = hit.Parent.Torso.CFrame, | |
567 | } | |
568 | hit.Parent.Torso.Anchored = true | |
569 | coroutine.resume(coroutine.create(function(Part) | |
570 | swait(1.5) | |
571 | Part.Anchored = false | |
572 | end), hit.Parent.Torso) | |
573 | game:GetService("Debris"):AddItem(BodPos, 3) | |
574 | game:GetService("Debris"):AddItem(BodGy, 3) | |
575 | end | |
576 | local debounce = Create("BoolValue"){ | |
577 | Name = "DebounceHit", | |
578 | Parent = hit.Parent, | |
579 | Value = true, | |
580 | } | |
581 | game:GetService("Debris"):AddItem(debounce, Delay) | |
582 | c = Create("ObjectValue"){ | |
583 | Name = "creator", | |
584 | Value = Player, | |
585 | Parent = h, | |
586 | } | |
587 | game:GetService("Debris"):AddItem(c, .5) | |
588 | end | |
589 | end | |
590 | ------------------------------------------------------- | |
591 | --End Damage Function-- | |
592 | ------------------------------------------------------- | |
593 | ||
594 | ------------------------------------------------------- | |
595 | --Start Damage Function Customization-- | |
596 | ------------------------------------------------------- | |
597 | function ShowDamage(Pos, Text, Time, Color) | |
598 | local Rate = (1 / 30) | |
599 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
600 | local Text = (Text or "") | |
601 | local Time = (Time or 2) | |
602 | local Color = (Color or Color3.new(1, 0, 1)) | |
603 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
604 | EffectPart.Anchored = true | |
605 | local BillboardGui = Create("BillboardGui"){ | |
606 | Size = UDim2.new(3, 0, 3, 0), | |
607 | Adornee = EffectPart, | |
608 | Parent = EffectPart, | |
609 | } | |
610 | local TextLabel = Create("TextLabel"){ | |
611 | BackgroundTransparency = 1, | |
612 | Size = UDim2.new(1, 0, 1, 0), | |
613 | Text = Text, | |
614 | Font = "Bodoni", | |
615 | TextColor3 = Color, | |
616 | TextScaled = true, | |
617 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
618 | Parent = BillboardGui, | |
619 | } | |
620 | game.Debris:AddItem(EffectPart, (Time)) | |
621 | EffectPart.Parent = game:GetService("Workspace") | |
622 | delay(0, function() | |
623 | local Frames = (Time / Rate) | |
624 | for Frame = 1, Frames do | |
625 | wait(Rate) | |
626 | local Percent = (Frame / Frames) | |
627 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
628 | TextLabel.TextTransparency = Percent | |
629 | end | |
630 | if EffectPart and EffectPart.Parent then | |
631 | EffectPart:Destroy() | |
632 | end | |
633 | end) | |
634 | end | |
635 | ------------------------------------------------------- | |
636 | --End Damage Function Customization-- | |
637 | ------------------------------------------------------- | |
638 | ||
639 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
640 | for _, c in pairs(workspace:children()) do | |
641 | local hum = c:findFirstChild("Humanoid") | |
642 | if hum ~= nil then | |
643 | local head = c:findFirstChild("Head") | |
644 | if head ~= nil then | |
645 | local targ = head.Position - Part.Position | |
646 | local mag = targ.magnitude | |
647 | if magni >= mag and c.Name ~= plr.Name then | |
648 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
649 | end | |
650 | end | |
651 | end | |
652 | end | |
653 | end | |
654 | ||
655 | ||
656 | CFuncs = { | |
657 | Part = { | |
658 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
659 | local Part = Create("Part")({ | |
660 | Parent = Parent, | |
661 | Reflectance = Reflectance, | |
662 | Transparency = Transparency, | |
663 | CanCollide = false, | |
664 | Locked = true, | |
665 | BrickColor = BrickColor.new(tostring(BColor)), | |
666 | Name = Name, | |
667 | Size = Size, | |
668 | Material = Material | |
669 | }) | |
670 | RemoveOutlines(Part) | |
671 | return Part | |
672 | end | |
673 | }, | |
674 | Mesh = { | |
675 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
676 | local Msh = Create(Mesh)({ | |
677 | Parent = Part, | |
678 | Offset = OffSet, | |
679 | Scale = Scale | |
680 | }) | |
681 | if Mesh == "SpecialMesh" then | |
682 | Msh.MeshType = MeshType | |
683 | Msh.MeshId = MeshId | |
684 | end | |
685 | return Msh | |
686 | end | |
687 | }, | |
688 | Mesh = { | |
689 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
690 | local Msh = Create(Mesh)({ | |
691 | Parent = Part, | |
692 | Offset = OffSet, | |
693 | Scale = Scale | |
694 | }) | |
695 | if Mesh == "SpecialMesh" then | |
696 | Msh.MeshType = MeshType | |
697 | Msh.MeshId = MeshId | |
698 | end | |
699 | return Msh | |
700 | end | |
701 | }, | |
702 | Weld = { | |
703 | Create = function(Parent, Part0, Part1, C0, C1) | |
704 | local Weld = Create("Weld")({ | |
705 | Parent = Parent, | |
706 | Part0 = Part0, | |
707 | Part1 = Part1, | |
708 | C0 = C0, | |
709 | C1 = C1 | |
710 | }) | |
711 | return Weld | |
712 | end | |
713 | }, | |
714 | Sound = { | |
715 | Create = function(id, par, vol, pit) | |
716 | coroutine.resume(coroutine.create(function() | |
717 | local S = Create("Sound")({ | |
718 | Volume = vol, | |
719 | Pitch = pit or 1, | |
720 | SoundId = id, | |
721 | Parent = par or workspace | |
722 | }) | |
723 | wait() | |
724 | S:play() | |
725 | game:GetService("Debris"):AddItem(S, 6) | |
726 | end)) | |
727 | end | |
728 | }, | |
729 | ParticleEmitter = { | |
730 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
731 | local fp = Create("ParticleEmitter")({ | |
732 | Parent = Parent, | |
733 | Color = ColorSequence.new(Color1, Color2), | |
734 | LightEmission = LightEmission, | |
735 | Size = Size, | |
736 | Texture = Texture, | |
737 | Transparency = Transparency, | |
738 | ZOffset = ZOffset, | |
739 | Acceleration = Accel, | |
740 | Drag = Drag, | |
741 | LockedToPart = LockedToPart, | |
742 | VelocityInheritance = VelocityInheritance, | |
743 | EmissionDirection = EmissionDirection, | |
744 | Enabled = Enabled, | |
745 | Lifetime = LifeTime, | |
746 | Rate = Rate, | |
747 | Rotation = Rotation, | |
748 | RotSpeed = RotSpeed, | |
749 | Speed = Speed, | |
750 | VelocitySpread = VelocitySpread | |
751 | }) | |
752 | return fp | |
753 | end | |
754 | } | |
755 | } | |
756 | function RemoveOutlines(part) | |
757 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
758 | end | |
759 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
760 | local Part = Create("Part")({ | |
761 | formFactor = FormFactor, | |
762 | Parent = Parent, | |
763 | Reflectance = Reflectance, | |
764 | Transparency = Transparency, | |
765 | CanCollide = false, | |
766 | Locked = true, | |
767 | BrickColor = BrickColor.new(tostring(BColor)), | |
768 | Name = Name, | |
769 | Size = Size, | |
770 | Material = Material | |
771 | }) | |
772 | RemoveOutlines(Part) | |
773 | return Part | |
774 | end | |
775 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
776 | local Msh = Create(Mesh)({ | |
777 | Parent = Part, | |
778 | Offset = OffSet, | |
779 | Scale = Scale | |
780 | }) | |
781 | if Mesh == "SpecialMesh" then | |
782 | Msh.MeshType = MeshType | |
783 | Msh.MeshId = MeshId | |
784 | end | |
785 | return Msh | |
786 | end | |
787 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
788 | local Weld = Create("Weld")({ | |
789 | Parent = Parent, | |
790 | Part0 = Part0, | |
791 | Part1 = Part1, | |
792 | C0 = C0, | |
793 | C1 = C1 | |
794 | }) | |
795 | return Weld | |
796 | end | |
797 | ||
798 | ||
799 | ------------------------------------------------------- | |
800 | --Start Effect Function-- | |
801 | ------------------------------------------------------- | |
802 | EffectModel = Instance.new("Model", char) | |
803 | Effects = { | |
804 | Block = { | |
805 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
806 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
807 | prt.Anchored = true | |
808 | prt.CFrame = cframe | |
809 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
810 | game:GetService("Debris"):AddItem(prt, 10) | |
811 | if Type == 1 or Type == nil then | |
812 | table.insert(Effects, { | |
813 | prt, | |
814 | "Block1", | |
815 | delay, | |
816 | x3, | |
817 | y3, | |
818 | z3, | |
819 | msh | |
820 | }) | |
821 | elseif Type == 2 then | |
822 | table.insert(Effects, { | |
823 | prt, | |
824 | "Block2", | |
825 | delay, | |
826 | x3, | |
827 | y3, | |
828 | z3, | |
829 | msh | |
830 | }) | |
831 | else | |
832 | table.insert(Effects, { | |
833 | prt, | |
834 | "Block3", | |
835 | delay, | |
836 | x3, | |
837 | y3, | |
838 | z3, | |
839 | msh | |
840 | }) | |
841 | end | |
842 | end | |
843 | }, | |
844 | Sphere = { | |
845 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
846 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
847 | prt.Anchored = true | |
848 | prt.CFrame = cframe | |
849 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
850 | game:GetService("Debris"):AddItem(prt, 10) | |
851 | table.insert(Effects, { | |
852 | prt, | |
853 | "Cylinder", | |
854 | delay, | |
855 | x3, | |
856 | y3, | |
857 | z3, | |
858 | msh | |
859 | }) | |
860 | end | |
861 | }, | |
862 | Cylinder = { | |
863 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
864 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
865 | prt.Anchored = true | |
866 | prt.CFrame = cframe | |
867 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
868 | game:GetService("Debris"):AddItem(prt, 10) | |
869 | table.insert(Effects, { | |
870 | prt, | |
871 | "Cylinder", | |
872 | delay, | |
873 | x3, | |
874 | y3, | |
875 | z3, | |
876 | msh | |
877 | }) | |
878 | end | |
879 | }, | |
880 | Wave = { | |
881 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
882 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
883 | prt.Anchored = true | |
884 | prt.CFrame = cframe | |
885 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
886 | game:GetService("Debris"):AddItem(prt, 10) | |
887 | table.insert(Effects, { | |
888 | prt, | |
889 | "Cylinder", | |
890 | delay, | |
891 | x3 / 60, | |
892 | y3 / 60, | |
893 | z3 / 60, | |
894 | msh | |
895 | }) | |
896 | end | |
897 | }, | |
898 | Ring = { | |
899 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
900 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
901 | prt.Anchored = true | |
902 | prt.CFrame = cframe | |
903 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
904 | game:GetService("Debris"):AddItem(prt, 10) | |
905 | table.insert(Effects, { | |
906 | prt, | |
907 | "Cylinder", | |
908 | delay, | |
909 | x3, | |
910 | y3, | |
911 | z3, | |
912 | msh | |
913 | }) | |
914 | end | |
915 | }, | |
916 | Break = { | |
917 | Create = function(brickcolor, cframe, x1, y1, z1) | |
918 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
919 | prt.Anchored = true | |
920 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
921 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
922 | local num = math.random(10, 50) / 1000 | |
923 | game:GetService("Debris"):AddItem(prt, 10) | |
924 | table.insert(Effects, { | |
925 | prt, | |
926 | "Shatter", | |
927 | num, | |
928 | prt.CFrame, | |
929 | math.random() - math.random(), | |
930 | 0, | |
931 | math.random(50, 100) / 100 | |
932 | }) | |
933 | end | |
934 | }, | |
935 | Spiral = { | |
936 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
937 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
938 | prt.Anchored = true | |
939 | prt.CFrame = cframe | |
940 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
941 | game:GetService("Debris"):AddItem(prt, 10) | |
942 | table.insert(Effects, { | |
943 | prt, | |
944 | "Cylinder", | |
945 | delay, | |
946 | x3, | |
947 | y3, | |
948 | z3, | |
949 | msh | |
950 | }) | |
951 | end | |
952 | }, | |
953 | Push = { | |
954 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
955 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
956 | prt.Anchored = true | |
957 | prt.CFrame = cframe | |
958 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
959 | game:GetService("Debris"):AddItem(prt, 10) | |
960 | table.insert(Effects, { | |
961 | prt, | |
962 | "Cylinder", | |
963 | delay, | |
964 | x3, | |
965 | y3, | |
966 | z3, | |
967 | msh | |
968 | }) | |
969 | end | |
970 | } | |
971 | } | |
972 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
973 | local fp = IT("Part") | |
974 | fp.formFactor = formfactor | |
975 | fp.Parent = parent | |
976 | fp.Reflectance = reflectance | |
977 | fp.Transparency = transparency | |
978 | fp.CanCollide = false | |
979 | fp.Locked = true | |
980 | fp.BrickColor = brickcolor | |
981 | fp.Name = name | |
982 | fp.Size = size | |
983 | fp.Position = tors.Position | |
984 | RemoveOutlines(fp) | |
985 | fp.Material = "SmoothPlastic" | |
986 | fp:BreakJoints() | |
987 | return fp | |
988 | end | |
989 | ||
990 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
991 | local mesh = IT(Mesh) | |
992 | mesh.Parent = part | |
993 | if Mesh == "SpecialMesh" then | |
994 | mesh.MeshType = meshtype | |
995 | if meshid ~= "nil" then | |
996 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
997 | end | |
998 | end | |
999 | mesh.Offset = offset | |
1000 | mesh.Scale = scale | |
1001 | return mesh | |
1002 | end | |
1003 | ||
1004 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
1005 | local type = type | |
1006 | local rng = Instance.new("Part", char) | |
1007 | rng.Anchored = true | |
1008 | rng.BrickColor = color | |
1009 | rng.CanCollide = false | |
1010 | rng.FormFactor = 3 | |
1011 | rng.Name = "Ring" | |
1012 | rng.Material = "Neon" | |
1013 | rng.Size = Vector3.new(1, 1, 1) | |
1014 | rng.Transparency = 0 | |
1015 | rng.TopSurface = 0 | |
1016 | rng.BottomSurface = 0 | |
1017 | rng.CFrame = pos | |
1018 | local rngm = Instance.new("SpecialMesh", rng) | |
1019 | rngm.MeshType = MType | |
1020 | rngm.Scale = scale | |
1021 | local scaler2 = 1 | |
1022 | if type == "Add" then | |
1023 | scaler2 = 1 * value | |
1024 | elseif type == "Divide" then | |
1025 | scaler2 = 1 / value | |
1026 | end | |
1027 | coroutine.resume(coroutine.create(function() | |
1028 | for i = 0, 10 / bonuspeed, 0.1 do | |
1029 | swait() | |
1030 | if type == "Add" then | |
1031 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1032 | elseif type == "Divide" then | |
1033 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1034 | end | |
1035 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1036 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
1037 | end | |
1038 | rng:Destroy() | |
1039 | end)) | |
1040 | end | |
1041 | ||
1042 | function Eviscerate(dude) | |
1043 | if dude.Name ~= char then | |
1044 | local bgf = IT("BodyGyro", dude.Head) | |
1045 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1046 | local val = IT("BoolValue", dude) | |
1047 | val.Name = "IsHit" | |
1048 | local ds = coroutine.wrap(function() | |
1049 | dude:WaitForChild("Head"):BreakJoints() | |
1050 | wait(0.5) | |
1051 | target = nil | |
1052 | coroutine.resume(coroutine.create(function() | |
1053 | for i, v in pairs(dude:GetChildren()) do | |
1054 | if v:IsA("Accessory") then | |
1055 | v:Destroy() | |
1056 | end | |
1057 | if v:IsA("Humanoid") then | |
1058 | v:Destroy() | |
1059 | end | |
1060 | if v:IsA("CharacterMesh") then | |
1061 | v:Destroy() | |
1062 | end | |
1063 | if v:IsA("Model") then | |
1064 | v:Destroy() | |
1065 | end | |
1066 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1067 | for x, o in pairs(v:GetChildren()) do | |
1068 | if o:IsA("Decal") then | |
1069 | o:Destroy() | |
1070 | end | |
1071 | end | |
1072 | coroutine.resume(coroutine.create(function() | |
1073 | v.Material = "Neon" | |
1074 | v.CanCollide = false | |
1075 | local PartEmmit1 = IT("ParticleEmitter", v) | |
1076 | PartEmmit1.LightEmission = 1 | |
1077 | PartEmmit1.Texture = "rbxassetid://284205403" | |
1078 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1079 | PartEmmit1.Rate = 150 | |
1080 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1081 | PartEmmit1.Size = NumberSequence.new({ | |
1082 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1083 | NumberSequenceKeypoint.new(1, 0, 0) | |
1084 | }) | |
1085 | PartEmmit1.Transparency = NumberSequence.new({ | |
1086 | NumberSequenceKeypoint.new(0, 0, 0), | |
1087 | NumberSequenceKeypoint.new(1, 1, 0) | |
1088 | }) | |
1089 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1090 | PartEmmit1.VelocitySpread = 30000 | |
1091 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1092 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1093 | local BodPoss = IT("BodyPosition", v) | |
1094 | BodPoss.P = 3000 | |
1095 | BodPoss.D = 1000 | |
1096 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1097 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1098 | v.Color = maincolor.Color | |
1099 | coroutine.resume(coroutine.create(function() | |
1100 | for i = 0, 49 do | |
1101 | swait(1) | |
1102 | v.Transparency = v.Transparency + 0.08 | |
1103 | end | |
1104 | wait(0.5) | |
1105 | PartEmmit1.Enabled = false | |
1106 | wait(3) | |
1107 | v:Destroy() | |
1108 | dude:Destroy() | |
1109 | end)) | |
1110 | end)) | |
1111 | end | |
1112 | end | |
1113 | end)) | |
1114 | end) | |
1115 | ds() | |
1116 | end | |
1117 | end | |
1118 | ||
1119 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1120 | if SinglePlayer then | |
1121 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1122 | end | |
1123 | local List = {} | |
1124 | for i, v in pairs(workspace:GetChildren()) do | |
1125 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1126 | table.insert(List, v) | |
1127 | end | |
1128 | end | |
1129 | return List | |
1130 | end | |
1131 | ||
1132 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1133 | local type = type | |
1134 | local rng = Instance.new("Part", char) | |
1135 | rng.Anchored = true | |
1136 | rng.BrickColor = color | |
1137 | rng.CanCollide = false | |
1138 | rng.FormFactor = 3 | |
1139 | rng.Name = "Ring" | |
1140 | rng.Material = "Neon" | |
1141 | rng.Size = Vector3.new(1, 1, 1) | |
1142 | rng.Transparency = 0 | |
1143 | rng.TopSurface = 0 | |
1144 | rng.BottomSurface = 0 | |
1145 | rng.CFrame = pos | |
1146 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1147 | local rngm = Instance.new("SpecialMesh", rng) | |
1148 | rngm.MeshType = MType | |
1149 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1150 | local scaler2 = 1 | |
1151 | local speeder = FastSpeed | |
1152 | if type == "Add" then | |
1153 | scaler2 = 1 * value | |
1154 | elseif type == "Divide" then | |
1155 | scaler2 = 1 / value | |
1156 | end | |
1157 | coroutine.resume(coroutine.create(function() | |
1158 | for i = 0, 10 / bonuspeed, 0.1 do | |
1159 | swait() | |
1160 | if type == "Add" then | |
1161 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1162 | elseif type == "Divide" then | |
1163 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1164 | end | |
1165 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1166 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1167 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1168 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1169 | end | |
1170 | rng:Destroy() | |
1171 | end)) | |
1172 | end | |
1173 | ||
1174 | function SoulSteal(dude) | |
1175 | if dude.Name ~= char then | |
1176 | local bgf = IT("BodyGyro", dude.Head) | |
1177 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1178 | local val = IT("BoolValue", dude) | |
1179 | val.Name = "IsHit" | |
1180 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
1181 | local soulst = coroutine.wrap(function() | |
1182 | local soul = Instance.new("Part",dude) | |
1183 | soul.Size = Vector3.new(1,1,1) | |
1184 | soul.CanCollide = false | |
1185 | soul.Anchored = false | |
1186 | soul.Position = torso.Position | |
1187 | soul.Transparency = 1 | |
1188 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
1189 | PartEmmit1.LightEmission = 1 | |
1190 | PartEmmit1.Texture = "rbxassetid://569507414" | |
1191 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1192 | PartEmmit1.Rate = 250 | |
1193 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1194 | PartEmmit1.Size = NumberSequence.new({ | |
1195 | NumberSequenceKeypoint.new(0, 1, 0), | |
1196 | NumberSequenceKeypoint.new(1, 0, 0) | |
1197 | }) | |
1198 | PartEmmit1.Transparency = NumberSequence.new({ | |
1199 | NumberSequenceKeypoint.new(0, 0, 0), | |
1200 | NumberSequenceKeypoint.new(1, 1, 0) | |
1201 | }) | |
1202 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1203 | PartEmmit1.VelocitySpread = 30000 | |
1204 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
1205 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
1206 | local BodPoss = IT("BodyPosition", soul) | |
1207 | BodPoss.P = 3000 | |
1208 | BodPoss.D = 1000 | |
1209 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1210 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1211 | wait(1.6) | |
1212 | soul.Touched:connect(function(hit) | |
1213 | if hit.Parent == char then | |
1214 | soul:Destroy() | |
1215 | end | |
1216 | end) | |
1217 | wait(1.2) | |
1218 | while soul do | |
1219 | swait() | |
1220 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1221 | BodPoss.Position = tors.Position | |
1222 | end | |
1223 | end) | |
1224 | soulst() | |
1225 | end | |
1226 | end | |
1227 | function FaceMouse() | |
1228 | local Cam = workspace.CurrentCamera | |
1229 | return { | |
1230 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1231 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1232 | } | |
1233 | end | |
1234 | ||
1235 | BTAUNT = Instance.new("Sound", tors) | |
1236 | BTAUNT.SoundId = "http://www.roblox.com/asset/?id=2533880583" | |
1237 | BTAUNT.Volume = 3 | |
1238 | BTAUNT.Pitch = 1 | |
1239 | BTAUNT.Looped = true | |
1240 | BTAUNT.TimePosition = 0 | |
1241 | ||
1242 | BTAUNT3 = Instance.new("Sound", tors) | |
1243 | BTAUNT3.SoundId = "http://www.roblox.com/asset/?id=157016540" | |
1244 | BTAUNT3.Volume = 10 | |
1245 | BTAUNT3.Pitch = 1 | |
1246 | BTAUNT3.Looped = false | |
1247 | BTAUNT3.TimePosition = 0 | |
1248 | ||
1249 | TEST = Instance.new("Sound", tors) | |
1250 | TEST.SoundId = "http://www.roblox.com/asset/?id=2544975373" | |
1251 | TEST.Volume = 25 | |
1252 | TEST.Pitch = 1 | |
1253 | TEST.Looped = false | |
1254 | TEST.TimePosition = 0 | |
1255 | ------------------------------------------------------- | |
1256 | --End Effect Function-- | |
1257 | ------------------------------------------------------- | |
1258 | function Cso(ID, PARENT, VOLUME, PITCH) | |
1259 | local NSound = nil | |
1260 | coroutine.resume(coroutine.create(function() | |
1261 | NSound = IT("Sound", PARENT) | |
1262 | NSound.Volume = VOLUME | |
1263 | NSound.Pitch = PITCH | |
1264 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1265 | swait() | |
1266 | NSound:play() | |
1267 | game:GetService("Debris"):AddItem(NSound, 50) | |
1268 | end)) | |
1269 | return NSound | |
1270 | end | |
1271 | function CameraEnshaking(Length, Intensity) | |
1272 | coroutine.resume(coroutine.create(function() | |
1273 | local intensity = 1 * Intensity | |
1274 | local rotM = 0.01 * Intensity | |
1275 | for i = 0, Length, 0.1 do | |
1276 | swait() | |
1277 | intensity = intensity - 0.05 * Intensity / Length | |
1278 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1279 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
1280 | 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) | |
1281 | end | |
1282 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
1283 | end)) | |
1284 | end | |
1285 | ------------------------------------------------------- | |
1286 | --End Important Functions-- | |
1287 | ------------------------------------------------------- | |
1288 | ||
1289 | ||
1290 | ------------------------------------------------------- | |
1291 | --Start Customization-- | |
1292 | ------------------------------------------------------- | |
1293 | local Player_Size = 1 | |
1294 | if Player_Size ~= 1 then | |
1295 | root.Size = root.Size * Player_Size | |
1296 | tors.Size = tors.Size * Player_Size | |
1297 | hed.Size = hed.Size * Player_Size | |
1298 | ra.Size = ra.Size * Player_Size | |
1299 | la.Size = la.Size * Player_Size | |
1300 | rl.Size = rl.Size * Player_Size | |
1301 | ll.Size = ll.Size * Player_Size | |
1302 | ---------------------------------------------------------------------------------- | |
1303 | rootj.Parent = root | |
1304 | neck.Parent = tors | |
1305 | RW.Parent = tors | |
1306 | LW.Parent = tors | |
1307 | RH.Parent = tors | |
1308 | LH.Parent = tors | |
1309 | ---------------------------------------------------------------------------------- | |
1310 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1311 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1312 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
1313 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
1314 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
1315 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
1316 | ---------------------------------------------------------------------------------- | |
1317 | 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)) | |
1318 | 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)) | |
1319 | 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)) | |
1320 | 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)) | |
1321 | --hat.Parent = Character | |
1322 | end | |
1323 | ---------------------------------------------------------------------------------- | |
1324 | ---------------------------------------------------------------------------------- | |
1325 | local equipped = false | |
1326 | local idle = 0 | |
1327 | local change = 1 | |
1328 | local val = 0 | |
1329 | local toim = 0 | |
1330 | local idleanim = 0.4 | |
1331 | local sine = 0 | |
1332 | local Sit = 1 | |
1333 | ---------------------------------------------------------------------------------- | |
1334 | hum.WalkSpeed = 8 | |
1335 | hum.JumpPower = 57 | |
1336 | hum.Animator.Parent = nil | |
1337 | ---------------------------------------------------------------------------------- | |
1338 | wait(1) | |
1339 | player = owner | |
1340 | torso = player.Character:WaitForChild("Torso") | |
1341 | ||
1342 | ||
1343 | mouse.KeyDown:connect(function(key) | |
1344 | if key == "t" then | |
1345 | Cso("2545012765", hed, 3.5, 1) | |
1346 | dist = (torso.Position - mouse.Hit.p).magnitude | |
1347 | if dist <= 10000 then | |
1348 | torso.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,3,0) | |
1349 | end | |
1350 | end | |
1351 | end) | |
1352 | ------------------------------------------------------- | |
1353 | --End Customization-- | |
1354 | ------------------------------------------------------- | |
1355 | local Blobby = Instance.new("Part", char) | |
1356 | Blobby.Name = "Blob" | |
1357 | Blobby.CanCollide = false | |
1358 | Blobby.BrickColor = BrickColor.new("Really black") | |
1359 | Blobby.Transparency = 0 | |
1360 | Blobby.Material = "Plastic" | |
1361 | Blobby.Size = Vector3.new(1, 1, 2) | |
1362 | Blobby.TopSurface = Enum.SurfaceType.Smooth | |
1363 | Blobby.BottomSurface = Enum.SurfaceType.Smooth | |
1364 | ||
1365 | local Weld = Instance.new("Weld", Blobby) | |
1366 | Weld.Part0 = ra | |
1367 | Weld.Part1 = Blobby | |
1368 | Weld.C1 = CFrame.new(0, 0.8, 0) | |
1369 | Weld.C0 = CFrame.Angles(Rad(-180),0,135) | |
1370 | ||
1371 | local M2 = Instance.new("SpecialMesh") | |
1372 | M2.Parent = Blobby | |
1373 | M2.MeshId = "rbxassetid://28140935" | |
1374 | M2.TextureId = "rbxassetid://26884682" | |
1375 | M2.Scale = Vector3.new(1, 0.8, 1) | |
1376 | ||
1377 | --[[local naeeym2 = Instance.new("BillboardGui",char) | |
1378 | naeeym2.AlwaysOnTop = true | |
1379 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1380 | naeeym2.StudsOffset = Vector3.new(0, 3.5, 0) | |
1381 | naeeym2.Adornee = hed | |
1382 | naeeym2.Name = "Name" | |
1383 | --naeeym2.PlayerToHideFrom = Player | |
1384 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1385 | tecks2.BackgroundTransparency = 1 | |
1386 | tecks2.TextScaled = true | |
1387 | tecks2.BorderSizePixel = 0 | |
1388 | tecks2.Text = "Fight Me" | |
1389 | tecks2.Font = Enum.Font.Bodoni | |
1390 | - | player = game.Players.LocalPlayer |
1390 | + | |
1391 | tecks2.TextStrokeTransparency = 0 | |
1392 | - | mouse = player:GetMouse() |
1392 | + | |
1393 | tecks2.TextStrokeColor3 = Color3.new(1, 1, 1) | |
1394 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1395 | tecks2.Parent = naeeym2]] | |
1396 | ---------------------------------------------------------------------------------- | |
1397 | local AddInstance = function(Object, ...) | |
1398 | local Obj = Instance.new(Object) | |
1399 | for i,v in next,(...) do | |
1400 | Obj[i] = v | |
1401 | end | |
1402 | return Obj | |
1403 | end | |
1404 | ---------------------------------------------------- | |
1405 | local Reaper = AddInstance("Part",{ | |
1406 | Parent = hed, | |
1407 | CFrame = hed.CFrame, | |
1408 | formFactor = "Symmetric", | |
1409 | Size = Vector3.new(1, 1, 1), | |
1410 | CanCollide = false, | |
1411 | TopSurface = "Smooth", | |
1412 | BottomSurface = "Smooth", | |
1413 | Locked = true, | |
1414 | }) | |
1415 | local Weld = AddInstance("Weld",{ | |
1416 | Parent = Reaper, | |
1417 | Part0 = hed, | |
1418 | C0 = CFrame.new(0, 0.8, 0.4)*CFrame.Angles(0, 0, 0), | |
1419 | Part1 = Reaper, | |
1420 | }) | |
1421 | local Mesh = AddInstance("SpecialMesh",{ | |
1422 | Parent = Reaper, | |
1423 | MeshId = "rbxassetid://193760002", | |
1424 | TextureId = "rbxassetid://89867215", | |
1425 | Scale = Vector3.new(1.1, 1.1, 1.1), | |
1426 | VertexColor = Vector3.new(0.5, 0.5, 0.5), | |
1427 | }) | |
1428 | ------------------------------------------------------- | |
1429 | wait(1) | |
1430 | plr = owner | |
1431 | char = plr.Character | |
1432 | ||
1433 | whitecolor = Color3.new(1,1,1) | |
1434 | epicmode = false | |
1435 | normal = true | |
1436 | for i,v in pairs(char:GetChildren()) do | |
1437 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then | |
1438 | v:Destroy() | |
1439 | end | |
1440 | end | |
1441 | local shirt = Instance.new("Shirt",char) | |
1442 | shirt.ShirtTemplate = "rbxassetid://2544612637" | |
1443 | local pants = Instance.new("Pants",char) | |
1444 | pants.PantsTemplate = "rbxassetid://2544611861" | |
1445 | local bdycolors = char["Body Colors"] | |
1446 | bdycolors.HeadColor3 = whitecolor | |
1447 | bdycolors.LeftArmColor3 = whitecolor | |
1448 | bdycolors.LeftLegColor3 = whitecolor | |
1449 | bdycolors.RightArmColor3 = whitecolor | |
1450 | bdycolors.RightLegColor3 = whitecolor | |
1451 | bdycolors.TorsoColor3 = whitecolor | |
1452 | for i,v in pairs(char:GetChildren()) do | |
1453 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
1454 | v:Destroy() | |
1455 | end | |
1456 | end | |
1457 | ||
1458 | ------------------------------------------------------- | |
1459 | --Start Attacks N Stuff-- | |
1460 | ------------------------------------------------------- | |
1461 | local naeeym2 = Instance.new("BillboardGui",char) | |
1462 | naeeym2.AlwaysOnTop = true | |
1463 | naeeym2.Size = UDim2.new(5,35,2,35) | |
1464 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1465 | naeeym2.Adornee = hed | |
1466 | naeeym2.Name = "Name" | |
1467 | ||
1468 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1469 | tecks2.BackgroundTransparency = 1 | |
1470 | tecks2.TextScaled = true | |
1471 | tecks2.BorderSizePixel = 0 | |
1472 | tecks2.Text = "J E V I L" | |
1473 | tecks2.Font = "Fantasy" | |
1474 | tecks2.TextSize = 50 | |
1475 | tecks2.TextStrokeTransparency = 0 | |
1476 | tecks2.TextColor3 = BrickColor.new('Really black').Color | |
1477 | tecks2.TextStrokeColor3 = BrickColor.new('Bright blue').Color | |
1478 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1479 | tecks2.Parent = naeeym2 | |
1480 | textfag = tecks2 | |
1481 | - | plr = game.Players.LocalPlayer |
1481 | + | |
1482 | BTAUNT:Play() | |
1483 | - | mouse = plr:GetMouse() |
1483 | + | |
1484 | while textfag ~= nil do | |
1485 | swait() | |
1486 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
1487 | textfag.Rotation = math.random(-3,3) | |
1488 | end | |
1489 | end)) | |
1490 | ||
1491 | function get_out() | |
1492 | BTAUNT:Stop() | |
1493 | attack = true | |
1494 | BTAUNT3:Remove() | |
1495 | BTAUNT3:Play() | |
1496 | repeat | |
1497 | hum.WalkSpeed = 10 | |
1498 | for i = 0,0.37,0.03 do | |
1499 | swait() | |
1500 | BTAUNT3.Parent = tors | |
1501 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1502 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1503 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
1504 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
1505 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1506 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1507 | end | |
1508 | for i = 0,0.37,0.03 do | |
1509 | swait() | |
1510 | BTAUNT3.Parent = tors | |
1511 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1512 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1513 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
1514 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
1515 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1516 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1517 | end | |
1518 | until BTAUNT3.Playing == false | |
1519 | BTAUNT3:Stop() | |
1520 | BTAUNT3:Play() | |
1521 | BTAUNT3:Remove() | |
1522 | BTAUNT:Play() | |
1523 | attack = false | |
1524 | hum.WalkSpeed = 20 | |
1525 | BTAUNT:Play() | |
1526 | end | |
1527 | function Taunt2() | |
1528 | attack = true | |
1529 | hum.WalkSpeed = 0 | |
1530 | CFuncs.Sound.Create("rbxassetid://2545008459", head, 100, 1) | |
1531 | for i = 0, 2, 0.1 do | |
1532 | swait() | |
1533 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
1534 | neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1535 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1536 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1537 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
1538 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
1539 | end | |
1540 | for i = 0, 6, 0.1 do | |
1541 | swait() | |
1542 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, .2 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
1543 | neck.C0 = clerp(neck.C0, necko * CF(0, 0, 2) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.15) | |
1544 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1545 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1546 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
1547 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
1548 | end | |
1549 | for i = 0, 2, 0.1 do | |
1550 | swait() | |
1551 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
1552 | neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1553 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1554 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1555 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
1556 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
1557 | end | |
1558 | attack = false | |
1559 | hum.WalkSpeed = 20 | |
1560 | end | |
1561 | function icando() | |
1562 | print('>:3') | |
1563 | attack = true | |
1564 | hum.WalkSpeed = 0 | |
1565 | TEST:Remove() | |
1566 | TEST:Play() | |
1567 | repeat | |
1568 | for i = 0,4,0.1 do | |
1569 | swait() | |
1570 | TEST.Parent = tors | |
1571 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(20)), 0.15) | |
1572 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-20)), 0.3) | |
1573 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
1574 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
1575 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-76)), 0.1) | |
1576 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(56)), 0.1) | |
1577 | end | |
1578 | until TEST.Playing == false | |
1579 | TEST:Stop() | |
1580 | TEST:Play() | |
1581 | TEST:Remove() | |
1582 | print('I CAN DO ANYTHING') | |
1583 | attack = false | |
1584 | hum.WalkSpeed = 20 | |
1585 | end | |
1586 | function Blood_ball() | |
1587 | local orb = Instance.new("Part", char) | |
1588 | orb.Anchored = true | |
1589 | orb.BrickColor = BrickC("Royal Purple") | |
1590 | orb.CanCollide = false | |
1591 | orb.FormFactor = 3 | |
1592 | orb.Name = "Ring" | |
1593 | orb.Material = "Neon" | |
1594 | orb.Size = Vector3.new(1, 1, 1) | |
1595 | orb.Transparency = 0 | |
1596 | orb.TopSurface = 0 | |
1597 | orb.BottomSurface = 0 | |
1598 | local orbm = Instance.new("SpecialMesh", orb) | |
1599 | orbm.MeshType = "Sphere" | |
1600 | orbm.Name = "SizeMesh" | |
1601 | orbm.Scale = Vector3.new(0, 0, 0) | |
1602 | local scaled = 0.1 | |
1603 | local posid = 0 | |
1604 | for i = 0, 109, 0.1 do | |
1605 | swait() | |
1606 | scaled = scaled + 0.001 | |
1607 | posid = posid - scaled | |
1608 | orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0) | |
1609 | orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled) | |
1610 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1611 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1612 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
1613 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
1614 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
1615 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
1616 | end | |
1617 | coroutine.resume(coroutine.create(function() | |
1618 | orb.Anchored = false | |
1619 | --CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1) | |
1620 | mes("CALAMITY ORB COMING IN EVERYTHING WILL BE DESTROYED",0.05) | |
1621 | local a = Instance.new("Part", workspace) | |
1622 | a.Name = "Direction" | |
1623 | a.Anchored = true | |
1624 | a.BrickColor = BrickC("Crimson") | |
1625 | a.Material = "Neon" | |
1626 | a.Transparency = 1 | |
1627 | a.CanCollide = false | |
1628 | local ray = Ray.new(orb.CFrame.p, (root.CFrame.lookVector - orb.CFrame.p).unit * 500) | |
1629 | local ignore = orb | |
1630 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1631 | a.BottomSurface = 10 | |
1632 | a.TopSurface = 10 | |
1633 | local distance = (orb.CFrame.p - position).magnitude | |
1634 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
1635 | a.CFrame = CF(orb.CFrame.p, position) * CF(0, 0, 0) | |
1636 | orb.CFrame = a.CFrame | |
1637 | a:Destroy() | |
1638 | local bv = Instance.new("BodyVelocity") | |
1639 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1640 | bv.velocity = orb.CFrame.lookVector * 125 | |
1641 | bv.Parent = orb | |
1642 | local hitted = false | |
1643 | game:GetService("Debris"):AddItem(orb, 15) | |
1644 | wait() | |
1645 | local hit = orb.Touched:connect(function(hit) | |
1646 | if hitted == false then | |
1647 | hitted = true | |
1648 | coroutine.resume(coroutine.create(function() | |
1649 | for i = 0,1.8,0.1 do | |
1650 | swait() | |
1651 | hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1)) | |
1652 | end | |
1653 | for i = 0,1.8,0.1 do | |
1654 | swait() | |
1655 | hum.CameraOffset = Vector3.new(0,0,0) | |
1656 | end | |
1657 | end)) | |
1658 | CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1) | |
1659 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 50000)) do | |
1660 | if v:FindFirstChild("Head") then | |
1661 | Eviscerate(v) | |
1662 | end | |
1663 | end | |
1664 | Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Royal Purple"), "Sphere") | |
1665 | Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("Royal Purple"), "Sphere") | |
1666 | for i = 0, 9 do | |
1667 | --Aura(1, 2.5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere") | |
1668 | --Aura(2, 5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere") | |
1669 | end | |
1670 | orb.Anchored = true | |
1671 | orb.Transparency = 1 | |
1672 | wait(8) | |
1673 | orb:Destroy() | |
1674 | end | |
1675 | end) | |
1676 | end)) | |
1677 | for i = 0, 2, 0.1 do | |
1678 | swait() | |
1679 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1680 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1681 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
1682 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
1683 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
1684 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
1685 | end | |
1686 | attack = false | |
1687 | end | |
1688 | function Blood_ball() | |
1689 | attack = true | |
1690 | local orb = Instance.new("Part", char) | |
1691 | orb.Anchored = true | |
1692 | orb.BrickColor = BrickC("Royal Purple") | |
1693 | orb.CanCollide = false | |
1694 | orb.FormFactor = 3 | |
1695 | orb.Name = "Ring" | |
1696 | orb.Material = "Neon" | |
1697 | orb.Size = Vector3.new(1, 1, 1) | |
1698 | orb.Transparency = 0 | |
1699 | orb.TopSurface = 0 | |
1700 | orb.BottomSurface = 0 | |
1701 | local orbm = Instance.new("SpecialMesh", orb) | |
1702 | orbm.MeshType = "Sphere" | |
1703 | orbm.Name = "SizeMesh" | |
1704 | orbm.Scale = Vector3.new(0, 0, 0) | |
1705 | local scaled = 0.1 | |
1706 | local posid = 0 | |
1707 | for i = 0, 12, 0.1 do | |
1708 | swait() | |
1709 | scaled = scaled + 0.001 | |
1710 | posid = posid - scaled | |
1711 | orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0) | |
1712 | orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled) | |
1713 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1714 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1715 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
1716 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
1717 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(0), Rad(15 + 2.5 * Sin(sine / 20))), 0.12) | |
1718 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
1719 | end | |
1720 | coroutine.resume(coroutine.create(function() | |
1721 | orb.Anchored = false | |
1722 | local a = Instance.new("Part", workspace) | |
1723 | a.Name = "Direction" | |
1724 | a.Anchored = true | |
1725 | a.BrickColor = BrickC("Royal purple") | |
1726 | a.Material = "Neon" | |
1727 | a.Transparency = 1 | |
1728 | a.CanCollide = false | |
1729 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500) | |
1730 | local ignore = orb | |
1731 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1732 | a.BottomSurface = 10 | |
1733 | a.TopSurface = 10 | |
1734 | local distance = (orb.CFrame.p - position).magnitude | |
1735 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
1736 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
1737 | orb.CFrame = a.CFrame | |
1738 | a:Destroy() | |
1739 | local bv = Instance.new("BodyVelocity") | |
1740 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1741 | bv.velocity = orb.CFrame.lookVector * 125 | |
1742 | bv.Parent = orb | |
1743 | local hitted = false | |
1744 | game:GetService("Debris"):AddItem(orb, 15) | |
1745 | swait() | |
1746 | local hit = orb.Touched:connect(function(hit) | |
1747 | if hitted == false then | |
1748 | hitted = true | |
1749 | CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1) | |
1750 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 25)) do | |
1751 | if v:FindFirstChild("Head") then | |
1752 | Eviscerate(v) | |
1753 | end | |
1754 | end | |
1755 | Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Royal Purple"), "Sphere") | |
1756 | Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("Royal Purple"), "Sphere") | |
1757 | for i = 0, 9 do | |
1758 | Aura(1, 2.5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickC("Royal Purple"), 0, "Sphere") | |
1759 | Aura(2, 5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickC("Royal Purple"), 0, "Sphere") | |
1760 | end | |
1761 | orb.Anchored = true | |
1762 | orb.Transparency = 1 | |
1763 | wait(8) | |
1764 | orb:Destroy() | |
1765 | end | |
1766 | end) | |
1767 | end)) | |
1768 | for i = 0, 1, 0.1 do | |
1769 | swait() | |
1770 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(6), Rad(0), Rad(30)), 0.3) | |
1771 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(Mrandom(-15, 15)), Rad(-30)), 0.3) | |
1772 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(6)), 0.3) | |
1773 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-6)), 0.3) | |
1774 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(Mrandom(-15, 15)), Rad(5 - 4.5 * Sin(sine / 20))), 0.3) | |
1775 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(6), Rad(Mrandom(-15, 15)), Rad(-5 + 4.5 * Sin(sine / 20))), 0.3) | |
1776 | end | |
1777 | attack = false | |
1778 | end | |
1779 | function blast() | |
1780 | attack = true | |
1781 | hum.WalkSpeed = 0 | |
1782 | for i = 0,1.2,0.1 do | |
1783 | swait() | |
1784 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15) | |
1785 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1786 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15) | |
1787 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15) | |
1788 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1) | |
1789 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.1) | |
1790 | end | |
1791 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
1792 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
1793 | Effects.Sphere.Create(BrickColor.new("Royal Purple"), root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 15.1, 15.1, 15.1, 0.01) | |
1794 | Effects.Sphere.Create(maincolor, root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 11.1, 11.1, 11.1, 0.01) | |
1795 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Really blue"), "Sphere") | |
1796 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Royal Purple"), "Sphere") | |
1797 | Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01, BrickColor.new("Royal Purple"), "Sphere") | |
1798 | ||
1799 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do | |
1800 | if v:FindFirstChild("Head") then | |
1801 | Eviscerate(v) | |
1802 | end | |
1803 | end | |
1804 | ||
1805 | for i = 1,4.7,0.1 do | |
1806 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
1807 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
1808 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
1809 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
1810 | RW.C0 = clerp(RW.C0, CF(1.2, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-34)), 0.1) | |
1811 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.4 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(-15)), 0.1) | |
1812 | end | |
1813 | wait(.6) | |
1814 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
1815 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
1816 | Effects.Sphere.Create(BrickColor.new("Royal purple"), root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 15.1, 15.1, 15.1, 0.01) | |
1817 | Effects.Sphere.Create(maincolor, root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 11.1, 11.1, 11.1, 0.01) | |
1818 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Really blue"), "Sphere") | |
1819 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Bright blue"), "Sphere") | |
1820 | Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01,BrickColor.new("Royal Purple"), "Sphere") | |
1821 | ||
1822 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do | |
1823 | if v:FindFirstChild("Head") then | |
1824 | Eviscerate(v) | |
1825 | end | |
1826 | end | |
1827 | ||
1828 | for i = 1,4.7,0.1 do | |
1829 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
1830 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
1831 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
1832 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
1833 | RW.C0 = clerp(RW.C0, CF(1.2, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(15)), 0.1) | |
1834 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(34)), 0.1) | |
1835 | end | |
1836 | wait(.6) | |
1837 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
1838 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
1839 | Effects.Sphere.Create(BrickColor.new("Royal purple"), root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 15.1, 15.1, 15.1, 0.01) | |
1840 | Effects.Sphere.Create(maincolor, root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 11.1, 11.1, 11.1, 0.01) | |
1841 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Really blue"), "Sphere") | |
1842 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Royal purple"), "Sphere") | |
1843 | Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01, BrickColor.new("Royal purple"), "Sphere") | |
1844 | ||
1845 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do | |
1846 | if v:FindFirstChild("Head") then | |
1847 | Eviscerate(v) | |
1848 | end | |
1849 | end | |
1850 | ||
1851 | for i = 1,4.7,0.1 do | |
1852 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
1853 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
1854 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
1855 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
1856 | RW.C0 = clerp(RW.C0, CF(1.2, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-34)), 0.1) | |
1857 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.4 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(-15)), 0.1) | |
1858 | end | |
1859 | wait(.6) | |
1860 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
1861 | Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick") | |
1862 | Effects.Sphere.Create(BrickColor.new("Royal purple"), root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 15.1, 15.1, 15.1, 0.01) | |
1863 | Effects.Sphere.Create(maincolor, root.CFrame * CFrame.new(0,-2,0) , 85, 85, 85, 11.1, 11.1, 11.1, 0.01) | |
1864 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Really blue"), "Sphere") | |
1865 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Bright blue"), "Sphere") | |
1866 | Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01, BrickColor.new("Royal purple"), "Sphere") | |
1867 | ||
1868 | for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do | |
1869 | if v:FindFirstChild("Head") then | |
1870 | Eviscerate(v) | |
1871 | end | |
1872 | end | |
1873 | ||
1874 | for i = 1,4.7,0.1 do | |
1875 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15) | |
1876 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3) | |
1877 | RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15) | |
1878 | LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15) | |
1879 | RW.C0 = clerp(RW.C0, CF(1.2, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(15)), 0.1) | |
1880 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(34)), 0.1) | |
1881 | end | |
1882 | wait(.6) | |
1883 | attack = false | |
1884 | hum.WalkSpeed = 8 | |
1885 | end | |
1886 | function dejzrXD() | |
1887 | attack = true | |
1888 | hum.WalkSpeed = 20 | |
1889 | for i = 0, 4, 0.1 do | |
1890 | swait() | |
1891 | Cso("2545012765", char, 10, 1) | |
1892 | hum.CameraOffset = Vector3.new(0, -0.1 + 0.1 * Cos(sine / 20), 0) | |
1893 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(40)), 0.2) | |
1894 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2) | |
1895 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
1896 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
1897 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
1898 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
1899 | end | |
1900 | Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere") | |
1901 | Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere") | |
1902 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere") | |
1903 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere") | |
1904 | CameraEnshaking(4, 5) | |
1905 | for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do | |
1906 | if v:FindFirstChild("Head") then | |
1907 | Eviscerate(v) | |
1908 | end | |
1909 | end | |
1910 | for i = 0, 2, 0.1 do | |
1911 | swait() | |
1912 | hum.CameraOffset = Vector3.new(0, -0.2 + 0.1 * Cos(sine / 20), 0) | |
1913 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(40)), 0.2) | |
1914 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2) | |
1915 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
1916 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
1917 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
1918 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
1919 | end | |
1920 | attack = false | |
1921 | Speed = 20 | |
1922 | end | |
1923 | ||
1924 | function Attack() | |
1925 | attack = true | |
1926 | for i = 0, 2.6, 0.1 do | |
1927 | swait() | |
1928 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-60)), 0.2) | |
1929 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(60)), 0.2) | |
1930 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.2) | |
1931 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 0.2) | |
1932 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2) | |
1933 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.2) | |
1934 | end | |
1935 | Cso("2545012765", tors, 10, 1) | |
1936 | CameraEnshaking(2, 15) | |
1937 | Effects.Wave.Create(BrickColor.new("Royal purple"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
1938 | Effects.Wave.Create(BrickColor.new("Royal purple"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
1939 | Effects.Wave.Create(BrickColor.new("Royal purple"), tors.CFrame * CF(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
1940 | for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 9.5)) do | |
1941 | if v:FindFirstChild("Head") then | |
1942 | Eviscerate(v) | |
1943 | end | |
1944 | end | |
1945 | for i = 0, 3, 0.1 do | |
1946 | swait() | |
1947 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.3) | |
1948 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 7.5 * Sin(sine / 30)), Rad(0), Rad(15)), 0.3) | |
1949 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 0.3) | |
1950 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.3) | |
1951 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-25)), 0.3) | |
1952 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.3) | |
1953 | end | |
1954 | attack = false | |
1955 | end | |
1956 | function Orb_Strike() | |
1957 | attack = true | |
1958 | Cso("2545012765", char, 7, 0.8) | |
1959 | for i = 0, 9 do | |
1960 | Aura(1, 1.5, "Add", mouse.Hit * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 45, -0.05, maincolor, 0, "Sphere") | |
1961 | Aura(2, 1.5, "Add", mouse.Hit * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 45, -0.05, maincolor, 0, "Sphere") | |
1962 | end | |
1963 | Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere") | |
1964 | Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere") | |
1965 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere") | |
1966 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere") | |
1967 | for i, v in pairs(FindNearestHead(Mouse.Hit.p, 14.5)) do | |
1968 | if v:FindFirstChild("Head") then | |
1969 | Eviscerate(v) | |
1970 | end | |
1971 | end | |
1972 | attack = false | |
1973 | hum.WalkSpeed = 20 | |
1974 | end | |
1975 | ------------------------------------------------------- | |
1976 | --End Attacks N Stuff-- | |
1977 | ------------------------------------------------------- | |
1978 | mouse.KeyDown:connect(function(key) | |
1979 | if attack == false then | |
1980 | if key == 'e' then | |
1981 | icando() | |
1982 | elseif key == 'c' then | |
1983 | Blood_ball() | |
1984 | elseif key == "x" then | |
1985 | blast() | |
1986 | elseif key == "y" then | |
1987 | Taunt2() | |
1988 | elseif key == 'h' then | |
1989 | Orb_Strike() | |
1990 | elseif key == "z" then | |
1991 | dejzrXD() | |
1992 | end | |
1993 | end | |
1994 | end) | |
1995 | ||
1996 | mouse.Button1Down:connect(function(key) | |
1997 | if attack == false then | |
1998 | Attack() | |
1999 | end | |
2000 | end) | |
2001 | ||
2002 | ||
2003 | ||
2004 | ------------------------------------------------------- | |
2005 | --Start Animations-- | |
2006 | ------------------------------------------------------- | |
2007 | print("By Makhail07") | |
2008 | while true do | |
2009 | swait() | |
2010 | sine = sine + change | |
2011 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
2012 | local velderp = root.Velocity.y | |
2013 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
2014 | if equipped == true or equipped == false then | |
2015 | if attack == false then | |
2016 | idle = idle + 1 | |
2017 | else | |
2018 | idle = 0 | |
2019 | end | |
2020 | if 1 < root.Velocity.y and hitfloor == nil then | |
2021 | Anim = "Jump" | |
2022 | if attack == false then | |
2023 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15) | |
2024 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
2025 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2026 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
2027 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1) | |
2028 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1) | |
2029 | end | |
2030 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
2031 | Anim = "Fall" | |
2032 | if attack == false then | |
2033 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15) | |
2034 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
2035 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
2036 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15) | |
2037 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1) | |
2038 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1) | |
2039 | end | |
2040 | elseif torvel < 1 and hitfloor ~= nil then | |
2041 | Anim = "Idle" | |
2042 | change = 1 | |
2043 | if attack == false then | |
2044 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
2045 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
2046 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
2047 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
2048 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(5 - 2.5 * Sin(sine / 20))), 0.1) | |
2049 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
2050 | end | |
2051 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
2052 | Anim = "Walk" | |
2053 | change = 1 | |
2054 | if attack == false then | |
2055 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(3 * Cos(sine / 7))), 0.15) | |
2056 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
2057 | RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2058 | LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2059 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(5 - 2.5 * Sin(sine / 20))), 0.1) | |
2060 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
2061 | end | |
2062 | elseif torvel >= 25 and hitfloor ~= nil then | |
2063 | Anim = "Sprint" | |
2064 | change = 1.35 | |
2065 | if attack == false then | |
2066 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15) | |
2067 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
2068 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2069 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2070 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15) | |
2071 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15) | |
2072 | end | |
2073 | end | |
2074 | end | |
2075 | if 0 < #Effects then | |
2076 | for e = 1, #Effects do | |
2077 | if Effects[e] ~= nil then | |
2078 | local Thing = Effects[e] | |
2079 | if Thing ~= nil then | |
2080 | local Part = Thing[1] | |
2081 | local Mode = Thing[2] | |
2082 | local Delay = Thing[3] | |
2083 | local IncX = Thing[4] | |
2084 | local IncY = Thing[5] | |
2085 | local IncZ = Thing[6] | |
2086 | if 1 >= Thing[1].Transparency then | |
2087 | if Thing[2] == "Block1" then | |
2088 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2089 | local Mesh = Thing[1].Mesh | |
2090 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2091 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2092 | elseif Thing[2] == "Block2" then | |
2093 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
2094 | local Mesh = Thing[7] | |
2095 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2096 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2097 | elseif Thing[2] == "Block3" then | |
2098 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0) | |
2099 | local Mesh = Thing[7] | |
2100 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2101 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2102 | elseif Thing[2] == "Cylinder" then | |
2103 | local Mesh = Thing[1].Mesh | |
2104 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2105 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2106 | elseif Thing[2] == "Blood" then | |
2107 | local Mesh = Thing[7] | |
2108 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
2109 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2110 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2111 | elseif Thing[2] == "Elec" then | |
2112 | local Mesh = Thing[1].Mesh | |
2113 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
2114 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2115 | elseif Thing[2] == "Disappear" then | |
2116 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2117 | elseif Thing[2] == "Shatter" then | |
2118 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2119 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
2120 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
2121 | Thing[6] = Thing[6] + Thing[5] | |
2122 | end | |
2123 | else | |
2124 | Part.Parent = nil | |
2125 | table.remove(Effects, e) | |
2126 | end | |
2127 | end | |
2128 | end | |
2129 | end | |
2130 | end | |
2131 | end | |
2132 | ------------------------------------------------------- | |
2133 | --End Animations And Script-- | |
2134 | ------------------------------------------------------- |