SHOW:
|
|
- or go back to the newest paste.
1 | -- Black Dragon -- | |
2 | -- Local Script -- | |
3 | -- Its cool, breathes fire and all dat -- | |
4 | -- By Immunidon (Not the script) -- | |
5 | - | pcall(function () |
5 | + | I = "Magermash" |
6 | - | for i,v in pairs(script:GetChildren()) do |
6 | + | |
7 | - | if v:IsA('StringValue') then |
7 | + | |
8 | - | v.Value = '' |
8 | + | |
9 | - | v:Destroy() |
9 | + | |
10 | local ice = false | |
11 | local heal = false | |
12 | - | end) |
12 | + | |
13 | - | script.Parent = nil |
13 | + | |
14 | - | local _ = game.Players.LocalPlayer |
14 | + | |
15 | local mouse = _:GetMouse() | |
16 | local BlackMagic = Instance.new("Model", workspace) | |
17 | BlackMagic.Name = "" | |
18 | length = 3 | |
19 | away = 2 | |
20 | gap = 0 | |
21 | segs = 40 | |
22 | distance = length/3 | |
23 | speed = 1 | |
24 | Wave = 0 | |
25 | part1 = Instance.new("Part") | |
26 | part1.BrickColor = BrickColor.Green() | |
27 | part1.Transparency = 0 | |
28 | part1.Locked = true | |
29 | part1.Size = Vector3.new(1,1,1) | |
30 | part1.Anchored = true | |
31 | part1.CanCollide = true | |
32 | part1.Parent = nil | |
33 | part1.Name = "Part1" | |
34 | part1.TopSurface = "Smooth" | |
35 | part1.BottomSurface = "Smooth" | |
36 | local Tail = {} | |
37 | local Tail2 = {} | |
38 | local part0 = Instance.new("Part") | |
39 | part0.BrickColor = col1 | |
40 | part0.TopSurface = 0 | |
41 | part0.BottomSurface = 0 | |
42 | part0.Locked = true | |
43 | part0.FormFactor = "Symmetric" | |
44 | part0.Size = Vector3.new(3,3,4) | |
45 | part0.Anchored = true | |
46 | part0.Shape = 1 | |
47 | part0.CanCollide = true | |
48 | part0.Parent = nil | |
49 | part0.Name = "Part0" | |
50 | local A = Instance.new("SpecialMesh") | |
51 | A.MeshType = "Brick" | |
52 | A.Parent = part0 | |
53 | A.Name = "Mesh" | |
54 | A.Scale = Vector3.new(1.1, 1.1, 1.1) | |
55 | local part1 = Instance.new("Part") | |
56 | part1.BrickColor = col2 | |
57 | part1.TopSurface = 0 | |
58 | part1.BottomSurface = 0 | |
59 | part1.Locked = true | |
60 | part1.FormFactor = "Symmetric" | |
61 | part1.Size = Vector3.new(1,2,1) | |
62 | part1.Anchored = true | |
63 | part1.Shape = 1 | |
64 | part1.CanCollide = true | |
65 | part1.Parent = nil | |
66 | part1.Name = "Part1" | |
67 | local A2 = Instance.new("SpecialMesh") | |
68 | A2.MeshId = "http://www.roblox.com/asset/?id=19326912" | |
69 | A2.Parent = part1 | |
70 | A2.Scale = Vector3.new(3,1,1) | |
71 | A2.Name = "Mesh" | |
72 | for p = 1,segs do | |
73 | Tail[p] = part0:Clone() | |
74 | Tail[p].Parent = nil | |
75 | Tail[p].Name = "Part"..p | |
76 | Tail[p].CFrame = CFrame.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100)) | |
77 | Tail[p].Mesh.Scale = Vector3.new(1.1 - (p/1000), 1.4 - (p/1000), 1.1 - (p/1000)) | |
78 | Tail2[p] = part1:Clone() | |
79 | Tail2[p].Size = Vector3.new(1,2,1) | |
80 | Tail2[p].BrickColor = col2 | |
81 | Tail2[p].Parent = nil | |
82 | Tail2[p].Name = "Limb"..p | |
83 | Tail2[p].CFrame = CFrame.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100)) | |
84 | end | |
85 | for z=26,28 do | |
86 | Tail[z].Mesh.Scale = Tail[z].Mesh.Scale - Vector3.new(0.1,0.1,0.1) | |
87 | Tail2[z].Mesh.Scale = Tail2[z].Mesh.Scale - Vector3.new(0.5,0.1,0.1) | |
88 | end | |
89 | for z=29,31 do | |
90 | Tail[z].Mesh.Scale = Tail[z].Mesh.Scale - Vector3.new(0.2,0.2,0.2) | |
91 | Tail2[z].Mesh.Scale = Tail2[z].Mesh.Scale - Vector3.new(1,0.2,0.2) | |
92 | end | |
93 | for z=32,34 do | |
94 | Tail[z].Mesh.Scale = Tail[z].Mesh.Scale - Vector3.new(0.3,0.3,0.3) | |
95 | Tail2[z].Mesh.Scale = Tail2[z].Mesh.Scale - Vector3.new(1.5,0.3,0.3) | |
96 | end | |
97 | for z=35,37 do | |
98 | Tail[z].Mesh.Scale = Tail[z].Mesh.Scale - Vector3.new(0.4,0.4,0.4) | |
99 | Tail2[z].Mesh.Scale = Tail2[z].Mesh.Scale - Vector3.new(2,0.4,0.4) | |
100 | end | |
101 | for z=38,40 do | |
102 | Tail[z].Mesh.Scale = Tail[z].Mesh.Scale - Vector3.new(0.5,0.5,0.5) | |
103 | Tail2[z].Mesh.Scale = Tail2[z].Mesh.Scale - Vector3.new(2.5,0.5,0.5) | |
104 | end | |
105 | limb6 = part1:clone() | |
106 | limb6.Size = Vector3.new(1,1,1) | |
107 | limb6.BrickColor = col2 | |
108 | limb6.Name = "Head4" | |
109 | limb6.Mesh.Scale = Vector3.new(3,4,4) | |
110 | limb7 = part0:clone() | |
111 | limb7.Size = Vector3.new(1,2,3) | |
112 | limb7.BrickColor = col1 | |
113 | limb7.Name = "Head3" | |
114 | limb7.Mesh.Scale = Vector3.new(1.5,1.5,1.5) | |
115 | limb8 = part0:clone() | |
116 | limb8.Size = Vector3.new(1,1,4) | |
117 | limb8.BrickColor = col2 | |
118 | limb8.Name = "horn1" | |
119 | limb8.Mesh.Scale = Vector3.new(3.5,3.5,3.5) | |
120 | limb8.Mesh.MeshType = 'FileMesh' | |
121 | limb8.Mesh.MeshId = 'http://www.roblox.com/asset/?id=20518365' | |
122 | limb9 = part0:clone() | |
123 | limb9.Size = Vector3.new(1,1,4) | |
124 | limb9.BrickColor = col2 | |
125 | limb9.Name = "horn2" | |
126 | limb9.Mesh.Scale = Vector3.new(3.5,3.5,3.5) | |
127 | limb9.Mesh.MeshType = 'FileMesh' | |
128 | limb9.Mesh.MeshId = 'http://www.roblox.com/asset/?id=20518365' | |
129 | limb10 = part0:clone() | |
130 | limb10.Size = Vector3.new(2,2,5) | |
131 | limb10.BrickColor = col1 | |
132 | limb10.Name = "Head2" | |
133 | limb10.Mesh.Scale = Vector3.new(1.5,1.5,1.5) | |
134 | limb11 = part0:clone() | |
135 | limb11.Size = Vector3.new(1,2,1) | |
136 | limb11.BrickColor = col1 | |
137 | limb11.Name = "Leg1" | |
138 | limb11.Mesh.Scale = Vector3.new(1.5,1.5,1.5) | |
139 | limb12 = part0:clone() | |
140 | limb12.Size = Vector3.new(1,2,1) | |
141 | limb12.BrickColor = col1 | |
142 | limb12.Name = "Leg2" | |
143 | limb12.Mesh.Scale = Vector3.new(1.5,1.5,1.5) | |
144 | limb13 = part0:clone() | |
145 | limb13.Size = Vector3.new(1,2,1) | |
146 | limb13.BrickColor = col1 | |
147 | limb13.Name = "Leg3" | |
148 | limb13.Mesh.Scale = Vector3.new(1.5,1.5,1.5) | |
149 | limb14 = part0:clone() | |
150 | limb14.Size = Vector3.new(1,2,1) | |
151 | limb14.BrickColor = col1 | |
152 | limb14.Name = "Leg4" | |
153 | limb14.Mesh.Scale = Vector3.new(1.5,1.5,1.5) | |
154 | limb15 = part0:clone() | |
155 | limb15.Size = Vector3.new(1,2,1) | |
156 | limb15.BrickColor = col1 | |
157 | limb15.Name = "Leg5" | |
158 | limb15.Mesh.Scale = Vector3.new(1.5,1.5,1.5) | |
159 | limb16 = part0:clone() | |
160 | limb16.Size = Vector3.new(1,2,1) | |
161 | limb16.BrickColor = col1 | |
162 | limb16.Name = "Leg6" | |
163 | limb16.Mesh.Scale = Vector3.new(1.5,1.5,1.5) | |
164 | limb17 = part0:clone() | |
165 | limb17.Size = Vector3.new(1,2,1) | |
166 | limb17.BrickColor = col1 | |
167 | limb17.Name = "Leg7" | |
168 | limb17.Mesh.Scale = Vector3.new(1.5,1.5,1.5) | |
169 | limb18 = part0:clone() | |
170 | limb18.Size = Vector3.new(1,2,1) | |
171 | limb18.BrickColor = col1 | |
172 | limb18.Name = "Leg8" | |
173 | limb18.Mesh.Scale = Vector3.new(1.5,1.5,1.5) | |
174 | limb41 = part0:clone() | |
175 | limb41.Size = Vector3.new(1,1,1) | |
176 | limb41.BrickColor = col2 | |
177 | limb41.Name = "TailEnd" | |
178 | limb41.Mesh.Scale = Vector3.new(1.5,4,1.5) | |
179 | limb41.Mesh.MeshType = "FileMesh" | |
180 | limb41.Mesh.MeshId = "http://www.roblox.com/asset/?id=25212400" | |
181 | local main = part0:Clone() | |
182 | main.Name = "Head" | |
183 | main.Size = Vector3.new(3, 4, 4) | |
184 | main.Transparency = 0 | |
185 | main.Anchored = true | |
186 | main.BrickColor = col1 | |
187 | main.TopSurface = 0 | |
188 | main.BottomSurface = 0 | |
189 | pos = Instance.new("BodyVelocity", main) | |
190 | stay = Instance.new("BodyGyro", main) | |
191 | pos.maxForce = Vector3.new(100000,100000,100000) | |
192 | stay.maxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
193 | stay.cframe = CFrame.new(0,0,0) | |
194 | function onButton1Down(mouse) | |
195 | local player = game.Players.LocalPlayer | |
196 | if player == nil then return end | |
197 | if player ~= nil then | |
198 | player.Parent = nil | |
199 | end | |
200 | print("trigger") | |
201 | if main.Parent ~= BlackMagic then | |
202 | main.Parent = BlackMagic | |
203 | limb6.Parent = BlackMagic | |
204 | limb7.Parent = BlackMagic | |
205 | limb8.Parent = BlackMagic | |
206 | limb9.Parent = BlackMagic | |
207 | limb10.Parent = BlackMagic | |
208 | limb11.Parent = BlackMagic | |
209 | limb12.Parent = BlackMagic | |
210 | limb13.Parent = BlackMagic | |
211 | limb14.Parent = BlackMagic | |
212 | limb15.Parent = BlackMagic | |
213 | limb16.Parent = BlackMagic | |
214 | limb17.Parent = BlackMagic | |
215 | limb18.Parent = BlackMagic | |
216 | limb41.Parent = BlackMagic | |
217 | end | |
218 | -- find the best cf | |
219 | me = BlackMagic | |
220 | workspace.CurrentCamera.CameraSubject = main | |
221 | workspace.CurrentCamera.CameraType = "Track" | |
222 | for p = 1,segs do | |
223 | Tail[p].Parent = me | |
224 | Tail2[p].Parent = me | |
225 | end | |
226 | part1 = Tail[1] | |
227 | follow = true | |
228 | while follow do | |
229 | Wave = Wave + 0.02 | |
230 | distance = length/3 | |
231 | mousehit = mouse.Hit.p | |
232 | if (main.Position - mousehit).magnitude >speed then | |
233 | main_mousehit = (main.Position - mousehit).unit*speed | |
234 | else | |
235 | main_mousehit = (main.Position - mousehit).unit*1 | |
236 | end | |
237 | start1 = main.Position-main_mousehit | |
238 | main.CFrame = CFrame.new(start1.x, start1.y, start1.z) | |
239 | p1pos = part1.Position | |
240 | start1_p1pos = (start1 - p1pos).unit | |
241 | spreadp1 = start1_p1pos*(distance+away) | |
242 | part1.CFrame = CFrame.new(start1-spreadp1, start1) | |
243 | main.CFrame=Tail[1].CFrame*CFrame.new(0,0.5,-4)*CFrame.fromEulerAnglesXYZ(-math.pi/5,0,0) | |
244 | Wave = Wave + 0.02 | |
245 | pc = main.CFrame | |
246 | starti = main.Position-(pc.lookVector*distance) | |
247 | pipos = Tail[1].Position | |
248 | starti_pipos = (starti - pipos).unit | |
249 | spreadpi = starti_pipos*(distance+gap) | |
250 | Tail[1].CFrame = CFrame.new(starti-spreadpi, starti) + (part0.CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6)/4 | |
251 | --[[ | |
252 | for i = 1,39 do | |
253 | wait() | |
254 | print("p2c = Tail["..i.."].CFrame\ | |
255 | start3 = Tail["..i.."].Position-(p2c.lookVector*distance)\ | |
256 | p3pos = Tail["..(i+1).."].Position\ | |
257 | start3_p3pos = (start3 - p3pos).unit\ | |
258 | spreadp3 = start3_p3pos*(distance+gap)\ | |
259 | Tail["..(i+1).."].CFrame = CFrame.new(start3-spreadp3, start3 - Vector3.new(0,math.sin(Wave*6+"..((i-1)/100)..")/4,0) ) + Vector3.new(0,math.sin(Wave*6+"..((i)/100)..")/4,0)\ | |
260 | " ) | |
261 | end | |
262 | ]] | |
263 | p2c = Tail[1].CFrame start3 = Tail[1].Position-(p2c.lookVector*distance) p3pos = Tail[2].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[2].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[1].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0)/4 ) + (Tail[2].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.01)/4 | |
264 | p2c = Tail[2].CFrame start3 = Tail[2].Position-(p2c.lookVector*distance) p3pos = Tail[3].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[3].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[2].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.01)/4 ) + (Tail[3].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.02)/4 | |
265 | p2c = Tail[3].CFrame start3 = Tail[3].Position-(p2c.lookVector*distance) p3pos = Tail[4].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[4].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[3].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.02)/4 ) + (Tail[4].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.03)/4 | |
266 | p2c = Tail[4].CFrame start3 = Tail[4].Position-(p2c.lookVector*distance) p3pos = Tail[5].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[5].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[4].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.03)/4 ) + (Tail[5].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.04)/4 | |
267 | p2c = Tail[5].CFrame start3 = Tail[5].Position-(p2c.lookVector*distance) p3pos = Tail[6].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[6].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[5].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.04)/4 ) + (Tail[6].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.05)/4 | |
268 | p2c = Tail[6].CFrame start3 = Tail[6].Position-(p2c.lookVector*distance) p3pos = Tail[7].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[7].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[6].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.05)/4 ) + (Tail[7].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.06)/4 | |
269 | p2c = Tail[7].CFrame start3 = Tail[7].Position-(p2c.lookVector*distance) p3pos = Tail[8].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[8].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[7].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.06)/4 ) + (Tail[8].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.07)/4 | |
270 | p2c = Tail[8].CFrame start3 = Tail[8].Position-(p2c.lookVector*distance) p3pos = Tail[9].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[9].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[8].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.07)/4 ) + (Tail[9].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.08)/4 | |
271 | p2c = Tail[9].CFrame start3 = Tail[9].Position-(p2c.lookVector*distance) p3pos = Tail[10].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[10].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[9].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.08)/4 ) + (Tail[10].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.09)/4 | |
272 | p2c = Tail[10].CFrame start3 = Tail[10].Position-(p2c.lookVector*distance) p3pos = Tail[11].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[11].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[10].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.09)/4 ) + (Tail[11].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.1)/4 | |
273 | p2c = Tail[11].CFrame start3 = Tail[11].Position-(p2c.lookVector*distance) p3pos = Tail[12].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[12].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[11].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.1)/4 ) + (Tail[12].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.11)/4 | |
274 | p2c = Tail[12].CFrame start3 = Tail[12].Position-(p2c.lookVector*distance) p3pos = Tail[13].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[13].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[12].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.11)/4 ) + (Tail[13].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.12)/4 | |
275 | p2c = Tail[13].CFrame start3 = Tail[13].Position-(p2c.lookVector*distance) p3pos = Tail[14].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[14].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[13].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.12)/4 ) + (Tail[14].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.13)/4 | |
276 | p2c = Tail[14].CFrame start3 = Tail[14].Position-(p2c.lookVector*distance) p3pos = Tail[15].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[15].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[14].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.13)/4 ) + (Tail[15].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.14)/4 | |
277 | p2c = Tail[15].CFrame start3 = Tail[15].Position-(p2c.lookVector*distance) p3pos = Tail[16].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[16].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[15].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.14)/4 ) + (Tail[16].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.15)/4 | |
278 | p2c = Tail[16].CFrame start3 = Tail[16].Position-(p2c.lookVector*distance) p3pos = Tail[17].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[17].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[16].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.15)/4 ) + (Tail[17].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.16)/4 | |
279 | p2c = Tail[17].CFrame start3 = Tail[17].Position-(p2c.lookVector*distance) p3pos = Tail[18].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[18].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[17].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.16)/4 ) + (Tail[18].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.17)/4 | |
280 | p2c = Tail[18].CFrame start3 = Tail[18].Position-(p2c.lookVector*distance) p3pos = Tail[19].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[19].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[18].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.17)/4 ) + (Tail[19].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.18)/4 | |
281 | p2c = Tail[19].CFrame start3 = Tail[19].Position-(p2c.lookVector*distance) p3pos = Tail[20].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[20].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[19].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.18)/4 ) + (Tail[20].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.19)/4 | |
282 | p2c = Tail[20].CFrame start3 = Tail[20].Position-(p2c.lookVector*distance) p3pos = Tail[21].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[21].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[20].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.19)/4 ) + (Tail[21].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.2)/4 | |
283 | p2c = Tail[21].CFrame start3 = Tail[21].Position-(p2c.lookVector*distance) p3pos = Tail[22].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[22].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[21].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.2)/4 ) + (Tail[22].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.21)/4 | |
284 | p2c = Tail[22].CFrame start3 = Tail[22].Position-(p2c.lookVector*distance) p3pos = Tail[23].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[23].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[22].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.21)/4 ) + (Tail[23].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.22)/4 | |
285 | p2c = Tail[23].CFrame start3 = Tail[23].Position-(p2c.lookVector*distance) p3pos = Tail[24].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[24].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[23].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.22)/4 ) + (Tail[24].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.23)/4 | |
286 | p2c = Tail[24].CFrame start3 = Tail[24].Position-(p2c.lookVector*distance) p3pos = Tail[25].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[25].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[24].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.23)/4 ) + (Tail[25].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.24)/4 | |
287 | p2c = Tail[25].CFrame start3 = Tail[25].Position-(p2c.lookVector*distance) p3pos = Tail[26].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[26].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[25].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.24)/4 ) + (Tail[26].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.25)/4 | |
288 | p2c = Tail[26].CFrame start3 = Tail[26].Position-(p2c.lookVector*distance) p3pos = Tail[27].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[27].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[26].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.25)/4 ) + (Tail[27].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.26)/4 | |
289 | p2c = Tail[27].CFrame start3 = Tail[27].Position-(p2c.lookVector*distance) p3pos = Tail[28].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[28].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[27].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.26)/4 ) + (Tail[28].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.27)/4 | |
290 | p2c = Tail[28].CFrame start3 = Tail[28].Position-(p2c.lookVector*distance) p3pos = Tail[29].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[29].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[28].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.27)/4 ) + (Tail[29].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.28)/4 | |
291 | p2c = Tail[29].CFrame start3 = Tail[29].Position-(p2c.lookVector*distance) p3pos = Tail[30].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[30].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[29].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.28)/4 ) + (Tail[30].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.29)/4 | |
292 | p2c = Tail[30].CFrame start3 = Tail[30].Position-(p2c.lookVector*distance) p3pos = Tail[31].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[31].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[30].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.29)/4 ) + (Tail[31].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.3)/4 | |
293 | p2c = Tail[31].CFrame start3 = Tail[31].Position-(p2c.lookVector*distance) p3pos = Tail[32].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[32].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[31].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.3)/4 ) + (Tail[32].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.31)/4 | |
294 | p2c = Tail[32].CFrame start3 = Tail[32].Position-(p2c.lookVector*distance) p3pos = Tail[33].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[33].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[32].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.31)/4 ) + (Tail[33].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.32)/4 | |
295 | p2c = Tail[33].CFrame start3 = Tail[33].Position-(p2c.lookVector*distance) p3pos = Tail[34].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[34].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[33].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.32)/4 ) + (Tail[34].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.33)/4 | |
296 | p2c = Tail[34].CFrame start3 = Tail[34].Position-(p2c.lookVector*distance) p3pos = Tail[35].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[35].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[34].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.33)/4 ) + (Tail[35].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.34)/4 | |
297 | p2c = Tail[35].CFrame start3 = Tail[35].Position-(p2c.lookVector*distance) p3pos = Tail[36].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[36].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[35].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.34)/4 ) + (Tail[36].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.35)/4 | |
298 | p2c = Tail[36].CFrame start3 = Tail[36].Position-(p2c.lookVector*distance) p3pos = Tail[37].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[37].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[36].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.35)/4 ) + (Tail[37].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.36)/4 | |
299 | p2c = Tail[37].CFrame start3 = Tail[37].Position-(p2c.lookVector*distance) p3pos = Tail[38].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[38].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[37].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.36)/4 ) + (Tail[38].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.37)/4 | |
300 | p2c = Tail[38].CFrame start3 = Tail[38].Position-(p2c.lookVector*distance) p3pos = Tail[39].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[39].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[38].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.37)/4 ) + (Tail[39].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.38)/4 | |
301 | p2c = Tail[39].CFrame start3 = Tail[39].Position-(p2c.lookVector*distance) p3pos = Tail[40].Position start3_p3pos = (start3 - p3pos).unit spreadp3 = start3_p3pos*(distance+gap) Tail[40].CFrame = CFrame.new(start3-spreadp3, start3 - (Tail[39].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.38)/4 ) + (Tail[40].CFrame * CFrame.Angles(math.rad(90),0,0)).lookVector * math.sin(Wave*6+0.39)/4 | |
302 | for i=1,40 do | |
303 | Tail2[i].CFrame = Tail[i].CFrame * CFrame.new(0,2,0) *CFrame.Angles(-3.8,-1.5,2) | |
304 | end | |
305 | limb8.CFrame = main.CFrame * CFrame.new(-1,1.5,4) | |
306 | limb9.CFrame = limb8.CFrame * CFrame.new(2,0,0) | |
307 | limb10.CFrame = main.CFrame - Vector3.new(0,2,0) | |
308 | limb10.CFrame = limb10.CFrame * CFrame.Angles(-0.25,0,0) | |
309 | limb6.CFrame = main.CFrame * CFrame.new(0,-1.5,0) | |
310 | limb6.CFrame = limb6.CFrame*CFrame.Angles(2,0,0) | |
311 | limb7.CFrame = limb10.CFrame * CFrame.new(0,1.5,-1) | |
312 | limb41.CFrame = (Tail[40].CFrame * CFrame.new(0,0,5))* CFrame.Angles(math.rad(90),0,0) | |
313 | back2 = Tail[10].CFrame | |
314 | limb11.CFrame = back2 * CFrame.new(1,-2,0) * CFrame.Angles(2.5,0,0) | |
315 | limb12.CFrame = back2 * CFrame.new(-1,-2,0) * CFrame.Angles(2.5,0,0) | |
316 | limb13.CFrame = limb11.CFrame * CFrame.new(0,1.5 ,0.8) * CFrame.Angles(-2.2,0,0) | |
317 | limb14.CFrame = limb12.CFrame * CFrame.new(0,1.5 ,0.8) * CFrame.Angles(-2.2,0,0) | |
318 | back3 = Tail[25].CFrame | |
319 | limb15.CFrame = back3 * CFrame.new(1,-2,0) * CFrame.Angles(-2.5,0,0) | |
320 | limb16.CFrame = back3 * CFrame.new(-1,-2,0) * CFrame.Angles(-2.5,0,0) | |
321 | limb17.CFrame = limb15.CFrame * CFrame.new(0,0.8 ,-0.8) * CFrame.Angles(-1.5,0,0) | |
322 | limb18.CFrame = limb16.CFrame * CFrame.new(0,0.8 ,-0.8) * CFrame.Angles(-1.5,0,0) | |
323 | wait() | |
324 | end | |
325 | end | |
326 | function onButton1Up(mouse) | |
327 | follow = false | |
328 | end | |
329 | function chat() | |
330 | ChatColor = "Green" | |
331 | if main ~= nil then | |
332 | _.Chatted:connect(function(Message)game:GetService("Chat"):Chat(workspace:findFirstChild("").Head,Message,Enum.ChatColor[ChatColor]) end) | |
333 | end | |
334 | end | |
335 | chat() | |
336 | function keys(key) | |
337 | key:lower() | |
338 | if key == "f" then | |
339 | if fire == false then | |
340 | fire = true | |
341 | end | |
342 | elseif key == "g" then | |
343 | if ice == false then | |
344 | ice = true | |
345 | end | |
346 | elseif key == "h" then | |
347 | if heal == false then | |
348 | heal = true | |
349 | end | |
350 | elseif key == "r" then | |
351 | BlackMagic.Parent = workspace | |
352 | BlackMagic:MakeJoints() | |
353 | repeat wait() until BlackMagic ~= nil | |
354 | BlackMagic.Parent = workspace | |
355 | BlackMagic:MakeJoints() | |
356 | main.Parent = BlackMagic | |
357 | limb6.Parent = BlackMagic | |
358 | limb7.Parent = BlackMagic | |
359 | limb8.Parent = BlackMagic | |
360 | limb9.Parent = BlackMagic | |
361 | limb10.Parent = BlackMagic | |
362 | limb11.Parent = BlackMagic | |
363 | limb12.Parent = BlackMagic | |
364 | limb13.Parent = BlackMagic | |
365 | limb14.Parent = BlackMagic | |
366 | limb15.Parent = BlackMagic | |
367 | limb16.Parent = BlackMagic | |
368 | limb17.Parent = BlackMagic | |
369 | limb18.Parent = BlackMagic | |
370 | limb41.Parent = BlackMagic | |
371 | for i=1,40 do | |
372 | Tail[i].Parent = BlackMagic | |
373 | Tail2[i].Parent = BlackMagic | |
374 | end | |
375 | main.Anchored = true | |
376 | limb6.Anchored = true | |
377 | limb7.Anchored = true | |
378 | limb8.Anchored = true | |
379 | limb9.Anchored = true | |
380 | limb10.Anchored = true | |
381 | limb11.Anchored = true | |
382 | limb12.Anchored = true | |
383 | limb13.Anchored = true | |
384 | limb14.Anchored = true | |
385 | limb15.Anchored = true | |
386 | limb16.Anchored = true | |
387 | limb17.Anchored = true | |
388 | limb18.Anchored = true | |
389 | limb41.Anchored = true | |
390 | for i=1,40 do | |
391 | Tail[i].Anchored = true | |
392 | Tail2[i].Anchored = true | |
393 | end | |
394 | main.Transparency = 0 | |
395 | limb6.Transparency = 0 | |
396 | limb7.Transparency = 0 | |
397 | limb8.Transparency = 0 | |
398 | limb9.Transparency = 0 | |
399 | limb10.Transparency = 0 | |
400 | limb11.Transparency = 0 | |
401 | limb12.Transparency = 0 | |
402 | limb13.Transparency = 0 | |
403 | limb14.Transparency = 0 | |
404 | limb15.Transparency = 0 | |
405 | limb16.Transparency = 0 | |
406 | limb17.Transparency = 0 | |
407 | limb18.Transparency = 0 | |
408 | limb41.Transparency = 0 | |
409 | for i=1,40 do | |
410 | Tail[i].Transparency = 0 | |
411 | Tail2[i].Transparency = 0 | |
412 | end | |
413 | main.BrickColor = col1 | |
414 | limb6.BrickColor = col2 | |
415 | limb7.BrickColor = col1 | |
416 | limb8.BrickColor = col2 | |
417 | limb9.BrickColor = col2 | |
418 | limb10.BrickColor = col1 | |
419 | limb11.BrickColor = col1 | |
420 | limb12.BrickColor = col1 | |
421 | limb13.BrickColor = col1 | |
422 | limb14.BrickColor = col1 | |
423 | limb15.BrickColor = col1 | |
424 | limb16.BrickColor = col1 | |
425 | limb17.BrickColor = col1 | |
426 | limb18.BrickColor = col1 | |
427 | limb41.BrickColor = col2 | |
428 | for i=1,40 do | |
429 | Tail[i].BrickColor = col1 | |
430 | Tail2[i].BrickColor = col2 | |
431 | end | |
432 | BlackMagic:MakeJoints() | |
433 | chat() | |
434 | end | |
435 | end | |
436 | function keyss() | |
437 | if fire == true then | |
438 | fire = false | |
439 | end | |
440 | if ice == true then | |
441 | ice = false | |
442 | end | |
443 | if heal == true then | |
444 | heal = false | |
445 | end | |
446 | end | |
447 | mouse.Icon = "rbxasset://textures\\GunCursor.png" | |
448 | mouse.Button1Down:connect(function() onButton1Down(mouse) end) | |
449 | mouse.Button1Up:connect(function() onButton1Up(mouse) end) | |
450 | mouse.KeyDown:connect(keys) | |
451 | mouse.KeyUp:connect(keyss) | |
452 | while true do | |
453 | wait() | |
454 | for i,v in pairs(BlackMagic:GetChildren()) do | |
455 | if v.Name ~= "Breeze" and v.Name ~= "Flame" and v.Name ~= "Heal" then | |
456 | for i,d in pairs(v:GetChildren()) do | |
457 | if d.ClassName ~= "SpecialMesh" then | |
458 | d:Destroy() | |
459 | end | |
460 | end | |
461 | end | |
462 | end | |
463 | Stuff = Workspace:GetChildren() | |
464 | for i = 1 , #Stuff do | |
465 | Stuff2 = Stuff[i]:GetChildren() | |
466 | for i = 1 , #Stuff2 do | |
467 | Stuff3 = Stuff2[i]:GetChildren() | |
468 | for i = 1 , #Stuff3 do | |
469 | if Stuff3[i].className == "ForceField" then | |
470 | Stuff3[i]:Remove() | |
471 | end | |
472 | end | |
473 | if Stuff2[i].className == "ForceField" then | |
474 | Stuff2[i]:Remove() | |
475 | end | |
476 | end | |
477 | end | |
478 | if fire == true then | |
479 | Flame = Instance.new("Part") | |
480 | Instance.new("Fire",Flame) | |
481 | Flame.Parent = BlackMagic | |
482 | Flame.Anchored = true | |
483 | Flame.BrickColor = BrickColor.new("Silver") | |
484 | Flame.CanCollide = false | |
485 | Flame.Name = "Flame" | |
486 | Color = math.random(1, 3) | |
487 | if Color == 1 then | |
488 | Flame.BrickColor = BrickColor.new(21) | |
489 | else | |
490 | if Color == 2 then | |
491 | Flame.BrickColor = BrickColor.new(24) | |
492 | end | |
493 | if Color == 3 then | |
494 | Flame.BrickColor = BrickColor.new(105) | |
495 | end | |
496 | end | |
497 | Flame.Locked = true | |
498 | Flame.Shape = "Ball" | |
499 | Flame.Transparency = 0 | |
500 | Flame.Size = Vector3.new(1, 1, 1) | |
501 | Flame.TopSurface = "Smooth" | |
502 | Flame.BottomSurface = "Smooth" | |
503 | Flame.CFrame = main.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), 0)*CFrame.Angles(math.rad(-90),0,math.rad(180)) | |
504 | FlameMesh = Instance.new("SpecialMesh") | |
505 | FlameMesh.MeshType = "FileMesh" | |
506 | FlameMesh.MeshId = "http://www.roblox.com/asset/?id=25212400" | |
507 | FlameMesh.Parent = Flame | |
508 | FlameMesh.Scale = Vector3.new(1, 1, 1) | |
509 | end | |
510 | if heal == true then | |
511 | Heal = Instance.new("Part") | |
512 | local fire = Instance.new("Fire",Heal) | |
513 | fire.Color = Color3.new(0/255,255/255,0/255) | |
514 | Heal.Parent = BlackMagic | |
515 | Heal.Anchored = true | |
516 | Heal.BrickColor = BrickColor.new("Br. blueish green") | |
517 | Heal.CanCollide = false | |
518 | Heal.Name = "Heal" | |
519 | Color = math.random(1, 3) | |
520 | if Color == 1 then | |
521 | Heal.BrickColor = BrickColor.new(28) | |
522 | else | |
523 | if Color == 2 then | |
524 | Heal.BrickColor = BrickColor.new(37) | |
525 | end | |
526 | if Color == 3 then | |
527 | Heal.BrickColor = BrickColor.new(119) | |
528 | end | |
529 | end | |
530 | Heal.Locked = true | |
531 | Heal.Shape = "Ball" | |
532 | Heal.Transparency = 0 | |
533 | Heal.Size = Vector3.new(1, 1, 1) | |
534 | Heal.TopSurface = "Smooth" | |
535 | Heal.BottomSurface = "Smooth" | |
536 | Heal.CFrame = main.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), 0)*CFrame.Angles(math.rad(-90),0,math.rad(180)) | |
537 | HealMesh = Instance.new("SpecialMesh") | |
538 | HealMesh.MeshType = "FileMesh" | |
539 | HealMesh.MeshId = "http://www.roblox.com/asset/?id=25212400" | |
540 | HealMesh.Parent = Heal | |
541 | HealMesh.Scale = Vector3.new(1, 1, 1) | |
542 | end | |
543 | if ice == true then | |
544 | Breeze = Instance.new("Part") | |
545 | local fire = Instance.new("Fire",Breeze) | |
546 | fire.Color = Color3.new(0/255,255/255,255/255) | |
547 | Breeze.Parent = BlackMagic | |
548 | Breeze.Anchored = true | |
549 | Breeze.BrickColor = BrickColor.new("White") | |
550 | Breeze.CanCollide = false | |
551 | Breeze.Name = "Breeze" | |
552 | Color = math.random(1, 3) | |
553 | if Color == 1 then | |
554 | Breeze.BrickColor = BrickColor.new(23) | |
555 | else | |
556 | if Color == 2 then | |
557 | Breeze.BrickColor = BrickColor.new(42) | |
558 | end | |
559 | if Color == 3 then | |
560 | Breeze.BrickColor = BrickColor.new(43) | |
561 | end | |
562 | end | |
563 | Breeze.Locked = true | |
564 | Breeze.Shape = "Ball" | |
565 | Breeze.Transparency = 0 | |
566 | Breeze.Size = Vector3.new(1, 1, 1) | |
567 | Breeze.TopSurface = "Smooth" | |
568 | Breeze.BottomSurface = "Smooth" | |
569 | Breeze.CFrame = main.CFrame * CFrame.new(math.random(-2, 2), math.random(-2, 2), 0)*CFrame.Angles(math.rad(-90),0,math.rad(180)) | |
570 | BreezeMesh = Instance.new("SpecialMesh") | |
571 | BreezeMesh.MeshType = "FileMesh" | |
572 | BreezeMesh.MeshId = "http://www.roblox.com/asset/?id=25212400" | |
573 | BreezeMesh.Parent = Breeze | |
574 | BreezeMesh.Scale = Vector3.new(1, 1, 1) | |
575 | end | |
576 | Stuff = BlackMagic:GetChildren() | |
577 | for i = 1 , #Stuff do | |
578 | if Stuff[i].className == "Part" then | |
579 | if Stuff[i].Name == "Shadow" then | |
580 | Stuff[i].Transparency = Stuff[i].Transparency + 0.2 | |
581 | if Stuff[i].Transparency >= 1 then | |
582 | Stuff[i]:Remove() | |
583 | end | |
584 | end | |
585 | if Stuff[i].Name == "Flame" then | |
586 | local p = Stuff[i].CFrame * CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1)) | |
587 | Stuff[i].Mesh.Scale = Stuff[i].Mesh.Scale + Vector3.new(1, 1, 1) | |
588 | pcall(function () Stuff[i].Fire.Size = Stuff[i].Fire.Size + 1 end) | |
589 | Stuff[i].Transparency = Stuff[i].Transparency + 0.0785 | |
590 | Stuff[i].CFrame = p | |
591 | Stuff[i].CFrame = Stuff[i].CFrame * CFrame.new(0,math.random(-5, -3),0) | |
592 | Stuff2 = Workspace:GetChildren() | |
593 | for ii = 1 , #Stuff2 do | |
594 | if Stuff2[ii].className == "Part" then | |
595 | if (Stuff[i].Position-Stuff2[ii].Position).magnitude <= Stuff[i].Mesh.Scale.X then | |
596 | if Stuff2[ii].Name ~= "Base" then | |
597 | Stuff2[ii].Anchored = false | |
598 | Stuff2[ii].Material = "Concrete" | |
599 | Stuff2[ii].BrickColor = BrickColor.new("Silver") | |
600 | Stuff2[ii]:BreakJoints() | |
601 | Stuff2[ii].Reflectance = 0 | |
602 | end | |
603 | end | |
604 | end | |
605 | if Stuff2[ii].className == "Model" and Stuff2[ii].Name ~= "" then | |
606 | local Torso = Stuff2[ii]:findFirstChild("Torso") | |
607 | local Humanoid = Stuff2[ii]:findFirstChild("Humanoid") | |
608 | if Humanoid ~= nil and Torso ~= nil then | |
609 | if (Stuff[i].Position-Torso.Position).magnitude <= Stuff[i].Mesh.Scale.X then | |
610 | Humanoid.MaxHealth = 100 | |
611 | Damage = 15 | |
612 | Humanoid:TakeDamage(Damage) | |
613 | Parts = Humanoid.Parent:GetChildren() | |
614 | for i = 1 , #Parts do | |
615 | if Parts[i].className == "Part" then | |
616 | Parts[i].BrickColor = BrickColor.new("Silver") | |
617 | Parts[i].Material = "Concrete" | |
618 | Parts[i].Reflectance = 0 | |
619 | Parts[i].Anchored = false | |
620 | if Humanoid.Health <= 0 then | |
621 | Parts[i]:BreakJoints() | |
622 | end | |
623 | end | |
624 | end | |
625 | end | |
626 | end | |
627 | end | |
628 | end | |
629 | if Stuff[i].Fire.Size >= 15 then | |
630 | Stuff[i]:Remove() | |
631 | end | |
632 | end | |
633 | if Stuff[i].Name == "Breeze" then | |
634 | local p = Stuff[i].CFrame * CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1)) | |
635 | Stuff[i].Mesh.Scale = Stuff[i].Mesh.Scale + Vector3.new(1, 1, 1) | |
636 | pcall(function () Stuff[i].Fire.Size = Stuff[i].Fire.Size + 1 end) | |
637 | Stuff[i].Transparency = Stuff[i].Transparency + 0.0785 | |
638 | Stuff[i].CFrame = p | |
639 | Stuff[i].CFrame = Stuff[i].CFrame * CFrame.new(0,math.random(-5, -3),0) | |
640 | Stuff2 = Workspace:GetChildren() | |
641 | for ii = 1 , #Stuff2 do | |
642 | if Stuff2[ii].className == "Part" then | |
643 | if (Stuff[i].Position-Stuff2[ii].Position).magnitude <= Stuff[i].Mesh.Scale.X then | |
644 | if Stuff2[ii].Name ~= "Base" then | |
645 | Stuff2[ii].BrickColor = BrickColor.new("Light blue") | |
646 | Stuff2[ii].Anchored = true | |
647 | Stuff2[ii].Reflectance = 0.1 | |
648 | Stuff2[ii].Material = "Ice" | |
649 | end | |
650 | end | |
651 | end | |
652 | if Stuff2[ii].className == "Model" and Stuff2[ii].Name ~= "" then | |
653 | local Torso = Stuff2[ii]:findFirstChild("Torso") | |
654 | local Humanoid = Stuff2[ii]:findFirstChild("Humanoid") | |
655 | if Humanoid ~= nil and Torso ~= nil then | |
656 | if (Stuff[i].Position-Torso.Position).magnitude <= Stuff[i].Mesh.Scale.X then | |
657 | Humanoid.MaxHealth = 100 | |
658 | Damage = 10 | |
659 | Humanoid:TakeDamage(Damage) | |
660 | Parts = Humanoid.Parent:GetChildren() | |
661 | for i = 1 , #Parts do | |
662 | if Parts[i].className == "Part" then | |
663 | Parts[i].BrickColor = BrickColor.new("Light blue") | |
664 | Parts[i].Anchored = true | |
665 | Parts[i].Reflectance = 0.1 | |
666 | Parts[i].Material = "Ice" | |
667 | end | |
668 | end | |
669 | end | |
670 | end | |
671 | end | |
672 | end | |
673 | end | |
674 | if Stuff[i]:findFirstChild("Fire") ~= nil then | |
675 | if Stuff[i]:findFirstChild("Fire").Size >= 15 then | |
676 | Stuff[i]:Remove() | |
677 | end | |
678 | end | |
679 | if Stuff[i].Name == "Heal" then | |
680 | local p = Stuff[i].CFrame * CFrame.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1)) | |
681 | Stuff[i].Mesh.Scale = Stuff[i].Mesh.Scale + Vector3.new(1, 1, 1) | |
682 | pcall(function () Stuff[i].Fire.Size = Stuff[i].Fire.Size + 1 end) | |
683 | Stuff[i].Transparency = Stuff[i].Transparency + 0.0785 | |
684 | Stuff[i].CFrame = p | |
685 | Stuff[i].CFrame = Stuff[i].CFrame * CFrame.new(0,math.random(-5, -3),0) | |
686 | Stuff2 = Workspace:GetChildren() | |
687 | for ii = 1 , #Stuff2 do | |
688 | if Stuff2[ii].className == "Part" then | |
689 | if (Stuff[i].Position-Stuff2[ii].Position).magnitude <= Stuff[i].Mesh.Scale.X then | |
690 | if Stuff2[ii].Name ~= "Base" then | |
691 | Stuff2[ii].BrickColor = BrickColor.new("Bright green") | |
692 | Stuff2[ii].Anchored = false | |
693 | Stuff2[ii].Material = "Grass" | |
694 | end | |
695 | end | |
696 | end | |
697 | if Stuff2[ii].className == "Model" and Stuff2[ii].Name ~= "" then | |
698 | local Torso = Stuff2[ii]:findFirstChild("Torso") | |
699 | local Humanoid = Stuff2[ii]:findFirstChild("Humanoid") | |
700 | if Humanoid ~= nil and Torso ~= nil then | |
701 | if (Stuff[i].Position-Torso.Position).magnitude <= Stuff[i].Mesh.Scale.X then | |
702 | Healness = 10 | |
703 | Humanoid.Health = Humanoid.Health + Healness; | |
704 | Parts = Humanoid.Parent:GetChildren() | |
705 | for i = 1 , #Parts do | |
706 | if Parts[i].className == "Part" then | |
707 | Parts[i].Anchored = false | |
708 | Parts[i].Reflectance = 0 | |
709 | Parts[i].Material = "Plastic" | |
710 | end | |
711 | end | |
712 | end | |
713 | end | |
714 | end | |
715 | end | |
716 | end | |
717 | if Stuff[i]:findFirstChild("Fire") ~= nil then | |
718 | if Stuff[i]:findFirstChild("Fire").Size >= 15 then | |
719 | Stuff[i]:Remove() | |
720 | end | |
721 | end | |
722 | end | |
723 | end | |
724 | end |