SHOW:
|
|
- or go back to the newest paste.
1 | -- a tattoo shaped like a moon | |
2 | -- written by yeox769, for everyman | |
3 | ||
4 | clr = "Bright orange" -- set this to whatever you want | |
5 | ||
6 | wait(0.5) | |
7 | - | Player=game:GetService("Players").IshLink |
7 | + | Player=game:GetService("Players").UndeniableInfinity |
8 | Character=Player.Character | |
9 | PlayerGui=Player.PlayerGui | |
10 | Backpack=Player.Backpack | |
11 | Torso=Character.Torso | |
12 | Head=Character.Head | |
13 | Humanoid=Character.Humanoid | |
14 | m=Instance.new('Model',Character) | |
15 | LeftArm=Character["Left Arm"] | |
16 | LeftLeg=Character["Left Leg"] | |
17 | RightArm=Character["Right Arm"] | |
18 | RightLeg=Character["Right Leg"] | |
19 | LS=Torso["Left Shoulder"] | |
20 | LH=Torso["Left Hip"] | |
21 | RS=Torso["Right Shoulder"] | |
22 | RH=Torso["Right Hip"] | |
23 | Face = Head.face | |
24 | Neck=Torso.Neck | |
25 | it=Instance.new | |
26 | attacktype=1 | |
27 | vt=Vector3.new | |
28 | cf=CFrame.new | |
29 | euler=CFrame.fromEulerAnglesXYZ | |
30 | angles=CFrame.Angles | |
31 | cloaked=false | |
32 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
33 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
34 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
35 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
36 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
37 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
38 | RootPart=Character.HumanoidRootPart | |
39 | RootJoint=RootPart.RootJoint | |
40 | RootCF=euler(-1.57,0,3.14) | |
41 | attack = false | |
42 | attackdebounce = false | |
43 | deb=false | |
44 | equipped=true | |
45 | hand=false | |
46 | MMouse=nil | |
47 | combo=0 | |
48 | trispeed=.2 | |
49 | attackmode='none' | |
50 | local idle=0 | |
51 | local Anim="Idle" | |
52 | ||
53 | it = Instance.new | |
54 | ||
55 | local part = function(name,parent,brkclr,mtrl,rfl,trns,sz) | |
56 | local prt = it("Part",parent) | |
57 | prt.Name = name | |
58 | prt.CanCollide = false | |
59 | prt.BrickColor = BrickColor.new(brkclr) | |
60 | if brkclr == "Really black" and mtrl == "Neon" then prt.Color = Color3.new(0,0,0) end | |
61 | prt.Material = mtrl | |
62 | prt.Reflectance = rfl | |
63 | prt.Transparency = trns | |
64 | prt.Size = sz | |
65 | prt.Anchored = true | |
66 | return prt | |
67 | end | |
68 | local mesh = function(meshtype,parent,meshid,textureid,scale) | |
69 | local msh = it("SpecialMesh",parent) | |
70 | if meshtype == "FileMesh" then | |
71 | msh.MeshId = meshid | |
72 | msh.TextureId = textureid | |
73 | end | |
74 | msh.MeshType = meshtype | |
75 | msh.Scale = scale | |
76 | return(msh) | |
77 | end | |
78 | local weld = function(part1,part2,x1,y1,z1,x2,y2,z2) | |
79 | local w = it("Weld",part1) | |
80 | w.Part0 = part1 | |
81 | w.Part1 = part2 | |
82 | if part1.Anchored or part2.Anchored then | |
83 | part1.Anchored = false | |
84 | part2.Anchored = false | |
85 | end | |
86 | w.C0 = (CFrame.new(x1,y1,z1)*CFrame.Angles(math.rad(z2),math.rad(y2),math.rad(x2))) | |
87 | return(w) | |
88 | end | |
89 | local emit = function(parent,tex,startcolor, endcolor, startsize,endsize,lightem,emdir,lif,rate,speed,rotspeed,sprdang) | |
90 | local emm = it("ParticleEmitter",parent) | |
91 | emm.Texture = tex | |
92 | emm.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,startcolor),ColorSequenceKeypoint.new(1,endcolor)}) | |
93 | emm.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,startsize),NumberSequenceKeypoint.new(1,endsize)}) | |
94 | emm.LightEmission = lightem | |
95 | emm.EmissionDirection = emdir | |
96 | emm.Lifetime = NumberRange.new(lif) | |
97 | emm.Rate = rate | |
98 | emm.Speed = NumberRange.new(speed) | |
99 | emm.RotSpeed = NumberRange.new(rotspeed) | |
100 | emm.SpreadAngle = Vector2.new(sprdang,sprdang) | |
101 | return(emm) | |
102 | end | |
103 | ||
104 | p = part("Part",m,clr,"Neon",0,0,Vector3.new(0.05, 0.1, 0.1)) | |
105 | mesh("Cylinder",p,"","",Vector3.new(1,1,1)) | |
106 | weld(Head,p,0,0.325,-0.575,0,90,0) | |
107 | p = part("Part",m,Head.BrickColor.Name,"SmoothPlastic",0,0,Vector3.new(0.05, 0.1, 0.1)) | |
108 | mesh("Cylinder",p,"","",Vector3.new(1,1,1)) | |
109 | weld(Head,p,-0.04,0.325,-0.58,0,90,0) | |
110 | --NoobyGames12 | |
111 | ||
112 | print'lets do this' | |
113 | ||
114 | plr = game.Players.LocalPlayer | |
115 | char = plr.Character | |
116 | hum = char.Humanoid | |
117 | local cam = game.Workspace.CurrentCamera | |
118 | t = char.Torso | |
119 | h = char.Head | |
120 | ra = char["Right Arm"] | |
121 | la = char["Left Arm"] | |
122 | rl = char["Right Leg"] | |
123 | ll = char["Left Leg"] | |
124 | tors = char.Torso | |
125 | lleg = char["Left Leg"] | |
126 | root = char.HumanoidRootPart | |
127 | hed = char.Head | |
128 | rleg = char["Right Leg"] | |
129 | rarm = char["Right Arm"] | |
130 | larm = char["Left Arm"] | |
131 | vt = Vector3.new | |
132 | bc = BrickColor.new | |
133 | br = BrickColor.random | |
134 | it = Instance.new | |
135 | cf = CFrame.new | |
136 | ||
137 | local m = Instance.new("Model",char) | |
138 | m.Name = "GaunletModel" | |
139 | ||
140 | local maincolor = t.BrickColor | |
141 | local maincolor2 = BrickColor.new("Really black") | |
142 | ||
143 | function CreatePart(parent,transparency,reflectance,material,brickcolor) | |
144 | local p = Instance.new("Part") | |
145 | p.Parent = parent | |
146 | p.Size = Vector3.new(1,1,1) | |
147 | p.Transparency = transparency | |
148 | p.Reflectance = reflectance | |
149 | p.CanCollide = false | |
150 | p.BrickColor = brickcolor | |
151 | p.Material = material | |
152 | return p | |
153 | end | |
154 | ||
155 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
156 | local mesh = Instance.new("SpecialMesh",parent) | |
157 | mesh.MeshType = meshtype | |
158 | mesh.Scale = Vector3.new(x1,y1,z1) | |
159 | return mesh | |
160 | end | |
161 | ||
162 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
163 | local mesh = Instance.new("SpecialMesh",parent) | |
164 | mesh.MeshType = "SpecialMesh" | |
165 | mesh.MeshId = meshid | |
166 | mesh.Scale = Vector3.new(x1,y1,z1) | |
167 | return mesh | |
168 | end | |
169 | ||
170 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
171 | local mesh = Instance.new("SpecialMesh",parent) | |
172 | mesh.MeshType = "FileMesh" | |
173 | mesh.MeshId = meshid | |
174 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
175 | mesh.Scale = Vector3.new(x1,y1,z1) | |
176 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
177 | return mesh | |
178 | end | |
179 | ||
180 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
181 | local weld = Instance.new("Weld") | |
182 | weld.Parent = parent | |
183 | weld.Part0 = part0 | |
184 | weld.Part1 = part1 | |
185 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
186 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
187 | return weld | |
188 | end | |
189 | ||
190 | local llegw = CreatePart(m,1,1,"Glass",maincolor2) | |
191 | CreateWeld(llegw,lleg,llegw,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
192 | local rlegw = CreatePart(m,1,1,"Glass",maincolor2) | |
193 | CreateWeld(rlegw,rleg,rlegw,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
194 | ||
195 | local sorb = CreatePart(m,1,1,"Glass",maincolor2) | |
196 | CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
197 | local sorb2 = CreatePart(m,1,1,"Glass",maincolor2) | |
198 | CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
199 | ||
200 | ---- Right arm | |
201 | local handle = CreatePart(m,0,0,"Glass",maincolor2) | |
202 | CreateMesh(handle,"Brick",1.05,1.5,1.05) | |
203 | CreateWeld(handle,rarm,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
204 | local lowhandle = CreatePart(m,0,0,"Glass",maincolor2) | |
205 | CreateMesh(lowhandle,"Brick",1.025,0.3,1.025) | |
206 | CreateWeld(lowhandle,rarm,lowhandle,0,0.865,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
207 | local lowhandleo = CreatePart(m,0,0,"Neon",maincolor) | |
208 | CreateMesh(lowhandleo,"Brick",1.02,0.3,1.02) | |
209 | CreateWeld(lowhandleo,rarm,lowhandleo,0,0.835,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
210 | local handleg = CreatePart(m,0,0,"Neon",maincolor) | |
211 | CreateMesh(handleg,"Brick",1.025,1.5,1.025) | |
212 | CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
213 | local handleo = CreatePart(m,0,0,"Neon",maincolor) | |
214 | CreateMesh(handleo,"Brick",0.5,0.85,1.085) | |
215 | CreateWeld(handleo,handle,handleo,-0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
216 | local handleo2 = CreatePart(m,0,0,"Glass",maincolor2) | |
217 | CreateMesh(handleo2,"Brick",0.5,0.8,1.09) | |
218 | CreateWeld(handleo2,handle,handleo2,-0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
219 | local zi = CreatePart(m,0,0,"Neon",maincolor) | |
220 | CreateMesh(zi,"Brick",0.025,1.525,1.1) | |
221 | CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
222 | ||
223 | local to = CreatePart(m,0,0,"Glass",maincolor2) | |
224 | CreateMesh(to,"Brick",0.5,1.5,0.5) | |
225 | CreateWeld(to,handle,to,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
226 | local tl = CreatePart(m,0,0,"Neon",maincolor) | |
227 | CreateMesh(tl,"Brick",0.6,1.45,0.6) | |
228 | CreateWeld(tl,handle,tl,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
229 | ||
230 | local zo = CreatePart(m,0,0,"Neon",maincolor) | |
231 | CreateMesh(zo,"Brick",0.565,0.025,1.1) | |
232 | CreateWeld(zo,handle,zo,-0.275,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
233 | local zoa = CreatePart(m,0,0,"Neon",maincolor) | |
234 | CreateMesh(zoa,"Brick",0.565,0.025,1.1) | |
235 | CreateWeld(zoa,handle,zoa,-0.275,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
236 | local zob = CreatePart(m,0,0,"Neon",maincolor) | |
237 | CreateMesh(zob,"Brick",0.565,0.025,1.1) | |
238 | CreateWeld(zob,handle,zob,-0.275,0.7,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
239 | local zz = CreatePart(m,0,0,"Neon",maincolor) | |
240 | CreateMesh(zz,"Brick",0.3,0.3,0.3) | |
241 | CreateWeld(zz,zoa,zz,-0.15,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
242 | local zzo = CreatePart(m,0,0,"Glass",maincolor2) | |
243 | CreateMesh(zzo,"Brick",0.315,0.275,0.275) | |
244 | CreateWeld(zzo,zz,zzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
245 | ||
246 | local li = CreatePart(m,0,0,"Neon",maincolor) | |
247 | CreateMesh(li,"Brick",0.275,0.825,0.025) | |
248 | CreateWeld(li,handleo,li,-0.125,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
249 | ||
250 | local li1 = CreatePart(m,0,0,"Neon",maincolor) | |
251 | CreateMesh(li1,"Brick",0.275,0.825,0.025) | |
252 | CreateWeld(li1,handleo,li1,-0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
253 | local li2 = CreatePart(m,0,0,"Neon",maincolor) | |
254 | CreateMesh(li2,"Brick",0.275,0.825,0.025) | |
255 | CreateWeld(li2,handleo,li2,-0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
256 | ||
257 | local di = CreatePart(m,0,0,"Neon",maincolor) | |
258 | CreateMesh(di,"Brick",0.3,0.3,0.3) | |
259 | CreateWeld(di,handleo,di,-0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
260 | ||
261 | local di1 = CreatePart(m,0,0,"Neon",maincolor) | |
262 | CreateMesh(di1,"Brick",0.3,0.15,0.15) | |
263 | CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
264 | local di2 = CreatePart(m,0,0,"Neon",maincolor) | |
265 | CreateMesh(di2,"Brick",0.3,0.15,0.15) | |
266 | CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
267 | local di3 = CreatePart(m,0,0,"Neon",maincolor) | |
268 | CreateMesh(di3,"Brick",0.3,0.15,0.15) | |
269 | CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
270 | local di4 = CreatePart(m,0,0,"Neon",maincolor) | |
271 | CreateMesh(di4,"Brick",0.3,0.15,0.15) | |
272 | CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
273 | local dio = CreatePart(m,0,0,"Glass",maincolor2) | |
274 | CreateMesh(dio,"Brick",0.325,0.275,0.275) | |
275 | CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
276 | local dio1 = CreatePart(m,0,0,"Glass",maincolor2) | |
277 | CreateMesh(dio1,"Brick",0.325,0.125,0.125) | |
278 | CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
279 | local dio2 = CreatePart(m,0,0,"Glass",maincolor2) | |
280 | CreateMesh(dio2,"Brick",0.325,0.125,0.125) | |
281 | CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
282 | local dio3 = CreatePart(m,0,0,"Glass",maincolor2) | |
283 | CreateMesh(dio3,"Brick",0.325,0.125,0.125) | |
284 | CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
285 | local dio4 = CreatePart(m,0,0,"Glass",maincolor2) | |
286 | CreateMesh(dio4,"Brick",0.325,0.125,0.125) | |
287 | CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
288 | ||
289 | local sq1 = CreatePart(m,0,0,"Neon",maincolor) | |
290 | CreateMesh(sq1,"Brick",0.3,0.125,0.125) | |
291 | CreateWeld(sq1,handleo,sq1,-0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
292 | local sq2 = CreatePart(m,0,0,"Neon",maincolor) | |
293 | CreateMesh(sq2,"Brick",0.3,0.125,0.125) | |
294 | CreateWeld(sq2,handleo,sq2,-0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
295 | local sq3 = CreatePart(m,0,0,"Neon",maincolor) | |
296 | CreateMesh(sq3,"Brick",0.3,0.125,0.125) | |
297 | CreateWeld(sq3,handleo,sq3,-0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
298 | local sq4 = CreatePart(m,0,0,"Neon",maincolor) | |
299 | CreateMesh(sq4,"Brick",0.3,0.125,0.125) | |
300 | CreateWeld(sq4,handleo,sq4,-0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
301 | ||
302 | local sqo1 = CreatePart(m,0,0,"Glass",maincolor2) | |
303 | CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115) | |
304 | CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
305 | local sqo2 = CreatePart(m,0,0,"Glass",maincolor2) | |
306 | CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115) | |
307 | CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
308 | local sqo3 = CreatePart(m,0,0,"Glass",maincolor2) | |
309 | CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115) | |
310 | CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
311 | local sqo4 = CreatePart(m,0,0,"Glass",maincolor2) | |
312 | CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115) | |
313 | CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
314 | ||
315 | local locl = CreatePart(m,0,0,"Neon",maincolor) | |
316 | CreateMesh(locl,"Brick",0.1,0.1,0.1) | |
317 | CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
318 | ||
319 | local dil = CreatePart(m,0,0,"Neon",maincolor) | |
320 | CreateMesh(dil,"Brick",0.45,0.45,0.3) | |
321 | CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
322 | ||
323 | local dil1 = CreatePart(m,0,0,"Neon",maincolor) | |
324 | CreateMesh(dil1,"Brick",0.225,0.225,0.3) | |
325 | CreateWeld(dil1,dil,dil1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
326 | local dil2 = CreatePart(m,0,0,"Neon",maincolor) | |
327 | CreateMesh(dil2,"Brick",0.225,0.225,0.3) | |
328 | CreateWeld(dil2,dil,dil2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
329 | ||
330 | local dilo = CreatePart(m,0,0,"Glass",maincolor2) | |
331 | CreateMesh(dilo,"Brick",0.375,0.375,0.315) | |
332 | CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
333 | local dilo1 = CreatePart(m,0,0,"Glass",maincolor2) | |
334 | CreateMesh(dilo1,"Brick",0.175,0.175,0.315) | |
335 | CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
336 | local dilo2 = CreatePart(m,0,0,"Glass",maincolor2) | |
337 | CreateMesh(dilo2,"Brick",0.175,0.175,0.315) | |
338 | CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
339 | ||
340 | local locr = CreatePart(m,0,0,"Neon",maincolor) | |
341 | CreateMesh(locr,"Brick",0.1,0.1,0.1) | |
342 | CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
343 | ||
344 | local dir = CreatePart(m,0,0,"Neon",maincolor) | |
345 | CreateMesh(dir,"Brick",0.45,0.45,0.3) | |
346 | CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
347 | ||
348 | local dir1 = CreatePart(m,0,0,"Neon",maincolor) | |
349 | CreateMesh(dir1,"Brick",0.225,0.225,0.3) | |
350 | CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
351 | local dir2 = CreatePart(m,0,0,"Neon",maincolor) | |
352 | CreateMesh(dir2,"Brick",0.225,0.225,0.3) | |
353 | CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
354 | ||
355 | local diro = CreatePart(m,0,0,"Glass",maincolor2) | |
356 | CreateMesh(diro,"Brick",0.375,0.375,0.315) | |
357 | CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
358 | local diro1 = CreatePart(m,0,0,"Glass",maincolor2) | |
359 | CreateMesh(diro1,"Brick",0.175,0.175,0.315) | |
360 | CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
361 | local diro2 = CreatePart(m,0,0,"Glass",maincolor2) | |
362 | CreateMesh(diro2,"Brick",0.175,0.175,0.315) | |
363 | CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
364 | ||
365 | ---- Left arm | |
366 | local handle = CreatePart(m,0,0,"Glass",maincolor2) | |
367 | CreateMesh(handle,"Brick",1.05,1.5,1.05) | |
368 | CreateWeld(handle,larm,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
369 | local lowhandle = CreatePart(m,0,0,"Glass",maincolor2) | |
370 | CreateMesh(lowhandle,"Brick",1.025,0.3,1.025) | |
371 | CreateWeld(lowhandle,larm,lowhandle,0,0.865,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
372 | local lowhandleo = CreatePart(m,0,0,"Neon",maincolor) | |
373 | CreateMesh(lowhandleo,"Brick",1.02,0.3,1.02) | |
374 | CreateWeld(lowhandleo,larm,lowhandleo,0,0.835,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
375 | local handleg = CreatePart(m,0,0,"Neon",maincolor) | |
376 | CreateMesh(handleg,"Brick",1.025,1.5,1.025) | |
377 | CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
378 | local handleo = CreatePart(m,0,0,"Neon",maincolor) | |
379 | CreateMesh(handleo,"Brick",0.5,0.85,1.085) | |
380 | CreateWeld(handleo,handle,handleo,0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
381 | local handleo2 = CreatePart(m,0,0,"Glass",maincolor2) | |
382 | CreateMesh(handleo2,"Brick",0.5,0.8,1.09) | |
383 | CreateWeld(handleo2,handle,handleo2,0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
384 | local zi = CreatePart(m,0,0,"Neon",maincolor) | |
385 | CreateMesh(zi,"Brick",0.025,1.525,1.1) | |
386 | CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
387 | ||
388 | local to = CreatePart(m,0,0,"Glass",maincolor2) | |
389 | CreateMesh(to,"Brick",0.5,1.5,0.5) | |
390 | CreateWeld(to,handle,to,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
391 | local tl = CreatePart(m,0,0,"Neon",maincolor) | |
392 | CreateMesh(tl,"Brick",0.6,1.45,0.6) | |
393 | CreateWeld(tl,handle,tl,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
394 | ||
395 | local zo = CreatePart(m,0,0,"Neon",maincolor) | |
396 | CreateMesh(zo,"Brick",0.565,0.025,1.1) | |
397 | CreateWeld(zo,handle,zo,0.275,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
398 | local zoa = CreatePart(m,0,0,"Neon",maincolor) | |
399 | CreateMesh(zoa,"Brick",0.565,0.025,1.1) | |
400 | CreateWeld(zoa,handle,zoa,0.275,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
401 | local zob = CreatePart(m,0,0,"Neon",maincolor) | |
402 | CreateMesh(zob,"Brick",0.565,0.025,1.1) | |
403 | CreateWeld(zob,handle,zob,0.275,0.7,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
404 | local zz = CreatePart(m,0,0,"Neon",maincolor) | |
405 | CreateMesh(zz,"Brick",0.3,0.3,0.3) | |
406 | CreateWeld(zz,zoa,zz,0.15,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
407 | local zzo = CreatePart(m,0,0,"Glass",maincolor2) | |
408 | CreateMesh(zzo,"Brick",0.315,0.275,0.275) | |
409 | CreateWeld(zzo,zz,zzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
410 | ||
411 | local li = CreatePart(m,0,0,"Neon",maincolor) | |
412 | CreateMesh(li,"Brick",0.275,0.825,0.025) | |
413 | CreateWeld(li,handleo,li,0.125,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
414 | ||
415 | local li1 = CreatePart(m,0,0,"Neon",maincolor) | |
416 | CreateMesh(li1,"Brick",0.275,0.825,0.025) | |
417 | CreateWeld(li1,handleo,li1,0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
418 | local li2 = CreatePart(m,0,0,"Neon",maincolor) | |
419 | CreateMesh(li2,"Brick",0.275,0.825,0.025) | |
420 | CreateWeld(li2,handleo,li2,0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
421 | ||
422 | local di = CreatePart(m,0,0,"Neon",maincolor) | |
423 | CreateMesh(di,"Brick",0.3,0.3,0.3) | |
424 | CreateWeld(di,handleo,di,0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
425 | ||
426 | local di1 = CreatePart(m,0,0,"Neon",maincolor) | |
427 | CreateMesh(di1,"Brick",0.3,0.15,0.15) | |
428 | CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
429 | local di2 = CreatePart(m,0,0,"Neon",maincolor) | |
430 | CreateMesh(di2,"Brick",0.3,0.15,0.15) | |
431 | CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
432 | local di3 = CreatePart(m,0,0,"Neon",maincolor) | |
433 | CreateMesh(di3,"Brick",0.3,0.15,0.15) | |
434 | CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
435 | local di4 = CreatePart(m,0,0,"Neon",maincolor) | |
436 | CreateMesh(di4,"Brick",0.3,0.15,0.15) | |
437 | CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
438 | local dio = CreatePart(m,0,0,"Glass",maincolor2) | |
439 | CreateMesh(dio,"Brick",0.325,0.275,0.275) | |
440 | CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
441 | local dio1 = CreatePart(m,0,0,"Glass",maincolor2) | |
442 | CreateMesh(dio1,"Brick",0.325,0.125,0.125) | |
443 | CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
444 | local dio2 = CreatePart(m,0,0,"Glass",maincolor2) | |
445 | CreateMesh(dio2,"Brick",0.325,0.125,0.125) | |
446 | CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
447 | local dio3 = CreatePart(m,0,0,"Glass",maincolor2) | |
448 | CreateMesh(dio3,"Brick",0.325,0.125,0.125) | |
449 | CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
450 | local dio4 = CreatePart(m,0,0,"Glass",maincolor2) | |
451 | CreateMesh(dio4,"Brick",0.325,0.125,0.125) | |
452 | CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
453 | ||
454 | local sq1 = CreatePart(m,0,0,"Neon",maincolor) | |
455 | CreateMesh(sq1,"Brick",0.3,0.125,0.125) | |
456 | CreateWeld(sq1,handleo,sq1,0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
457 | local sq2 = CreatePart(m,0,0,"Neon",maincolor) | |
458 | CreateMesh(sq2,"Brick",0.3,0.125,0.125) | |
459 | CreateWeld(sq2,handleo,sq2,0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
460 | local sq3 = CreatePart(m,0,0,"Neon",maincolor) | |
461 | CreateMesh(sq3,"Brick",0.3,0.125,0.125) | |
462 | CreateWeld(sq3,handleo,sq3,0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
463 | local sq4 = CreatePart(m,0,0,"Neon",maincolor) | |
464 | CreateMesh(sq4,"Brick",0.3,0.125,0.125) | |
465 | CreateWeld(sq4,handleo,sq4,0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
466 | ||
467 | local sqo1 = CreatePart(m,0,0,"Glass",maincolor2) | |
468 | CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115) | |
469 | CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
470 | local sqo2 = CreatePart(m,0,0,"Glass",maincolor2) | |
471 | CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115) | |
472 | CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
473 | local sqo3 = CreatePart(m,0,0,"Glass",maincolor2) | |
474 | CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115) | |
475 | CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
476 | local sqo4 = CreatePart(m,0,0,"Glass",maincolor2) | |
477 | CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115) | |
478 | CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
479 | ||
480 | local locl = CreatePart(m,0,0,"Neon",maincolor) | |
481 | CreateMesh(locl,"Brick",0.1,0.1,0.1) | |
482 | CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
483 | ||
484 | local dil = CreatePart(m,0,0,"Neon",maincolor) | |
485 | CreateMesh(dil,"Brick",0.45,0.45,0.3) | |
486 | CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
487 | ||
488 | local dil1 = CreatePart(m,0,0,"Neon",maincolor) | |
489 | CreateMesh(dil1,"Brick",0.225,0.225,0.3) | |
490 | CreateWeld(dil1,dil,dil1,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
491 | local dil2 = CreatePart(m,0,0,"Neon",maincolor) | |
492 | CreateMesh(dil2,"Brick",0.225,0.225,0.3) | |
493 | CreateWeld(dil2,dil,dil2,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
494 | ||
495 | local dilo = CreatePart(m,0,0,"Glass",maincolor2) | |
496 | CreateMesh(dilo,"Brick",0.375,0.375,0.315) | |
497 | CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
498 | local dilo1 = CreatePart(m,0,0,"Glass",maincolor2) | |
499 | CreateMesh(dilo1,"Brick",0.175,0.175,0.315) | |
500 | CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
501 | local dilo2 = CreatePart(m,0,0,"Glass",maincolor2) | |
502 | CreateMesh(dilo2,"Brick",0.175,0.175,0.315) | |
503 | CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
504 | ||
505 | local locr = CreatePart(m,0,0,"Neon",maincolor) | |
506 | CreateMesh(locr,"Brick",0.1,0.1,0.1) | |
507 | CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
508 | ||
509 | local dir = CreatePart(m,0,0,"Neon",maincolor) | |
510 | CreateMesh(dir,"Brick",0.45,0.45,0.3) | |
511 | CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
512 | ||
513 | local dir1 = CreatePart(m,0,0,"Neon",maincolor) | |
514 | CreateMesh(dir1,"Brick",0.225,0.225,0.3) | |
515 | CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
516 | local dir2 = CreatePart(m,0,0,"Neon",maincolor) | |
517 | CreateMesh(dir2,"Brick",0.225,0.225,0.3) | |
518 | CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
519 | ||
520 | local diro = CreatePart(m,0,0,"Glass",maincolor2) | |
521 | CreateMesh(diro,"Brick",0.375,0.375,0.315) | |
522 | CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
523 | local diro1 = CreatePart(m,0,0,"Glass",maincolor2) | |
524 | CreateMesh(diro1,"Brick",0.175,0.175,0.315) | |
525 | CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
526 | local diro2 = CreatePart(m,0,0,"Glass",maincolor2) | |
527 | CreateMesh(diro2,"Brick",0.175,0.175,0.315) | |
528 | CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
529 | ||
530 | Player=game:GetService("Players").LocalPlayer | |
531 | Character=Player.Character | |
532 | PlayerGui=Player.PlayerGui | |
533 | Backpack=Player.Backpack | |
534 | Torso=Character.Torso | |
535 | Head=Character.Head | |
536 | Humanoid=Character.Humanoid | |
537 | m=Instance.new('Model',Character) | |
538 | LeftArm=Character["Left Arm"] | |
539 | LeftLeg=Character["Left Leg"] | |
540 | RightArm=Character["Right Arm"] | |
541 | RightLeg=Character["Right Leg"] | |
542 | LS=Torso["Left Shoulder"] | |
543 | LH=Torso["Left Hip"] | |
544 | RS=Torso["Right Shoulder"] | |
545 | RH=Torso["Right Hip"] | |
546 | Face = Head.face | |
547 | Neck=Torso.Neck | |
548 | it=Instance.new | |
549 | attacktype=1 | |
550 | vt=Vector3.new | |
551 | cf=CFrame.new | |
552 | euler=CFrame.fromEulerAnglesXYZ | |
553 | angles=CFrame.Angles | |
554 | cloaked=false | |
555 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
556 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
557 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
558 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
559 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
560 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
561 | RootPart=Character.HumanoidRootPart | |
562 | RootJoint=RootPart.RootJoint | |
563 | RootCF=euler(-1.57,0,3.14) | |
564 | attack = false | |
565 | attackdebounce = false | |
566 | deb=false | |
567 | equipped=true | |
568 | hand=false | |
569 | MMouse=nil | |
570 | combo=0 | |
571 | mana=0 | |
572 | trispeed=.2 | |
573 | attackmode='none' | |
574 | local idle=0 | |
575 | local Anim="Idle" | |
576 | local Effects={} | |
577 | local gun=false | |
578 | local shoot=false | |
579 | local sine = 0 | |
580 | local change = 1 | |
581 | player=nil | |
582 | ||
583 | mouse=Player:GetMouse() | |
584 | --save shoulders | |
585 | RSH, LSH=nil, nil | |
586 | --welds | |
587 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
588 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
589 | LH=Torso["Left Hip"] | |
590 | RH=Torso["Right Hip"] | |
591 | TorsoColor=Torso.BrickColor | |
592 | function NoOutline(Part) | |
593 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
594 | end | |
595 | player=Player | |
596 | ch=Character | |
597 | RSH=ch.Torso["Right Shoulder"] | |
598 | LSH=ch.Torso["Left Shoulder"] | |
599 | -- | |
600 | RSH.Parent=nil | |
601 | LSH.Parent=nil | |
602 | -- | |
603 | RW.Name="Right Shoulder" | |
604 | RW.Part0=ch.Torso | |
605 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
606 | RW.C1=cf(0, 0.5, 0) | |
607 | RW.Part1=ch["Right Arm"] | |
608 | RW.Parent=ch.Torso | |
609 | -- | |
610 | LW.Name="Left Shoulder" | |
611 | LW.Part0=ch.Torso | |
612 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
613 | LW.C1=cf(0, 0.5, 0) | |
614 | LW.Part1=ch["Left Arm"] | |
615 | LW.Parent=ch.Torso | |
616 | ||
617 | local Stats=Instance.new("BoolValue") | |
618 | Stats.Name="Stats" | |
619 | Stats.Parent=Character | |
620 | local Atk=Instance.new("NumberValue") | |
621 | Atk.Name="Damage" | |
622 | Atk.Parent=Stats | |
623 | Atk.Value=1 | |
624 | local Def=Instance.new("NumberValue") | |
625 | Def.Name="Defense" | |
626 | Def.Parent=Stats | |
627 | Def.Value=1 | |
628 | local Speed=Instance.new("NumberValue") | |
629 | Speed.Name="Speed" | |
630 | Speed.Parent=Stats | |
631 | Speed.Value=1 | |
632 | local Mvmt=Instance.new("NumberValue") | |
633 | Mvmt.Name="Movement" | |
634 | Mvmt.Parent=Stats | |
635 | Mvmt.Value=1 | |
636 | ||
637 | local donum=0 | |
638 | ||
639 | ||
640 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
641 | local fp=it("Part") | |
642 | fp.formFactor=formfactor | |
643 | fp.Parent=parent | |
644 | fp.Reflectance=reflectance | |
645 | fp.Transparency=transparency | |
646 | fp.CanCollide=false | |
647 | fp.Locked=true | |
648 | fp.BrickColor=brickcolor | |
649 | fp.Name=name | |
650 | fp.Size=size | |
651 | fp.Position=Torso.Position | |
652 | NoOutline(fp) | |
653 | fp.Material="Glass" | |
654 | fp:BreakJoints() | |
655 | return fp | |
656 | end | |
657 | ||
658 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
659 | local mesh=it(Mesh) | |
660 | mesh.Parent=part | |
661 | if Mesh=="SpecialMesh" then | |
662 | mesh.MeshType=meshtype | |
663 | if meshid~="nil" then | |
664 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
665 | end | |
666 | end | |
667 | mesh.Offset=offset | |
668 | mesh.Scale=scale | |
669 | return mesh | |
670 | end | |
671 | ||
672 | function weld(parent,part0,part1,c0) | |
673 | local weld=it("Weld") | |
674 | weld.Parent=parent | |
675 | weld.Part0=part0 | |
676 | weld.Part1=part1 | |
677 | weld.C0=c0 | |
678 | return weld | |
679 | end | |
680 | ||
681 | local Color1=Torso.BrickColor | |
682 | ||
683 | local bodvel=Instance.new("BodyVelocity") | |
684 | local bg=Instance.new("BodyGyro") | |
685 | ||
686 | function swait(num) | |
687 | if num==0 or num==nil then | |
688 | game:service'RunService'.Stepped:wait(0) | |
689 | else | |
690 | for i=0,num do | |
691 | game:service'RunService'.Stepped:wait(0) | |
692 | end | |
693 | end | |
694 | end | |
695 | ||
696 | ||
697 | so = function(id,par,vol,pit) | |
698 | coroutine.resume(coroutine.create(function() | |
699 | local sou = Instance.new("Sound",par or workspace) | |
700 | sou.Volume=vol | |
701 | sou.Pitch=pit or 1 | |
702 | sou.SoundId=id | |
703 | swait() | |
704 | sou:play() | |
705 | game:GetService("Debris"):AddItem(sou,6) | |
706 | end)) | |
707 | end | |
708 | ||
709 | function clerp(a,b,t) | |
710 | local qa = {QuaternionFromCFrame(a)} | |
711 | local qb = {QuaternionFromCFrame(b)} | |
712 | local ax, ay, az = a.x, a.y, a.z | |
713 | local bx, by, bz = b.x, b.y, b.z | |
714 | local _t = 1-t | |
715 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
716 | end | |
717 | ||
718 | function QuaternionFromCFrame(cf) | |
719 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
720 | local trace = m00 + m11 + m22 | |
721 | if trace > 0 then | |
722 | local s = math.sqrt(1 + trace) | |
723 | local recip = 0.5/s | |
724 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
725 | else | |
726 | local i = 0 | |
727 | if m11 > m00 then | |
728 | i = 1 | |
729 | end | |
730 | if m22 > (i == 0 and m00 or m11) then | |
731 | i = 2 | |
732 | end | |
733 | if i == 0 then | |
734 | local s = math.sqrt(m00-m11-m22+1) | |
735 | local recip = 0.5/s | |
736 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
737 | elseif i == 1 then | |
738 | local s = math.sqrt(m11-m22-m00+1) | |
739 | local recip = 0.5/s | |
740 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
741 | elseif i == 2 then | |
742 | local s = math.sqrt(m22-m00-m11+1) | |
743 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
744 | end | |
745 | end | |
746 | end | |
747 | ||
748 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
749 | local xs, ys, zs = x + x, y + y, z + z | |
750 | local wx, wy, wz = w*xs, w*ys, w*zs | |
751 | local xx = x*xs | |
752 | local xy = x*ys | |
753 | local xz = x*zs | |
754 | local yy = y*ys | |
755 | local yz = y*zs | |
756 | local zz = z*zs | |
757 | 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)) | |
758 | end | |
759 | ||
760 | function QuaternionSlerp(a, b, t) | |
761 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
762 | local startInterp, finishInterp; | |
763 | if cosTheta >= 0.0001 then | |
764 | if (1 - cosTheta) > 0.0001 then | |
765 | local theta = math.acos(cosTheta) | |
766 | local invSinTheta = 1/math.sin(theta) | |
767 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
768 | finishInterp = math.sin(t*theta)*invSinTheta | |
769 | else | |
770 | startInterp = 1-t | |
771 | finishInterp = t | |
772 | end | |
773 | else | |
774 | if (1+cosTheta) > 0.0001 then | |
775 | local theta = math.acos(-cosTheta) | |
776 | local invSinTheta = 1/math.sin(theta) | |
777 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
778 | finishInterp = math.sin(t*theta)*invSinTheta | |
779 | else | |
780 | startInterp = t-1 | |
781 | finishInterp = t | |
782 | end | |
783 | end | |
784 | 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 | |
785 | end | |
786 | ||
787 | local function CFrameFromTopBack(at, top, back) | |
788 | local right = top:Cross(back) | |
789 | return CFrame.new(at.x, at.y, at.z, | |
790 | right.x, top.x, back.x, | |
791 | right.y, top.y, back.y, | |
792 | right.z, top.z, back.z) | |
793 | end | |
794 | ||
795 | function Triangle(a, b, c) | |
796 | local edg1 = (c-a):Dot((b-a).unit) | |
797 | local edg2 = (a-b):Dot((c-b).unit) | |
798 | local edg3 = (b-c):Dot((a-c).unit) | |
799 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
800 | a, b, c = a, b, c | |
801 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
802 | a, b, c = b, c, a | |
803 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
804 | a, b, c = c, a, b | |
805 | else | |
806 | assert(false, "unreachable") | |
807 | end | |
808 | ||
809 | local len1 = (c-a):Dot((b-a).unit) | |
810 | local len2 = (b-a).magnitude - len1 | |
811 | local width = (a + (b-a).unit*len1 - c).magnitude | |
812 | ||
813 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
814 | ||
815 | local list = {} | |
816 | ||
817 | if len1 > 0.01 then | |
818 | local w1 = Instance.new('WedgePart', m) | |
819 | game:GetService("Debris"):AddItem(w1,5) | |
820 | w1.Material = "Glass" | |
821 | w1.FormFactor = 'Custom' | |
822 | w1.BrickColor = BrickColor.new("Really red") | |
823 | w1.Transparency = 0 | |
824 | w1.Reflectance = 0 | |
825 | w1.Material = "Glass" | |
826 | w1.CanCollide = false | |
827 | local l1 = Instance.new("PointLight",w1) | |
828 | l1.Color = Color3.new(170,0,0) | |
829 | NoOutline(w1) | |
830 | local sz = Vector3.new(0.2, width, len1) | |
831 | w1.Size = sz | |
832 | local sp = Instance.new("SpecialMesh",w1) | |
833 | sp.MeshType = "Wedge" | |
834 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
835 | w1:BreakJoints() | |
836 | w1.Anchored = true | |
837 | w1.Parent = workspace | |
838 | w1.Transparency = 0.7 | |
839 | table.insert(Effects,{w1,"Disappear",.01}) | |
840 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
841 | table.insert(list,w1) | |
842 | end | |
843 | ||
844 | if len2 > 0.01 then | |
845 | local w2 = Instance.new('WedgePart', m) | |
846 | game:GetService("Debris"):AddItem(w2,5) | |
847 | w2.Material = "Glass" | |
848 | w2.FormFactor = 'Custom' | |
849 | w2.BrickColor = BrickColor.new("Really red") | |
850 | w2.Transparency = 0 | |
851 | w2.Reflectance = 0 | |
852 | w2.Material = "Glass" | |
853 | w2.CanCollide = false | |
854 | local l2 = Instance.new("PointLight",w2) | |
855 | l2.Color = Color3.new(170,0,0) | |
856 | NoOutline(w2) | |
857 | local sz = Vector3.new(0.2, width, len2) | |
858 | w2.Size = sz | |
859 | local sp = Instance.new("SpecialMesh",w2) | |
860 | sp.MeshType = "Wedge" | |
861 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
862 | w2:BreakJoints() | |
863 | w2.Anchored = true | |
864 | w2.Parent = workspace | |
865 | w2.Transparency = 0.7 | |
866 | table.insert(Effects,{w2,"Disappear",.01}) | |
867 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
868 | table.insert(list,w2) | |
869 | end | |
870 | return unpack(list) | |
871 | end | |
872 | ||
873 | ||
874 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
875 | if hit.Parent==nil then | |
876 | return | |
877 | end | |
878 | h=hit.Parent:FindFirstChild("Humanoid") | |
879 | for _,v in pairs(hit.Parent:children()) do | |
880 | if v:IsA("Humanoid") then | |
881 | h=v | |
882 | end | |
883 | end | |
884 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
885 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
886 | end | |
887 | if hit.Parent.className=="Hat" then | |
888 | hit=hit.Parent.Parent:findFirstChild("Head") | |
889 | end | |
890 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
891 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
892 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
893 | return | |
894 | end]] | |
895 | -- hs(hit,1.2) | |
896 | c=Instance.new("ObjectValue") | |
897 | c.Name="creator" | |
898 | c.Value=game:service("Players").LocalPlayer | |
899 | c.Parent=h | |
900 | game:GetService("Debris"):AddItem(c,.5) | |
901 | Damage=math.random(minim,maxim) | |
902 | -- h:TakeDamage(Damage) | |
903 | blocked=false | |
904 | block=hit.Parent:findFirstChild("Block") | |
905 | if block~=nil then | |
906 | print(block.className) | |
907 | if block.className=="NumberValue" then | |
908 | if block.Value>0 then | |
909 | blocked=true | |
910 | if decreaseblock==nil then | |
911 | block.Value=block.Value-1 | |
912 | end | |
913 | end | |
914 | end | |
915 | if block.className=="IntValue" then | |
916 | if block.Value>0 then | |
917 | blocked=true | |
918 | if decreaseblock~=nil then | |
919 | block.Value=block.Value-1 | |
920 | end | |
921 | end | |
922 | end | |
923 | end | |
924 | if blocked==false then | |
925 | -- h:TakeDamage(Damage) | |
926 | h.Health=h.Health-Damage | |
927 | showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red")) | |
928 | else | |
929 | h.Health=h.Health-(Damage/2) | |
930 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue")) | |
931 | end | |
932 | if Type=="Knockdown" then | |
933 | hum=hit.Parent.Humanoid | |
934 | hum.PlatformStand=true | |
935 | coroutine.resume(coroutine.create(function(HHumanoid) | |
936 | swait(1) | |
937 | HHumanoid.PlatformStand=false | |
938 | end),hum) | |
939 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
940 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
941 | local bodvol=Instance.new("BodyVelocity") | |
942 | bodvol.velocity=angle*knockback | |
943 | bodvol.P=5000 | |
944 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
945 | bodvol.Parent=hit | |
946 | rl=Instance.new("BodyAngularVelocity") | |
947 | rl.P=3000 | |
948 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
949 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
950 | rl.Parent=hit | |
951 | game:GetService("Debris"):AddItem(bodvol,.5) | |
952 | game:GetService("Debris"):AddItem(rl,.5) | |
953 | elseif Type=="Normal" then | |
954 | vp=Instance.new("BodyVelocity") | |
955 | vp.P=500 | |
956 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
957 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
958 | if KnockbackType==1 then | |
959 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
960 | elseif KnockbackType==2 then | |
961 | vp.velocity=Property.CFrame.lookVector*knockback | |
962 | end | |
963 | if knockback>0 then | |
964 | vp.Parent=hit.Parent.Torso | |
965 | end | |
966 | game:GetService("Debris"):AddItem(vp,.5) | |
967 | elseif Type=="Up" then | |
968 | local bodyVelocity=Instance.new("BodyVelocity") | |
969 | bodyVelocity.velocity=vt(0,60,0) | |
970 | bodyVelocity.P=5000 | |
971 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
972 | bodyVelocity.Parent=hit | |
973 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
974 | rl=Instance.new("BodyAngularVelocity") | |
975 | rl.P=3000 | |
976 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
977 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
978 | rl.Parent=hit | |
979 | game:GetService("Debris"):AddItem(rl,.5) | |
980 | elseif Type=="Snare" then | |
981 | bp=Instance.new("BodyPosition") | |
982 | bp.P=2000 | |
983 | bp.D=100 | |
984 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
985 | bp.position=hit.Parent.Torso.Position | |
986 | bp.Parent=hit.Parent.Torso | |
987 | game:GetService("Debris"):AddItem(bp,1) | |
988 | elseif Type=="Target" then | |
989 | if Targetting==false then | |
990 | ZTarget=hit.Parent.Torso | |
991 | coroutine.resume(coroutine.create(function(Part) | |
992 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
993 | swait(5) | |
994 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
995 | end),ZTarget) | |
996 | TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
997 | targetgui=Instance.new("BillboardGui") | |
998 | targetgui.Parent=ZTarget | |
999 | targetgui.Size=UDim2.new(10,100,10,100) | |
1000 | targ=Instance.new("ImageLabel") | |
1001 | targ.Parent=targetgui | |
1002 | targ.BackgroundTransparency=1 | |
1003 | targ.Image="rbxassetid://4834067" | |
1004 | targ.Size=UDim2.new(1,0,1,0) | |
1005 | cam.CameraType="Scriptable" | |
1006 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
1007 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
1008 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
1009 | Targetting=true | |
1010 | RocketTarget=ZTarget | |
1011 | for i=1,Property do | |
1012 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
1013 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
1014 | swait() | |
1015 | end | |
1016 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
1017 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
1018 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
1019 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
1020 | end | |
1021 | Targetting=false | |
1022 | RocketTarget=nil | |
1023 | targetgui.Parent=nil | |
1024 | cam.CameraType="Custom" | |
1025 | end | |
1026 | end | |
1027 | debounce=Instance.new("BoolValue") | |
1028 | debounce.Name="DebounceHit" | |
1029 | debounce.Parent=hit.Parent | |
1030 | debounce.Value=true | |
1031 | game:GetService("Debris"):AddItem(debounce,Delay) | |
1032 | c=Instance.new("ObjectValue") | |
1033 | c.Name="creator" | |
1034 | c.Value=Player | |
1035 | c.Parent=h | |
1036 | game:GetService("Debris"):AddItem(c,.5) | |
1037 | CRIT=false | |
1038 | hitDeb=true | |
1039 | AttackPos=6 | |
1040 | end | |
1041 | end | |
1042 | ||
1043 | showDamage=function(Char,Dealt,du,Color) | |
1044 | m=Instance.new("Model") | |
1045 | m.Name=tostring(Dealt) | |
1046 | h=Instance.new("Humanoid") | |
1047 | h.Health=0 | |
1048 | h.MaxHealth=0 | |
1049 | h.Parent=m | |
1050 | c=Instance.new("Part") | |
1051 | c.Transparency=0 | |
1052 | c.BrickColor=Color | |
1053 | c.Transparency = 1 | |
1054 | c.Name="Head" | |
1055 | c.TopSurface=0 | |
1056 | c.BottomSurface=0 | |
1057 | c.formFactor="Plate" | |
1058 | c.Size=Vector3.new(1,.4,1) | |
1059 | ||
1060 | local txt = Instance.new("BillboardGui", c) | |
1061 | txt.Adornee = c | |
1062 | txt.Name = "_status" | |
1063 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
1064 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
1065 | local text = Instance.new("TextLabel", txt) | |
1066 | text.Size = UDim2.new(10, 0, 7, 0) | |
1067 | text.FontSize = "Size12" | |
1068 | text.TextScaled = true | |
1069 | text.TextTransparency = 0.5 | |
1070 | text.BackgroundTransparency = 1 | |
1071 | text.TextTransparency = 0.5 | |
1072 | text.TextStrokeTransparency = 0.5 | |
1073 | text.Font = "SciFi" | |
1074 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
1075 | v=Instance.new("Part") | |
1076 | v.Name = "ColorBrick" | |
1077 | v.Parent=c | |
1078 | v.FormFactor="Symmetric" | |
1079 | v.Anchored=true | |
1080 | v.CanCollide=false | |
1081 | v.BottomSurface="Smooth" | |
1082 | v.TopSurface="Smooth" | |
1083 | v.Size=Vector3.new(10,5,3) | |
1084 | v.Transparency=1 | |
1085 | v.CFrame=c.CFrame | |
1086 | v.BrickColor=BrickColor.random() | |
1087 | v.Transparency=1 | |
1088 | text.TextColor3 = maincolor.Color | |
1089 | v.Shape="Block" | |
1090 | text.Text = tostring(Dealt) | |
1091 | ms=Instance.new("CylinderMesh") | |
1092 | ms.Scale=Vector3.new(.8,.8,.8) | |
1093 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
1094 | local dam = Instance.new("Sound",c) | |
1095 | local rndm=math.random(1,#hitsounds) | |
1096 | local r=rndm | |
1097 | dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r] | |
1098 | dam.Volume = 1.25 | |
1099 | dam.Pitch = 1 | |
1100 | dam:Play() | |
1101 | if CRIT==true then | |
1102 | ms.Scale=Vector3.new(1,1.25,1) | |
1103 | end | |
1104 | ms.Parent=c | |
1105 | c.Reflectance=0 | |
1106 | Instance.new("BodyGyro").Parent=c | |
1107 | c.Parent=m | |
1108 | if Char:findFirstChild("Head")~=nil then | |
1109 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
1110 | elseif Char.Parent:findFirstChild("Head")~=nil then | |
1111 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
1112 | end | |
1113 | f=Instance.new("BodyPosition") | |
1114 | f.P=2000 | |
1115 | f.D=100 | |
1116 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1117 | f.position=c.Position+Vector3.new(0,3,0) | |
1118 | f.Parent=c | |
1119 | game:GetService("Debris"):AddItem(m,.5+du) | |
1120 | c.CanCollide=false | |
1121 | m.Parent=workspace | |
1122 | c.CanCollide=false | |
1123 | end | |
1124 | ||
1125 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1126 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1127 | end | |
1128 | ||
1129 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
1130 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1131 | prt.Anchored=true | |
1132 | prt.CFrame=cframe | |
1133 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) | |
1134 | --http://www.roblox.com/asset/?id=4770560 | |
1135 | game:GetService("Debris"):AddItem(prt,2) | |
1136 | CF=prt.CFrame | |
1137 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
1138 | for i=0,1,0.2 do | |
1139 | wait() | |
1140 | Part.CFrame=CF*cf(0,0,-0.4) | |
1141 | end | |
1142 | for i=0,1,delay do | |
1143 | wait() | |
1144 | --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) | |
1145 | Mesh.Scale=Mesh.Scale | |
1146 | end | |
1147 | for i=0,1,0.1 do | |
1148 | wait() | |
1149 | Part.Transparency=i | |
1150 | end | |
1151 | Part.Parent=nil | |
1152 | end),prt,msh,CF) | |
1153 | end | |
1154 | ||
1155 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1156 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1157 | prt.Anchored=true | |
1158 | prt.Material = "Neon" | |
1159 | prt.CFrame=cframe | |
1160 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1161 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1162 | game:GetService("Debris"):AddItem(prt,5) | |
1163 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1164 | for i=0,1,delay do | |
1165 | swait() | |
1166 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1167 | Part.Transparency=i | |
1168 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1169 | end | |
1170 | Part.Parent=nil | |
1171 | end),prt,msh) | |
1172 | end | |
1173 | ||
1174 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1175 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1176 | prt.Anchored=true | |
1177 | prt.Material = "Neon" | |
1178 | prt.CFrame=cframe | |
1179 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1180 | game:GetService("Debris"):AddItem(prt,5) | |
1181 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1182 | local rtype = rottype | |
1183 | for i=0,1,delay do | |
1184 | swait() | |
1185 | if rtype == 1 then | |
1186 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1187 | elseif rtype == 2 then | |
1188 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1189 | end | |
1190 | Part.Transparency=i | |
1191 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1192 | end | |
1193 | Part.Parent=nil | |
1194 | end),prt,msh) | |
1195 | end | |
1196 | ||
1197 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1198 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1199 | prt.Anchored=true | |
1200 | prt.CFrame=cframe | |
1201 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1202 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1203 | game:GetService("Debris"):AddItem(prt,5) | |
1204 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1205 | for i=0,1,delay do | |
1206 | wait() | |
1207 | Part.Transparency=i | |
1208 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1209 | end | |
1210 | Part.Parent=nil | |
1211 | end),prt,msh) | |
1212 | end | |
1213 | ||
1214 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
1215 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1216 | prt.Anchored=false | |
1217 | prt.CFrame=cframe | |
1218 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1219 | local wld=weld(prt,prt,Parent,cframe) | |
1220 | game:GetService("Debris"):AddItem(prt,5) | |
1221 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
1222 | for i=0,1,delay do | |
1223 | wait() | |
1224 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
1225 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1226 | Part.Transparency=i | |
1227 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1228 | end | |
1229 | Part.Parent=nil | |
1230 | end),prt,msh,wld) | |
1231 | end | |
1232 | ||
1233 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
1234 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1235 | prt.Anchored=false | |
1236 | prt.CFrame=cframe | |
1237 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1238 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
1239 | game:GetService("Debris"):AddItem(prt,5) | |
1240 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
1241 | for i=0,1,delay do | |
1242 | wait() | |
1243 | Weld.C0=euler(i*20,0,0) | |
1244 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1245 | Part.Transparency=i | |
1246 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1247 | end | |
1248 | Part.Parent=nil | |
1249 | end),prt,msh,wld) | |
1250 | end | |
1251 | ||
1252 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1253 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1254 | prt.Anchored=true | |
1255 | prt.CFrame=cframe | |
1256 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1257 | game:GetService("Debris"):AddItem(prt,2) | |
1258 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1259 | for i=0,1,delay do | |
1260 | wait() | |
1261 | Part.CFrame=Part.CFrame | |
1262 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1263 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1264 | prt2.Anchored=true | |
1265 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1266 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
1267 | game:GetService("Debris"):AddItem(prt2,2) | |
1268 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1269 | for i=0,1,0.1 do | |
1270 | wait() | |
1271 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
1272 | end | |
1273 | Part.Parent=nil | |
1274 | end),prt2,msh2) | |
1275 | end | |
1276 | for i=0,1,delay*2 do | |
1277 | wait() | |
1278 | Part.CFrame=Part.CFrame | |
1279 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
1280 | end | |
1281 | Part.Parent=nil | |
1282 | end),prt,msh) | |
1283 | end | |
1284 | ||
1285 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1286 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1287 | prt.Anchored=true | |
1288 | prt.CFrame=cframe | |
1289 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1290 | game:GetService("Debris"):AddItem(prt,2) | |
1291 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1292 | for i=0,1,delay do | |
1293 | wait() | |
1294 | Part.CFrame=Part.CFrame | |
1295 | Part.Transparency=i | |
1296 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1297 | end | |
1298 | Part.Parent=nil | |
1299 | end),prt,msh) | |
1300 | end | |
1301 | ||
1302 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
1303 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1304 | prt.Anchored=true | |
1305 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1306 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1307 | game:GetService("Debris"):AddItem(prt,2) | |
1308 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
1309 | CF=Part.CFrame | |
1310 | Numbb=0 | |
1311 | randnumb=math.random()/10 | |
1312 | rand1=math.random()/10 | |
1313 | for i=0,1,rand1 do | |
1314 | wait() | |
1315 | CF=CF*cf(0,math.random()/2,0) | |
1316 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
1317 | Part.CFrame=CF*euler(Numbb,0,0) | |
1318 | Part.Transparency=i | |
1319 | Numbb=Numbb+randnumb | |
1320 | end | |
1321 | Part.Parent=nil | |
1322 | end),prt,CF,Numbb,randnumb) | |
1323 | end | |
1324 | ||
1325 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1326 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1327 | prt.Anchored=true | |
1328 | prt.CFrame=cframe | |
1329 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
1330 | game:GetService("Debris"):AddItem(prt,5) | |
1331 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1332 | for i=0,1,delay do | |
1333 | wait() | |
1334 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
1335 | Part.Transparency=i | |
1336 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1337 | end | |
1338 | Part.Parent=nil | |
1339 | end),prt,msh) | |
1340 | end | |
1341 | ||
1342 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1343 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1344 | prt.Anchored=true | |
1345 | prt.CFrame=cframe | |
1346 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
1347 | game:GetService("Debris"):AddItem(prt,2) | |
1348 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1349 | for i=0,1,delay do | |
1350 | wait() | |
1351 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
1352 | Part.Transparency=i | |
1353 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1354 | end | |
1355 | Part.Parent=nil | |
1356 | end),prt,msh) | |
1357 | end | |
1358 | ||
1359 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
1360 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1361 | prt.Anchored=true | |
1362 | prt.CFrame=cframe*cf(x,y,z) | |
1363 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
1364 | game:GetService("Debris"):AddItem(prt,5) | |
1365 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
1366 | local num=math.random() | |
1367 | local num2=math.random(-3,2)+math.random() | |
1368 | local numm=0 | |
1369 | for i=0,1,delay*2 do | |
1370 | swait() | |
1371 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
1372 | Part.Transparency=i | |
1373 | numm=numm+0.01 | |
1374 | end | |
1375 | Part.Parent=nil | |
1376 | Mesh.Parent=nil | |
1377 | end),prt,msh,x,y,z) | |
1378 | end | |
1379 | ||
1380 | function dmgstart(dmg,what) | |
1381 | hitcon = what.Touched:connect(function(hit) | |
1382 | local hum = hit.Parent:FindFirstChild("Humanoid") | |
1383 | if hum and not hum:IsDescendantOf(Character) then | |
1384 | hum:TakeDamage(dmg) | |
1385 | end | |
1386 | end) | |
1387 | end | |
1388 | ||
1389 | function dmgstop() | |
1390 | hitcon:disconnect() | |
1391 | end | |
1392 | ||
1393 | function Cloak() | |
1394 | Face.Parent=nil | |
1395 | cloaked=true | |
1396 | for _,v in pairs(Torso.Parent:children()) do | |
1397 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
1398 | coroutine.resume(coroutine.create(function() | |
1399 | for i=0,1,0.2 do | |
1400 | wait() | |
1401 | v.Transparency=i | |
1402 | end | |
1403 | v.Transparency=1 | |
1404 | end)) | |
1405 | end | |
1406 | if v.className=="Hat" then | |
1407 | hatp=v.Handle | |
1408 | coroutine.resume(coroutine.create(function(derp) | |
1409 | for i=0,1,0.2 do | |
1410 | wait() | |
1411 | derp.Transparency=i | |
1412 | end | |
1413 | derp.Transparency=1 | |
1414 | end),hatp) | |
1415 | end | |
1416 | end | |
1417 | for _,v in pairs(m:children()) do | |
1418 | if v.className=="Part" then | |
1419 | coroutine.resume(coroutine.create(function() | |
1420 | for i=0,1,0.2 do | |
1421 | wait() | |
1422 | v.Transparency=i | |
1423 | end | |
1424 | v.Transparency=1 | |
1425 | end)) | |
1426 | end | |
1427 | end | |
1428 | end | |
1429 | ||
1430 | function UnCloak() | |
1431 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) | |
1432 | Face.Parent=Head | |
1433 | cloaked=false | |
1434 | for _,v in pairs(Torso.Parent:children()) do | |
1435 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
1436 | coroutine.resume(coroutine.create(function() | |
1437 | for i=0,1,0.1 do | |
1438 | wait() | |
1439 | v.Transparency=v.Transparency-0.1 | |
1440 | end | |
1441 | v.Transparency=0 | |
1442 | end)) | |
1443 | end | |
1444 | if v.className=="Hat" then | |
1445 | hatp=v.Handle | |
1446 | coroutine.resume(coroutine.create(function(derp) | |
1447 | for i=0,1,0.1 do | |
1448 | wait() | |
1449 | derp.Transparency=derp.Transparency-0.1 | |
1450 | end | |
1451 | derp.Transparency=0 | |
1452 | end),hatp) | |
1453 | end | |
1454 | end | |
1455 | for _,v in pairs(m:children()) do | |
1456 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
1457 | coroutine.resume(coroutine.create(function() | |
1458 | for i=0,1,0.1 do | |
1459 | wait() | |
1460 | v.Transparency=v.Transparency-0.1 | |
1461 | end | |
1462 | v.Transparency=0 | |
1463 | end)) | |
1464 | v.Transparency=0 | |
1465 | end | |
1466 | end | |
1467 | end | |
1468 | ||
1469 | function laser() | |
1470 | attack = true | |
1471 | so("rbxassetid://588738544",sorb,1,1) | |
1472 | for i = 0,2,0.1 do | |
1473 | swait() | |
1474 | MagicBlock(maincolor,sorb.CFrame,1,1,1,0.25,0.25,0.25,0.1) | |
1475 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-40)),.3) | |
1476 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3) | |
1477 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3) | |
1478 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
1479 | end | |
1480 | local a = Instance.new("Part",Character) | |
1481 | a.BrickColor = maincolor | |
1482 | a.Name = "Lazer" | |
1483 | a.Anchored = true | |
1484 | a.Material = "Neon" | |
1485 | a.CanCollide = false | |
1486 | local hitbox = Instance.new("Part",char) | |
1487 | hitbox.Size = Vector3.new(5,5,5) | |
1488 | hitbox.CFrame = mouse.hit | |
1489 | hitbox.Anchored = true | |
1490 | hitbox.Transparency = 1 | |
1491 | hitbox.CanCollide = false | |
1492 | local ray = Ray.new( | |
1493 | sorb.CFrame.p, -- origin | |
1494 | (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction | |
1495 | ) | |
1496 | local ignore = Character | |
1497 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1498 | if hit then | |
1499 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1500 | ||
1501 | if not humanoid then | |
1502 | humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid") | |
1503 | end | |
1504 | if humanoid then | |
1505 | if humanoid.Parent:IsA"Model" then | |
1506 | Damagefunc(hit,120,125,math.random(120,220),"Normal",RootPart,.2,1) | |
1507 | end | |
1508 | end | |
1509 | end | |
1510 | a.BottomSurface = 10 | |
1511 | a.TopSurface = 10 | |
1512 | local distance = (sorb.CFrame.p - position).magnitude | |
1513 | a.Size = Vector3.new(1, 1, distance) | |
1514 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
1515 | game:GetService("Debris"):AddItem(a, 10) | |
1516 | game:GetService("Debris"):AddItem(hitbox, 1) | |
1517 | local newmesh = Instance.new("BlockMesh",a) | |
1518 | so("rbxassetid://553712898",sorb,1,2) | |
1519 | so("rbxassetid://553712898",sorb,0.5,1.5) | |
1520 | so("rbxassetid://588737825",sorb,0.05,1) | |
1521 | MagicBlock(maincolor,sorb.CFrame,1,1,1,1.5,1.25,1.25,0.15) | |
1522 | MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05) | |
1523 | MagicBlock(maincolor,mouse.Hit,1,1,1,1.5,1.5,1.5,0.15) | |
1524 | for i = 0, 19*2 do | |
1525 | newmesh.Scale = newmesh.Scale + Vector3.new(-0.05/2,-0.05/2,0) | |
1526 | a.Transparency = a.Transparency + 0.05/2 | |
1527 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-40)),.3) | |
1528 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3) | |
1529 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3) | |
1530 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
1531 | swait() | |
1532 | end | |
1533 | attack = false | |
1534 | end | |
1535 | ||
1536 | function weaklaser1() | |
1537 | attack = true | |
1538 | for i = 0,1,0.1 do | |
1539 | swait() | |
1540 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1541 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
1542 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
1543 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3) | |
1544 | end | |
1545 | local a = Instance.new("Part",Character) | |
1546 | a.BrickColor = maincolor | |
1547 | a.Name = "Lazer" | |
1548 | a.Anchored = true | |
1549 | a.Material = "Neon" | |
1550 | a.CanCollide = false | |
1551 | local hitbox = Instance.new("Part",char) | |
1552 | hitbox.Size = Vector3.new(5,5,5) | |
1553 | hitbox.CFrame = mouse.hit | |
1554 | hitbox.Anchored = true | |
1555 | hitbox.Transparency = 1 | |
1556 | hitbox.CanCollide = false | |
1557 | local ray = Ray.new( | |
1558 | sorb.CFrame.p, -- origin | |
1559 | (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction | |
1560 | ) | |
1561 | local ignore = Character | |
1562 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1563 | if hit then | |
1564 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1565 | ||
1566 | if not humanoid then | |
1567 | humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid") | |
1568 | end | |
1569 | if humanoid then | |
1570 | if humanoid.Parent:IsA"Model" then | |
1571 | Damagefunc(hit,54,84,math.random(50,90),"Normal",RootPart,.2,1) | |
1572 | end | |
1573 | end | |
1574 | end | |
1575 | a.BottomSurface = 10 | |
1576 | a.TopSurface = 10 | |
1577 | local distance = (sorb.CFrame.p - position).magnitude | |
1578 | a.Size = Vector3.new(0.85, 0.85, distance) | |
1579 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
1580 | game:GetService("Debris"):AddItem(a, 10) | |
1581 | game:GetService("Debris"):AddItem(hitbox, 1) | |
1582 | local newmesh = Instance.new("BlockMesh",a) | |
1583 | so("rbxassetid://553712898",sorb,1,2.5) | |
1584 | so("rbxassetid://553712898",sorb,1,2) | |
1585 | MagicBlock(maincolor,sorb.CFrame,1,1,1,1.5,1.25,1.25,0.15) | |
1586 | MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05) | |
1587 | attack = false | |
1588 | for i = 0, 19 do | |
1589 | newmesh.Scale = newmesh.Scale + Vector3.new(-0.05,-0.05,0) | |
1590 | a.Transparency = a.Transparency + 0.05 | |
1591 | swait() | |
1592 | end | |
1593 | end | |
1594 | ||
1595 | function weaklaser2() | |
1596 | attack = true | |
1597 | for i = 0,1,0.1 do | |
1598 | swait() | |
1599 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
1600 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3) | |
1601 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3) | |
1602 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
1603 | end | |
1604 | local a = Instance.new("Part",Character) | |
1605 | a.BrickColor = maincolor | |
1606 | a.Name = "Lazer" | |
1607 | a.Anchored = true | |
1608 | a.Material = "Neon" | |
1609 | a.CanCollide = false | |
1610 | local hitbox = Instance.new("Part",char) | |
1611 | hitbox.Size = Vector3.new(5,5,5) | |
1612 | hitbox.CFrame = mouse.hit | |
1613 | hitbox.Anchored = true | |
1614 | hitbox.Transparency = 1 | |
1615 | hitbox.CanCollide = false | |
1616 | local ray = Ray.new( | |
1617 | sorb2.CFrame.p, -- origin | |
1618 | (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction | |
1619 | ) | |
1620 | local ignore = Character | |
1621 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1622 | if hit then | |
1623 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1624 | ||
1625 | if not humanoid then | |
1626 | humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid") | |
1627 | end | |
1628 | if humanoid then | |
1629 | if humanoid.Parent:IsA"Model" then | |
1630 | Damagefunc(hit,5,8,math.random(10,20),"Normal",RootPart,.2,1) | |
1631 | end | |
1632 | end | |
1633 | end | |
1634 | a.BottomSurface = 10 | |
1635 | a.TopSurface = 10 | |
1636 | local distance = (sorb2.CFrame.p - position).magnitude | |
1637 | a.Size = Vector3.new(0.85, 0.85, distance) | |
1638 | a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
1639 | game:GetService("Debris"):AddItem(a, 10) | |
1640 | game:GetService("Debris"):AddItem(hitbox, 1) | |
1641 | local newmesh = Instance.new("BlockMesh",a) | |
1642 | so("rbxassetid://553712898",sorb2,1,2.5) | |
1643 | so("rbxassetid://553712898",sorb2,1,2) | |
1644 | MagicBlock(maincolor,sorb2.CFrame,1,1,1,1.5,1.25,1.25,0.15) | |
1645 | MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05) | |
1646 | attack = false | |
1647 | for i = 0, 19 do | |
1648 | newmesh.Scale = newmesh.Scale + Vector3.new(-0.05,-0.05,0) | |
1649 | a.Transparency = a.Transparency + 0.05 | |
1650 | swait() | |
1651 | end | |
1652 | end | |
1653 | ||
1654 | local smeshmoveenabled = false | |
1655 | ||
1656 | function groundwave() | |
1657 | attack = true | |
1658 | smeshmoveenabled = true | |
1659 | so("rbxassetid://255679384",sorb2,2,0.98) | |
1660 | for i = 0,10,0.1 do | |
1661 | swait() | |
1662 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1663 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1664 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.1) | |
1665 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.1) | |
1666 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.75 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(-90)),.1) | |
1667 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(90)),.1) | |
1668 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(90)), 0.1) | |
1669 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.1) | |
1670 | end | |
1671 | MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.1,1) | |
1672 | MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.1,2) | |
1673 | for i = 0,2,0.1 do | |
1674 | swait() | |
1675 | MagicBlock(maincolor,sorb2.CFrame,1,1,1,0.5,0.5,0.5,0.1) | |
1676 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1677 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1678 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.3) | |
1679 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.3) | |
1680 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(70),math.rad(0),math.rad(-90)),.3) | |
1681 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(90)),.3) | |
1682 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(120)), 0.3) | |
1683 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
1684 | end | |
1685 | attack = false | |
1686 | smeshmoveenabled = false | |
1687 | so("rbxassetid://233091205",sorb2,2.25,0.95) | |
1688 | MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.025,1) | |
1689 | MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.025,2) | |
1690 | for i = 0, 9 do | |
1691 | MagicBlock(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,1,1,1,-0.025,10,-0.025,0.065) | |
1692 | end | |
1693 | local faceam = 5 | |
1694 | for i = 0, 9 do | |
1695 | faceam = faceam + 10 | |
1696 | local hitbox = Instance.new("Part",char) | |
1697 | so("rbxassetid://233091205",hitbox,1,2) | |
1698 | hitbox.Size = Vector3.new(15,15,15) | |
1699 | hitbox.Material = "Neon" | |
1700 | hitbox.BrickColor = maincolor | |
1701 | hitbox.CFrame = char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*faceam | |
1702 | hitbox.Anchored = true | |
1703 | hitbox.Transparency = 1 | |
1704 | hitbox.CanCollide = false | |
1705 | MagicBlockSteady(maincolor,hitbox.CFrame + hitbox.CFrame.lookVector,25,25,25,15,15,-4.5,0.15,math.random(1,2)) | |
1706 | MagicBlockSteady(maincolor,hitbox.CFrame + hitbox.CFrame.lookVector,25,25,25,1.5,1.5,0,0.05,math.random(1,2)) | |
1707 | game:GetService("Debris"):AddItem(hitbox, 1) | |
1708 | hitbox.Touched:connect(function(hit) | |
1709 | Damagefunc(hit,10,11,math.random(10,20),"Normal",RootPart,.2,1) | |
1710 | end) | |
1711 | wait(0.1) | |
1712 | end | |
1713 | end | |
1714 | ||
1715 | function smesh() | |
1716 | attack = true | |
1717 | smeshmoveenabled = true | |
1718 | hum.WalkSpeed = 8 | |
1719 | so("rbxassetid://255679384",sorb2,2,0.98) | |
1720 | for i = 0,10,0.1 do | |
1721 | swait() | |
1722 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1723 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1724 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.1) | |
1725 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.1) | |
1726 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.75 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(-50)),.1) | |
1727 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(50)),.1) | |
1728 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.1) | |
1729 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.1) | |
1730 | end | |
1731 | for i = 0,2,0.1 do | |
1732 | swait() | |
1733 | MagicBlock(maincolor,sorb2.CFrame,1,1,1,0.5,0.5,0.5,0.1) | |
1734 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1735 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1736 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.3) | |
1737 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(25 + 5 * math.cos(sine / 32))),.3) | |
1738 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(90),math.rad(0),math.rad(-80)),.3) | |
1739 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(35),math.rad(0),math.rad(80)),.3) | |
1740 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(35)), 0.3) | |
1741 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-170)), 0.3) | |
1742 | end | |
1743 | so("rbxassetid://165969964",sorb2,1.5,0.98) | |
1744 | local hitbox = Instance.new("Part",char) | |
1745 | hitbox.Size = Vector3.new(20,20,20) | |
1746 | hitbox.Material = "Neon" | |
1747 | hitbox.BrickColor = maincolor | |
1748 | hitbox.CFrame = sorb2.CFrame | |
1749 | hitbox.Anchored = true | |
1750 | hitbox.Transparency = 1 | |
1751 | hitbox.CanCollide = false | |
1752 | game:GetService("Debris"):AddItem(hitbox, 1) | |
1753 | hitbox.Touched:connect(function(hit) | |
1754 | Damagefunc(hit,9,18,math.random(10,20),"Normal",RootPart,.2,1) | |
1755 | end) | |
1756 | MagicBlock(maincolor,sorb2.CFrame,5,5,5,1.25,1.25,1.25,0.015) | |
1757 | MagicBlock(maincolor,sorb2.CFrame,5,5,5,1.5,1.5,1.5,0.025) | |
1758 | MagicBlock(maincolor,sorb2.CFrame,10,10,10,5.5,5.5,5.5,0.15) | |
1759 | for i = 0, 9 do | |
1760 | MagicBlock(maincolor,sorb2.CFrame,1,1,1,-0.025,10,-0.025,0.065) | |
1761 | end | |
1762 | hum.WalkSpeed = 16 | |
1763 | smeshmoveenabled = false | |
1764 | attack = false | |
1765 | end | |
1766 | ||
1767 | local begonemoveenabled = false | |
1768 | ||
1769 | function BEGONETHOT() | |
1770 | smeshmoveenabled = true | |
1771 | begonemoveenabled = true | |
1772 | hum.WalkSpeed = 8 | |
1773 | so("rbxassetid://854345294",sorb2,2.5,1) | |
1774 | wait(2) | |
1775 | attack = true | |
1776 | for i = 0,8,0.1 do | |
1777 | swait() | |
1778 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1779 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1780 | RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.1) | |
1781 | LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.1) | |
1782 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,5 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(0)),.1) | |
1783 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.1) | |
1784 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.1) | |
1785 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.1) | |
1786 | end | |
1787 | for i = 0,2,0.1 do | |
1788 | swait() | |
1789 | MagicBlock(maincolor,sorb2.CFrame,1,1,1,2.5,2.5,2.5,0.1) | |
1790 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1791 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1792 | RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.3) | |
1793 | LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.3) | |
1794 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(90),math.rad(0),math.rad(0)),.3) | |
1795 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1796 | RW.C0 = clerp(RW.C0, CFrame.new(1, 1, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.3) | |
1797 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 1, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.3) | |
1798 | end | |
1799 | so("rbxassetid://165969964",sorb2,3.5,0.98) | |
1800 | local hitbox = Instance.new("Part",char) | |
1801 | hitbox.Size = Vector3.new(75,75,75) | |
1802 | hitbox.Material = "Neon" | |
1803 | hitbox.BrickColor = maincolor | |
1804 | hitbox.CFrame = sorb2.CFrame | |
1805 | hitbox.Anchored = true | |
1806 | hitbox.Transparency = 1 | |
1807 | hitbox.CanCollide = false | |
1808 | game:GetService("Debris"):AddItem(hitbox, 1) | |
1809 | hitbox.Touched:connect(function(hit) | |
1810 | Damagefunc(hit,888,1337,math.random(10,20),"Normal",RootPart,.2,1) | |
1811 | end) | |
1812 | MagicBlock(maincolor,sorb2.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) | |
1813 | MagicBlock(maincolor,sorb2.CFrame,5*2.5,5*2.5,5*2.5,1.5*2.5,1.5*2.5,1.5*2.5,0.025) | |
1814 | MagicBlock(maincolor,sorb2.CFrame,10*2.5,10*2.5,10*2.5,5.5*2.5,5.5*2.5,5.5*2.5,0.15) | |
1815 | for i = 0, 9 do | |
1816 | MagicBlock(maincolor,sorb2.CFrame,1*2.5,1*2.5,1*2.5,-0.025*2.5,10*2.5,-0.025*2.5,0.065) | |
1817 | end | |
1818 | hum.WalkSpeed = 16 | |
1819 | begonemoveenabled = false | |
1820 | smeshmoveenabled = false | |
1821 | attack = false | |
1822 | end | |
1823 | ||
1824 | function doomsdaylaser() | |
1825 | attack = true | |
1826 | for i = 0,1,0.1 do | |
1827 | swait() | |
1828 | MagicBlock(maincolor,sorb.CFrame,1,1,1,0.25,0.25,0.25,0.1) | |
1829 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
1830 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.3) | |
1831 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3) | |
1832 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3) | |
1833 | end | |
1834 | local a = Instance.new("Part",Character) | |
1835 | a.BrickColor = maincolor | |
1836 | a.Name = "Lazer" | |
1837 | a.Anchored = true | |
1838 | a.Transparency = 1 | |
1839 | a.Material = "Neon" | |
1840 | a.CanCollide = false | |
1841 | local hitbox = Instance.new("Part",char) | |
1842 | hitbox.Size = Vector3.new(10,10,10) | |
1843 | hitbox.Material = "Neon" | |
1844 | hitbox.BrickColor = maincolor | |
1845 | hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0) | |
1846 | hitbox.Anchored = true | |
1847 | hitbox.Transparency = 1 | |
1848 | hitbox.CanCollide = false | |
1849 | local hmesh = CreateMesh(hitbox,"Sphere",1,1,1) | |
1850 | so("rbxassetid://136007472",sorb,1,0.7) | |
1851 | for i = 0, 19 do | |
1852 | swait() | |
1853 | hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0) | |
1854 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
1855 | MagicBlock(maincolor,hitbox.CFrame,10,10,10,1.15,1.15,1.15,0.15) | |
1856 | hitbox.Transparency = hitbox.Transparency - 0.05 | |
1857 | end | |
1858 | for i = 0, 49 do | |
1859 | swait() | |
1860 | hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0) | |
1861 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
1862 | end | |
1863 | a.Transparency = 0 | |
1864 | local ray = Ray.new( | |
1865 | hitbox.CFrame.p, -- origin | |
1866 | (mouse.Hit.p - hitbox.CFrame.p).unit * 500 -- direction | |
1867 | ) | |
1868 | local ignore = Character | |
1869 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1870 | if hit then | |
1871 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1872 | ||
1873 | if not humanoid then | |
1874 | humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid") | |
1875 | end | |
1876 | if humanoid then | |
1877 | if humanoid.Parent:IsA"Model" then | |
1878 | Damagefunc(hit,25,35,math.random(10,20),"Normal",RootPart,.2,1) | |
1879 | end | |
1880 | end | |
1881 | end | |
1882 | a.BottomSurface = 10 | |
1883 | a.TopSurface = 10 | |
1884 | local distance = (sorb.CFrame.p - position).magnitude | |
1885 | a.Size = Vector3.new(1, 1, distance) | |
1886 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
1887 | game:GetService("Debris"):AddItem(a, 15) | |
1888 | game:GetService("Debris"):AddItem(hitbox, 15) | |
1889 | local newmesh = Instance.new("BlockMesh",a) | |
1890 | so("rbxassetid://553712898",sorb,3.5,1) | |
1891 | so("rbxassetid://553712898",sorb,0.5,0.5) | |
1892 | so("rbxassetid://588737825",sorb,2.75,1) | |
1893 | MagicBlock(maincolor,sorb.CFrame,1,1,1,5,5,5,0.15) | |
1894 | MagicBlock(maincolor,mouse.Hit,1,1,1,2.5,2.5,2.5,0.05) | |
1895 | MagicBlock(maincolor,mouse.Hit,1,1,1,1.5,1.5,1.5,0.15) | |
1896 | local beamscale = 1.5 | |
1897 | local sizemax = 1*10 | |
1898 | for i = 0, 99 do | |
1899 | hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0) | |
1900 | sizemax = sizemax - 0.01*10 | |
1901 | beamscale = beamscale - 0.01 | |
1902 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
1903 | so("rbxassetid://553712898",sorb,0.5,2.5) | |
1904 | ray = Ray.new( | |
1905 | hitbox.CFrame.p, -- origin | |
1906 | (mouse.Hit.p - hitbox.CFrame.p).unit * 2000 -- direction | |
1907 | ) | |
1908 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1909 | distance = (hitbox.CFrame.p - position).magnitude | |
1910 | if hit then | |
1911 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1912 | ||
1913 | if not humanoid then | |
1914 | humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid") | |
1915 | end | |
1916 | if humanoid then | |
1917 | if humanoid.Parent:IsA"Model" then | |
1918 | Damagefunc(hit,15,17,math.random(10,20),"Normal",RootPart,.2,1) | |
1919 | end | |
1920 | end | |
1921 | end | |
1922 | a.Size = Vector3.new(5, 5, distance) | |
1923 | hmesh.Scale = hmesh.Scale - Vector3.new(0.01,0.01,0.01) | |
1924 | a.CFrame = CFrame.new(hitbox.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
1925 | newmesh.Scale = newmesh.Scale + Vector3.new(-0.01,-0.01,0) | |
1926 | MagicBlock(maincolor,mouse.Hit,sizemax,sizemax,sizemax,beamscale,beamscale,beamscale,0.05) | |
1927 | swait() | |
1928 | end | |
1929 | attack = false | |
1930 | end | |
1931 | local attacktype = 0 | |
1932 | mouse.Button1Down:connect(function() | |
1933 | if attack == false and attacktype == 0 and begonemoveenabled == false then | |
1934 | attacktype = 1 | |
1935 | weaklaser1() | |
1936 | elseif attack == false and attacktype == 1 and begonemoveenabled == false then | |
1937 | attacktype = 0 | |
1938 | weaklaser2() | |
1939 | end | |
1940 | end) | |
1941 | ||
1942 | mouse.KeyDown:connect(function(k) | |
1943 | if k == "z" and attack == false and begonemoveenabled == false then | |
1944 | laser() | |
1945 | end | |
1946 | if k == "x" and attack == false and begonemoveenabled == false then | |
1947 | groundwave() | |
1948 | end | |
1949 | if k == "c" and attack == false and begonemoveenabled == false then | |
1950 | smesh() | |
1951 | end | |
1952 | if k == "v" and attack == false and begonemoveenabled == false then | |
1953 | doomsdaylaser() | |
1954 | end | |
1955 | if k == "p" and attack == false and begonemoveenabled == false then | |
1956 | BEGONETHOT() | |
1957 | end | |
1958 | end) | |
1959 | ||
1960 | Humanoid.Animator.Parent = nil | |
1961 | ||
1962 | attack = true | |
1963 | hum.WalkSpeed = 0 | |
1964 | hum.MaxHealth = math.huge | |
1965 | hum.Health = math.huge | |
1966 | for i = 0,10,0.05 do | |
1967 | swait() | |
1968 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1969 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1970 | RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.025) | |
1971 | LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.025) | |
1972 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(-30),math.rad(0),math.rad(0)),.025) | |
1973 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.025) | |
1974 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.025) | |
1975 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.025) | |
1976 | end | |
1977 | MagicBlock(maincolor,t.CFrame,10,10,10,1.5,1.5,1.5,0.025) | |
1978 | MagicBlock(maincolor,t.CFrame,10,10,10,2,2,2,0.015) | |
1979 | MagicBlock(maincolor,t.CFrame,10,10,10,1.75,1.75,1.75,0.05) | |
1980 | MagicBlock(maincolor,t.CFrame,10,10,10,2,2,2,0.076) | |
1981 | so("rbxassetid://588737825",t,0.5,1) | |
1982 | so("rbxassetid://588737825",t,0.5,1) | |
1983 | so("rbxassetid://588698460",t,1,0.5) | |
1984 | so("rbxassetid://440794203",t,1,1) | |
1985 | so("rbxassetid://553712898",t,1,0.85) | |
1986 | so("rbxassetid://553712898",t,1.5,0.5) | |
1987 | so("rbxassetid://553712898",t,1.5,0.25) | |
1988 | so("rbxassetid://553712898",t,1.5,0.15) | |
1989 | for i = 0,10,0.05 do | |
1990 | swait() | |
1991 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1992 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
1993 | RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.125) | |
1994 | LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.025) | |
1995 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(20),math.rad(0),math.rad(0)),.125) | |
1996 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.125) | |
1997 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(85)), 0.125) | |
1998 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(-85)), 0.125) | |
1999 | end | |
2000 | attack = false | |
2001 | hum.WalkSpeed = 16 | |
2002 | hum.MaxHealth = 250 | |
2003 | hum.Health = 250 | |
2004 | ||
2005 | idleanim=.4 | |
2006 | while true do | |
2007 | swait() | |
2008 | sine = sine + change | |
2009 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2010 | local velderp=RootPart.Velocity.y | |
2011 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
2012 | if equipped==true or equipped==false then | |
2013 | if attack==false then | |
2014 | idle=idle+1 | |
2015 | else | |
2016 | idle=0 | |
2017 | end | |
2018 | if idle>=500 then | |
2019 | if attack==false then | |
2020 | --Sheath() | |
2021 | end | |
2022 | end | |
2023 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
2024 | Anim="Jump" | |
2025 | if attack==false then | |
2026 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3) | |
2027 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2028 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2029 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
2030 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2031 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3) | |
2032 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2033 | RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2) | |
2034 | LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2) | |
2035 | end | |
2036 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
2037 | Anim="Fall" | |
2038 | if attack==false then | |
2039 | Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3) | |
2040 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
2041 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
2042 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
2043 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2044 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3) | |
2045 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
2046 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2) | |
2047 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2) | |
2048 | end | |
2049 | elseif torvel<1 and hitfloor~=nil then | |
2050 | Anim="Idle" | |
2051 | if smeshmoveenabled == false then | |
2052 | RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(20),math.rad(0 + 5 * math.cos(sine / 32))),.3) | |
2053 | LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(20),math.rad(0 + 5 * math.cos(sine / 32))),.3) | |
2054 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
2055 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
2056 | end | |
2057 | if attack==false then | |
2058 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(-5),math.rad(-35)),.3) | |
2059 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(5),math.rad(35)),.3) | |
2060 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(12.5 + 2.5 * math.cos(sine / 24))),.3) | |
2061 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-12.5 - 2.5 * math.cos(sine / 32))),.3) | |
2062 | end | |
2063 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
2064 | Anim="Walk" | |
2065 | if smeshmoveenabled == false then | |
2066 | RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 32))),.3) | |
2067 | LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 32))),.3) | |
2068 | MagicBlock(maincolor,llegw.CFrame,1,1,1,0.25,0.25,0.25,0.5) | |
2069 | MagicBlock(maincolor,rlegw.CFrame,1,1,1,0.25,0.25,0.25,0.5) | |
2070 | MagicBlock(maincolor,llegw.CFrame,1,1,1,-0.05,-0.05,-0.05,0.15) | |
2071 | MagicBlock(maincolor,rlegw.CFrame,1,1,1,-0.05,-0.05,-0.05,0.15) | |
2072 | end | |
2073 | if attack==false then | |
2074 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))*angles(math.rad(15),math.rad(0),math.rad(0)),.3) | |
2075 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2076 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-35),math.rad(0),math.rad(12.5 + 2.5 * math.cos(sine / 24))),.3) | |
2077 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-35),math.rad(0),math.rad(-12.5 - 2.5 * math.cos(sine / 32))),.3) | |
2078 | end | |
2079 | elseif torvel>=22 and hitfloor~=nil then | |
2080 | Anim="Run" | |
2081 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3) | |
2082 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3) | |
2083 | if attack==false then | |
2084 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3) | |
2085 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2086 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3) | |
2087 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3) | |
2088 | end | |
2089 | end | |
2090 | end | |
2091 | end |