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