SHOW:
|
|
- or go back to the newest paste.
1 | - | warn'Mutant loaded' |
1 | + | |
2 | - | ---- thanks to genocider and psychopath sources, this would be another one |
2 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
3 | - | ---- LockOnTargetNoWhiteListKThx |
3 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
4 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
5 | local RealPlayer = Player | |
6 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
7 | plr = game.Players.LocalPlayer | |
8 | char = plr.Character | |
9 | hum = char.Humanoid | |
10 | local cam = game.Workspace.CurrentCamera | |
11 | t = char.Torso | |
12 | h = char.Head | |
13 | ra = char["Right Arm"] | |
14 | la = char["Left Arm"] | |
15 | rl = char["Right Leg"] | |
16 | ll = char["Left Leg"] | |
17 | tors = char.Torso | |
18 | lleg = char["Left Leg"] | |
19 | root = char.HumanoidRootPart | |
20 | hed = char.Head | |
21 | rleg = char["Right Leg"] | |
22 | rarm = char["Right Arm"] | |
23 | larm = char["Left Arm"] | |
24 | vt = Vector3.new | |
25 | bc = BrickColor.new | |
26 | br = BrickColor.random | |
27 | it = Instance.new | |
28 | cf = CFrame.new | |
29 | local targetted = nil | |
30 | local killcount = 0 | |
31 | local requirekillA = 15 | |
32 | local requirekillX = 50 | |
33 | local maxA = 15 | |
34 | local maxX = 50 | |
35 | if plr.Name == "soins1" then | |
36 | maxX = 0 | |
37 | requirekillX = maxX | |
38 | end | |
39 | local unlockedA = true | |
40 | local unlockedX = true | |
41 | local LeftModeUnlocked = false | |
42 | ||
43 | kan = Instance.new("Sound",char) | |
44 | kan.Volume = 6 | |
45 | kan.PlaybackSpeed = 0.4 | |
46 | kan.Pitch = 0.2 | |
47 | kan.SoundId = "rbxassetid://583415095" | |
48 | kan.Name = "kreepery" | |
49 | kan.Looped = true | |
50 | kan:Play() | |
51 | ||
52 | abss = Instance.new("BillboardGui",char) | |
53 | abss.Size = UDim2.new(10,0,10,0) | |
54 | abss.Enabled = false | |
55 | imgl = Instance.new("ImageLabel",abss) | |
56 | imgl.Position = UDim2.new(0,0,0,0) | |
57 | imgl.Size = UDim2.new(1,0,1,0) | |
58 | imgl.Image = "http://www.roblox.com/asset/?id=118777235" | |
59 | imgl.BackgroundTransparency = 1 | |
60 | imgl.ImageColor3 = Color3.new(0,0,0) | |
61 | imgl2 = Instance.new("ImageLabel",abss) | |
62 | imgl2.Position = UDim2.new(-0.5,0,-0.5,0) | |
63 | imgl2.Size = UDim2.new(2,0,2,0) | |
64 | imgl2.Image = "http://www.roblox.com/asset/?id=135465292" | |
65 | imgl2.BackgroundTransparency = 1 | |
66 | imgl2.ImageColor3 = Color3.new(0,0,0) | |
67 | img2 = Instance.new("ImageLabel",abss) | |
68 | img2.Position = UDim2.new(0,0,0,0) | |
69 | img2.Size = UDim2.new(1,0,1,0) | |
70 | img2.Image = "rbxassetid://118777235" | |
71 | img2.BackgroundTransparency = 1 | |
72 | img2.ImageColor3 = Color3.new(0,0,0) | |
73 | ||
74 | function CameraShake(Times, Power) | |
75 | coroutine.resume(coroutine.create(function() | |
76 | FV = Instance.new("BoolValue", Character) | |
77 | FV.Name = "CameraShake" | |
78 | for ShakeNum=1,Times do | |
79 | swait() | |
80 | local ef=Power | |
81 | if ef>=1 then | |
82 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
83 | else | |
84 | ef=Power*10 | |
85 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
86 | end | |
87 | end | |
88 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
89 | FV:Destroy() | |
90 | end)) | |
91 | end | |
92 | ||
93 | CamShake=function(Part,Distan,Power,Times) | |
94 | local de=Part.Position | |
95 | for i,v in pairs(workspace:children()) do | |
96 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
97 | for _,c in pairs(v:children()) do | |
98 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
99 | local Noob=v.Humanoid | |
100 | if Noob~=nil then | |
101 | if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then | |
102 | --[[local ss=script.CamShake:clone() | |
103 | ss.Parent=Noob | |
104 | ss.Power.Value=Power | |
105 | ss.Times.Value=Times | |
106 | ss.Disabled=false]] | |
107 | CameraShake(Times, Power) | |
108 | end | |
109 | end | |
110 | end | |
111 | end | |
112 | end | |
113 | end | |
114 | end | |
115 | ||
116 | function chatfunc(text,color) | |
117 | local chat = coroutine.wrap(function() | |
118 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
119 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
120 | end | |
121 | local naeeym2 = Instance.new("BillboardGui",Character) | |
122 | naeeym2.Size = UDim2.new(0,100,0,40) | |
123 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
124 | naeeym2.Adornee = Character.Head | |
125 | naeeym2.Name = "TalkingBillBoard" | |
126 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
127 | tecks2.BackgroundTransparency = 1 | |
128 | tecks2.BorderSizePixel = 0 | |
129 | tecks2.Text = "" | |
130 | tecks2.Font = "SciFi" | |
131 | tecks2.TextSize = 30 | |
132 | tecks2.TextStrokeTransparency = 0 | |
133 | tecks2.TextColor3 = color | |
134 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
135 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
136 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
137 | tecks3.BackgroundTransparency = 1 | |
138 | tecks3.BorderSizePixel = 0 | |
139 | tecks3.Text = "" | |
140 | tecks3.Font = "SciFi" | |
141 | tecks3.TextSize = 30 | |
142 | tecks3.TextStrokeTransparency = 0 | |
143 | tecks3.TextColor3 = Color3.new(0,0,0) | |
144 | tecks3.TextStrokeColor3 = color | |
145 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
146 | coroutine.resume(coroutine.create(function() | |
147 | while true do | |
148 | swait(1) | |
149 | tecks2.Position = UDim2.new(0,math.random(-10,10),0,math.random(-10,10)) | |
150 | tecks3.Position = UDim2.new(0,math.random(-10,10),0,math.random(-10,10)) | |
151 | tecks2.Rotation = math.random(-15,15) | |
152 | tecks3.Rotation = math.random(-15,15) | |
153 | end | |
154 | end)) | |
155 | for i = 1,string.len(text),1 do | |
156 | CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115) | |
157 | tecks2.Text = string.sub(text,1,i) | |
158 | tecks3.Text = string.sub(text,1,i) | |
159 | swait(1) | |
160 | end | |
161 | wait(1) | |
162 | local randomrot = math.random(1,2) | |
163 | if randomrot == 1 then | |
164 | for i = 1, 50 do | |
165 | swait() | |
166 | tecks2.Rotation = tecks2.Rotation - .75 | |
167 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
168 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
169 | tecks3.Rotation = tecks2.Rotation + .75 | |
170 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
171 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
172 | end | |
173 | elseif randomrot == 2 then | |
174 | for i = 1, 50 do | |
175 | swait() | |
176 | tecks2.Rotation = tecks2.Rotation + .75 | |
177 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
178 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
179 | tecks3.Rotation = tecks2.Rotation - .75 | |
180 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
181 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
182 | end | |
183 | end | |
184 | naeeym2:Destroy() | |
185 | end) | |
186 | chat() | |
187 | end | |
188 | ||
189 | ||
190 | local Create = LoadLibrary("RbxUtility").Create | |
191 | ||
192 | CFuncs = { | |
193 | ["Part"] = { | |
194 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
195 | local Part = Create("Part"){ | |
196 | Parent = Parent, | |
197 | Reflectance = Reflectance, | |
198 | Transparency = Transparency, | |
199 | CanCollide = false, | |
200 | Locked = true, | |
201 | BrickColor = BrickColor.new(tostring(BColor)), | |
202 | Name = Name, | |
203 | Size = Size, | |
204 | Material = Material, | |
205 | } | |
206 | RemoveOutlines(Part) | |
207 | return Part | |
208 | end; | |
209 | }; | |
210 | ||
211 | ["Mesh"] = { | |
212 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
213 | local Msh = Create(Mesh){ | |
214 | Parent = Part, | |
215 | Offset = OffSet, | |
216 | Scale = Scale, | |
217 | } | |
218 | if Mesh == "SpecialMesh" then | |
219 | Msh.MeshType = MeshType | |
220 | Msh.MeshId = MeshId | |
221 | end | |
222 | return Msh | |
223 | end; | |
224 | }; | |
225 | ||
226 | ["Mesh"] = { | |
227 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
228 | local Msh = Create(Mesh){ | |
229 | Parent = Part, | |
230 | Offset = OffSet, | |
231 | Scale = Scale, | |
232 | } | |
233 | if Mesh == "SpecialMesh" then | |
234 | Msh.MeshType = MeshType | |
235 | Msh.MeshId = MeshId | |
236 | end | |
237 | return Msh | |
238 | end; | |
239 | }; | |
240 | ||
241 | ["Weld"] = { | |
242 | Create = function(Parent, Part0, Part1, C0, C1) | |
243 | local Weld = Create("Weld"){ | |
244 | Parent = Parent, | |
245 | Part0 = Part0, | |
246 | Part1 = Part1, | |
247 | C0 = C0, | |
248 | C1 = C1, | |
249 | } | |
250 | return Weld | |
251 | end; | |
252 | }; | |
253 | ||
254 | ["Sound"] = { | |
255 | Create = function(id, par, vol, pit) | |
256 | coroutine.resume(coroutine.create(function() | |
257 | local S = Create("Sound"){ | |
258 | Volume = vol, | |
259 | Pitch = pit or 1, | |
260 | SoundId = id, | |
261 | Parent = par or workspace, | |
262 | } | |
263 | wait() | |
264 | S:play() | |
265 | game:GetService("Debris"):AddItem(S, 10) | |
266 | end)) | |
267 | end; | |
268 | }; | |
269 | ||
270 | ["LongSound"] = { | |
271 | Create = function(id, par, vol, pit) | |
272 | coroutine.resume(coroutine.create(function() | |
273 | local S = Create("Sound"){ | |
274 | Volume = vol, | |
275 | Pitch = pit or 1, | |
276 | SoundId = id, | |
277 | Parent = par or workspace, | |
278 | } | |
279 | wait() | |
280 | S:play() | |
281 | game:GetService("Debris"):AddItem(S, 30) | |
282 | end)) | |
283 | end; | |
284 | }; | |
285 | ||
286 | ["ParticleEmitter"] = { | |
287 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
288 | local fp = Create("ParticleEmitter"){ | |
289 | Parent = Parent, | |
290 | Color = ColorSequence.new(Color1, Color2), | |
291 | LightEmission = LightEmission, | |
292 | Size = Size, | |
293 | Texture = Texture, | |
294 | Transparency = Transparency, | |
295 | ZOffset = ZOffset, | |
296 | Acceleration = Accel, | |
297 | Drag = Drag, | |
298 | LockedToPart = LockedToPart, | |
299 | VelocityInheritance = VelocityInheritance, | |
300 | EmissionDirection = EmissionDirection, | |
301 | Enabled = Enabled, | |
302 | Lifetime = LifeTime, | |
303 | Rate = Rate, | |
304 | Rotation = Rotation, | |
305 | RotSpeed = RotSpeed, | |
306 | Speed = Speed, | |
307 | VelocitySpread = VelocitySpread, | |
308 | } | |
309 | return fp | |
310 | end; | |
311 | }; | |
312 | ||
313 | CreateTemplate = { | |
314 | ||
315 | }; | |
316 | } | |
317 | ||
318 | ||
319 | ||
320 | New = function(Object, Parent, Name, Data) | |
321 | local Object = Instance.new(Object) | |
322 | for Index, Value in pairs(Data or {}) do | |
323 | Object[Index] = Value | |
324 | end | |
325 | Object.Parent = Parent | |
326 | Object.Name = Name | |
327 | return Object | |
328 | end | |
329 | local halocolor = BrickColor.new("Dark indigo") | |
330 | local wepcolor = BrickColor.new("Really black") | |
331 | local MutantParts = Instance.new("Model",char) | |
332 | local MutantParts2 = Instance.new("Model",char) | |
333 | ||
334 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
335 | local p = Instance.new("Part") | |
336 | p.TopSurface = 0 | |
337 | p.BottomSurface = 0 | |
338 | p.Parent = parent | |
339 | p.Size = Vector3.new(0.1,0.1,0.1) | |
340 | p.Transparency = transparency | |
341 | p.Reflectance = reflectance | |
342 | p.CanCollide = false | |
343 | p.Locked = true | |
344 | p.BrickColor = brickcolor | |
345 | p.Material = material | |
346 | return p | |
347 | end | |
348 | ||
349 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
350 | local mesh = Instance.new("SpecialMesh",parent) | |
351 | mesh.MeshType = meshtype | |
352 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
353 | return mesh | |
354 | end | |
355 | ||
356 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
357 | local mesh = Instance.new("SpecialMesh",parent) | |
358 | mesh.MeshType = "FileMesh" | |
359 | mesh.MeshId = meshid | |
360 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
361 | mesh.Scale = Vector3.new(x1,y1,z1) | |
362 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
363 | return mesh | |
364 | end | |
365 | ||
366 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
367 | local weld = Instance.new("Weld") | |
368 | weld.Parent = parent | |
369 | weld.Part0 = part0 | |
370 | weld.Part1 = part1 | |
371 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
372 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
373 | return weld | |
374 | end | |
375 | ||
376 | --larm.Name = "MutatedLeftArm" | |
377 | ||
378 | extend = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor) | |
379 | CreateMesh(extend,"Brick",0.65,1,0.65) | |
380 | CreateWeld(extend,larm,extend,0,0.25,0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
381 | extend = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor) | |
382 | CreateMesh(extend,"Brick",0.65,1,0.65) | |
383 | CreateWeld(extend,larm,extend,0.25,-0.25,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
384 | extend = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor) | |
385 | CreateMesh(extend,"Brick",0.65,1,0.65) | |
386 | CreateWeld(extend,larm,extend,-0.275,-0.35,-0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
387 | extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red")) | |
388 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
389 | CreateWeld(extendblood,larm,extendblood,-0.15,0,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
390 | extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red")) | |
391 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
392 | CreateWeld(extendblood,larm,extendblood,-0.275,0.2,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
393 | extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red")) | |
394 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
395 | CreateWeld(extendblood,larm,extendblood,0.05,0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
396 | extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red")) | |
397 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
398 | CreateWeld(extendblood,larm,extendblood,0.15,-0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
399 | extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red")) | |
400 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
401 | CreateWeld(extendblood,larm,extendblood,-0.1,0,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
402 | extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red")) | |
403 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
404 | CreateWeld(extendblood,larm,extendblood,0.5,0.2,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
405 | extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red")) | |
406 | CreateMesh(extendblood,"Brick",0.05,1.5,0.05) | |
407 | CreateWeld(extendblood,larm,extendblood,0.5,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
408 | extendsph = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor) | |
409 | CreateMesh(extendsph,"Sphere",1.25,1.25,1.25) | |
410 | CreateWeld(extendsph,larm,extendsph,0.185,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
411 | extendsph = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor) | |
412 | CreateMesh(extendsph,"Sphere",0.75,0.75,0.75) | |
413 | CreateWeld(extendsph,larm,extendsph,0.35,-0.25,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
414 | extendsph = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor) | |
415 | CreateMesh(extendsph,"Sphere",0.75,0.75,0.75) | |
416 | CreateWeld(extendsph,larm,extendsph,-0.35,-0.5,-0.35,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
417 | extendcl = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("White")) | |
418 | CreateMesh(extendcl,"Wedge",0.05,0.5,2) | |
419 | CreateWeld(extendcl,larm,extendcl,0,-0.5,1,math.rad(90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
420 | extendcl = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("White")) | |
421 | CreateMesh(extendcl,"Wedge",0.05,0.5,2) | |
422 | CreateWeld(extendcl,larm,extendcl,0.25,-0.5,1,math.rad(90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
423 | extendcl = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("White")) | |
424 | CreateMesh(extendcl,"Wedge",0.05,0.5,2) | |
425 | CreateWeld(extendcl,larm,extendcl,-0.25,-0.5,1,math.rad(90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
426 | ||
427 | --- Secondary | |
428 | extendcl = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("White")) | |
429 | CreateMesh(extendcl,"Wedge",0.05,1,3) | |
430 | CreateWeld(extendcl,rarm,extendcl,0,-0.75,1,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
431 | extendcl = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("White")) | |
432 | CreateMesh(extendcl,"Wedge",0.05,1,1) | |
433 | CreateWeld(extendcl,rarm,extendcl,0,-0.75,1,math.rad(-90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
434 | extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor) | |
435 | CreateMesh(extend,"Brick",0.65,1,0.65) | |
436 | CreateWeld(extend,rarm,extend,-0.275,-0.35,-0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
437 | extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor) | |
438 | CreateMesh(extend,"Brick",0.65,1,0.65) | |
439 | CreateWeld(extend,rarm,extend,0.275,-0.15,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
440 | extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor) | |
441 | CreateMesh(extend,"Brick",0.65,1,0.65) | |
442 | CreateWeld(extend,rarm,extend,-0.205,0.15,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
443 | extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor) | |
444 | CreateMesh(extendsph,"Sphere",1.25,1.25,1.25) | |
445 | CreateWeld(extendsph,rarm,extendsph,0.125,0,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
446 | extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor) | |
447 | CreateMesh(extendsph,"Sphere",0.75,0.75,0.75) | |
448 | CreateWeld(extendsph,rarm,extendsph,-0.35,-0.25,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
449 | extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor) | |
450 | CreateMesh(extendsph,"Sphere",0.75,0.75,0.75) | |
451 | CreateWeld(extendsph,rarm,extendsph,0.315,-0.5,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
452 | extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor) | |
453 | CreateMesh(extendsph,"Sphere",0.75,0.75,0.75) | |
454 | CreateWeld(extendsph,rarm,extendsph,-0.235,0.45,-0.3,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
455 | extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red")) | |
456 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
457 | CreateWeld(extendblood,rarm,extendblood,-0.15,0,0.525,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
458 | extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red")) | |
459 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
460 | CreateWeld(extendblood,rarm,extendblood,-0.275,0.2,0.525,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
461 | extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red")) | |
462 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
463 | CreateWeld(extendblood,rarm,extendblood,0.25,0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
464 | extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red")) | |
465 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
466 | CreateWeld(extendblood,rarm,extendblood,0.15,-0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
467 | extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red")) | |
468 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
469 | CreateWeld(extendblood,rarm,extendblood,-0.1,0,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
470 | extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red")) | |
471 | CreateMesh(extendblood,"Brick",0.05,1.25,0.05) | |
472 | CreateWeld(extendblood,rarm,extendblood,-0.5,0.2,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
473 | extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red")) | |
474 | CreateMesh(extendblood,"Brick",0.05,1.5,0.05) | |
475 | CreateWeld(extendblood,rarm,extendblood,-0.5,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
476 | ||
477 | for i, v in pairs(MutantParts:GetChildren()) do | |
478 | if v:IsA("Part") then | |
479 | v.Transparency = 1 | |
480 | end | |
481 | end | |
482 | ||
483 | for i, v in pairs(MutantParts2:GetChildren()) do | |
484 | if v:IsA("Part") then | |
485 | v.Transparency = 1 | |
486 | end | |
487 | end | |
488 | function RemoveOutlines(part) | |
489 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
490 | end | |
491 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
492 | local Part = Create("Part")({ | |
493 | Parent = Parent, | |
494 | Reflectance = Reflectance, | |
495 | Transparency = Transparency, | |
496 | CanCollide = false, | |
497 | Locked = true, | |
498 | BrickColor = BrickColor.new(tostring(BColor)), | |
499 | Name = Name, | |
500 | Size = Size, | |
501 | Material = Material | |
502 | }) | |
503 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
504 | RemoveOutlines(Part) | |
505 | return Part | |
506 | end | |
507 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
508 | local Msh = Create(Mesh)({ | |
509 | Parent = Part, | |
510 | Offset = OffSet, | |
511 | Scale = Scale | |
512 | }) | |
513 | if Mesh == "SpecialMesh" then | |
514 | Msh.MeshType = MeshType | |
515 | Msh.MeshId = MeshId | |
516 | end | |
517 | return Msh | |
518 | end | |
519 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
520 | local Weld = Create("Weld")({ | |
521 | Parent = Parent, | |
522 | Part0 = Part0, | |
523 | Part1 = Part1, | |
524 | C0 = C0, | |
525 | C1 = C1 | |
526 | }) | |
527 | return Weld | |
528 | end | |
529 | ||
530 | local ff = Instance.new("ForceField",char) | |
531 | ff.Visible = false | |
532 | ||
533 | gui = function(GuiType, parent, text, backtrans, backcol, pos, size) | |
534 | local gui = it(GuiType) | |
535 | gui.Parent = parent | |
536 | gui.Text = text | |
537 | gui.BackgroundTransparency = backtrans | |
538 | gui.BackgroundColor3 = backcol | |
539 | gui.SizeConstraint = "RelativeXY" | |
540 | gui.TextXAlignment = "Center" | |
541 | gui.TextYAlignment = "Center" | |
542 | gui.Position = pos | |
543 | gui.Size = size | |
544 | gui.Font = "SourceSans" | |
545 | gui.FontSize = "Size14" | |
546 | gui.TextWrapped = false | |
547 | gui.TextStrokeTransparency = 0 | |
548 | gui.TextColor = BrickColor.new("White") | |
549 | return gui | |
550 | end | |
551 | ---- GUI set | |
552 | local basgui = it("GuiMain") | |
553 | basgui.Parent = plr.PlayerGui | |
554 | basgui.Name = "Killcounter GUI" | |
555 | local basframe = it("Frame") | |
556 | basframe.Parent = basgui | |
557 | basframe.BackgroundColor3 = Color3.new(255, 255, 255) | |
558 | basframe.BackgroundTransparency = 1 | |
559 | basframe.BorderColor3 = Color3.new(17, 17, 17) | |
560 | basframe.Size = UDim2.new(0.2, 0, 0.2, 0) | |
561 | basframe.Position = UDim2.new(0.8, 0, 0.8, 0) | |
562 | ||
563 | local basframelist = it("Frame") | |
564 | basframelist.Parent = basgui | |
565 | basframelist.BackgroundColor3 = Color3.new(255, 255, 255) | |
566 | basframelist.BackgroundTransparency = 1 | |
567 | basframelist.BorderColor3 = Color3.new(17, 17, 17) | |
568 | basframelist.Size = UDim2.new(0.2, 0, 0.2, 0) | |
569 | basframelist.Position = UDim2.new(0.8, 0, 0.8, 0) | |
570 | ||
571 | local uhh = gui("TextLabel", basframe, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.15, 0, 0.10, 0), UDim2.new(0.95, 0, 0.15, 0)) | |
572 | uhh.ZIndex = 2 | |
573 | uhh.Font = "Arcade" | |
574 | uhh.TextStrokeColor3 = Color3.new(180,180,0) | |
575 | uhh.TextColor3 = Color3.new(0,0,0) | |
576 | uhh.BackgroundTransparency = 1 | |
577 | uhh.BorderSizePixel = 0.65 | |
578 | uhh.TextScaled = false | |
579 | uhh.TextXAlignment = "Left" | |
580 | uhh.Text = "Kills : 0" | |
581 | uhh.TextSize = 54 | |
582 | ||
583 | ||
584 | local uhh2 = gui("TextLabel", basframelist, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.8, 0, 0.10, 0), UDim2.new(0.95, 0, 0.15, 0)) | |
585 | uhh2.ZIndex = 2 | |
586 | uhh2.Font = "Bodoni" | |
587 | uhh2.TextStrokeColor3 = Color3.new(1,0,0) | |
588 | uhh2.TextColor3 = Color3.new(0,0,0) | |
589 | uhh2.BackgroundTransparency = 1 | |
590 | uhh2.BorderSizePixel = 0.65 | |
591 | uhh2.TextScaled = false | |
592 | uhh2.TextXAlignment = "Left" | |
593 | uhh2.Text = "Required kills for second mutated arm: 15" | |
594 | uhh2.TextSize = 24 | |
595 | local uhh3 = gui("TextLabel", basframelist, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.5, 0, -0.1, 0), UDim2.new(0.95, 0, 0.15, 0)) | |
596 | uhh3.ZIndex = 2 | |
597 | uhh3.Font = "Bodoni" | |
598 | uhh3.TextStrokeColor3 = Color3.new(1,0,0) | |
599 | uhh3.TextColor3 = Color3.new(0,0,0) | |
600 | uhh3.BackgroundTransparency = 1 | |
601 | uhh3.BorderSizePixel = 0.65 | |
602 | uhh3.TextScaled = false | |
603 | uhh3.TextXAlignment = "Left" | |
604 | uhh3.Text = "Required kills for the end: 50" | |
605 | uhh3.TextSize = 24 | |
606 | ||
607 | ||
608 | Player=game:GetService("Players").LocalPlayer | |
609 | Character=Player.Character | |
610 | local Mouse = Player:GetMouse() | |
611 | PlayerGui=Player.PlayerGui | |
612 | Backpack=Player.Backpack | |
613 | Torso=Character.Torso | |
614 | Head=Character.Head | |
615 | Humanoid=Character.Humanoid | |
616 | m=Instance.new('Model',Character) | |
617 | LeftArm=Character["Left Arm"] | |
618 | LeftLeg=Character["Left Leg"] | |
619 | RightArm=Character["Right Arm"] | |
620 | RightLeg=Character["Right Leg"] | |
621 | LS=Torso["Left Shoulder"] | |
622 | LH=Torso["Left Hip"] | |
623 | RS=Torso["Right Shoulder"] | |
624 | RH=Torso["Right Hip"] | |
625 | Face = Head.face | |
626 | Neck=Torso.Neck | |
627 | it=Instance.new | |
628 | attacktype=1 | |
629 | vt=Vector3.new | |
630 | cf=CFrame.new | |
631 | euler=CFrame.fromEulerAnglesXYZ | |
632 | angles=CFrame.Angles | |
633 | cloaked=false | |
634 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
635 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
636 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
637 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
638 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
639 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
640 | RootPart=Character.HumanoidRootPart | |
641 | RootJoint=RootPart.RootJoint | |
642 | RootCF=euler(-1.57,0,3.14) | |
643 | attack = false | |
644 | attackdebounce = false | |
645 | deb=false | |
646 | equipped=true | |
647 | hand=false | |
648 | MMouse=nil | |
649 | combo=0 | |
650 | mana=0 | |
651 | trispeed=.2 | |
652 | attackmode='none' | |
653 | local idle=0 | |
654 | local Anim="Idle" | |
655 | local Effects={} | |
656 | local gun=false | |
657 | local shoot=false | |
658 | local sine = 0 | |
659 | local change = 1 | |
660 | player=nil | |
661 | ||
662 | mouse=Player:GetMouse() | |
663 | --save shoulders | |
664 | RSH, LSH=nil, nil | |
665 | --welds | |
666 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
667 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
668 | LH=Torso["Left Hip"] | |
669 | RH=Torso["Right Hip"] | |
670 | TorsoColor=Torso.BrickColor | |
671 | function NoOutline(Part) | |
672 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
673 | end | |
674 | player=Player | |
675 | ch=Character | |
676 | RSH=ch.Torso["Right Shoulder"] | |
677 | LSH=ch.Torso["Left Shoulder"] | |
678 | -- | |
679 | RSH.Parent=nil | |
680 | LSH.Parent=nil | |
681 | -- | |
682 | RW.Name="Right Shoulder" | |
683 | RW.Part0=ch.Torso | |
684 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
685 | RW.C1=cf(0, 0.5, 0) | |
686 | RW.Part1=ch["Right Arm"] | |
687 | RW.Parent=ch.Torso | |
688 | -- | |
689 | LW.Name="Left Shoulder" | |
690 | LW.Part0=ch.Torso | |
691 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
692 | LW.C1=cf(0, 0.5, 0) | |
693 | LW.Part1=ch["Left Arm"] | |
694 | LW.Parent=ch.Torso | |
695 | ||
696 | local Stats=Instance.new("BoolValue") | |
697 | Stats.Name="Stats" | |
698 | Stats.Parent=Character | |
699 | local Atk=Instance.new("NumberValue") | |
700 | Atk.Name="Damage" | |
701 | Atk.Parent=Stats | |
702 | Atk.Value=1 | |
703 | local Def=Instance.new("NumberValue") | |
704 | Def.Name="Defense" | |
705 | Def.Parent=Stats | |
706 | Def.Value=1 | |
707 | local Speed=Instance.new("NumberValue") | |
708 | Speed.Name="Speed" | |
709 | Speed.Parent=Stats | |
710 | Speed.Value=1 | |
711 | local Mvmt=Instance.new("NumberValue") | |
712 | Mvmt.Name="Movement" | |
713 | Mvmt.Parent=Stats | |
714 | Mvmt.Value=1 | |
715 | ||
716 | local donum=0 | |
717 | ||
718 | ||
719 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
720 | local fp=it("Part") | |
721 | fp.formFactor=formfactor | |
722 | fp.Parent=parent | |
723 | fp.Reflectance=reflectance | |
724 | fp.Transparency=transparency | |
725 | fp.CanCollide=false | |
726 | fp.Locked=true | |
727 | fp.BrickColor=brickcolor | |
728 | fp.Name=name | |
729 | fp.Size=size | |
730 | fp.Position=Torso.Position | |
731 | NoOutline(fp) | |
732 | fp.Material="SmoothPlastic" | |
733 | fp:BreakJoints() | |
734 | return fp | |
735 | end | |
736 | ||
737 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
738 | local mesh=it(Mesh) | |
739 | mesh.Parent=part | |
740 | if Mesh=="SpecialMesh" then | |
741 | mesh.MeshType=meshtype | |
742 | if meshid~="nil" then | |
743 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
744 | end | |
745 | end | |
746 | mesh.Offset=offset | |
747 | mesh.Scale=scale | |
748 | return mesh | |
749 | end | |
750 | ||
751 | function weld(parent,part0,part1,c0) | |
752 | local weld=it("Weld") | |
753 | weld.Parent=parent | |
754 | weld.Part0=part0 | |
755 | weld.Part1=part1 | |
756 | weld.C0=c0 | |
757 | return weld | |
758 | end | |
759 | ||
760 | local Color1=Torso.BrickColor | |
761 | ||
762 | local bodvel=Instance.new("BodyVelocity") | |
763 | local bg=Instance.new("BodyGyro") | |
764 | ||
765 | function swait(num) | |
766 | if num==0 or num==nil then | |
767 | game:service'RunService'.Stepped:wait(0) | |
768 | else | |
769 | for i=0,num do | |
770 | game:service'RunService'.Stepped:wait(0) | |
771 | end | |
772 | end | |
773 | end | |
774 | ||
775 | ||
776 | so = function(id,par,vol,pit) | |
777 | coroutine.resume(coroutine.create(function() | |
778 | local sou = Instance.new("Sound",par or workspace) | |
779 | sou.Volume=vol | |
780 | sou.Pitch=pit or 1 | |
781 | sou.SoundId=id | |
782 | swait() | |
783 | sou:play() | |
784 | game:GetService("Debris"):AddItem(sou,6) | |
785 | end)) | |
786 | end | |
787 | ||
788 | function clerp(a,b,t) | |
789 | local qa = {QuaternionFromCFrame(a)} | |
790 | local qb = {QuaternionFromCFrame(b)} | |
791 | local ax, ay, az = a.x, a.y, a.z | |
792 | local bx, by, bz = b.x, b.y, b.z | |
793 | local _t = 1-t | |
794 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
795 | end | |
796 | ||
797 | function QuaternionFromCFrame(cf) | |
798 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
799 | local trace = m00 + m11 + m22 | |
800 | if trace > 0 then | |
801 | local s = math.sqrt(1 + trace) | |
802 | local recip = 0.5/s | |
803 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
804 | else | |
805 | local i = 0 | |
806 | if m11 > m00 then | |
807 | i = 1 | |
808 | end | |
809 | if m22 > (i == 0 and m00 or m11) then | |
810 | i = 2 | |
811 | end | |
812 | if i == 0 then | |
813 | local s = math.sqrt(m00-m11-m22+1) | |
814 | local recip = 0.5/s | |
815 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
816 | elseif i == 1 then | |
817 | local s = math.sqrt(m11-m22-m00+1) | |
818 | local recip = 0.5/s | |
819 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
820 | elseif i == 2 then | |
821 | local s = math.sqrt(m22-m00-m11+1) | |
822 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
823 | end | |
824 | end | |
825 | end | |
826 | ||
827 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
828 | local xs, ys, zs = x + x, y + y, z + z | |
829 | local wx, wy, wz = w*xs, w*ys, w*zs | |
830 | local xx = x*xs | |
831 | local xy = x*ys | |
832 | local xz = x*zs | |
833 | local yy = y*ys | |
834 | local yz = y*zs | |
835 | local zz = z*zs | |
836 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
837 | end | |
838 | ||
839 | function QuaternionSlerp(a, b, t) | |
840 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
841 | local startInterp, finishInterp; | |
842 | if cosTheta >= 0.0001 then | |
843 | if (1 - cosTheta) > 0.0001 then | |
844 | local theta = math.acos(cosTheta) | |
845 | local invSinTheta = 1/math.sin(theta) | |
846 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
847 | finishInterp = math.sin(t*theta)*invSinTheta | |
848 | else | |
849 | startInterp = 1-t | |
850 | finishInterp = t | |
851 | end | |
852 | else | |
853 | if (1+cosTheta) > 0.0001 then | |
854 | local theta = math.acos(-cosTheta) | |
855 | local invSinTheta = 1/math.sin(theta) | |
856 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
857 | finishInterp = math.sin(t*theta)*invSinTheta | |
858 | else | |
859 | startInterp = t-1 | |
860 | finishInterp = t | |
861 | end | |
862 | end | |
863 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
864 | end | |
865 | ||
866 | local function CFrameFromTopBack(at, top, back) | |
867 | local right = top:Cross(back) | |
868 | return CFrame.new(at.x, at.y, at.z, | |
869 | right.x, top.x, back.x, | |
870 | right.y, top.y, back.y, | |
871 | right.z, top.z, back.z) | |
872 | end | |
873 | ||
874 | function Triangle(a, b, c) | |
875 | local edg1 = (c-a):Dot((b-a).unit) | |
876 | local edg2 = (a-b):Dot((c-b).unit) | |
877 | local edg3 = (b-c):Dot((a-c).unit) | |
878 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
879 | a, b, c = a, b, c | |
880 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
881 | a, b, c = b, c, a | |
882 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
883 | a, b, c = c, a, b | |
884 | else | |
885 | assert(false, "unreachable") | |
886 | end | |
887 | ||
888 | local len1 = (c-a):Dot((b-a).unit) | |
889 | local len2 = (b-a).magnitude - len1 | |
890 | local width = (a + (b-a).unit*len1 - c).magnitude | |
891 | ||
892 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
893 | ||
894 | local list = {} | |
895 | ||
896 | if len1 > 0.01 then | |
897 | local w1 = Instance.new('WedgePart', m) | |
898 | game:GetService("Debris"):AddItem(w1,5) | |
899 | w1.Material = "SmoothPlastic" | |
900 | w1.FormFactor = 'Custom' | |
901 | w1.BrickColor = BrickColor.new("Really red") | |
902 | w1.Transparency = 0 | |
903 | w1.Reflectance = 0 | |
904 | w1.Material = "SmoothPlastic" | |
905 | w1.CanCollide = false | |
906 | local l1 = Instance.new("PointLight",w1) | |
907 | l1.Color = Color3.new(170,0,0) | |
908 | NoOutline(w1) | |
909 | local sz = Vector3.new(0.2, width, len1) | |
910 | w1.Size = sz | |
911 | local sp = Instance.new("SpecialMesh",w1) | |
912 | sp.MeshType = "Wedge" | |
913 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
914 | w1:BreakJoints() | |
915 | w1.Anchored = true | |
916 | w1.Parent = workspace | |
917 | w1.Transparency = 0.7 | |
918 | table.insert(Effects,{w1,"Disappear",.01}) | |
919 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
920 | table.insert(list,w1) | |
921 | end | |
922 | ||
923 | if len2 > 0.01 then | |
924 | local w2 = Instance.new('WedgePart', m) | |
925 | game:GetService("Debris"):AddItem(w2,5) | |
926 | w2.Material = "SmoothPlastic" | |
927 | w2.FormFactor = 'Custom' | |
928 | w2.BrickColor = BrickColor.new("Really red") | |
929 | w2.Transparency = 0 | |
930 | w2.Reflectance = 0 | |
931 | w2.Material = "SmoothPlastic" | |
932 | w2.CanCollide = false | |
933 | local l2 = Instance.new("PointLight",w2) | |
934 | l2.Color = Color3.new(170,0,0) | |
935 | NoOutline(w2) | |
936 | local sz = Vector3.new(0.2, width, len2) | |
937 | w2.Size = sz | |
938 | local sp = Instance.new("SpecialMesh",w2) | |
939 | sp.MeshType = "Wedge" | |
940 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
941 | w2:BreakJoints() | |
942 | w2.Anchored = true | |
943 | w2.Parent = workspace | |
944 | w2.Transparency = 0.7 | |
945 | table.insert(Effects,{w2,"Disappear",.01}) | |
946 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
947 | table.insert(list,w2) | |
948 | end | |
949 | return unpack(list) | |
950 | end | |
951 | ||
952 | ||
953 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
954 | if hit.Parent == nil then | |
955 | return | |
956 | end | |
957 | local h = hit.Parent:FindFirstChild("Humanoid") | |
958 | for _, v in pairs(hit.Parent:children()) do | |
959 | if v:IsA("Humanoid") then | |
960 | h = v | |
961 | end | |
962 | end | |
963 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
964 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
965 | return | |
966 | end | |
967 | local c = Create("ObjectValue")({ | |
968 | Name = "creator", | |
969 | Value = game:service("Players").LocalPlayer, | |
970 | Parent = h | |
971 | }) | |
972 | game:GetService("Debris"):AddItem(c, 0.5) | |
973 | if HitSound ~= nil and HitPitch ~= nil then | |
974 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
975 | end | |
976 | local Damage = math.random(minim, maxim) | |
977 | local blocked = false | |
978 | local block = hit.Parent:findFirstChild("Block") | |
979 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
980 | blocked = true | |
981 | block.Value = block.Value - 1 | |
982 | print(block.Value) | |
983 | end | |
984 | if blocked == false then | |
985 | HitHealth = h.Health | |
986 | h.Health = h.Health - Damage | |
987 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
988 | print("gained kill") | |
989 | end | |
990 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
991 | else | |
992 | h.Health = h.Health - Damage / 2 | |
993 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
994 | end | |
995 | if Type == "Knockdown" then | |
996 | local hum = hit.Parent.Humanoid | |
997 | hum.PlatformStand = true | |
998 | coroutine.resume(coroutine.create(function(HHumanoid) | |
999 | swait(1) | |
1000 | HHumanoid.PlatformStand = false | |
1001 | end), hum) | |
1002 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1003 | local bodvol = Create("BodyVelocity")({ | |
1004 | velocity = angle * knockback, | |
1005 | P = 5000, | |
1006 | maxForce = Vector3.new(8000, 8000, 8000), | |
1007 | Parent = hit | |
1008 | }) | |
1009 | local rl = Create("BodyAngularVelocity")({ | |
1010 | P = 3000, | |
1011 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
1012 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1013 | Parent = hit | |
1014 | }) | |
1015 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
1016 | game:GetService("Debris"):AddItem(rl, 0.5) | |
1017 | elseif Type == "Normal" then | |
1018 | local vp = Create("BodyVelocity")({ | |
1019 | P = 500, | |
1020 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
1021 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
1022 | }) | |
1023 | if knockback > 0 then | |
1024 | vp.Parent = hit.Parent.Torso | |
1025 | end | |
1026 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1027 | elseif Type == "Up" then | |
1028 | local bodyVelocity = Create("BodyVelocity")({ | |
1029 | velocity = Vector3.new(0, 20, 0), | |
1030 | P = 5000, | |
1031 | maxForce = Vector3.new(8000, 8000, 8000), | |
1032 | Parent = hit | |
1033 | }) | |
1034 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1035 | local bodyVelocity = Create("BodyVelocity")({ | |
1036 | velocity = Vector3.new(0, 20, 0), | |
1037 | P = 5000, | |
1038 | maxForce = Vector3.new(8000, 8000, 8000), | |
1039 | Parent = hit | |
1040 | }) | |
1041 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1042 | elseif Type == "Leech" then | |
1043 | local hum = hit.Parent.Humanoid | |
1044 | if hum ~= nil then | |
1045 | for i = 0, 2 do | |
1046 | Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02) | |
1047 | end | |
1048 | Humanoid.Health = Humanoid.Health + 10 | |
1049 | end | |
1050 | elseif Type == "UpKnock" then | |
1051 | local hum = hit.Parent.Humanoid | |
1052 | hum.PlatformStand = true | |
1053 | if hum ~= nil then | |
1054 | hitr = true | |
1055 | end | |
1056 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1057 | swait(5) | |
1058 | HHumanoid.PlatformStand = false | |
1059 | hitr = false | |
1060 | end), hum) | |
1061 | local bodyVelocity = Create("BodyVelocity")({ | |
1062 | velocity = Vector3.new(0, 20, 0), | |
1063 | P = 5000, | |
1064 | maxForce = Vector3.new(8000, 8000, 8000), | |
1065 | Parent = hit | |
1066 | }) | |
1067 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1068 | local bodyVelocity = Create("BodyVelocity")({ | |
1069 | velocity = Vector3.new(0, 20, 0), | |
1070 | P = 5000, | |
1071 | maxForce = Vector3.new(8000, 8000, 8000), | |
1072 | Parent = hit | |
1073 | }) | |
1074 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1075 | elseif Type == "Snare" then | |
1076 | local bp = Create("BodyPosition")({ | |
1077 | P = 2000, | |
1078 | D = 100, | |
1079 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1080 | position = hit.Parent.Torso.Position, | |
1081 | Parent = hit.Parent.Torso | |
1082 | }) | |
1083 | game:GetService("Debris"):AddItem(bp, 1) | |
1084 | elseif Type == "Slashnare" then | |
1085 | Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07) | |
1086 | for i = 1, math.random(4, 5) do | |
1087 | Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02) | |
1088 | end | |
1089 | local bp = Create("BodyPosition")({ | |
1090 | P = 2000, | |
1091 | D = 100, | |
1092 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1093 | position = hit.Parent.Torso.Position, | |
1094 | Parent = hit.Parent.Torso | |
1095 | }) | |
1096 | game:GetService("Debris"):AddItem(bp, 1) | |
1097 | elseif Type == "Spike" then | |
1098 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
1099 | local bp = Create("BodyPosition")({ | |
1100 | P = 2000, | |
1101 | D = 100, | |
1102 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1103 | position = hit.Parent.Torso.Position, | |
1104 | Parent = hit.Parent.Torso | |
1105 | }) | |
1106 | game:GetService("Debris"):AddItem(bp, 1) | |
1107 | elseif Type == "Freeze" then | |
1108 | local BodPos = Create("BodyPosition")({ | |
1109 | P = 50000, | |
1110 | D = 1000, | |
1111 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1112 | position = hit.Parent.Torso.Position, | |
1113 | Parent = hit.Parent.Torso | |
1114 | }) | |
1115 | local BodGy = Create("BodyGyro")({ | |
1116 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
1117 | P = 20000, | |
1118 | Parent = hit.Parent.Torso, | |
1119 | cframe = hit.Parent.Torso.CFrame | |
1120 | }) | |
1121 | hit.Parent.Torso.Anchored = true | |
1122 | coroutine.resume(coroutine.create(function(Part) | |
1123 | swait(1.5) | |
1124 | Part.Anchored = false | |
1125 | end), hit.Parent.Torso) | |
1126 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1127 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1128 | end | |
1129 | local debounce = Create("BoolValue")({ | |
1130 | Name = "DebounceHit", | |
1131 | Parent = hit.Parent, | |
1132 | Value = true | |
1133 | }) | |
1134 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1135 | c = Instance.new("ObjectValue") | |
1136 | c.Name = "creator" | |
1137 | c.Value = Player | |
1138 | c.Parent = h | |
1139 | game:GetService("Debris"):AddItem(c, 0.5) | |
1140 | end | |
1141 | end | |
1142 | function ShowDamage(Pos, Text, Time, Color) | |
1143 | local Rate = 0.03333333333333333 | |
1144 | local Pos = Pos or Vector3.new(0, 0, 0) | |
1145 | local Text = Text or "" | |
1146 | local Time = Time or 2 | |
1147 | local Color = Color or Color3.new(1, 0, 1) | |
1148 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1149 | EffectPart.Anchored = true | |
1150 | local BillboardGui = Create("BillboardGui")({ | |
1151 | Size = UDim2.new(3, 0, 3, 0), | |
1152 | Adornee = EffectPart, | |
1153 | Parent = EffectPart | |
1154 | }) | |
1155 | local TextLabel = Create("TextLabel")({ | |
1156 | BackgroundTransparency = 1, | |
1157 | Size = UDim2.new(1, 0, 1, 0), | |
1158 | Text = Text, | |
1159 | TextColor3 = Color, | |
1160 | TextScaled = true, | |
1161 | Font = Enum.Font.ArialBold, | |
1162 | Parent = BillboardGui | |
1163 | }) | |
1164 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1165 | EffectPart.Parent = game:GetService("Workspace") | |
1166 | delay(0, function() | |
1167 | local Frames = Time / Rate | |
1168 | for Frame = 1, Frames do | |
1169 | wait(Rate) | |
1170 | local Percent = Frame / Frames | |
1171 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1172 | TextLabel.TextTransparency = Percent | |
1173 | end | |
1174 | if EffectPart and EffectPart.Parent then | |
1175 | EffectPart:Destroy() | |
1176 | end | |
1177 | end) | |
1178 | end | |
1179 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
1180 | for _, c in pairs(workspace:children()) do | |
1181 | local hum = c:findFirstChild("Humanoid") | |
1182 | if hum ~= nil then | |
1183 | local head = c:findFirstChild("Torso") | |
1184 | if head ~= nil then | |
1185 | local targ = head.Position - Part.Position | |
1186 | local mag = targ.magnitude | |
1187 | if magni >= mag and c.Name ~= Player.Name then | |
1188 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1189 | end | |
1190 | end | |
1191 | end | |
1192 | end | |
1193 | end | |
1194 | ||
1195 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
1196 | for _, c in pairs(workspace:children()) do | |
1197 | local hum = c:findFirstChild("Humanoid") | |
1198 | if hum ~= nil then | |
1199 | local head = c:findFirstChild("Torso") | |
1200 | if head ~= nil then | |
1201 | local targ = head.Position - Part.Position | |
1202 | local mag = targ.magnitude | |
1203 | if magni >= mag and c.Name ~= Player.Name then | |
1204 | MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05) | |
1205 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1206 | end | |
1207 | end | |
1208 | end | |
1209 | end | |
1210 | end | |
1211 | ||
1212 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1213 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1214 | end | |
1215 | ||
1216 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
1217 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1218 | prt.Anchored=true | |
1219 | prt.CFrame=cframe | |
1220 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) | |
1221 | --http://www.roblox.com/asset/?id=4770560 | |
1222 | game:GetService("Debris"):AddItem(prt,2) | |
1223 | CF=prt.CFrame | |
1224 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
1225 | for i=0,1,0.2 do | |
1226 | wait() | |
1227 | Part.CFrame=CF*cf(0,0,-0.4) | |
1228 | end | |
1229 | for i=0,1,delay do | |
1230 | wait() | |
1231 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
1232 | Mesh.Scale=Mesh.Scale | |
1233 | end | |
1234 | for i=0,1,0.1 do | |
1235 | wait() | |
1236 | Part.Transparency=i | |
1237 | end | |
1238 | Part.Parent=nil | |
1239 | end),prt,msh,CF) | |
1240 | end | |
1241 | ||
1242 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1243 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1244 | prt.Anchored=true | |
1245 | prt.Material = "Neon" | |
1246 | prt.CFrame=cframe | |
1247 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1248 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1249 | game:GetService("Debris"):AddItem(prt,5) | |
1250 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1251 | for i=0,1,delay do | |
1252 | swait() | |
1253 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1254 | Part.Transparency=i | |
1255 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1256 | end | |
1257 | Part.Parent=nil | |
1258 | end),prt,msh) | |
1259 | end | |
1260 | ||
1261 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1262 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1263 | prt.Anchored=true | |
1264 | prt.Material = "Neon" | |
1265 | prt.CFrame=cframe | |
1266 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1267 | game:GetService("Debris"):AddItem(prt,5) | |
1268 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1269 | local rtype = rottype | |
1270 | for i=0,1,delay do | |
1271 | swait() | |
1272 | if rtype == 1 then | |
1273 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1274 | elseif rtype == 2 then | |
1275 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1276 | end | |
1277 | Part.Transparency=i | |
1278 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1279 | end | |
1280 | Part.Parent=nil | |
1281 | end),prt,msh) | |
1282 | end | |
1283 | ||
1284 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1285 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1286 | prt.Anchored=true | |
1287 | prt.CFrame=cframe | |
1288 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1289 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1290 | game:GetService("Debris"):AddItem(prt,5) | |
1291 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1292 | for i=0,1,delay do | |
1293 | wait() | |
1294 | Part.Transparency=i | |
1295 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1296 | end | |
1297 | Part.Parent=nil | |
1298 | end),prt,msh) | |
1299 | end | |
1300 | ||
1301 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1302 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1303 | prt.Anchored=true | |
1304 | prt.Material = "Neon" | |
1305 | prt.CFrame=cframe | |
1306 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1307 | game:GetService("Debris"):AddItem(prt,5) | |
1308 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1309 | local rtype = rottype | |
1310 | for i=0,1,delay do | |
1311 | swait() | |
1312 | if rtype == 1 then | |
1313 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1314 | elseif rtype == 2 then | |
1315 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1316 | end | |
1317 | Part.Transparency=i | |
1318 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1319 | end | |
1320 | Part.Parent=nil | |
1321 | end),prt,msh) | |
1322 | end | |
1323 | ||
1324 | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
1325 | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1326 | prt.Anchored=true | |
1327 | prt.Material = "Neon" | |
1328 | prt.CFrame=cframe | |
1329 | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
1330 | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
1331 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
1332 | game:GetService("Debris"):AddItem(prt,5) | |
1333 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1334 | local rtype = rottype | |
1335 | for i=0,1,delay do | |
1336 | swait() | |
1337 | if rtype == 1 then | |
1338 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1339 | elseif rtype == 2 then | |
1340 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1341 | end | |
1342 | dec.Transparency=i | |
1343 | dec2.Transparency=i | |
1344 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1345 | end | |
1346 | Part.Parent=nil | |
1347 | end),prt,msh) | |
1348 | end | |
1349 | ||
1350 | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
1351 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1352 | prt.Anchored=true | |
1353 | prt.Material = "Neon" | |
1354 | prt.CFrame=cframe | |
1355 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
1356 | game:GetService("Debris"):AddItem(prt,5) | |
1357 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1358 | local rtype = rottype | |
1359 | for i=0,1,delay do | |
1360 | swait() | |
1361 | if rtype == 1 then | |
1362 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1363 | elseif rtype == 2 then | |
1364 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1365 | end | |
1366 | prt.Transparency=i | |
1367 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1368 | end | |
1369 | Part.Parent=nil | |
1370 | end),prt,msh) | |
1371 | end | |
1372 | ||
1373 | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) | |
1374 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1375 | prt.Anchored=true | |
1376 | prt.Material = "Neon" | |
1377 | prt.CFrame=cframe | |
1378 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1)) | |
1379 | game:GetService("Debris"):AddItem(prt,5) | |
1380 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1381 | local rtype = rottype | |
1382 | for i=0,1,delay do | |
1383 | swait() | |
1384 | if rtype == 1 then | |
1385 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) | |
1386 | elseif rtype == 2 then | |
1387 | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) | |
1388 | end | |
1389 | prt.Transparency=i | |
1390 | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) | |
1391 | end | |
1392 | Part.Parent=nil | |
1393 | end),prt,msh) | |
1394 | end | |
1395 | ||
1396 | function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype) | |
1397 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1398 | prt.Anchored=true | |
1399 | prt.Material = "Neon" | |
1400 | prt.CFrame=cframe | |
1401 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1402 | game:GetService("Debris"):AddItem(prt,5) | |
1403 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1404 | local rtype = rottype | |
1405 | for i=0,1,delay do | |
1406 | swait() | |
1407 | if rtype == 1 then | |
1408 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1409 | elseif rtype == 2 then | |
1410 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1411 | end | |
1412 | prt.Transparency=i | |
1413 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1414 | end | |
1415 | Part.Parent=nil | |
1416 | end),prt,msh) | |
1417 | end | |
1418 | ||
1419 | function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1420 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1421 | prt.Anchored=true | |
1422 | prt.Material = "Neon" | |
1423 | prt.CFrame=cframe | |
1424 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1425 | game:GetService("Debris"):AddItem(prt,5) | |
1426 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1427 | local rtype = rottype | |
1428 | for i=0,1,delay do | |
1429 | swait() | |
1430 | if rtype == 1 then | |
1431 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1432 | elseif rtype == 2 then | |
1433 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1434 | end | |
1435 | prt.Transparency=i | |
1436 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1437 | end | |
1438 | Part.Parent=nil | |
1439 | end),prt,msh) | |
1440 | end | |
1441 | ||
1442 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
1443 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1444 | prt.Anchored=false | |
1445 | prt.CFrame=cframe | |
1446 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1447 | local wld=weld(prt,prt,Parent,cframe) | |
1448 | game:GetService("Debris"):AddItem(prt,5) | |
1449 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
1450 | for i=0,1,delay do | |
1451 | wait() | |
1452 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
1453 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1454 | Part.Transparency=i | |
1455 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1456 | end | |
1457 | Part.Parent=nil | |
1458 | end),prt,msh,wld) | |
1459 | end | |
1460 | ||
1461 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
1462 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1463 | prt.Anchored=false | |
1464 | prt.CFrame=cframe | |
1465 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1466 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
1467 | game:GetService("Debris"):AddItem(prt,5) | |
1468 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
1469 | for i=0,1,delay do | |
1470 | wait() | |
1471 | Weld.C0=euler(i*20,0,0) | |
1472 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1473 | Part.Transparency=i | |
1474 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1475 | end | |
1476 | Part.Parent=nil | |
1477 | end),prt,msh,wld) | |
1478 | end | |
1479 | ||
1480 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1481 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1482 | prt.Anchored=true | |
1483 | prt.CFrame=cframe | |
1484 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1485 | game:GetService("Debris"):AddItem(prt,2) | |
1486 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1487 | for i=0,1,delay do | |
1488 | wait() | |
1489 | Part.CFrame=Part.CFrame | |
1490 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1491 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1492 | prt2.Anchored=true | |
1493 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1494 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
1495 | game:GetService("Debris"):AddItem(prt2,2) | |
1496 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1497 | for i=0,1,0.1 do | |
1498 | wait() | |
1499 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
1500 | end | |
1501 | Part.Parent=nil | |
1502 | end),prt2,msh2) | |
1503 | end | |
1504 | for i=0,1,delay*2 do | |
1505 | wait() | |
1506 | Part.CFrame=Part.CFrame | |
1507 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
1508 | end | |
1509 | Part.Parent=nil | |
1510 | end),prt,msh) | |
1511 | end | |
1512 | ||
1513 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1514 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1515 | prt.Anchored=true | |
1516 | prt.CFrame=cframe | |
1517 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1518 | game:GetService("Debris"):AddItem(prt,2) | |
1519 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1520 | for i=0,1,delay do | |
1521 | wait() | |
1522 | Part.CFrame=Part.CFrame | |
1523 | Part.Transparency=i | |
1524 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1525 | end | |
1526 | Part.Parent=nil | |
1527 | end),prt,msh) | |
1528 | end | |
1529 | ||
1530 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
1531 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1532 | prt.Anchored=true | |
1533 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1534 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1535 | game:GetService("Debris"):AddItem(prt,2) | |
1536 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
1537 | CF=Part.CFrame | |
1538 | Numbb=0 | |
1539 | randnumb=math.random()/10 | |
1540 | rand1=math.random()/10 | |
1541 | for i=0,1,rand1 do | |
1542 | wait() | |
1543 | CF=CF*cf(0,math.random()/2,0) | |
1544 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
1545 | Part.CFrame=CF*euler(Numbb,0,0) | |
1546 | Part.Transparency=i | |
1547 | Numbb=Numbb+randnumb | |
1548 | end | |
1549 | Part.Parent=nil | |
1550 | end),prt,CF,Numbb,randnumb) | |
1551 | end | |
1552 | ||
1553 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1554 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1555 | prt.Anchored=true | |
1556 | prt.CFrame=cframe | |
1557 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
1558 | game:GetService("Debris"):AddItem(prt,5) | |
1559 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1560 | for i=0,1,delay do | |
1561 | wait() | |
1562 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
1563 | Part.Transparency=i | |
1564 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1565 | end | |
1566 | Part.Parent=nil | |
1567 | end),prt,msh) | |
1568 | end | |
1569 | ||
1570 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1571 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1572 | prt.Anchored=true | |
1573 | prt.CFrame=cframe | |
1574 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
1575 | game:GetService("Debris"):AddItem(prt,2) | |
1576 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1577 | for i=0,1,delay do | |
1578 | wait() | |
1579 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
1580 | Part.Transparency=i | |
1581 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1582 | end | |
1583 | Part.Parent=nil | |
1584 | end),prt,msh) | |
1585 | end | |
1586 | ||
1587 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
1588 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1589 | prt.Anchored=true | |
1590 | prt.CFrame=cframe*cf(x,y,z) | |
1591 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
1592 | game:GetService("Debris"):AddItem(prt,5) | |
1593 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
1594 | local num=math.random() | |
1595 | local num2=math.random(-3,2)+math.random() | |
1596 | local numm=0 | |
1597 | for i=0,1,delay*2 do | |
1598 | swait() | |
1599 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
1600 | Part.Transparency=i | |
1601 | numm=numm+0.01 | |
1602 | end | |
1603 | Part.Parent=nil | |
1604 | Mesh.Parent=nil | |
1605 | end),prt,msh,x,y,z) | |
1606 | end | |
1607 | ||
1608 | function dmgstart(dmg,what) | |
1609 | hitcon = what.Touched:connect(function(hit) | |
1610 | local hum = hit.Parent:FindFirstChild("Humanoid") | |
1611 | if hum and not hum:IsDescendantOf(Character) then | |
1612 | hum:TakeDamage(dmg) | |
1613 | end | |
1614 | end) | |
1615 | end | |
1616 | ||
1617 | function dmgstop() | |
1618 | hitcon:disconnect() | |
1619 | end | |
1620 | ||
1621 | function Cloak() | |
1622 | Face.Parent=nil | |
1623 | cloaked=true | |
1624 | for _,v in pairs(Torso.Parent:children()) do | |
1625 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
1626 | coroutine.resume(coroutine.create(function() | |
1627 | for i=0,1,0.2 do | |
1628 | wait() | |
1629 | v.Transparency=i | |
1630 | end | |
1631 | v.Transparency=1 | |
1632 | end)) | |
1633 | end | |
1634 | if v.className=="Hat" then | |
1635 | hatp=v.Handle | |
1636 | coroutine.resume(coroutine.create(function(derp) | |
1637 | for i=0,1,0.2 do | |
1638 | wait() | |
1639 | derp.Transparency=i | |
1640 | end | |
1641 | derp.Transparency=1 | |
1642 | end),hatp) | |
1643 | end | |
1644 | end | |
1645 | for _,v in pairs(m:children()) do | |
1646 | if v.className=="Part" then | |
1647 | coroutine.resume(coroutine.create(function() | |
1648 | for i=0,1,0.2 do | |
1649 | wait() | |
1650 | v.Transparency=i | |
1651 | end | |
1652 | v.Transparency=1 | |
1653 | end)) | |
1654 | end | |
1655 | end | |
1656 | end | |
1657 | ||
1658 | function UnCloak() | |
1659 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) | |
1660 | Face.Parent=Head | |
1661 | cloaked=false | |
1662 | for _,v in pairs(Torso.Parent:children()) do | |
1663 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
1664 | coroutine.resume(coroutine.create(function() | |
1665 | for i=0,1,0.1 do | |
1666 | wait() | |
1667 | v.Transparency=v.Transparency-0.1 | |
1668 | end | |
1669 | v.Transparency=0 | |
1670 | end)) | |
1671 | end | |
1672 | if v.className=="Hat" then | |
1673 | hatp=v.Handle | |
1674 | coroutine.resume(coroutine.create(function(derp) | |
1675 | for i=0,1,0.1 do | |
1676 | wait() | |
1677 | derp.Transparency=derp.Transparency-0.1 | |
1678 | end | |
1679 | derp.Transparency=0 | |
1680 | end),hatp) | |
1681 | end | |
1682 | end | |
1683 | for _,v in pairs(m:children()) do | |
1684 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
1685 | coroutine.resume(coroutine.create(function() | |
1686 | for i=0,1,0.1 do | |
1687 | wait() | |
1688 | v.Transparency=v.Transparency-0.1 | |
1689 | end | |
1690 | v.Transparency=0 | |
1691 | end)) | |
1692 | v.Transparency=0 | |
1693 | end | |
1694 | end | |
1695 | end | |
1696 | ||
1697 | local origcolor = BrickColor.new("Dark indigo") | |
1698 | ---- This section of explosions. | |
1699 | function Explode(rad,par,pitch,vol,mindam,maxdam) | |
1700 | local expart = Instance.new("Part",char) | |
1701 | local expart2 = Instance.new("Part",char) | |
1702 | local rin = Instance.new("Part",char) | |
1703 | local rin2 = Instance.new("Part",char) | |
1704 | local partMesh = Instance.new("SpecialMesh",expart) | |
1705 | partMesh.MeshType = "Sphere" | |
1706 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
1707 | partMesh2.MeshType = "Sphere" | |
1708 | local partMesh3 = Instance.new("SpecialMesh",rin) | |
1709 | partMesh3.MeshType = "Brick" | |
1710 | local partMesh4 = Instance.new("SpecialMesh",rin2) | |
1711 | partMesh4.MeshType = "Brick" | |
1712 | CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch) | |
1713 | partMesh.Scale = vt(rad,rad,rad) | |
1714 | expart.Size = vt(1,1,1) | |
1715 | expart.Transparency = 1 | |
1716 | expart.Anchored = true | |
1717 | expart.Material = "Neon" | |
1718 | expart.BrickColor = bc("White") | |
1719 | expart.CFrame = par.CFrame | |
1720 | partMesh2.Scale = vt(rad,rad,rad) | |
1721 | expart2.Size = vt(1.15,1.15,1.15) | |
1722 | expart2.Transparency = 0.75 | |
1723 | expart2.Anchored = true | |
1724 | expart2.Material = "Glass" | |
1725 | expart2.BrickColor = par.BrickColor | |
1726 | expart2.CFrame = par.CFrame | |
1727 | rin.Size = vt(1.15,1.15,1.15) | |
1728 | rin.Transparency = 1 | |
1729 | rin.Anchored = true | |
1730 | rin.Material = "Neon" | |
1731 | rin.BrickColor = par.BrickColor | |
1732 | rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
1733 | rin2.Size = vt(1.15,1.15,1.15) | |
1734 | rin2.Transparency = 1 | |
1735 | rin2.Anchored = true | |
1736 | rin2.Material = "Neon" | |
1737 | rin2.BrickColor = par.BrickColor | |
1738 | rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
1739 | partMesh3.Scale = vt(0,1,0) | |
1740 | partMesh4.Scale = vt(0,1,0) | |
1741 | local dec2 = Instance.new("Decal", rin) | |
1742 | dec2.Face = "Top" | |
1743 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
1744 | dec2.Parent = rin | |
1745 | local dec2b = dec2:Clone() | |
1746 | dec2b.Face = "Bottom" | |
1747 | dec2b.Parent = rin | |
1748 | ||
1749 | local dec2a = Instance.new("Decal", rin2) | |
1750 | dec2a.Face = "Top" | |
1751 | dec2a.Texture = "http://www.roblox.com/asset/?id=874580939" | |
1752 | dec2a.Parent = rin2 | |
1753 | local dec2ab = dec2a:Clone() | |
1754 | dec2ab.Face = "Bottom" | |
1755 | dec2ab.Parent = rin2 | |
1756 | expart.CanCollide = false | |
1757 | expart2.CanCollide = false | |
1758 | rin.CanCollide = false | |
1759 | rin2.CanCollide = false | |
1760 | MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal") | |
1761 | local value = 1*rad/6.5 | |
1762 | for i = 0, 199 do | |
1763 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
1764 | expart.CFrame = expart.CFrame | |
1765 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
1766 | expart2.CFrame = expart.CFrame | |
1767 | value = value - 0.035*rad/30 | |
1768 | if value < 7.5 then | |
1769 | partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5) | |
1770 | rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0) | |
1771 | partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5) | |
1772 | rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0) | |
1773 | end | |
1774 | if value < 0 then | |
1775 | dec2.Transparency = dec2.Transparency + 0.025 | |
1776 | dec2a.Transparency = dec2a.Transparency + 0.025 | |
1777 | dec2b.Transparency = dec2b.Transparency + 0.025 | |
1778 | dec2ab.Transparency = dec2ab.Transparency + 0.025 | |
1779 | expart.Transparency = expart.Transparency + 0.025 | |
1780 | expart2.Transparency = expart2.Transparency + 0.025 | |
1781 | rin.Transparency = rin.Transparency + 0.025 | |
1782 | rin2.Transparency = rin2.Transparency + 0.025 | |
1783 | end | |
1784 | swait() | |
1785 | end | |
1786 | game:GetService("Debris"):AddItem(expart, 1) | |
1787 | game:GetService("Debris"):AddItem(expart2, 1) | |
1788 | game:GetService("Debris"):AddItem(rin, 1) | |
1789 | game:GetService("Debris"):AddItem(rin2, 1) | |
1790 | end | |
1791 | ||
1792 | function ExplodeShort(rad,par,pitch,vol,mindam,maxdam) | |
1793 | local expart = Instance.new("Part",char) | |
1794 | local expart2 = Instance.new("Part",char) | |
1795 | local partMesh = Instance.new("SpecialMesh",expart) | |
1796 | partMesh.MeshType = "Sphere" | |
1797 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
1798 | partMesh2.MeshType = "Sphere" | |
1799 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch) | |
1800 | partMesh.Scale = vt(rad,rad,rad) | |
1801 | expart.Size = vt(1,1,1) | |
1802 | expart.Transparency = 0 | |
1803 | expart.Anchored = true | |
1804 | expart.Material = "Neon" | |
1805 | expart.BrickColor = bc("White") | |
1806 | expart.CFrame = par.CFrame | |
1807 | partMesh2.Scale = vt(rad,rad,rad) | |
1808 | expart2.Size = vt(1.15,1.15,1.15) | |
1809 | expart2.Transparency = 0.5 | |
1810 | expart2.Anchored = true | |
1811 | expart2.Material = "Neon" | |
1812 | expart2.BrickColor = par.BrickColor | |
1813 | expart2.CFrame = par.CFrame | |
1814 | expart.CanCollide = false | |
1815 | expart2.CanCollide = false | |
1816 | MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal") | |
1817 | local value = 1*rad/6.5 | |
1818 | for i = 0, 75 do | |
1819 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
1820 | expart.CFrame = expart.CFrame | |
1821 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
1822 | expart2.CFrame = expart.CFrame | |
1823 | value = value - 0.035*rad/5 | |
1824 | if value < 0 then | |
1825 | value = 0 | |
1826 | expart.Transparency = expart.Transparency + 0.05 | |
1827 | expart2.Transparency = expart2.Transparency + 0.05 | |
1828 | end | |
1829 | swait() | |
1830 | end | |
1831 | game:GetService("Debris"):AddItem(expart, 1) | |
1832 | game:GetService("Debris"):AddItem(expart2, 1) | |
1833 | end | |
1834 | ||
1835 | function AreaDanger(rad,par,mindam,maxdam) | |
1836 | local expart = Instance.new("Part",char) | |
1837 | local partMesh = Instance.new("SpecialMesh",expart) | |
1838 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15) | |
1839 | partMesh.MeshType = "Sphere" | |
1840 | partMesh.Scale = vt(rad,rad,rad) | |
1841 | expart.Size = vt(1,1,1) | |
1842 | expart.Transparency = 0.5 | |
1843 | expart.Anchored = true | |
1844 | expart.Material = "Neon" | |
1845 | expart.CanCollide = false | |
1846 | expart.BrickColor = par.BrickColor | |
1847 | expart.CFrame = par.CFrame | |
1848 | local value = 1*rad/5 | |
1849 | MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1) | |
1850 | for i = 0, 14 do | |
1851 | wait() | |
1852 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
1853 | expart.CFrame = expart.CFrame | |
1854 | value = value - 0.035*rad | |
1855 | if value < 0 then | |
1856 | value = 0 | |
1857 | end | |
1858 | end | |
1859 | wait(0.25) | |
1860 | CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1) | |
1861 | wait(0.5) | |
1862 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1) | |
1863 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75) | |
1864 | MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal") | |
1865 | MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025) | |
1866 | for i = 0, 14 do | |
1867 | wait() | |
1868 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
1869 | expart.CFrame = expart.CFrame | |
1870 | value = value - 0.035*rad/2 | |
1871 | end | |
1872 | expart.Transparency = 1 | |
1873 | game:GetService("Debris"):AddItem(expart, 5) | |
1874 | end | |
1875 | ||
1876 | function Swarmsplosions(negrad,rad,par,mindam,maxdam) | |
1877 | CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2) | |
1878 | CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1) | |
1879 | CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1) | |
1880 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1) | |
1881 | MagniDamageWithEffect(par, 25, 5,10, 0, "Normal") | |
1882 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025) | |
1883 | for i = 0, 24 do | |
1884 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2)) | |
1885 | end | |
1886 | for i = 0, 24 do | |
1887 | local expart = Instance.new("Part",char) | |
1888 | expart.Transparency = 1 | |
1889 | expart.Anchored = true | |
1890 | expart.CanCollide = false | |
1891 | expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad)) | |
1892 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2) | |
1893 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15) | |
1894 | MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal") | |
1895 | MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025) | |
1896 | for i = 0, 9 do | |
1897 | MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2)) | |
1898 | end | |
1899 | game:GetService("Debris"):AddItem(expart, 2) | |
1900 | wait(0.1) | |
1901 | end | |
1902 | end | |
1903 | ||
1904 | function EXterPlosion(par) | |
1905 | CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1) | |
1906 | CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85) | |
1907 | CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2) | |
1908 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1) | |
1909 | MagniDamageWithEffect(par, 500, 80,99, 0, "Normal") | |
1910 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005) | |
1911 | MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1) | |
1912 | for i = 0, 24 do | |
1913 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2)) | |
1914 | end | |
1915 | for i = 0, 24 do | |
1916 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2)) | |
1917 | end | |
1918 | end | |
1919 | ---- | |
1920 | ||
1921 | local stackingpower = 1 | |
1922 | ||
1923 | function HellsCore() | |
1924 | attack = true | |
1925 | --[[for i = 0,1,0.1 do | |
1926 | swait() | |
1927 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.3) | |
1928 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1929 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1930 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
1931 | end]]-- | |
1932 | ||
1933 | local rng = Instance.new("Part", char) | |
1934 | CFuncs["Sound"].Create("rbxassetid://401466969", root, 1, 0.6) | |
1935 | rng.Anchored = true | |
1936 | rng.BrickColor = origcolor | |
1937 | rng.CanCollide = false | |
1938 | rng.FormFactor = 3 | |
1939 | rng.Name = "Ring" | |
1940 | rng.Material = "Neon" | |
1941 | rng.Size = Vector3.new(1, 1, 1) | |
1942 | rng.Transparency = 1 | |
1943 | rng.TopSurface = 0 | |
1944 | rng.BottomSurface = 0 | |
1945 | rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0) | |
1946 | local rngm = Instance.new("SpecialMesh", rng) | |
1947 | rngm.MeshType = "Brick" | |
1948 | local dec = Instance.new("Decal",rng) | |
1949 | dec.Texture = "http://www.roblox.com/asset/?id=401466968" | |
1950 | dec.Face = "Top" | |
1951 | local dec2 = dec:Clone() | |
1952 | dec2.Parent = rng | |
1953 | dec2.Face = "Bottom" | |
1954 | ||
1955 | local scaler2 = 1 | |
1956 | scaler2 = 1*3 | |
1957 | for i = 0,10,0.1 do | |
1958 | swait() | |
1959 | scaler2 = scaler2 - 0.01*3 | |
1960 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2) | |
1961 | end | |
1962 | wait(3) | |
1963 | for i = 0,10,0.1 do | |
1964 | swait() | |
1965 | scaler2 = scaler2 - 0.01*3 | |
1966 | dec.Transparency = dec.Transparency + 0.01 | |
1967 | dec2.Transparency = dec2.Transparency + 0.01 | |
1968 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2) | |
1969 | end | |
1970 | rng:Destroy() | |
1971 | attack = false | |
1972 | end | |
1973 | ||
1974 | ||
1975 | function FaceMouse() | |
1976 | Cam = workspace.CurrentCamera | |
1977 | return { | |
1978 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1979 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1980 | } | |
1981 | end | |
1982 | ||
1983 | function FaceMouse2() | |
1984 | Cam = workspace.CurrentCamera | |
1985 | return { | |
1986 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
1987 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1988 | } | |
1989 | end | |
1990 | ||
1991 | ||
1992 | local HoldingZ = false | |
1993 | local HoldingX = false | |
1994 | local HoldingC = false | |
1995 | local HoldingV = false | |
1996 | local HoldingB = false | |
1997 | ||
1998 | ||
1999 | function RingEffect(pos,startsize,size,col) | |
2000 | local lb = Instance.new("Part") | |
2001 | lb.Parent = char | |
2002 | lb.BrickColor = col | |
2003 | lb.CanCollide = false | |
2004 | lb.Material = "Neon" | |
2005 | lb.Anchored = true | |
2006 | lb.TopSurface = 0 | |
2007 | lb.BottomSurface = 0 | |
2008 | lb.Transparency = 1 | |
2009 | lb.Size = vt(1,1,1) | |
2010 | lb.CFrame = pos | |
2011 | local thingery = Instance.new("SpecialMesh",lb) | |
2012 | thingery.MeshType = "Brick" | |
2013 | thingery.Scale = vt(startsize,0.1,startsize) | |
2014 | local dec2 = Instance.new("Texture", lb) | |
2015 | dec2.Face = "Top" | |
2016 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2017 | dec2.Color3 = lb.Color | |
2018 | dec2.Parent = lb | |
2019 | dec2.StudsPerTileU = startsize | |
2020 | dec2.StudsPerTileV = startsize | |
2021 | local dec2b = dec2:Clone() | |
2022 | dec2b.Face = "Bottom" | |
2023 | dec2b.Parent = lb | |
2024 | local randomrot = math.random(1,2) | |
2025 | coroutine.resume(coroutine.create(function() | |
2026 | for i = 0, 19 do | |
2027 | swait() | |
2028 | if randomrot == 1 then | |
2029 | lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0) | |
2030 | elseif randomrot == 2 then | |
2031 | lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0) | |
2032 | end | |
2033 | dec2.Transparency = dec2.Transparency + 0.05 | |
2034 | dec2b.Transparency = dec2b.Transparency + 0.05 | |
2035 | dec2.StudsPerTileU = dec2.StudsPerTileU + size | |
2036 | dec2.StudsPerTileV = dec2.StudsPerTileV + size | |
2037 | dec2b.StudsPerTileU = dec2b.StudsPerTileU + size | |
2038 | dec2b.StudsPerTileV = dec2b.StudsPerTileV + size | |
2039 | thingery.Scale = thingery.Scale + vt(size,0,size) | |
2040 | end | |
2041 | lb:Destroy() | |
2042 | end)) | |
2043 | end | |
2044 | ||
2045 | function SlowRingEffect(pos,startsize,size,col) | |
2046 | local lb = Instance.new("Part") | |
2047 | lb.Parent = char | |
2048 | lb.BrickColor = col | |
2049 | lb.CanCollide = false | |
2050 | lb.Material = "Neon" | |
2051 | lb.Anchored = true | |
2052 | lb.TopSurface = 0 | |
2053 | lb.BottomSurface = 0 | |
2054 | lb.Transparency = 1 | |
2055 | lb.Size = vt(1,1,1) | |
2056 | lb.CFrame = pos | |
2057 | local thingery = Instance.new("SpecialMesh",lb) | |
2058 | thingery.MeshType = "Brick" | |
2059 | thingery.Scale = vt(startsize,0.1,startsize) | |
2060 | local dec2 = Instance.new("Decal", lb) | |
2061 | dec2.Face = "Top" | |
2062 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2063 | dec2.Color3 = lb.Color | |
2064 | dec2.Parent = lb | |
2065 | local dec2b = dec2:Clone() | |
2066 | dec2b.Face = "Bottom" | |
2067 | dec2b.Parent = lb | |
2068 | local randomrot = math.random(1,2) | |
2069 | coroutine.resume(coroutine.create(function() | |
2070 | for i = 0, 49 do | |
2071 | swait() | |
2072 | if randomrot == 1 then | |
2073 | lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0) | |
2074 | elseif randomrot == 2 then | |
2075 | lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0) | |
2076 | end | |
2077 | dec2.Transparency = dec2.Transparency + 0.02 | |
2078 | dec2b.Transparency = dec2b.Transparency + 0.02 | |
2079 | thingery.Scale = thingery.Scale + vt(size,0,size) | |
2080 | end | |
2081 | lb:Destroy() | |
2082 | end)) | |
2083 | end | |
2084 | ||
2085 | ||
2086 | function groundringaa(pos) | |
2087 | local rng = Instance.new("Part", char) | |
2088 | rng.Anchored = true | |
2089 | rng.BrickColor = origcolor | |
2090 | rng.CanCollide = false | |
2091 | rng.FormFactor = 3 | |
2092 | rng.Name = "Ring" | |
2093 | rng.Size = Vector3.new(1, 1, 1) | |
2094 | rng.Transparency = 1 | |
2095 | rng.TopSurface = 0 | |
2096 | rng.BottomSurface = 0 | |
2097 | rng.CFrame = pos | |
2098 | local rngm = Instance.new("SpecialMesh", rng) | |
2099 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2100 | rngm.Scale = Vector3.new(100,100,5) | |
2101 | local scaler2 = -10/2 | |
2102 | coroutine.resume(coroutine.create(function() | |
2103 | for i = 0,10,0.1 do | |
2104 | swait() | |
2105 | scaler2 = scaler2 + 0.1/2 | |
2106 | rng.Transparency = rng.Transparency - 0.01 | |
2107 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0) | |
2108 | end | |
2109 | rng:Destroy() | |
2110 | end)) | |
2111 | end | |
2112 | ||
2113 | function groundringbb(pos) | |
2114 | local rng = Instance.new("Part", char) | |
2115 | rng.Anchored = true | |
2116 | rng.BrickColor = origcolor | |
2117 | rng.CanCollide = false | |
2118 | rng.FormFactor = 3 | |
2119 | rng.Name = "Ring" | |
2120 | rng.Size = Vector3.new(1, 1, 1) | |
2121 | rng.Transparency = 0 | |
2122 | rng.TopSurface = 0 | |
2123 | rng.BottomSurface = 0 | |
2124 | rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0) | |
2125 | rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0) | |
2126 | local rngm = Instance.new("SpecialMesh", rng) | |
2127 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2128 | rngm.Scale = Vector3.new(0,0,5) | |
2129 | local scaler2 = 10 | |
2130 | coroutine.resume(coroutine.create(function() | |
2131 | for i = 0,10*2,0.1 do | |
2132 | swait() | |
2133 | scaler2 = scaler2 - 0.1/2 | |
2134 | rng.Transparency = rng.Transparency + 0.005 | |
2135 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2) | |
2136 | end | |
2137 | rng:Destroy() | |
2138 | end)) | |
2139 | end | |
2140 | ||
2141 | function groundglowaa(pos) | |
2142 | local rng = Instance.new("Part", char) | |
2143 | rng.Anchored = true | |
2144 | rng.BrickColor = origcolor | |
2145 | rng.CanCollide = false | |
2146 | rng.FormFactor = 3 | |
2147 | rng.Material = "Neon" | |
2148 | rng.Name = "Ring" | |
2149 | rng.Size = Vector3.new(1, 1, 1) | |
2150 | rng.Transparency = 0 | |
2151 | rng.TopSurface = 0 | |
2152 | rng.BottomSurface = 0 | |
2153 | rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0) | |
2154 | rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0) | |
2155 | local rngm = Instance.new("SpecialMesh", rng) | |
2156 | rngm.MeshType = "Sphere" | |
2157 | rngm.Scale = Vector3.new(0,0,25) | |
2158 | local scaler2 = 10*2 | |
2159 | coroutine.resume(coroutine.create(function() | |
2160 | for i = 0,10*2,0.1 do | |
2161 | swait() | |
2162 | scaler2 = scaler2 - 0.1*2/2 | |
2163 | rng.Transparency = rng.Transparency + 0.005 | |
2164 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0) | |
2165 | end | |
2166 | rng:Destroy() | |
2167 | end)) | |
2168 | end | |
2169 | ||
2170 | function bemaa(pos) | |
2171 | local rng = Instance.new("Part", char) | |
2172 | rng.Anchored = true | |
2173 | rng.BrickColor = origcolor | |
2174 | rng.CanCollide = false | |
2175 | rng.FormFactor = 3 | |
2176 | rng.Material = "Neon" | |
2177 | rng.Name = "Ring" | |
2178 | rng.Size = Vector3.new(1, 1, 1) | |
2179 | rng.Transparency = 0 | |
2180 | rng.TopSurface = 0 | |
2181 | rng.BottomSurface = 0 | |
2182 | rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0) | |
2183 | rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0) | |
2184 | local rngm = Instance.new("SpecialMesh", rng) | |
2185 | rngm.MeshType = "Sphere" | |
2186 | rngm.Scale = Vector3.new(0,0,10000) | |
2187 | local scaler2 = 1 | |
2188 | coroutine.resume(coroutine.create(function() | |
2189 | for i = 0,99,0.1 do | |
2190 | swait() | |
2191 | scaler2 = scaler2 - 0.0025 | |
2192 | rng.Transparency = rng.Transparency + 0.0025 | |
2193 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0) | |
2194 | end | |
2195 | rng:Destroy() | |
2196 | end)) | |
2197 | end | |
2198 | ||
2199 | function bemaashake(pos) | |
2200 | local rng = Instance.new("Part", char) | |
2201 | rng.Anchored = true | |
2202 | rng.BrickColor = origcolor | |
2203 | rng.CanCollide = false | |
2204 | rng.FormFactor = 3 | |
2205 | rng.Material = "Neon" | |
2206 | rng.Name = "Ring" | |
2207 | rng.Size = Vector3.new(1, 1, 1) | |
2208 | rng.Transparency = 0 | |
2209 | rng.TopSurface = 0 | |
2210 | rng.BottomSurface = 0 | |
2211 | rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0) | |
2212 | rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0) | |
2213 | local rngm = Instance.new("SpecialMesh", rng) | |
2214 | rngm.MeshType = "Sphere" | |
2215 | local oof = Instance.new("Part",char) | |
2216 | oof.Parent = rng | |
2217 | oof.CFrame = rng.CFrame | |
2218 | oof.CanCollide = false | |
2219 | oof.Anchored = true | |
2220 | oof.Transparency = 1 | |
2221 | rngm.Scale = Vector3.new(0,0,10000) | |
2222 | local scaler2 = 1*10 | |
2223 | coroutine.resume(coroutine.create(function() | |
2224 | for i = 0,99,0.1 do | |
2225 | swait() | |
2226 | scaler2 = scaler2 - 0.0025*10 | |
2227 | rng.CFrame = oof.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1)) | |
2228 | rng.Transparency = rng.Transparency + 0.0025 | |
2229 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0) | |
2230 | end | |
2231 | rng:Destroy() | |
2232 | end)) | |
2233 | end | |
2234 | ||
2235 | function groundringlarge(pos) | |
2236 | local rng = Instance.new("Part", char) | |
2237 | rng.Anchored = true | |
2238 | rng.BrickColor = origcolor | |
2239 | rng.CanCollide = false | |
2240 | rng.FormFactor = 3 | |
2241 | rng.Name = "Ring" | |
2242 | rng.Size = Vector3.new(1, 1, 1) | |
2243 | rng.Transparency = 0 | |
2244 | rng.TopSurface = 0 | |
2245 | rng.BottomSurface = 0 | |
2246 | rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0) | |
2247 | rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0) | |
2248 | local rngm = Instance.new("SpecialMesh", rng) | |
2249 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2250 | rngm.Scale = Vector3.new(0,0,5) | |
2251 | local scaler2 = 10*10 | |
2252 | coroutine.resume(coroutine.create(function() | |
2253 | for i = 0,10*2,0.1 do | |
2254 | swait() | |
2255 | scaler2 = scaler2 - 0.1*10/2 | |
2256 | rng.Transparency = rng.Transparency + 0.005 | |
2257 | rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2) | |
2258 | end | |
2259 | rng:Destroy() | |
2260 | end)) | |
2261 | end | |
2262 | ||
2263 | function sphere(bonuspeed,type,pos,scale,value,color) | |
2264 | local type = type | |
2265 | local rng = Instance.new("Part", char) | |
2266 | rng.Anchored = true | |
2267 | rng.BrickColor = color | |
2268 | rng.CanCollide = false | |
2269 | rng.FormFactor = 3 | |
2270 | rng.Name = "Ring" | |
2271 | rng.Material = "Neon" | |
2272 | rng.Size = Vector3.new(1, 1, 1) | |
2273 | rng.Transparency = 0 | |
2274 | rng.TopSurface = 0 | |
2275 | rng.BottomSurface = 0 | |
2276 | rng.CFrame = pos | |
2277 | local rngm = Instance.new("SpecialMesh", rng) | |
2278 | rngm.MeshType = "Sphere" | |
2279 | rngm.Scale = scale | |
2280 | local scaler2 = 1 | |
2281 | if type == "Add" then | |
2282 | scaler2 = 1*value | |
2283 | elseif type == "Divide" then | |
2284 | scaler2 = 1/value | |
2285 | end | |
2286 | coroutine.resume(coroutine.create(function() | |
2287 | for i = 0,10/bonuspeed,0.1 do | |
2288 | swait() | |
2289 | if type == "Add" then | |
2290 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2291 | elseif type == "Divide" then | |
2292 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2293 | end | |
2294 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2295 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2296 | end | |
2297 | rng:Destroy() | |
2298 | end)) | |
2299 | end | |
2300 | Humanoid.Animator.Parent = nil | |
2301 | ||
2302 | function AppearMutatedLimbs() | |
2303 | hum.WalkSpeed = 0 | |
2304 | hum.MaxHealth = math.huge | |
2305 | attack = true | |
2306 | for i = 0,14,0.1 do | |
2307 | swait() | |
2308 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1) | |
2309 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1) | |
2310 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1) | |
2311 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.1) | |
2312 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1) | |
2313 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1) | |
2314 | end | |
2315 | for i = 0,8,0.1 do | |
2316 | swait() | |
2317 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1) | |
2318 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1) | |
2319 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1) | |
2320 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(20)),.1) | |
2321 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1) | |
2322 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.1) | |
2323 | end | |
2324 | for i = 0,2,0.1 do | |
2325 | swait() | |
2326 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2327 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2328 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4) | |
2329 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
2330 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4) | |
2331 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(60 - 10 * math.cos(sine / 1))),.4) | |
2332 | end | |
2333 | for i, v in pairs(MutantParts:GetChildren()) do | |
2334 | if v:IsA("Part") then | |
2335 | v.Transparency = 0 | |
2336 | end | |
2337 | end | |
2338 | local bld = Instance.new("ParticleEmitter",larm) | |
2339 | bld.LightEmission = 0.1 | |
2340 | bld.Texture = "rbxassetid://284205403" | |
2341 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
2342 | bld.Rate = 500 | |
2343 | bld.Lifetime = NumberRange.new(1) | |
2344 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2345 | bld.Acceleration = vt(0,-25,0) | |
2346 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2347 | bld.Speed = NumberRange.new(10,25) | |
2348 | bld.EmissionDirection = "Bottom" | |
2349 | bld.VelocitySpread = 100 | |
2350 | bld.Rotation = NumberRange.new(-500,500) | |
2351 | bld.RotSpeed = NumberRange.new(-500,500) | |
2352 | local bldef = Instance.new("ParticleEmitter",larm) | |
2353 | bldef.LightEmission = 0.1 | |
2354 | bldef.Texture = "rbxassetid://284205403" | |
2355 | bldef.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
2356 | bldef.Rate = 25 | |
2357 | bldef.Lifetime = NumberRange.new(1) | |
2358 | bldef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
2359 | bldef.Acceleration = vt(0,-5,0) | |
2360 | bldef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2361 | bldef.Speed = NumberRange.new(0,0,0) | |
2362 | bldef.EmissionDirection = "Bottom" | |
2363 | bldef.VelocitySpread = 150 | |
2364 | bldef.Rotation = NumberRange.new(-500,500) | |
2365 | bldef.RotSpeed = NumberRange.new(-500,500) | |
2366 | game:GetService("Debris"):AddItem(bld,3) | |
2367 | CFuncs["Sound"].Create("rbxassetid://429400881", larm, 2.5, 1) | |
2368 | CFuncs["Sound"].Create("rbxassetid://206082327", larm, 0.75, 1) | |
2369 | for i = 0,1,0.1 do | |
2370 | swait() | |
2371 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
2372 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
2373 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-60)),.8) | |
2374 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(60)),.8) | |
2375 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
2376 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.8) | |
2377 | end | |
2378 | bld.Enabled = false | |
2379 | attack = false | |
2380 | hum.WalkSpeed = 6 | |
2381 | end | |
2382 | ||
2383 | function AppearMutatedLimbs2() | |
2384 | hum.WalkSpeed = 0 | |
2385 | attack = true | |
2386 | LeftModeUnlocked = true | |
2387 | for i = 0,8,0.1 do | |
2388 | swait() | |
2389 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1) | |
2390 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1) | |
2391 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1) | |
2392 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-20)),.1) | |
2393 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(90 + 10 * math.cos(sine / 1))),.1) | |
2394 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.1) | |
2395 | end | |
2396 | for i = 0,2,0.1 do | |
2397 | swait() | |
2398 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2399 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2400 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-90)),.4) | |
2401 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4) | |
2402 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(20 + 10 * math.cos(sine / 1))),.4) | |
2403 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.4) | |
2404 | end | |
2405 | for i, v in pairs(MutantParts2:GetChildren()) do | |
2406 | if v:IsA("Part") then | |
2407 | v.Transparency = 0 | |
2408 | end | |
2409 | end | |
2410 | local bld = Instance.new("ParticleEmitter",rarm) | |
2411 | bld.LightEmission = 0.1 | |
2412 | bld.Texture = "rbxassetid://284205403" | |
2413 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
2414 | bld.Rate = 500 | |
2415 | bld.Lifetime = NumberRange.new(1) | |
2416 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2417 | bld.Acceleration = vt(0,-25,0) | |
2418 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2419 | bld.Speed = NumberRange.new(10,25) | |
2420 | bld.EmissionDirection = "Bottom" | |
2421 | bld.VelocitySpread = 100 | |
2422 | bld.Rotation = NumberRange.new(-500,500) | |
2423 | bld.RotSpeed = NumberRange.new(-500,500) | |
2424 | local bldef = Instance.new("ParticleEmitter",rarm) | |
2425 | bldef.LightEmission = 0.1 | |
2426 | bldef.Texture = "rbxassetid://284205403" | |
2427 | bldef.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
2428 | bldef.Rate = 25 | |
2429 | bldef.Lifetime = NumberRange.new(1) | |
2430 | bldef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
2431 | bldef.Acceleration = vt(0,-5,0) | |
2432 | bldef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2433 | bldef.Speed = NumberRange.new(0,0,0) | |
2434 | bldef.EmissionDirection = "Bottom" | |
2435 | bldef.VelocitySpread = 150 | |
2436 | bldef.Rotation = NumberRange.new(-500,500) | |
2437 | bldef.RotSpeed = NumberRange.new(-500,500) | |
2438 | game:GetService("Debris"):AddItem(bld,3) | |
2439 | CFuncs["Sound"].Create("rbxassetid://429400881", rarm, 2.5, 1) | |
2440 | CFuncs["Sound"].Create("rbxassetid://206082327", rarm, 0.75, 1) | |
2441 | for i = 0,1,0.1 do | |
2442 | swait() | |
2443 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.8) | |
2444 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.8) | |
2445 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.8) | |
2446 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-20)),.8) | |
2447 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(90 + 10 * math.cos(sine / 1))),.8) | |
2448 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.8) | |
2449 | end | |
2450 | bld.Enabled = false | |
2451 | attack = false | |
2452 | hum.WalkSpeed = 6 | |
2453 | end | |
2454 | ||
2455 | function TargetSelect(person) | |
2456 | local dd=coroutine.wrap(function() | |
2457 | if targetted ~= person then | |
2458 | targetted = person | |
2459 | img2.Size = UDim2.new(1,0,1,0) | |
2460 | img2.ImageTransparency = 0 | |
2461 | img2.Position = UDim2.new(0,0,0,0) | |
2462 | img2.ImageColor3 = Color3.new(0,0,0) | |
2463 | for i = 0, 2, 0.1 do | |
2464 | swait() | |
2465 | img2.Size = img2.Size + UDim2.new(.05,0,.05,0) | |
2466 | img2.Position = img2.Position + UDim2.new(-.025,0,-.025,0) | |
2467 | img2.ImageTransparency = img2.ImageTransparency + 0.05 | |
2468 | end | |
2469 | end | |
2470 | end) | |
2471 | dd() | |
2472 | end | |
2473 | ||
2474 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
2475 | if SinglePlayer then | |
2476 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
2477 | end | |
2478 | local List = {} | |
2479 | for i, v in pairs(workspace:GetChildren()) do | |
2480 | if v:IsA("Model") then | |
2481 | if v:findFirstChild("Torso") then | |
2482 | if v ~= Character then | |
2483 | if (v.Torso.Position - Position).magnitude <= Distance then | |
2484 | table.insert(List, v) | |
2485 | end | |
2486 | end | |
2487 | end | |
2488 | end | |
2489 | end | |
2490 | return List | |
2491 | end | |
2492 | ||
2493 | function LockOn() | |
2494 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2495 | TargetSelect(Mouse.Target.Parent) | |
2496 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5) | |
2497 | elseif Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") == nil then | |
2498 | TargetSelect(Mouse.Target.Parent) | |
2499 | if Mouse.Target.Parent == workspace or Mouse.Target.Parent:IsA("Accessory") then | |
2500 | targetted = nil | |
2501 | end | |
2502 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5) | |
2503 | end | |
2504 | end | |
2505 | ||
2506 | function dmg(dude) | |
2507 | if dude.Name ~= Character then | |
2508 | local bgf = Instance.new("BodyGyro",dude.Head) | |
2509 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
2510 | local val = Instance.new("BoolValue",dude) | |
2511 | val.Name = "IsHit" | |
2512 | local ds = coroutine.wrap(function() | |
2513 | if dude.Name ~= "isaacsantamaria01" then | |
2514 | killcount = killcount + 1 | |
2515 | dude:WaitForChild("Torso"):BreakJoints() | |
2516 | wait(0.5) | |
2517 | targetted = nil | |
2518 | CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3) | |
2519 | coroutine.resume(coroutine.create(function() | |
2520 | for i, v in pairs(dude:GetChildren()) do | |
2521 | if v:IsA("Accessory") then | |
2522 | v:Destroy() | |
2523 | end | |
2524 | if v:IsA("Humanoid") then | |
2525 | v:Destroy() | |
2526 | end | |
2527 | if v:IsA("CharacterMesh") then | |
2528 | v:Destroy() | |
2529 | end | |
2530 | if v:IsA("Model") then | |
2531 | v:Destroy() | |
2532 | end | |
2533 | if v:IsA("Part") then | |
2534 | for x, o in pairs(v:GetChildren()) do | |
2535 | if o:IsA("Decal") then | |
2536 | o:Destroy() | |
2537 | end | |
2538 | end | |
2539 | coroutine.resume(coroutine.create(function() | |
2540 | v.Material = "Neon" | |
2541 | v.CanCollide = false | |
2542 | local bld = Instance.new("ParticleEmitter",v) | |
2543 | bld.LightEmission = 1 | |
2544 | bld.Texture = "rbxassetid://284205403" | |
2545 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
2546 | bld.Rate = 50 | |
2547 | bld.Lifetime = NumberRange.new(1) | |
2548 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2549 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2550 | bld.Speed = NumberRange.new(0,0,0) | |
2551 | bld.Rotation = NumberRange.new(-500,500) | |
2552 | bld.RotSpeed = NumberRange.new(-500,500) | |
2553 | local sbs = Instance.new("BodyPosition", v) | |
2554 | sbs.P = 3000 | |
2555 | sbs.D = 1000 | |
2556 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
2557 | sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
2558 | v.Color = Color3.new(0,0,0) | |
2559 | end)) | |
2560 | coroutine.resume(coroutine.create(function() | |
2561 | for i = 0, 49 do | |
2562 | swait(1) | |
2563 | v.Transparency = v.Transparency + 0.02 | |
2564 | end | |
2565 | v:Destroy() | |
2566 | dude:Destroy() | |
2567 | end)) | |
2568 | end | |
2569 | end | |
2570 | end)) | |
2571 | else | |
2572 | bgf:Destroy() | |
2573 | sphere(1,"Add",dude:WaitForChild("Torso").CFrame,vt(10,10,10),-0.005,BrickColor.new("Really red")) | |
2574 | end | |
2575 | end) | |
2576 | ds() | |
2577 | end | |
2578 | end | |
2579 | ||
2580 | ||
2581 | local Grabbed = false | |
2582 | ||
2583 | function QuickStab() | |
2584 | attack = true | |
2585 | hum.WalkSpeed = 0 | |
2586 | swait(1) | |
2587 | CFuncs["Sound"].Create("rbxassetid://743521656", char, 1, 0.8) | |
2588 | RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,3) | |
2589 | if targetted.Name ~= "isaacsantamaria01" then | |
2590 | local grab = nil | |
2591 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 5)) do | |
2592 | if v:FindFirstChild('Head') then | |
2593 | Grabbed = true | |
2594 | grab = v | |
2595 | end | |
2596 | end | |
2597 | if Grabbed == true then | |
2598 | for i = 0,2,0.1 do | |
2599 | swait() | |
2600 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2601 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2602 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4) | |
2603 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
2604 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4) | |
2605 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(60 - 10 * math.cos(sine / 1))),.4) | |
2606 | end | |
2607 | dmg(grab) | |
2608 | local bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso")) | |
2609 | bld.LightEmission = 0.1 | |
2610 | bld.Texture = "rbxassetid://284205403" | |
2611 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
2612 | bld.Rate = 500 | |
2613 | bld.Lifetime = NumberRange.new(1) | |
2614 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2615 | bld.Acceleration = vt(0,-25,0) | |
2616 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2617 | bld.Speed = NumberRange.new(10,50) | |
2618 | bld.EmissionDirection = "Front" | |
2619 | bld.VelocitySpread = 25 | |
2620 | bld.Rotation = NumberRange.new(-500,500) | |
2621 | bld.RotSpeed = NumberRange.new(-500,500) | |
2622 | game:GetService("Debris"):AddItem(bld,3) | |
2623 | CFuncs["Sound"].Create("rbxassetid://206082327", targetted.Torso, 2.5, 0.9) | |
2624 | for i = 0,1,0.1 do | |
2625 | swait() | |
2626 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
2627 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
2628 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
2629 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8) | |
2630 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
2631 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.8) | |
2632 | end | |
2633 | bld.Enabled = false | |
2634 | end | |
2635 | else | |
2636 | for i = 0,8,0.1 do | |
2637 | swait() | |
2638 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2639 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2640 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(60)),.4) | |
2641 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.8) | |
2642 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4) | |
2643 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(60 - 5 * math.cos(sine / 1))),.4) | |
2644 | end | |
2645 | local randomized = math.random(1,3) | |
2646 | if randomized == 1 then | |
2647 | chatfunc("No... i cant.",Color3.new(0.5,0,0)) | |
2648 | elseif randomized == 2 then | |
2649 | chatfunc("Why would i do this...",Color3.new(0.5,0,0)) | |
2650 | elseif randomized == 3 then | |
2651 | chatfunc("Oh... i thought you're my enemy...",Color3.new(0.5,0,0)) | |
2652 | end | |
2653 | --[[for i = 0,3,0.1 do | |
2654 | swait() | |
2655 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2656 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2657 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
2658 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(90)),.8) | |
2659 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4) | |
2660 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.4) | |
2661 | end]]-- | |
2662 | end | |
2663 | Grabbed = false | |
2664 | attack = false | |
2665 | hum.WalkSpeed = 6 | |
2666 | end | |
2667 | ||
2668 | ||
2669 | function BlinkingStab() | |
2670 | attack = true | |
2671 | hum.WalkSpeed = 0 | |
2672 | swait(1) | |
2673 | if targetted.Name ~= "isaacsantamaria01" then | |
2674 | for i = 0,2,0.1 do | |
2675 | swait() | |
2676 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2677 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2678 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(80)),.4) | |
2679 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
2680 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
2681 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.4) | |
2682 | end | |
2683 | RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,2) | |
2684 | CFuncs["Sound"].Create("rbxassetid://743521497", char, 1, 1) | |
2685 | dmg(targetted) | |
2686 | local bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso")) | |
2687 | bld.LightEmission = 0.1 | |
2688 | bld.Texture = "rbxassetid://284205403" | |
2689 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
2690 | bld.Rate = 500 | |
2691 | bld.Lifetime = NumberRange.new(1) | |
2692 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2693 | bld.Acceleration = vt(0,-25,0) | |
2694 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2695 | bld.Speed = NumberRange.new(10,50) | |
2696 | bld.EmissionDirection = "Front" | |
2697 | bld.VelocitySpread = 25 | |
2698 | bld.Rotation = NumberRange.new(-500,500) | |
2699 | bld.RotSpeed = NumberRange.new(-500,500) | |
2700 | game:GetService("Debris"):AddItem(bld,3) | |
2701 | CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Torso, 1,1) | |
2702 | for i = 0,1,0.1 do | |
2703 | swait() | |
2704 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
2705 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
2706 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
2707 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8) | |
2708 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
2709 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.8) | |
2710 | end | |
2711 | bld.Enabled = false | |
2712 | else | |
2713 | for i = 0,8,0.1 do | |
2714 | swait() | |
2715 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2716 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2717 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(80)),.4) | |
2718 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
2719 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
2720 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.4) | |
2721 | end | |
2722 | local randomized = math.random(1,3) | |
2723 | if randomized == 1 then | |
2724 | chatfunc("Wait.. a minute... wrong guy...",Color3.new(0.5,0,0)) | |
2725 | elseif randomized == 2 then | |
2726 | chatfunc("I forgot about you...",Color3.new(0.5,0,0)) | |
2727 | elseif randomized == 3 then | |
2728 | chatfunc("Oh. sorry...",Color3.new(0.5,0,0)) | |
2729 | end | |
2730 | --[[for i = 0,3,0.1 do | |
2731 | swait() | |
2732 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2733 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
2734 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
2735 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(90)),.8) | |
2736 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4) | |
2737 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.4) | |
2738 | end]]-- | |
2739 | end | |
2740 | attack = false | |
2741 | hum.WalkSpeed = 6 | |
2742 | end | |
2743 | ||
2744 | ||
2745 | function Tele() | |
2746 | sphere(3,"Add",root.CFrame,vt(10,10,10),-0.1,BrickColor.new("White")) | |
2747 | sphere(10,"Add",root.CFrame,vt(10,10,10),0.1,BrickColor.new("White")) | |
2748 | CFuncs["Sound"].Create("rbxassetid://743521656", char, 1, 0.8) | |
2749 | RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,3) | |
2750 | sphere(3,"Add",root.CFrame,vt(10,10,10),-0.1,BrickColor.new("White")) | |
2751 | sphere(10,"Add",root.CFrame,vt(10,10,10),0.1,BrickColor.new("White")) | |
2752 | end | |
2753 | ||
2754 | function uhhnolikeokthen() | |
2755 | hum.WalkSpeed = 0 | |
2756 | attack = true | |
2757 | CFuncs["Sound"].Create("rbxassetid://163315655", root, 1,1) | |
2758 | for i = 0,10,0.1 do | |
2759 | swait() | |
2760 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1) | |
2761 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1) | |
2762 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.1) | |
2763 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 15 * math.cos(sine / 1))),.1) | |
2764 | RW.C0=clerp(RW.C0,cf(1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.1) | |
2765 | LW.C0=clerp(LW.C0,cf(-1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(50 - 5 * math.cos(sine / 1))),.1) | |
2766 | end | |
2767 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("White")) | |
2768 | sphere(6,"Add",root.CFrame,vt(0,0,0),0.5,BrickColor.new("White")) | |
2769 | sphere(9,"Add",root.CFrame,vt(0,0,0),0.75,BrickColor.new("White")) | |
2770 | CFuncs["Sound"].Create("rbxassetid://1213175909", root, 3,1) | |
2771 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2,1) | |
2772 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2,0.9) | |
2773 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 25)) do | |
2774 | if v:FindFirstChild('Torso') then | |
2775 | dmg(v) | |
2776 | CFuncs["Sound"].Create("rbxassetid://206082327", v.Torso, 1, 0.9) | |
2777 | local bld = Instance.new("ParticleEmitter",v.Torso) | |
2778 | bld.LightEmission = 0.1 | |
2779 | bld.Texture = "rbxassetid://284205403" | |
2780 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
2781 | bld.Rate = 500 | |
2782 | bld.Lifetime = NumberRange.new(1) | |
2783 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2784 | bld.Acceleration = vt(0,-25,0) | |
2785 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2786 | bld.Speed = NumberRange.new(10,50) | |
2787 | bld.EmissionDirection = "Front" | |
2788 | bld.VelocitySpread = 2500 | |
2789 | bld.Rotation = NumberRange.new(-500,500) | |
2790 | bld.RotSpeed = NumberRange.new(-500,500) | |
2791 | coroutine.resume(coroutine.create(function() | |
2792 | swait(4) | |
2793 | bld.Enabled = false | |
2794 | game:GetService("Debris"):AddItem(bld,3) | |
2795 | end)) | |
2796 | end | |
2797 | end | |
2798 | for i = 0,28,0.1 do | |
2799 | swait() | |
2800 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5) | |
2801 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5) | |
2802 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
2803 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 1))),.5) | |
2804 | RW.C0=clerp(RW.C0,cf(1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 - 3 * math.cos(sine / 1)),math.rad(80 + 3 * math.cos(sine / 1))),.5) | |
2805 | LW.C0=clerp(LW.C0,cf(-1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 + 3 * math.cos(sine / 1)),math.rad(-80 - 3 * math.cos(sine / 1))),.5) | |
2806 | end | |
2807 | attack = false | |
2808 | hum.WalkSpeed = 6 | |
2809 | end | |
2810 | ||
2811 | function deadworld() | |
2812 | hum.WalkSpeed = 0 | |
2813 | attack = true | |
2814 | chatfunc("You... you will regret this!",Color3.new(0.5,0,0)) | |
2815 | for i = 0,10,0.1 do | |
2816 | swait() | |
2817 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1) | |
2818 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1) | |
2819 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.1) | |
2820 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 15 * math.cos(sine / 1))),.1) | |
2821 | RW.C0=clerp(RW.C0,cf(1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.1) | |
2822 | LW.C0=clerp(LW.C0,cf(-1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(50 - 5 * math.cos(sine / 1))),.1) | |
2823 | end | |
2824 | coroutine.resume(coroutine.create(function() | |
2825 | CFuncs["Sound"].Create("rbxassetid://1213175909", char, 1,1) | |
2826 | sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White")) | |
2827 | sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White")) | |
2828 | sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White")) | |
2829 | coroutine.resume(coroutine.create(function() | |
2830 | for i = 0, 9 do | |
2831 | swait(3) | |
2832 | sphere(1,"Add",root.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(0,0,0),2,BrickColor.new("Really red")) | |
2833 | end | |
2834 | end)) | |
2835 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 5,1) | |
2836 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 1,1) | |
2837 | local blastpitch = 1 | |
2838 | for i = 0,2 do | |
2839 | wait(1.5) | |
2840 | sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White")) | |
2841 | sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White")) | |
2842 | sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White")) | |
2843 | coroutine.resume(coroutine.create(function() | |
2844 | for i = 0, 9 do | |
2845 | swait(3) | |
2846 | sphere(1,"Add",root.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(0,0,0),2,BrickColor.new("Really red")) | |
2847 | end | |
2848 | end)) | |
2849 | blastpitch = blastpitch - 0.15 | |
2850 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 1,blastpitch) | |
2851 | end | |
2852 | wait(2) | |
2853 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 250000000)) do | |
2854 | if v:FindFirstChild('Torso') then | |
2855 | dmg(v) | |
2856 | end | |
2857 | end | |
2858 | tors:Destroy() | |
2859 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 2,0.75) | |
2860 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 2,0.5) | |
2861 | sphere(1,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson")) | |
2862 | sphere(2,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson")) | |
2863 | sphere(3,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson")) | |
2864 | coroutine.resume(coroutine.create(function() | |
2865 | for i = 0, 49 do | |
2866 | swait(3) | |
2867 | sphere(1,"Add",root.CFrame*CFrame.new(math.random(-175,175),math.random(-175,175),math.random(-175,175)),vt(0,0,0),2,BrickColor.new("Really red")) | |
2868 | sphere(1,"Add",root.CFrame*CFrame.new(math.random(-375,375),math.random(-375,375),math.random(-375,375)),vt(0,0,0),8,BrickColor.new("Really red")) | |
2869 | end | |
2870 | end)) | |
2871 | end)) | |
2872 | for i = 0,280,0.1 do | |
2873 | swait() | |
2874 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5) | |
2875 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5) | |
2876 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
2877 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 1))),.5) | |
2878 | RW.C0=clerp(RW.C0,cf(1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 - 3 * math.cos(sine / 1)),math.rad(80 + 3 * math.cos(sine / 1))),.5) | |
2879 | LW.C0=clerp(LW.C0,cf(-1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 + 3 * math.cos(sine / 1)),math.rad(-80 - 3 * math.cos(sine / 1))),.5) | |
2880 | end | |
2881 | attack = false | |
2882 | hum.WalkSpeed = 6 | |
2883 | end | |
2884 | coroutine.resume(coroutine.create(function() | |
2885 | AppearMutatedLimbs() | |
2886 | end)) | |
2887 | ||
2888 | mouse.Button1Down:connect(function() | |
2889 | if attack == false and targetted ~= nil then | |
2890 | BlinkingStab() | |
2891 | end | |
2892 | end) | |
2893 | ||
2894 | mouse.KeyDown:connect(function(k) | |
2895 | if k == "q" and attack == false then | |
2896 | LockOn() | |
2897 | end | |
2898 | if k == "e" and attack == false and targetted ~= nil then | |
2899 | Tele() | |
2900 | end | |
2901 | if k == "z" and attack == false and targetted ~= nil then | |
2902 | QuickStab() | |
2903 | end | |
2904 | if k == "x" and attack == false then | |
2905 | uhhnolikeokthen() | |
2906 | end | |
2907 | if k == "l" and attack == false and unlockedA == true and LeftModeUnlocked == false then | |
2908 | AppearMutatedLimbs2() | |
2909 | end | |
2910 | if k == "p" and attack == false and unlockedX == true then | |
2911 | deadworld() | |
2912 | end | |
2913 | if k == "t" and attack == false and plr.Name == "isaacsantamaria01" then | |
2914 | attack = true | |
2915 | chatfunc("HAH",Color3.new(0.5,0,0)) | |
2916 | CFuncs["Sound"].Create("rbxassetid://695281161", root, 5,1.4) | |
2917 | for i = 0, 1, 0.1 do | |
2918 | swait() | |
2919 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.9) | |
2920 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.9) | |
2921 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.5,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.9) | |
2922 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-40),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.9) | |
2923 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-80),math.rad(0),math.rad(10)),.9) | |
2924 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-80),math.rad(0),math.rad(-10)),.9) | |
2925 | end | |
2926 | attack = false | |
2927 | end | |
2928 | end) | |
2929 | idleanim=.4 | |
2930 | while true do | |
2931 | swait() | |
2932 | imgl.Rotation = imgl.Rotation + 3 | |
2933 | imgl2.Rotation = imgl2.Rotation - 3 | |
2934 | img2.Rotation = img2.Rotation - 3 | |
2935 | if targetted ~= nil then | |
2936 | abss.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso") | |
2937 | abss.Enabled = true | |
2938 | elseif targetted == nil then | |
2939 | abss.Adornee = nil | |
2940 | abss.Enabled = false | |
2941 | end | |
2942 | while true and imgl.Rotation >= 360 do | |
2943 | imgl.Rotation = 0 | |
2944 | imgl2.Rotation = 0 | |
2945 | img2.Rotation = 0 | |
2946 | end | |
2947 | uhh.Rotation = math.random(-1,1) | |
2948 | uhh.Position = UDim2.new(-0.15, 0, 0.35, 0) + UDim2.new(0,math.random(-1,1),0,math.random(-1,1)) | |
2949 | uhh.Text = "Kills : " ..killcount | |
2950 | if killcount < maxA then | |
2951 | uhh2.Text = "Required kills for second mutated arm: " ..requirekillA-killcount | |
2952 | elseif killcount >= maxA then | |
2953 | unlockedA = true | |
2954 | uhh2.Text = "Second mutated arm unlocked. (L)" | |
2955 | end | |
2956 | if killcount < maxX then | |
2957 | uhh3.Text = "Required kills for the end: " ..requirekillX-killcount | |
2958 | elseif killcount >= maxX then | |
2959 | unlockedX = true | |
2960 | uhh3.Text = "The end unlocked. (P to activate)" | |
2961 | end | |
2962 | sine = sine + change | |
2963 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2964 | local velderp=RootPart.Velocity.y | |
2965 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
2966 | if equipped==true or equipped==false then | |
2967 | if attack==false then | |
2968 | idle=idle+1 | |
2969 | else | |
2970 | idle=0 | |
2971 | end | |
2972 | if idle>=500 then | |
2973 | if attack==false then | |
2974 | --Sheath() | |
2975 | end | |
2976 | end | |
2977 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
2978 | Anim="Jump" | |
2979 | if attack==false then | |
2980 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
2981 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
2982 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
2983 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
2984 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1) | |
2985 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1) | |
2986 | end | |
2987 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
2988 | Anim="Fall" | |
2989 | if attack==false then | |
2990 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
2991 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
2992 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2993 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
2994 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1) | |
2995 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1) | |
2996 | end | |
2997 | elseif torvel<1 and hitfloor~=nil then | |
2998 | Anim="Idle" | |
2999 | if attack==false then | |
3000 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1) | |
3001 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1) | |
3002 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1) | |
3003 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0 - 10 * math.cos(sine / 1))),.1) | |
3004 | if LeftModeUnlocked == false then | |
3005 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1) | |
3006 | else | |
3007 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 10 * math.cos(sine / 1)),math.rad(0),math.rad(10 + 10 * math.cos(sine / 1))),.1) | |
3008 | end | |
3009 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1) | |
3010 | end | |
3011 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
3012 | Anim="Walk" | |
3013 | if attack==false then | |
3014 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10 + 40 * math.cos(sine / 18))),.1) | |
3015 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10 + 40 * math.cos(sine / 18))),.1) | |
3016 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(0)),.1) | |
3017 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.1) | |
3018 | if LeftModeUnlocked == false then | |
3019 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 40 * math.cos(sine / 18)),math.rad(0),math.rad(10)),.1) | |
3020 | else | |
3021 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 10 * math.cos(sine / 1)),math.rad(0),math.rad(10 + 10 * math.cos(sine / 1))),.1) | |
3022 | end | |
3023 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1) | |
3024 | end | |
3025 | elseif torvel>=22 and hitfloor~=nil then | |
3026 | Anim="Run" | |
3027 | if attack==false then | |
3028 | RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1) | |
3029 | LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1) | |
3030 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1) | |
3031 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1) | |
3032 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 125 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1) | |
3033 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 125 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1) | |
3034 | end | |
3035 | end | |
3036 | end | |
3037 | end |