SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | do | |
4 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
5 | script.Parent = Player.Character | |
6 | ||
7 | --RemoteEvent for communicating | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | if plr~=Player then return end | |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | m.Hit = io.Hit | |
42 | else | |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | end | |
57 | end) | |
58 | Event.Parent = NLS([==[ | |
59 | local Player = game:GetService("Players").LocalPlayer | |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | local Mouse = Player:GetMouse() | |
72 | local h,t | |
73 | --Give the server mouse data 30 times every second, but only if the values changed | |
74 | --If player is not moving their mouse, client won't fire events | |
75 | while wait(1/30) do | |
76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
77 | h,t=Mouse.Hit,Mouse.Target | |
78 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
79 | end | |
80 | end]==],Player.Character) | |
81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
82 | end | |
83 | ||
84 | wait(0.2) | |
85 | print("Hey!!!") | |
86 | print("You Pervert!!!") | |
87 | local hoh = owner | |
88 | local char = hoh.Character | |
89 | local Head = char.Head | |
90 | local LeftArm = char["Left Arm"] | |
91 | local RightArm = char["Right Arm"] | |
92 | local LeftLeg = char["Left Leg"] | |
93 | local RightLeg = char["Right Leg"] | |
94 | local cam = game.Workspace.CurrentCamera | |
95 | local RootPart = char.HumanoidRootPart | |
96 | local RootJoint = RootPart.RootJoint | |
97 | local Anim = "Idle" | |
98 | local idle = 0 | |
99 | local Effects = {} | |
100 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
101 | vt = Vector3.new | |
102 | local cf = CFrame.new | |
103 | local mr = math.rad | |
104 | local angles = CFrame.Angles | |
105 | local ud = UDim2.new | |
106 | local c3 = Color3.new | |
107 | local velocity = RootPart.Velocity.y | |
108 | local sine = 0 | |
109 | local change = 1 | |
110 | local grabbed = false | |
111 | local cn = CFrame.new | |
112 | local mr = math.rad | |
113 | local angles = CFrame.Angles | |
114 | local ud = UDim2.new | |
115 | local c3 = Color3.new | |
116 | local d = Instance.new('Model', char) | |
117 | d.Name = "KKK" | |
118 | attack = false | |
119 | nak = false | |
120 | disable = false | |
121 | attacktype = 1 | |
122 | equipped = false | |
123 | char.Humanoid.Animator.Parent = nil | |
124 | char.Animate.Parent = nil | |
125 | local newMotor = function(part0, part1, c0, c1) | |
126 | local w = Instance.new("Motor", part0) | |
127 | w.Part0 = part0 | |
128 | w.Part1 = part1 | |
129 | w.C0 = c0 | |
130 | w.C1 = c1 | |
131 | return w | |
132 | end | |
133 | clerp = function(a, b, t) | |
134 | ||
135 | return a:lerp(b, t) | |
136 | end | |
137 | ||
138 | for i,v in pairs(char:children()) do | |
139 | if v:IsA("Hat") then | |
140 | v:Destroy() | |
141 | end | |
142 | for i,v in pairs(char:children()) do | |
143 | if v:IsA("Accessory") then | |
144 | v:Destroy() | |
145 | end | |
146 | for i,v in pairs(char:children()) do | |
147 | if v:IsA("ShirtGraphic") then | |
148 | v:Destroy() | |
149 | end | |
150 | end | |
151 | end | |
152 | end | |
153 | ||
154 | ypcall(function() | |
155 | char.Torso.roblox:Remove() | |
156 | char.Shirt:Destroy() | |
157 | char.Pants:Destroy() | |
158 | char.Head.face:Destroy() | |
159 | shirt = Instance.new("Shirt", char) | |
160 | shirt.Name = "Shirt" | |
161 | Pants = Instance.new("Pants", char) | |
162 | Pants.Name = "Pants" | |
163 | face = Instance.new("Decal", char.Head) | |
164 | face.Name = "face" | |
165 | char.Shirt.ShirtTemplate = "rbxassetid://251988595" | |
166 | char.Pants.PantsTemplate = "rbxassetid://324421595" | |
167 | char.Head.face.Texture = "rbxassetid://648887959" | |
168 | end) | |
169 | function CreateSound(id, par, vol, pit) | |
170 | coroutine.resume(coroutine.create(function() | |
171 | local sou = Instance.new("Sound", par or workspace) | |
172 | sou.Volume = vol | |
173 | sou.Pitch = pit or 1 | |
174 | sou.SoundId = id | |
175 | wait() | |
176 | sou:play() | |
177 | game:GetService("Debris"):AddItem(sou, 6) | |
178 | end)) | |
179 | end | |
180 | New = function(Object, Parent, Name, Data) | |
181 | local Object = Instance.new(Object) | |
182 | for Index, Value in pairs(Data or {}) do | |
183 | Object[Index] = Value | |
184 | end | |
185 | Object.Parent = Parent | |
186 | Object.Name = Name | |
187 | return Object | |
188 | end | |
189 | ||
190 | ||
191 | local co1 = 5 | |
192 | local co2 = 8 | |
193 | local co3 = 10 | |
194 | local co4 = 25 | |
195 | local cooldown1 = 0 | |
196 | local cooldown2 = 0 | |
197 | local cooldown3 = 0 | |
198 | local cooldown4 = 0 | |
199 | local skillcolorscheme = BrickColor.new("Navy blue").Color | |
200 | local scrn = Instance.new("ScreenGui", hoh.PlayerGui) | |
201 | makeframe = function(par, trans, pos, size, color) | |
202 | ||
203 | local frame = Instance.new("Frame", par) | |
204 | frame.BackgroundTransparency = trans | |
205 | frame.BorderSizePixel = 0 | |
206 | frame.Position = pos | |
207 | frame.Size = size | |
208 | frame.BackgroundColor3 = color | |
209 | return frame | |
210 | end | |
211 | ||
212 | makelabel = function(par, text) | |
213 | ||
214 | local label = Instance.new("TextLabel", par) | |
215 | label.BackgroundTransparency = 1 | |
216 | label.Size = UDim2.new(1, 0, 1, 0) | |
217 | label.Position = UDim2.new(0, 0, 0, 0) | |
218 | label.TextColor3 = Color3.new(255, 255, 0) | |
219 | label.TextStrokeTransparency = 0 | |
220 | label.FontSize = Enum.FontSize.Size32 | |
221 | label.Font = Enum.Font.SourceSansLight | |
222 | label.BorderSizePixel = 0 | |
223 | label.TextScaled = true | |
224 | label.Text = text | |
225 | end | |
226 | ||
227 | framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.85, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) | |
228 | framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.74, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) | |
229 | framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.63, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) | |
230 | framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.52, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) | |
231 | bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) | |
232 | bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) | |
233 | bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) | |
234 | bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) | |
235 | text1 = Instance.new("TextLabel", framesk1) | |
236 | text1.BackgroundTransparency = 1 | |
237 | text1.Size = UDim2.new(1, 0, 1, 0) | |
238 | text1.Position = UDim2.new(0, 0, 0, 0) | |
239 | text1.TextColor3 = Color3.new(255, 255, 0) | |
240 | text1.TextStrokeTransparency = 0 | |
241 | text1.FontSize = Enum.FontSize.Size18 | |
242 | text1.Font = Enum.Font.SourceSansLight | |
243 | text1.BorderSizePixel = 0 | |
244 | text1.TextScaled = true | |
245 | text1.Text = "[Z]\n honk" | |
246 | text2 = Instance.new("TextLabel", framesk2) | |
247 | text2.BackgroundTransparency = 1 | |
248 | text2.Size = UDim2.new(1, 0, 1, 0) | |
249 | text2.Position = UDim2.new(0, 0, 0, 0) | |
250 | text2.TextColor3 = Color3.new(255, 255, 0) | |
251 | text2.TextStrokeTransparency = 0 | |
252 | text2.FontSize = Enum.FontSize.Size18 | |
253 | text2.Font = Enum.Font.SourceSansLight | |
254 | text2.BorderSizePixel = 0 | |
255 | text2.TextScaled = true | |
256 | text2.Text = "[X]\n idk" | |
257 | text3 = Instance.new("TextLabel", framesk3) | |
258 | text3.BackgroundTransparency = 1 | |
259 | text3.Size = UDim2.new(1, 0, 1, 0) | |
260 | text3.Position = UDim2.new(0, 0, 0, 0) | |
261 | text3.TextColor3 = Color3.new(255, 255, 0) | |
262 | text3.TextStrokeTransparency = 0 | |
263 | text3.FontSize = Enum.FontSize.Size18 | |
264 | text3.Font = Enum.Font.SourceSansLight | |
265 | text3.BorderSizePixel = 0 | |
266 | text3.TextScaled = false | |
267 | text3.Text = "[C]\n aaaaa" | |
268 | text4 = Instance.new("TextLabel", framesk4) | |
269 | text4.BackgroundTransparency = 1 | |
270 | text4.Size = UDim2.new(1, 0, 1, 0) | |
271 | text4.Position = UDim2.new(0, 0, 0, 0) | |
272 | text4.TextColor3 = Color3.new(255, 255, 0) | |
273 | text4.TextStrokeTransparency = 0 | |
274 | text4.FontSize = Enum.FontSize.Size18 | |
275 | text4.Font = Enum.Font.SourceSansLight | |
276 | text4.BorderSizePixel = 0 | |
277 | text4.TextScaled = true | |
278 | text4.Text = "[V]\n kil me" | |
279 | ||
280 | ArtificialHB = Instance.new("BindableEvent", hoh.PlayerGui) | |
281 | ArtificialHB.Name = "Heartbeat" | |
282 | hoh.PlayerGui:WaitForChild("Heartbeat") | |
283 | frame = 0.033333333333333 | |
284 | tf = 0 | |
285 | allowframeloss = false | |
286 | tossremainder = false | |
287 | lastframe = tick() | |
288 | hoh.PlayerGui.Heartbeat:Fire() | |
289 | local gg = false | |
290 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
291 | ||
292 | if hoh.PlayerGui:FindFirstChild("Heartbeat") == nil then | |
293 | gg = true | |
294 | end | |
295 | if gg == true then | |
296 | return | |
297 | end | |
298 | tf = tf + s | |
299 | if frame <= tf then | |
300 | if allowframeloss then | |
301 | hoh.PlayerGui.Heartbeat:Fire() | |
302 | lastframe = tick() | |
303 | else | |
304 | for i = 1, math.floor(tf / frame) do | |
305 | hoh.PlayerGui.Heartbeat:Fire() | |
306 | end | |
307 | lastframe = tick() | |
308 | end | |
309 | if tossremainder then | |
310 | tf = 0 | |
311 | else | |
312 | tf = tf - frame * math.floor(tf / frame) | |
313 | end | |
314 | end | |
315 | end | |
316 | ) | |
317 | swait = function(num) | |
318 | ||
319 | if num == 0 or num == nil then | |
320 | ArtificialHB.Event:wait() | |
321 | else | |
322 | for i = 0, num do | |
323 | ArtificialHB.Event:wait() | |
324 | end | |
325 | end | |
326 | end | |
327 | local RbxUtility = LoadLibrary("RbxUtility") | |
328 | local Create = RbxUtility.Create | |
329 | RemoveOutlines = function(part) | |
330 | ||
331 | part.TopSurface = 10 | |
332 | end | |
333 | CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
334 | ||
335 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
336 | RemoveOutlines(Part) | |
337 | return Part | |
338 | end | |
339 | ||
340 | CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
341 | ||
342 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
343 | if Mesh == "SpecialMesh" then | |
344 | Msh.MeshType = MeshType | |
345 | Msh.MeshId = MeshId | |
346 | end | |
347 | return Msh | |
348 | end | |
349 | ||
350 | CreateWeld = function(Parent, Part0, Part1, C0, C1) | |
351 | ||
352 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
353 | return Weld | |
354 | end | |
355 | ||
356 | CFuncs = { | |
357 | Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
358 | ||
359 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
360 | RemoveOutlines(Part) | |
361 | return Part | |
362 | end | |
363 | } | |
364 | , | |
365 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
366 | ||
367 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
368 | if Mesh == "SpecialMesh" then | |
369 | Msh.MeshType = MeshType | |
370 | Msh.MeshId = MeshId | |
371 | end | |
372 | return Msh | |
373 | end | |
374 | } | |
375 | , | |
376 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
377 | ||
378 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
379 | if Mesh == "SpecialMesh" then | |
380 | Msh.MeshType = MeshType | |
381 | Msh.MeshId = MeshId | |
382 | end | |
383 | return Msh | |
384 | end | |
385 | } | |
386 | , | |
387 | Weld = {Create = function(Parent, Part0, Part1, C0, C1) | |
388 | ||
389 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
390 | return Weld | |
391 | end | |
392 | } | |
393 | , | |
394 | Sound = {Create = function(id, par, vol, pit) | |
395 | ||
396 | coroutine.resume(coroutine.create(function() | |
397 | ||
398 | local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace}) | |
399 | wait() | |
400 | S:play() | |
401 | game:GetService("Debris"):AddItem(S, 6) | |
402 | end | |
403 | )) | |
404 | end | |
405 | } | |
406 | , | |
407 | ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
408 | ||
409 | local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread}) | |
410 | return fp | |
411 | end | |
412 | } | |
413 | } | |
414 | ||
415 | ||
416 | ||
417 | rayCast = function(Position, Direction, Range, Ignore) | |
418 | ||
419 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
420 | end | |
421 | ||
422 | local GetNearest = function(obj, distance) | |
423 | ||
424 | local last, lastx = distance + 1, nil | |
425 | for i,v in pairs(workspace:GetChildren()) do | |
426 | if v:IsA("Model") and v ~= char and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then | |
427 | local t = v.Torso | |
428 | local dist = (t.Position - obj.Position).magnitude | |
429 | if dist <= distance and dist < last then | |
430 | last = dist | |
431 | lastx = v | |
432 | end | |
433 | end | |
434 | end | |
435 | return lastx | |
436 | end | |
437 | ||
438 | ||
439 | --[[armweld = Instance.new("Weld", char.Torso) | |
440 | armweld.C0 = CFrame.new(1.5, .5, 0) | |
441 | armweld.C1 = CFrame.new(0, .5, 0) | |
442 | armweld.Part0 = char.Torso | |
443 | armweld.Part1 = char["Right Arm"]] | |
444 | ||
445 | local Fhead = Instance.new("Part", char) | |
446 | Fhead.Name = "a" | |
447 | Fhead.Size = Vector3.new(2, 1, 1) | |
448 | Fhead.Transparency = 1 | |
449 | Fhead.CanCollide = false | |
450 | M = Instance.new("SpecialMesh", Fhead) | |
451 | M.Scale = Vector3.new(1.26,1.26,1.26) | |
452 | Das = Instance.new("Decal", Fhead) | |
453 | Das.Texture = "rbxassetid://660774132" | |
454 | Das.Transparency = 1 | |
455 | ||
456 | ||
457 | local har1 = Instance.new("Part", char.Head) | |
458 | har1.BrickColor = BrickColor.new("Brown") | |
459 | har1.Name = "Hair" | |
460 | har1.formFactor = 0 | |
461 | har1.Size = Vector3.new(0,-0.25,0) | |
462 | har1.BottomSurface = 0 | |
463 | har1.TopSurface = 0 | |
464 | har1.CanCollide = false | |
465 | Mesh = Instance.new("SpecialMesh",har1) | |
466 | Mesh.MeshId = "http://www.roblox.com/asset/?id=13070796" | |
467 | Mesh.TextureId = "http://www.roblox.com/asset/?id=13694600" | |
468 | Mesh.Scale=Vector3.new(1.01, .99, 1.01) | |
469 | local bWeld = Instance.new("Weld", char.Head) | |
470 | bWeld.Part0 = char.Head | |
471 | bWeld.Part1 = har1 | |
472 | bWeld.C1 = CFrame.new(0,.4,0) | |
473 | ||
474 | ||
475 | local main = Instance.new("Part", char.Torso) | |
476 | main.Size = Vector3.new(.1, .1, .1) | |
477 | main.BrickColor = BrickColor.new("White") | |
478 | main.TopSurface = "SmoothNoOutlines" | |
479 | main.Name = "asd" | |
480 | main.Transparency = 1 | |
481 | main.CanCollide = false | |
482 | ||
483 | local Handle = Instance.new("Part",d) | |
484 | Handle.Size = Vector3.new(0.3, 1.8, 3) | |
485 | Handle.Name = "Pan" | |
486 | Handle:BreakJoints() | |
487 | Handle.Anchored = false | |
488 | Handle.Transparency = 1 | |
489 | Handle.CanCollide = false | |
490 | Handle.Shape = "Block" | |
491 | Handle.TopSurface = "SmoothNoOutlines" | |
492 | Handle.BottomSurface = "SmoothNoOutlines" | |
493 | ddd = Instance.new("SpecialMesh",Handle) | |
494 | ddd.Scale=Vector3.new(2, 2, 2) | |
495 | ddd.MeshId = "http://www.roblox.com/asset/?id=11820238" | |
496 | ddd.TextureId = "http://www.roblox.com/asset/?id=11820143" | |
497 | local Hitbox = Instance.new("Part",d) | |
498 | Hitbox.Size = Vector3.new(0.3, 1.8, 3) | |
499 | Hitbox.Name = "Hitbox" | |
500 | Hitbox:BreakJoints() | |
501 | Hitbox.Anchored = false | |
502 | Hitbox.Transparency = 1 | |
503 | Hitbox.CanCollide = false | |
504 | Hitbox.Shape = "Block" | |
505 | Hitbox.TopSurface = "SmoothNoOutlines" | |
506 | Hitbox.BottomSurface = "SmoothNoOutlines" | |
507 | ddd = Instance.new("SpecialMesh",Handle) | |
508 | ddd.Scale=Vector3.new(2, 2, 2) | |
509 | ddd.MeshId = "http://www.roblox.com/asset/?id=11820238" | |
510 | ddd.TextureId = "http://www.roblox.com/asset/?id=11820143" | |
511 | local FakeHandle = Instance.new("Part",d) | |
512 | FakeHandle.Size = Vector3.new(0.3, 1.9, 3) | |
513 | FakeHandle.Name = "FakeHandle" | |
514 | FakeHandle:BreakJoints() | |
515 | FakeHandle.Anchored = false | |
516 | FakeHandle.Transparency = 1 | |
517 | FakeHandle.CanCollide = false | |
518 | FakeHandle.Shape = "Block" | |
519 | FakeHandle.TopSurface = "SmoothNoOutlines" | |
520 | FakeHandle.BottomSurface = "SmoothNoOutlines" | |
521 | ddd = Instance.new("SpecialMesh",FakeHandle) | |
522 | ddd.Scale=Vector3.new(2, 2, 2) | |
523 | ddd.MeshId = "http://www.roblox.com/asset/?id=11820238" | |
524 | ddd.TextureId = "http://www.roblox.com/asset/?id=11820143" | |
525 | ||
526 | ||
527 | ||
528 | local aWeld = Instance.new("Weld", char.Head) | |
529 | aWeld.Part0 = char.Head | |
530 | aWeld.Part1 = Fhead | |
531 | local aWeld = Instance.new("Weld", char.Torso) | |
532 | aWeld.Part0 = char.Torso | |
533 | aWeld.C1 = CFrame.new(0,1.2,.5) | |
534 | local aWeld = Instance.new("Weld", char.Torso) | |
535 | aWeld.Part0 = char.Torso | |
536 | aWeld.Part1 = A1 | |
537 | aWeld.C1 = CFrame.new(.5,-.5,.5) | |
538 | local aWeld = Instance.new("Weld", char.Torso) | |
539 | aWeld.Part0 = char.Torso | |
540 | aWeld.Part1 = A2 | |
541 | aWeld.C1 = CFrame.new(-.5,-.5,.5) | |
542 | local aWeld = Instance.new("Weld", char.Torso) | |
543 | aWeld.Part0 = char.Torso | |
544 | aWeld.Part1 = A3 | |
545 | aWeld.C1 = CFrame.new(0,-1,.5) | |
546 | local aWeld = Instance.new("Weld", char.Torso) | |
547 | aWeld.Part0 = char.Torso | |
548 | aWeld.Part1 = A4 | |
549 | aWeld.C1 = CFrame.new(.6,-1,0) | |
550 | local aWeld = Instance.new("Weld", char.Torso) | |
551 | aWeld.Part0 = char.Torso | |
552 | aWeld.Part1 = A5 | |
553 | aWeld.C1 = CFrame.new(-.6,-1,0) | |
554 | local aWeld = Instance.new("Weld", char.Torso) | |
555 | aWeld.Part0 = char.Torso | |
556 | aWeld.Part1 = A6 | |
557 | aWeld.C1 = CFrame.new(0,-1,-.42) | |
558 | local aWeld = Instance.new("Weld", char.Torso) | |
559 | aWeld.Part0 = char.Torso | |
560 | aWeld.Part1 = A7 | |
561 | aWeld.C1 = CFrame.new(0,.6,0) | |
562 | local aWeld = Instance.new("Weld", char.Torso) | |
563 | aWeld.Part0 = char.Torso | |
564 | aWeld.Part1 = A8 | |
565 | aWeld.C1 = CFrame.new(0,-1,-.55) | |
566 | local aWeld = Instance.new("Weld", char.Torso) | |
567 | aWeld.Part0 = char.Torso | |
568 | aWeld.Part1 = A9 | |
569 | aWeld.C1 = CFrame.new(0,.6,-.55) | |
570 | local aWeld = Instance.new("Weld", char.Torso) | |
571 | aWeld.Part0 = char.Torso | |
572 | aWeld.Part1 = da | |
573 | aWeld.C1 = CFrame.new(0,.2,.5) | |
574 | local aWeld = Instance.new("Weld", char.Torso) | |
575 | aWeld.Part0 = char.Torso | |
576 | aWeld.Part1 = da1 | |
577 | aWeld.C1 = CFrame.new(0,.2,.5) | |
578 | ||
579 | Weld = Instance.new("Weld",Handle) | |
580 | Weld.Part0 = Weld.Parent | |
581 | Weld.Part1 = FakeHandle | |
582 | Weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,-math.rad(0)) | |
583 | Weld = Instance.new("Weld",Hitbox) | |
584 | Weld.Part0 = Weld.Parent | |
585 | Weld.Part1 = FakeHandle | |
586 | Weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,-math.rad(0)) | |
587 | FakeHandleWeld = Instance.new("Weld",FakeHandle) | |
588 | FakeHandleWeld.Part0 = FakeHandle | |
589 | FakeHandleWeld.Part1 = char["Right Arm"] | |
590 | FakeHandleWeld.C0 = CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)) | |
591 | ||
592 | ||
593 | local manWeld = Instance.new("Weld", char.Torso) | |
594 | manWeld.Part0 = char.Torso | |
595 | manWeld.Part1 = main | |
596 | manWeld.C1 = CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90),math.rad(40),-math.rad(90)) | |
597 | manWeld.C0 = CFrame.new(0,-0.4,0)--*CFrame.Angles(math.rad(90),0,0) | |
598 | ||
599 | local cWeld = Instance.new("Weld", char.Torso) | |
600 | cWeld.Part0 = main | |
601 | --cWeld.C1 = CFrame.new(0,0,0)*CFrame.angles(0,0,0) | |
602 | ----- | |
603 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
604 | NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
605 | local RW = newMotor(char.Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
606 | local LW = newMotor(char.Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
607 | local RH = newMotor(char.Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0)) | |
608 | local LH = newMotor(char.Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0)) | |
609 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
610 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
611 | char.Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
612 | char.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
613 | local rarmc1 = RW.C1 | |
614 | local larmc1 = LW.C1 | |
615 | local rlegc1 = RH.C1 | |
616 | local llegc1 = LH.C1 | |
617 | local resetc1 = false | |
618 | PlayAnimationFromTable = function(table, speed, bool) | |
619 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
620 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, table[2], speed) | |
621 | RW.C0 = clerp(RW.C0, table[3], speed) | |
622 | LW.C0 = clerp(LW.C0, table[4], speed) | |
623 | RH.C0 = clerp(RH.C0, table[5], speed) | |
624 | LH.C0 = clerp(LH.C0, table[6], speed) | |
625 | if bool == true and resetc1 == false then | |
626 | resetc1 = true | |
627 | RootJoint.C1 = RootJoint.C1 | |
628 | char.Torso.Neck.C1 = char.Torso.Neck.C1 | |
629 | RW.C1 = rarmc1 | |
630 | LW.C1 = larmc1 | |
631 | RH.C1 = rlegc1 | |
632 | LH.C1 = llegc1 | |
633 | end | |
634 | end | |
635 | ||
636 | -- | |
637 | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
638 | ||
639 | if hit.Parent == nil then | |
640 | return | |
641 | end | |
642 | local h = hit.Parent:FindFirstChild("Humanoid") | |
643 | for _,v in pairs(hit.Parent:children()) do | |
644 | if v:IsA("Humanoid") then | |
645 | h = v | |
646 | end | |
647 | end | |
648 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
649 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
650 | return | |
651 | end | |
652 | local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h}) | |
653 | game:GetService("Debris"):AddItem(c, 0.5) | |
654 | if HitSound ~= nil and HitPitch ~= nil then | |
655 | CreateSound(HitSound, hit, 1, HitPitch) | |
656 | end | |
657 | local Damage = math.random(minim, maxim) | |
658 | local blocked = false | |
659 | local block = hit.Parent:findFirstChild("Block") | |
660 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
661 | blocked = true | |
662 | block.Value = block.Value - 1 | |
663 | print(block.Value) | |
664 | end | |
665 | if blocked == false then | |
666 | h.Health = h.Health - Damage | |
667 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
668 | else | |
669 | h.Health = h.Health - Damage / 2 | |
670 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
671 | end | |
672 | if Type == "Knockdown" then | |
673 | local hum = hit.Parent.Humanoid | |
674 | hum.PlatformStand = true | |
675 | coroutine.resume(coroutine.create(function(HHumanoid) | |
676 | ||
677 | swait(1) | |
678 | HHumanoid.PlatformStand = false | |
679 | end | |
680 | ), hum) | |
681 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
682 | local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
683 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit}) | |
684 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
685 | game:GetService("Debris"):AddItem(rl, 0.5) | |
686 | elseif Type == "Normal" then | |
687 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05}) | |
688 | if knockback > 0 then | |
689 | vp.Parent = hit.Parent.Torso | |
690 | end | |
691 | game:GetService("Debris"):AddItem(vp, 0.5) | |
692 | elseif Type == "Up" then | |
693 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
694 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
695 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
696 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
697 | elseif Type == "Snare" then | |
698 | local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
699 | game:GetService("Debris"):AddItem(bp, 1) | |
700 | elseif Type == "Freeze" then | |
701 | local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
702 | local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame}) | |
703 | hit.Parent.Torso.Anchored = true | |
704 | coroutine.resume(coroutine.create(function(Part) | |
705 | ||
706 | swait(1.5) | |
707 | Part.Anchored = false | |
708 | end | |
709 | ), hit.Parent.Torso) | |
710 | game:GetService("Debris"):AddItem(BodPos, 3) | |
711 | game:GetService("Debris"):AddItem(BodGy, 3) | |
712 | end | |
713 | local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true}) | |
714 | game:GetService("Debris"):AddItem(debounce, Delay) | |
715 | c = Instance.new("ObjectValue") | |
716 | c.Name = "creator" | |
717 | c.Value = hoh | |
718 | c.Parent = h | |
719 | game:GetService("Debris"):AddItem(c, 0.5) | |
720 | end | |
721 | end | |
722 | ||
723 | ShowDamage = function(Pos, Text, Time, Color) | |
724 | ||
725 | local Rate = 0.033333333333333 | |
726 | if not Pos then | |
727 | local Pos = Vector3.new(0, 0, 0) | |
728 | end | |
729 | local Text = Text or "" | |
730 | local Time = Time or 2 | |
731 | if not Color then | |
732 | local Color = Color3.new(1, 1, 0) | |
733 | end | |
734 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
735 | EffectPart.Anchored = true | |
736 | local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart}) | |
737 | local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui}) | |
738 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
739 | EffectPart.Parent = game:GetService("Workspace") | |
740 | delay(0, function() | |
741 | ||
742 | local Frames = Time / Rate | |
743 | for Frame = 1, Frames do | |
744 | wait(Rate) | |
745 | local Percent = Frame / Frames | |
746 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
747 | TextLabel.TextTransparency = Percent | |
748 | end | |
749 | if EffectPart and EffectPart.Parent then | |
750 | EffectPart:Destroy() | |
751 | end | |
752 | end | |
753 | ) | |
754 | end | |
755 | ||
756 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type) | |
757 | ||
758 | for _,c in pairs(workspace:children()) do | |
759 | local hum = c:findFirstChild("Humanoid") | |
760 | if hum ~= nil then | |
761 | local head = c:findFirstChild("Torso") | |
762 | if head ~= nil then | |
763 | local targ = head.Position - Part.Position | |
764 | local mag = targ.magnitude | |
765 | if mag <= magni and c.Name ~= hoh.Name then | |
766 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1) | |
767 | end | |
768 | end | |
769 | end | |
770 | end | |
771 | end | |
772 | ||
773 | EffectModel = Instance.new("Model", char) | |
774 | EffectModel.Name = "Effects" | |
775 | Effects = { | |
776 | Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
777 | ||
778 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
779 | prt.Anchored = true | |
780 | prt.CFrame = cframe | |
781 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
782 | game:GetService("Debris"):AddItem(prt, 10) | |
783 | if Type == 1 or Type == nil then | |
784 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) | |
785 | else | |
786 | if Type == 2 then | |
787 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) | |
788 | end | |
789 | end | |
790 | end | |
791 | } | |
792 | , | |
793 | Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
794 | ||
795 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
796 | prt.Anchored = true | |
797 | prt.CFrame = cframe | |
798 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
799 | game:GetService("Debris"):AddItem(prt, 10) | |
800 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
801 | end | |
802 | } | |
803 | , | |
804 | Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
805 | ||
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("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
810 | game:GetService("Debris"):AddItem(prt, 10) | |
811 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
812 | end | |
813 | } | |
814 | , | |
815 | Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
816 | ||
817 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
818 | prt.Anchored = true | |
819 | prt.CFrame = cframe | |
820 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
821 | game:GetService("Debris"):AddItem(prt, 10) | |
822 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
823 | end | |
824 | } | |
825 | , | |
826 | Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
827 | ||
828 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
829 | prt.Anchored = true | |
830 | prt.CFrame = cframe | |
831 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
832 | game:GetService("Debris"):AddItem(prt, 10) | |
833 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
834 | end | |
835 | } | |
836 | , | |
837 | Break = {Create = function(brickcolor, cframe, x1, y1, z1) | |
838 | ||
839 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
840 | prt.Anchored = true | |
841 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
842 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
843 | local num = math.random(10, 50) / 1000 | |
844 | game:GetService("Debris"):AddItem(prt, 10) | |
845 | table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100}) | |
846 | end | |
847 | } | |
848 | } | |
849 | BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
850 | ||
851 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
852 | prt.Anchored = true | |
853 | prt.CFrame = cframe | |
854 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
855 | game:GetService("Debris"):AddItem(prt, 10) | |
856 | if Type == 1 or Type == nil then | |
857 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) | |
858 | else | |
859 | if Type == 2 then | |
860 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) | |
861 | end | |
862 | end | |
863 | end | |
864 | Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
865 | ||
866 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
867 | prt.Anchored = true | |
868 | prt.CFrame = cframe | |
869 | prt.Material = "Neon" | |
870 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
871 | game:GetService("Debris"):AddItem(prt, 10) | |
872 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
873 | ||
874 | for i = 0, 1, delay do | |
875 | swait() | |
876 | Part.Transparency = i | |
877 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
878 | end | |
879 | Part.Parent = nil | |
880 | end | |
881 | ), prt, msh) | |
882 | end | |
883 | ||
884 | shoottraildd = function(mouse, partt, SpreadAmount) | |
885 | ||
886 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
887 | local MainPos = partt.Position | |
888 | local MainPos2 = mouse.Hit.p + SpreadVectors | |
889 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
890 | local speed = 15 | |
891 | local num = 20 | |
892 | coroutine.resume(coroutine.create(function() | |
893 | ||
894 | repeat | |
895 | swait() | |
896 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
897 | local mag = (MainPos - pos).magnitude | |
898 | Laser(BrickColor.new("Bright red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.175, 0, -0.175, 0.15) | |
899 | MainPos = MainPos + MouseLook.lookVector * speed | |
900 | num = num - 1 | |
901 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
902 | if hit ~= nil then | |
903 | num = 0 | |
904 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
905 | refpart.Anchored = true | |
906 | refpart.CFrame = CFrame.new(pos) | |
907 | game:GetService("Debris"):AddItem(refpart, 2) | |
908 | end | |
909 | do | |
910 | if num <= 0 then | |
911 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
912 | refpart.Anchored = true | |
913 | refpart.CFrame = CFrame.new(pos) | |
914 | if hit ~= nil then | |
915 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1) | |
916 | BlockEffect(BrickColor.new("Br. yellowish orange"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.05) | |
917 | BlockEffect(BrickColor.new("Bright red"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.07) | |
918 | MagniDamage(refpart, 15, 10, 15, 0, "Normal") | |
919 | end | |
920 | game:GetService("Debris"):AddItem(refpart, 0) | |
921 | end | |
922 | end | |
923 | until num <= 0 | |
924 | end | |
925 | )) | |
926 | end | |
927 | ----- | |
928 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
929 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
930 | prt.Anchored = true | |
931 | prt.CFrame = cframe | |
932 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
933 | game:GetService("Debris"):AddItem(prt, 10) | |
934 | table.insert(Effects, { | |
935 | prt, | |
936 | "Cylinder", | |
937 | delay, | |
938 | x3, | |
939 | y3, | |
940 | z3, | |
941 | msh | |
942 | }) | |
943 | end | |
944 | ----- | |
945 | function AppearDisappear() | |
946 | local ez = Instance.new("Part",char) | |
947 | ez.Size = Vector3.new(1,1,1) | |
948 | ez.Name = "a" | |
949 | ez:BreakJoints() | |
950 | ez.Anchored = false | |
951 | ez.Transparency = 0 | |
952 | ez.CanCollide = false | |
953 | ez.Shape = "Block" | |
954 | ez.Material='Neon' | |
955 | ez.TopSurface = "SmoothNoOutlines" | |
956 | ez.BottomSurface = "SmoothNoOutlines" | |
957 | ez.BrickColor = BrickColor.new("White") | |
958 | ddd = Instance.new("SpecialMesh",ez) | |
959 | ddd.MeshType="Sphere" | |
960 | ddd.Scale=Vector3.new(6,6,6) | |
961 | Weld = Instance.new("Weld",ez) | |
962 | Weld.Part0 = Weld.Parent | |
963 | Weld.Part1 = char.Torso | |
964 | for a = 0, 1, .05 do | |
965 | ddd.Scale = ddd.Scale + Vector3.new(.5, .5, .5) | |
966 | ez.Transparency = ez.Transparency + .1 | |
967 | wait() | |
968 | end | |
969 | ez:Remove() | |
970 | end | |
971 | function AppearDisappear1() | |
972 | Das.Transparency = 0 | |
973 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=582878615" | |
974 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=468148440" | |
975 | CreateSound("http://roblox.com/asset/?id=356427062", char.Torso, 1.2, 1) | |
976 | end | |
977 | function AppearDisappear2() | |
978 | Das.Transparency = 0 | |
979 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=582878615" | |
980 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=330970993" | |
981 | CreateSound("http://roblox.com/asset/?id=356427062", char.Torso, 1.2, .8) | |
982 | end | |
983 | function equip() | |
984 | Handle.Transparency = 0 | |
985 | local ez = Instance.new("Part",char) | |
986 | ez.Size = Vector3.new(1,1,1) | |
987 | ez.Name = "a" | |
988 | ez:BreakJoints() | |
989 | ez.Anchored = false | |
990 | ez.Transparency = 0 | |
991 | ez.CanCollide = false | |
992 | ez.Shape = "Block" | |
993 | ez.Material='Neon' | |
994 | ez.TopSurface = "SmoothNoOutlines" | |
995 | ez.BottomSurface = "SmoothNoOutlines" | |
996 | ez.BrickColor = BrickColor.new("New Yeller") | |
997 | ddd = Instance.new("SpecialMesh",ez) | |
998 | ddd.MeshType="Sphere" | |
999 | ddd.Scale=Vector3.new(1,1,1) | |
1000 | Weld = Instance.new("Weld",ez) | |
1001 | Weld.Part0 = Weld.Parent | |
1002 | Weld.Part1 = Handle | |
1003 | CreateSound("http://roblox.com/asset/?id=356427062", char.Torso, 1.2, 1) | |
1004 | for a = 0, 1, .05 do--while wait() and ez and ez.Transparency <= 1 do | |
1005 | ddd.Scale = ddd.Scale + Vector3.new(1, 1, 1) | |
1006 | ez.Transparency = ez.Transparency + .1 | |
1007 | wait() | |
1008 | end | |
1009 | ez:Remove() | |
1010 | end | |
1011 | function unequip() | |
1012 | Handle.Transparency = 1 | |
1013 | local ez = Instance.new("Part",char) | |
1014 | ez.Size = Vector3.new(1,1,1) | |
1015 | ez.Name = "a" | |
1016 | ez:BreakJoints() | |
1017 | ez.Anchored = false | |
1018 | ez.Transparency = 0 | |
1019 | ez.CanCollide = false | |
1020 | ez.Shape = "Block" | |
1021 | ez.Material='Neon' | |
1022 | ez.TopSurface = "SmoothNoOutlines" | |
1023 | ez.BottomSurface = "SmoothNoOutlines" | |
1024 | ez.BrickColor = BrickColor.new("New Yeller") | |
1025 | ddd = Instance.new("SpecialMesh",ez) | |
1026 | ddd.MeshType="Sphere" | |
1027 | ddd.Scale=Vector3.new(1,1,1) | |
1028 | Weld = Instance.new("Weld",ez) | |
1029 | Weld.Part0 = Weld.Parent | |
1030 | Weld.Part1 = Handle | |
1031 | CreateSound("http://roblox.com/asset/?id=356427062", char.Torso, 1.2, .8) | |
1032 | for a = 0, 1, .05 do | |
1033 | ddd.Scale = ddd.Scale + Vector3.new(1, 1, 1) | |
1034 | ez.Transparency = ez.Transparency + .1 | |
1035 | wait() | |
1036 | end | |
1037 | ez:Remove() | |
1038 | end | |
1039 | attack1 = function() | |
1040 | attack = true | |
1041 | local con = Hitbox.Touched:connect(function(hit) | |
1042 | ||
1043 | Damagefunc(Hitbox, hit, 10, 30, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8) | |
1044 | end | |
1045 | ) | |
1046 | for i = 0, 1, 0.1 do | |
1047 | swait() | |
1048 | --PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.529917479, 0, -0.848049283, 0, 1, 0, 0.848049283, 0, 0.529917479), CFrame.new(0, 1.49999499, 0, 0.406736165, 0, 0.913545728, 0, 1, 0, -0.913545728, 0, 0.406736165), CFrame.new(1.35679102, 0.782658279, 0.0675592273, 0.707045317, -0.527684033, 0.470782787, 0.133834034, -0.553849995, -0.82178998, 0.694388449, 0.644049466, -0.320975006), CFrame.new(-1.69279337, 0.499999672, -0.79492861, 0.717408359, 0.691137791, 0.0874861553, -0.0527720191, 0.179133937, -0.982408345, -0.694651246, 0.700171173, 0.164984912), CFrame.new(0.641659617, -1.99999392, 0.125842437, 0.882947862, 0, -0.469471127, 0, 1, 0, 0.469471127, 0, 0.882947862), CFrame.new(-0.348587006, -1.99999392, -0.0133331716, 0.898793101, 0, 0.438373119, 0, 1, 0, -0.438373119, 0, 0.898793101)}, 0.3, false) | |
1049 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(50), math.rad(0)), 0.3) | |
1050 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1051 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 1.6, -.6) * angles(math.rad(160), math.rad(0), math.rad(0)), 0.3) | |
1052 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1053 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1054 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1055 | ||
1056 | end | |
1057 | CFuncs.Sound.Create("http://roblox.com/asset/?id=231917950", char.Torso, 1, 1.5) | |
1058 | for i = 0, 1, 0.1 do | |
1059 | swait() | |
1060 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3) | |
1061 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1062 | RW.C0 = clerp(RW.C0, CFrame.new(.9, -.1, -.8) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3) | |
1063 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1064 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1065 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1066 | ||
1067 | ||
1068 | --PlayAnimationFromTable({CFrame.new(0.180807382, 0, 0.0999719128, 0.342022538, 0, 0.939691782, 0, 1, 0, -0.939691782, 0, 0.342022538), CFrame.new(0.0106580649, 1.49999499, -0.0643079877, 0.469472408, 0, -0.882947266, 0, 1, 0, 0.882947266, 0, 0.469472408), CFrame.new(1.83224225, 0.376015127, 0.0757035911, 0.135973215, -0.988979697, 0.0585707389, 0.0630049929, -0.0503679588, -0.996741474, 0.988707185, 0.139220387, 0.0554619655), CFrame.new(-0.541033506, 0.699999869, -0.891753554, 0.658596575, -0.726630569, 0.195598423, 0.0759940296, -0.194378868, -0.977978408, 0.74864924, 0.658957481, -0.072797671), CFrame.new(0.641663194, -1.99999392, 0.125834763, 0.406737477, 0, -0.913545191, 0, 1, 0, 0.913545191, 0, 0.406737477), CFrame.new(-0.590457141, -1.99999392, 0.164175183, 0.984808207, 0, -0.173646241, 0, 1, 0, 0.173646241, 0, 0.984808207)}, 0.3, false) | |
1069 | --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(60), math.rad(0), math.rad(-90)), 0.3) | |
1070 | end | |
1071 | con:disconnect() | |
1072 | attack = false | |
1073 | end | |
1074 | attack2 = function() | |
1075 | attack = true | |
1076 | local con = Hitbox.Touched:connect(function(hit) | |
1077 | ||
1078 | Damagefunc(Hitbox, hit, 10, 30, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8) | |
1079 | end | |
1080 | ) | |
1081 | for i = 0, 1, 0.1 do | |
1082 | swait() | |
1083 | --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false) | |
1084 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(50), math.rad(0)), 0.3) | |
1085 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1086 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, .75, -1) * angles(math.rad(110), -math.rad(80), math.rad(15)), 0.3) | |
1087 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1088 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1089 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1090 | --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(60), math.rad(0), math.rad(-90)), 0.3) | |
1091 | end | |
1092 | CFuncs.Sound.Create("http://roblox.com/asset/?id=231917950", char.Torso, 1, 2) | |
1093 | for i = 0, 1, 0.1 do | |
1094 | swait() | |
1095 | --PlayAnimationFromTable({CFrame.new(0.2283867, 0, 0.115197472, 0.438369602, 0, -0.89879483, 0, 1, 0, 0.89879483, 0, 0.438369602), CFrame.new(0.0305867679, 1.49999499, -0.105302036, 0.438370466, 0, 0.898794472, 0, 1, 0, -0.898794472, 0, 0.438370436), CFrame.new(1.67825615, 0.576015353, -0.394908488, 0.46593222, -0.881719947, 0.0740077272, 0.063004978, -0.0503680483, -0.996741474, 0.88257432, 0.469076842, 0.0320846587), CFrame.new(-1.00808418, 0.399999917, -0.988827169, 0.839437604, -0.542131007, 0.0379279964, 0.0759930089, 0.0479900427, -0.995952845, 0.538116753, 0.838922501, 0.0814828053), CFrame.new(0.641682267, -1.99999392, 0.125833988, 0.9993909, 0, -0.0348993391, 0, 1, 0, 0.0348993391, 0, 0.9993909), CFrame.new(-0.451955765, -1.99999392, -0.00807018578, 0.898794293, 0, 0.438370645, 0, 1, 0, -0.438370645, 0, 0.898794293)}, 0.3, false) | |
1096 | --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(60), math.rad(0), math.rad(-90)), 0.3) | |
1097 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3) | |
1098 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1099 | RW.C0 = clerp(RW.C0, CFrame.new(.3, .3, -.3) * angles(math.rad(40), math.rad(30), -math.rad(70)), 0.3) | |
1100 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1101 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1102 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1103 | ||
1104 | end | |
1105 | con:disconnect() | |
1106 | attack = false | |
1107 | end | |
1108 | attack3 = function() | |
1109 | attack = true | |
1110 | local con = Hitbox.Touched:connect(function(hit) | |
1111 | ||
1112 | Damagefunc(Hitbox, hit, 10, 30, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8) | |
1113 | end) | |
1114 | ||
1115 | for i = 0, 1, 0.1 do | |
1116 | swait() | |
1117 | --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false) | |
1118 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.3) | |
1119 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1120 | RW.C0 = clerp(RW.C0, CFrame.new(.35, .5, -.7) * angles(math.rad(205), math.rad(20), -math.rad(110)), 0.3) | |
1121 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1122 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1123 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1124 | end | |
1125 | CFuncs.Sound.Create("http://roblox.com/asset/?id=231917950", char.Torso, 1, 2) | |
1126 | for i = 0, .2, 0.1 do | |
1127 | swait() | |
1128 | --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false) | |
1129 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0,0,-2.4)*CFrame.Angles(math.rad(0),math.rad(90),-math.rad(90)), 0.3) | |
1130 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(90), math.rad(0)), 0.3) | |
1131 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1132 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, .55, -1) * angles(math.rad(90), math.rad(100), math.rad(0)), 0.3) | |
1133 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1134 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1135 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1136 | end | |
1137 | for i = 0, .2, 0.1 do | |
1138 | swait() | |
1139 | --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false) | |
1140 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(180), math.rad(0)), 0.3) | |
1141 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1142 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, .55, -1) * angles(math.rad(90), math.rad(100), math.rad(0)), 0.3) | |
1143 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1144 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1145 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1146 | end | |
1147 | for i = 0, .2, 0.1 do | |
1148 | swait() | |
1149 | --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false) | |
1150 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(270), math.rad(0)), 0.3) | |
1151 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1152 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, .55, -1) * angles(math.rad(90), math.rad(100), math.rad(0)), 0.3) | |
1153 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1154 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1155 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1156 | end | |
1157 | ||
1158 | ||
1159 | ||
1160 | ||
1161 | for i = 0, 1, 0.1 do | |
1162 | swait() | |
1163 | --PlayAnimationFromTable({CFrame.new(0.2283867, 0, 0.115197472, 0.438369602, 0, -0.89879483, 0, 1, 0, 0.89879483, 0, 0.438369602), CFrame.new(0.0305867679, 1.49999499, -0.105302036, 0.438370466, 0, 0.898794472, 0, 1, 0, -0.898794472, 0, 0.438370436), CFrame.new(1.67825615, 0.576015353, -0.394908488, 0.46593222, -0.881719947, 0.0740077272, 0.063004978, -0.0503680483, -0.996741474, 0.88257432, 0.469076842, 0.0320846587), CFrame.new(-1.00808418, 0.399999917, -0.988827169, 0.839437604, -0.542131007, 0.0379279964, 0.0759930089, 0.0479900427, -0.995952845, 0.538116753, 0.838922501, 0.0814828053), CFrame.new(0.641682267, -1.99999392, 0.125833988, 0.9993909, 0, -0.0348993391, 0, 1, 0, 0.0348993391, 0, 0.9993909), CFrame.new(-0.451955765, -1.99999392, -0.00807018578, 0.898794293, 0, 0.438370645, 0, 1, 0, -0.438370645, 0, 0.898794293)}, 0.3, false) | |
1164 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0,0,-2.4)*CFrame.Angles(math.rad(0),math.rad(90),-math.rad(90)), 0.3) | |
1165 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(40), math.rad(0)), 0.3) | |
1166 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1167 | RW.C0 = clerp(RW.C0, CFrame.new(2, .5, 0) * angles(-math.rad(180), math.rad(0), math.rad(90)), 0.3) | |
1168 | LW.C0 = clerp(LW.C0, CFrame.new(-2, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3) | |
1169 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1170 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1171 | end | |
1172 | ||
1173 | con:disconnect() | |
1174 | attack = false | |
1175 | end | |
1176 | function kek1() | |
1177 | attack = true | |
1178 | Effects.Sphere.Create(BrickColor.new("New Yeller"), FakeHandle.CFrame * angles(math.random(-3,3), math.random(-3,3), math.random(-3,3)), 6.5, 6.5, 6.5, 4, 4, 4, 0.07) | |
1179 | ||
1180 | CFuncs.Sound.Create("http://www.roblox.com/asset?id=200633707", char.Torso, 0.8, 1.1) | |
1181 | ||
1182 | local Aaaa = Instance.new("Part", RootPart) | |
1183 | Aaaa.Size = Vector3.new(.1, .1, .1) | |
1184 | Aaaa.BrickColor = BrickColor.new("White") | |
1185 | Aaaa.Transparency = 1 | |
1186 | Aaaa.CanCollide = false | |
1187 | local abbWeld = Instance.new("Weld", RootPart) | |
1188 | abbWeld.Part0 = RootPart | |
1189 | abbWeld.Part1 = Aaaa | |
1190 | abbWeld.C1 = CFrame.new(0,0,9) | |
1191 | ||
1192 | for i = 0, 2.5, 0.1 do | |
1193 | swait() | |
1194 | Effects.Ring.Create(BrickColor.new("Navy blue"), FakeHandle.CFrame * angles(math.random(-3,3), math.random(-3,3), math.random(-3,3)), 1.5, 1.5, 0, 0.5, 0.5, 0, 0.07) | |
1195 | --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false) | |
1196 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(45), math.rad(0)), 0.1) | |
1197 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1198 | RW.C0 = clerp(RW.C0, CFrame.new(.35, .5, -.7) * angles(math.rad(205), math.rad(20), -math.rad(110)), 0.1) | |
1199 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.1) | |
1200 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1201 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1202 | ||
1203 | end | |
1204 | for i = 0, 0.2, 0.1 do | |
1205 | swait() | |
1206 | --PlayAnimationFromTable({CFrame.new(0.2283867, 0, 0.115197472, 0.438369602, 0, -0.89879483, 0, 1, 0, 0.89879483, 0, 0.438369602), CFrame.new(0.0305867679, 1.49999499, -0.105302036, 0.438370466, 0, 0.898794472, 0, 1, 0, -0.898794472, 0, 0.438370436), CFrame.new(1.67825615, 0.576015353, -0.394908488, 0.46593222, -0.881719947, 0.0740077272, 0.063004978, -0.0503680483, -0.996741474, 0.88257432, 0.469076842, 0.0320846587), CFrame.new(-1.00808418, 0.399999917, -0.988827169, 0.839437604, -0.542131007, 0.0379279964, 0.0759930089, 0.0479900427, -0.995952845, 0.538116753, 0.838922501, 0.0814828053), CFrame.new(0.641682267, -1.99999392, 0.125833988, 0.9993909, 0, -0.0348993391, 0, 1, 0, 0.0348993391, 0, 0.9993909), CFrame.new(-0.451955765, -1.99999392, -0.00807018578, 0.898794293, 0, 0.438370645, 0, 1, 0, -0.438370645, 0, 0.898794293)}, 0.3, false) | |
1207 | --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0,0,-2.4)*CFrame.Angles(math.rad(0),math.rad(90),-math.rad(90)), 0.3) | |
1208 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(50), math.rad(0)), 0.3) | |
1209 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3) | |
1210 | RW.C0 = clerp(RW.C0, CFrame.new(2, .5, 0) * angles(math.rad(0), math.rad(0), -math.rad(5)), 0.3) | |
1211 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1212 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1213 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1214 | end | |
1215 | Effects.Sphere.Create(BrickColor.new("Navy blue"), Aaaa.CFrame * angles(math.random(-3,3), math.random(-3,3), math.random(-3,3)), 2.5, 2.5, 2.5, 3.5, 3.5, 3.5, 0.07) | |
1216 | Effects.Ring.Create(BrickColor.new("Navy blue"), Aaaa.CFrame * angles(0, 0, math.random(-3,3)), 2.5, 2.5, 2.5, 1, 1, 1, 0.07) | |
1217 | ||
1218 | CFuncs.Sound.Create("http://roblox.com/asset/?id=231917950", Aaaa, 1, 1) | |
1219 | CFuncs.Sound.Create("http://roblox.com/asset/?id=279675650", FakeHandle, 1, 1.1) | |
1220 | local con = Aaaa.Touched:connect(function(hit) | |
1221 | MagniDamage(Aaaa, 30, 30, 55, 4, "Knockdown") | |
1222 | --Damagefunc(Hitbox, hit, 30, 60, math.random(1, 5), "Knockdown", RootPart, 0.2, "rbxassetid://199149221", 0.8) | |
1223 | end | |
1224 | ) | |
1225 | for i = 0, 1, 0.1 do | |
1226 | swait() | |
1227 | --PlayAnimationFromTable({CFrame.new(0.2283867, 0, 0.115197472, 0.438369602, 0, -0.89879483, 0, 1, 0, 0.89879483, 0, 0.438369602), CFrame.new(0.0305867679, 1.49999499, -0.105302036, 0.438370466, 0, 0.898794472, 0, 1, 0, -0.898794472, 0, 0.438370436), CFrame.new(1.67825615, 0.576015353, -0.394908488, 0.46593222, -0.881719947, 0.0740077272, 0.063004978, -0.0503680483, -0.996741474, 0.88257432, 0.469076842, 0.0320846587), CFrame.new(-1.00808418, 0.399999917, -0.988827169, 0.839437604, -0.542131007, 0.0379279964, 0.0759930089, 0.0479900427, -0.995952845, 0.538116753, 0.838922501, 0.0814828053), CFrame.new(0.641682267, -1.99999392, 0.125833988, 0.9993909, 0, -0.0348993391, 0, 1, 0, 0.0348993391, 0, 0.9993909), CFrame.new(-0.451955765, -1.99999392, -0.00807018578, 0.898794293, 0, 0.438370645, 0, 1, 0, -0.438370645, 0, 0.898794293)}, 0.3, false) | |
1228 | --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0,0,-2.4)*CFrame.Angles(math.rad(0),math.rad(90),-math.rad(90)), 0.3) | |
1229 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(50), math.rad(0)), 0.3) | |
1230 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3) | |
1231 | RW.C0 = clerp(RW.C0, CFrame.new(2, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
1232 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1233 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1234 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1235 | end | |
1236 | Aaaa:Remove() | |
1237 | con:disconnect() | |
1238 | attack = false | |
1239 | end | |
1240 | function kek2() | |
1241 | attack = true | |
1242 | ||
1243 | ||
1244 | for i = 0, 1, 0.1 do | |
1245 | swait() | |
1246 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1247 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.3) | |
1248 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1249 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 1, 0) * angles(math.rad(179), math.rad(0), math.rad(0)), 0.3) | |
1250 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1251 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1252 | end | |
1253 | CFuncs.Sound.Create("rbxassetid://169380505", RootPart, 0.8, 1.5) | |
1254 | Effects.Cylinder.Create(BrickColor.new("New Yeller"), LeftArm.CFrame * angles(math.rad(2), 0, 0), 1, 9999, 1, 1, 1, 1, 0.07) | |
1255 | for i = 0, 2, 0.1 do | |
1256 | swait() | |
1257 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1258 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.3) | |
1259 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1260 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 1, 0) * angles(math.rad(179), math.rad(0), math.rad(0)), 0.3) | |
1261 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1262 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1263 | end | |
1264 | CFuncs.Sound.Create("rbxassetid://169445602", RootPart, 1, 1.2) | |
1265 | local cf2 = mouse.Hit.p + Vector3.new(math.random(-100, 100) / 50, 50, math.random(-100, 100) / 50) | |
1266 | local hit2, pos2 = rayCast(cf2, CFrame.new(cf2, cf2 - Vector3.new(0, 1, 0)).lookVector, 999, char) | |
1267 | if hit2 ~= nil then | |
1268 | local d1 = CFuncs.Part.Create(workspace, "Neon", 0, 0.5, BrickColor.new("Navy blue"), "Effect", Vector3.new()) | |
1269 | d1.Anchored = true | |
1270 | d1.CFrame = CFrame.new(pos2) | |
1271 | MagniDamage(d1, 20, 10, 25, 5, "Snare") | |
1272 | Effects.Cylinder.Create(BrickColor.new("New Yeller"), d1.CFrame * angles(0, 0, 0), 1, 9999, 1, 4, 1, 4, 0.07) | |
1273 | local con = Hitbox.Touched:connect(function(hit) | |
1274 | end) | |
1275 | game:GetService("Debris"):AddItem(d1, 5) | |
1276 | local msh = CFuncs.Mesh.Create("CylinderMesh", d1, "nil", "nil", Vector3.new(0, 0, 0), Vector3.new(100, 5, 100)) | |
1277 | local d2 = d1:Clone() | |
1278 | d2.Parent = d1 | |
1279 | d2.CFrame = CFrame.new(d1.Position) | |
1280 | d2.BrickColor = BrickColor.new("New Yeller") | |
1281 | d2.Mesh.Scale = Vector3.new(0, 5, 0) | |
1282 | table.insert(Effects, {d1, "QuadShot", d2, d2.Mesh, 0}) | |
1283 | end | |
1284 | attack = false | |
1285 | ||
1286 | end | |
1287 | function kek3() | |
1288 | cooldown1 = cooldown1 - 5 | |
1289 | local dacf = Handle.CFrame * angles(-1.57 + math.random(40, 80) / 100, 0, math.random(-80, 80) / 100) | |
1290 | local icepart1 = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Cyan"), "Ice", vt()) | |
1291 | icepart1.Anchored = true | |
1292 | i1msh = CreateMesh("SpecialMesh", icepart1, "Sphere", "", vt(0, 0, 0), vt(5, 5, 5)) | |
1293 | icepart1.CFrame = dacf | |
1294 | for i = 0, 1, 0.1 do | |
1295 | swait() | |
1296 | icepart1.CFrame = dacf | |
1297 | end | |
1298 | local cfinc = 99999 | |
1299 | icepart1.Transparency = 1 | |
1300 | CreateSound("rbxassetid://334325056", icepart1, 1, 1) | |
1301 | game:GetService("Debris"):AddItem(icepart1, 1) | |
1302 | local spread = vt((math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16) * (icepart1.Position - (icepart1.Position + vt(0, -1, 0))).magnitude / 100 | |
1303 | local TheHit = mouse.Hit.p | |
1304 | local MouseLook = cf((icepart1.Position + TheHit) / 2, TheHit + spread) | |
1305 | local hit, pos = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character) | |
1306 | local target1, distance1 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character) | |
1307 | local test1, dist1 = mouse.Hit.p, nil | |
1308 | if target1 ~= nil then | |
1309 | cfda = target1.Position + vt(math.random(-3000, 3000) / 100, 20, math.random(-3000, 3000) / 100) | |
1310 | local hit2, pos2 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character) | |
1311 | local d1 = CreatePart(effect, "SmoothPlastic", 0, 0.5, BrickColor.new("White"), "Effect", vt()) | |
1312 | d1.Anchored = true | |
1313 | d1.CFrame = cf(pos2) | |
1314 | MagniDamage(d1, 10, 12, 15, -10, "Normal", "231917784") | |
1315 | SphereEffect(BrickColor.new("White"), cf(pos2), 100, 100, 100, 10, 10, 10, 0.07) | |
1316 | msh = CreateMesh("SpecialMesh", d1, "Sphere", "", vt(0, 0, 0), vt(80, 80, 80)) | |
1317 | d2 = d1:Clone() | |
1318 | d2.Parent = d1 | |
1319 | d2.CFrame = cf(d1.Position) | |
1320 | d2.BrickColor = BrickColor.new("Toothpaste") | |
1321 | d2.Mesh.Scale = vt(0, 5, 0) | |
1322 | table.insert(Effects, { | |
1323 | d1, | |
1324 | "SatelliteStrike", | |
1325 | d2, | |
1326 | d2.Mesh, | |
1327 | 0 | |
1328 | }) | |
1329 | end | |
1330 | end | |
1331 | ||
1332 | function kek4() | |
1333 | ||
1334 | end | |
1335 | mouse.Button1Down:connect(function() | |
1336 | ||
1337 | if attack == false and attacktype == 1 and equipped == true then | |
1338 | attacktype = 2 | |
1339 | attack1() | |
1340 | else | |
1341 | if attack == false and attacktype == 2 and equipped == true then | |
1342 | attacktype = 3 | |
1343 | attack2() | |
1344 | else | |
1345 | if attack == false and attacktype == 3 and equipped == true then | |
1346 | attacktype = 1 | |
1347 | attack3() | |
1348 | end | |
1349 | end | |
1350 | end | |
1351 | end | |
1352 | ) | |
1353 | ||
1354 | updateskills = function() | |
1355 | ||
1356 | if cooldown1 <= co1 then | |
1357 | cooldown1 = cooldown1 + 0.033333333333333 | |
1358 | end | |
1359 | if cooldown2 <= co2 then | |
1360 | cooldown2 = cooldown2 + 0.033333333333333 | |
1361 | end | |
1362 | if cooldown3 <= co3 then | |
1363 | cooldown3 = cooldown3 + 0.033333333333333 | |
1364 | end | |
1365 | if cooldown4 <= co4 then | |
1366 | cooldown4 = cooldown4 + 0.033333333333333 | |
1367 | end | |
1368 | end | |
1369 | ||
1370 | --[[function onKeyDown(key) | |
1371 | if key == "u" then | |
1372 | if nak == false and disable == false then | |
1373 | disable = true | |
1374 | AppearDisappear1() | |
1375 | AppearDisappear() | |
1376 | nak = true | |
1377 | wait(1) | |
1378 | disable = false | |
1379 | elseif disable == false then | |
1380 | AppearDisappear2() | |
1381 | AppearDisappear() | |
1382 | ||
1383 | nak = false | |
1384 | wait(1) | |
1385 | disable = false | |
1386 | end | |
1387 | end | |
1388 | ||
1389 | if key == "f" then | |
1390 | if equipped == false and disable == false then | |
1391 | disable = true | |
1392 | equipped = true | |
1393 | equip() | |
1394 | wait(1) | |
1395 | disable = false | |
1396 | elseif equipped == true and disable == false then | |
1397 | disable = true | |
1398 | unequip() | |
1399 | equipped = false | |
1400 | wait(1) | |
1401 | disable = false | |
1402 | end | |
1403 | end]] | |
1404 | mouse.KeyDown:connect(function(k) | |
1405 | ||
1406 | k = k:lower() | |
1407 | if attack == false and equipped == true and k == "z" and co1 <= cooldown1 then | |
1408 | cooldown1 = 0 | |
1409 | kek1() | |
1410 | else | |
1411 | if attack == false and equipped == true and k == "x" and co2 <= cooldown2 then | |
1412 | cooldown2 = 0 | |
1413 | kek2() | |
1414 | else | |
1415 | if attack == false and equipped == true and k == "c" and co3 <= cooldown3 then | |
1416 | cooldown3 = 0 | |
1417 | kek3() | |
1418 | else | |
1419 | if attack == false and k == "v" and co4 <= cooldown4 then | |
1420 | cooldown4 = 0 | |
1421 | kek4() | |
1422 | else | |
1423 | if attack == false and k == "f" and equipped == false and disable == false then | |
1424 | ||
1425 | disable = true | |
1426 | equipped = true | |
1427 | equip() | |
1428 | wait(.5) | |
1429 | disable = false | |
1430 | else | |
1431 | if k == "f" and equipped == true and disable == false then | |
1432 | disable = true | |
1433 | equipped = false | |
1434 | unequip() | |
1435 | wait(.5) | |
1436 | disable = false | |
1437 | ||
1438 | ||
1439 | else | |
1440 | if k == "u" and nak == false and disable == false then | |
1441 | disable = true | |
1442 | AppearDisappear1() | |
1443 | AppearDisappear() | |
1444 | nak = true | |
1445 | wait(.5) | |
1446 | disable = false | |
1447 | else | |
1448 | if k == "u" and nak == true and disable == false then | |
1449 | disable = true | |
1450 | AppearDisappear2() | |
1451 | AppearDisappear() | |
1452 | nak = false | |
1453 | wait(.5) | |
1454 | disable = false | |
1455 | end | |
1456 | end | |
1457 | end | |
1458 | end | |
1459 | end | |
1460 | end | |
1461 | end | |
1462 | end | |
1463 | end) | |
1464 | ||
1465 | while 1 do | |
1466 | swait() | |
1467 | updateskills() | |
1468 | bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5) | |
1469 | bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5) | |
1470 | bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5) | |
1471 | bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5) | |
1472 | for i,v in pairs(char:GetChildren()) do | |
1473 | if v:IsA("Part") then | |
1474 | v.Material = "SmoothPlastic" | |
1475 | else | |
1476 | if v:IsA("Hat") then | |
1477 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
1478 | end | |
1479 | end | |
1480 | end | |
1481 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1482 | velocity = RootPart.Velocity.y | |
1483 | sine = sine + change | |
1484 | local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, char) | |
1485 | if equipped == true or equipped == false then | |
1486 | if 1 < RootPart.Velocity.y and hit == nil then | |
1487 | Anim = "Jump" | |
1488 | if attack == false then | |
1489 | manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90),math.rad(65),-math.rad(90)), 0.3) | |
1490 | manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.3,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3) | |
1491 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3) | |
1492 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1493 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3) | |
1494 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3) | |
1495 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3) | |
1496 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0.35) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.3) | |
1497 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0.35) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.3) | |
1498 | end | |
1499 | else | |
1500 | if RootPart.Velocity.y < -1 and hit == nil then | |
1501 | Anim = "Fall" | |
1502 | if attack == false then | |
1503 | manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90),math.rad(15),-math.rad(90)), 0.3) | |
1504 | manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3) | |
1505 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3) | |
1506 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1507 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3) | |
1508 | RW.C0 = clerp(RW.C0, CFrame.new(1.7, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3) | |
1509 | LW.C0 = clerp(LW.C0, CFrame.new(-1.7, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3) | |
1510 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0.5) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.3) | |
1511 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0.5) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.3) | |
1512 | end | |
1513 | else | |
1514 | if Torsovelocity < 1 and hit ~= nil then | |
1515 | Anim = "Idle" | |
1516 | if attack == false then | |
1517 | if equipped == true then | |
1518 | change = 1 | |
1519 | manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90 - 15 * math.cos((sine) / 45)),math.rad(40),-math.rad(90)), 0.3) | |
1520 | manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.4,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3) | |
1521 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3) | |
1522 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0 - 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), -math.rad(20), math.rad(0)), 0.3) | |
1523 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(5), math.rad(20), math.rad(0)), 0.3) | |
1524 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1525 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
1526 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2 + 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1527 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2 + 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1528 | else | |
1529 | change = 1 | |
1530 | manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90 - 15 * math.cos((sine) / 45)),math.rad(40),-math.rad(90)), 0.3) | |
1531 | manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.4,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3) | |
1532 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3) | |
1533 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0 - 0.06 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1534 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1535 | RW.C0 = clerp(RW.C0, CFrame.new(0.7, 0.1, -0.45) * angles(math.rad(20), math.rad(0), -math.rad(40)), 0.3) | |
1536 | LW.C0 = clerp(LW.C0, CFrame.new(-0.7, 0.1, -0.45) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.3) | |
1537 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2 + 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1538 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2 + 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1539 | ||
1540 | end | |
1541 | end | |
1542 | else | |
1543 | if 2 < Torsovelocity and hit ~= nil then | |
1544 | Anim = "Walk" | |
1545 | if attack == false then | |
1546 | manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90),math.rad(40),-math.rad(90)), 0.3) | |
1547 | manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.4,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3) | |
1548 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3) | |
1549 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3) | |
1550 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3) | |
1551 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1552 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
1553 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0 + 1 * math.cos((sine) / 3)) * angles(math.rad(0 - 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3) | |
1554 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0 - 1 * math.cos((sine) / 3)) * angles(math.rad(0 + 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3) | |
1555 | end | |
1556 | end | |
1557 | end | |
1558 | end | |
1559 | end | |
1560 | end | |
1561 | if 0 < #Effects then | |
1562 | for e = 1, #Effects do | |
1563 | if Effects[e] ~= nil then | |
1564 | local Thing = Effects[e] | |
1565 | if Thing ~= nil then | |
1566 | local Part = Thing[1] | |
1567 | local Mode = Thing[2] | |
1568 | local Delay = Thing[3] | |
1569 | local IncX = Thing[4] | |
1570 | local IncY = Thing[5] | |
1571 | local IncZ = Thing[6] | |
1572 | if Thing[1].Transparency <= 1 then | |
1573 | if Thing[2] == "Block1" then | |
1574 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1575 | Mesh = Thing[1].Mesh | |
1576 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1577 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1578 | else | |
1579 | if Thing[2] == "Block2" then | |
1580 | Thing[1].CFrame = Thing[1].CFrame | |
1581 | Mesh = Thing[7] | |
1582 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1583 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1584 | else | |
1585 | if Thing[2] == "Cylinder" then | |
1586 | Mesh = Thing[1].Mesh | |
1587 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1588 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1589 | else | |
1590 | if Thing[2] == "Blood" then | |
1591 | Mesh = Thing[7] | |
1592 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1593 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1594 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1595 | else | |
1596 | if Thing[2] == "Elec" then | |
1597 | Mesh = Thing[1].Mesh | |
1598 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1599 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1600 | else | |
1601 | if Thing[2] == "Disappear" then | |
1602 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1603 | else | |
1604 | if Thing[2] == "Shatter" then | |
1605 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1606 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1607 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1608 | Thing[6] = Thing[6] + Thing[5] | |
1609 | else | |
1610 | if Thing[2] == "QuadShot" then | |
1611 | if Thing[5] < 100 then | |
1612 | Thing[5] = Thing[5] + 2.5 | |
1613 | Thing[4].Scale = Vector3.new(Thing[5], 5, Thing[5]) | |
1614 | else | |
1615 | refda = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new()) | |
1616 | refda.Anchored = true | |
1617 | refda.CFrame = CFrame.new(Thing[1].Position) | |
1618 | game:GetService("Debris"):AddItem(refda, 5) | |
1619 | CFuncs.Sound.Create("rbxassetid://203691378", refda, 1, 1.2) | |
1620 | CFuncs.Sound.Create("rbxassetid://184718741", refda, 1, 0.8) | |
1621 | --MagniDamage(refda, 40, 20, 50, BrickColor.new("Navy blue"), BrickColor.new("New Yeller")) | |
1622 | MagniDamage(refda, 40, 20, 50, 50, "Freeze") | |
1623 | Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new(refda.Position), 3, 3, 3, 10, 10, 10, 0.05) | |
1624 | Effects.Sphere.Create(BrickColor.new("Navy blue"), CFrame.new(refda.Position), 15, 15, 15, 10, 10, 10, 0.05) | |
1625 | --Effects.Sphere.Create(BrickColor.new("New Yeller"), refda.CFrame, 10, 10, 10, 10, 10, 10, 0.06) | |
1626 | Effects.Block.Create(BrickColor.new("New Yeller"), refda.CFrame, 10, 10, 10, 10, 10, 10, 0.06, 1) | |
1627 | Effects.Wave.Create(BrickColor.new("New Yeller"), refda.CFrame, 1, 1, 1, 3, 3, 3, 0.06) | |
1628 | Thing[1].Parent = nil | |
1629 | table.remove(Effects, e) | |
1630 | end | |
1631 | end | |
1632 | end | |
1633 | end | |
1634 | end | |
1635 | end | |
1636 | end | |
1637 | end | |
1638 | end | |
1639 | else | |
1640 | Part.Parent = nil | |
1641 | table.remove(Effects, e) | |
1642 | end | |
1643 | end | |
1644 | end | |
1645 | end | |
1646 | end | |
1647 | end |