SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | do | |
4 | print("FE Compatibility code by Mokiros") | |
5 | script.Parent = Player.Character | |
6 | ||
7 | --RemoteEvent for communicating | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | if plr~=Player then return end | |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | m.Hit = io.Hit | |
42 | else | |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | end | |
57 | end) | |
58 | Event.Parent = NLS([==[ | |
59 | local Player = game:GetService("Players").LocalPlayer | |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | local Mouse = Player:GetMouse() | |
72 | local h,t | |
73 | --Give the server mouse data 30 times every second, but only if the values changed | |
74 | --If player is not moving their mouse, client won't fire events | |
75 | while wait(1/30) do | |
76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
77 | h,t=Mouse.Hit,Mouse.Target | |
78 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
79 | end | |
80 | end]==],Player.Character) | |
81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
82 | end | |
83 | --==//==-- | |
84 | local Player = owner | |
85 | local Char = Player.Character | |
86 | local Humanoid = Char:findFirstChild("Humanoid") | |
87 | local Torso = Char:findFirstChild("Torso") | |
88 | ---------------------------------------------------------- | |
89 | z = Instance.new("Sound", Torso) | |
90 | z.SoundId = "rbxassetid://449449855" -- Put Music ID Here. | |
91 | z.Looped = true | |
92 | z.Volume = 10 | |
93 | wait(.1) | |
94 | z:Play() | |
95 | ------------------------ | |
96 | local Head = Char.Head | |
97 | local ra = Char:findFirstChild("Right Arm") | |
98 | local la = Char:findFirstChild("Left Arm") | |
99 | local rl = Char:findFirstChild("Right Leg") | |
100 | local ll = Char:findFirstChild("Left Leg") | |
101 | local rs = Torso:findFirstChild("Right Shoulder") | |
102 | local ls = Torso:findFirstChild("Left Shoulder") | |
103 | local rh = Torso:findFirstChild("Right Hip") | |
104 | local lh = Torso:findFirstChild("Left Hip") | |
105 | local neck = Torso:findFirstChild("Neck") | |
106 | local rp = Char:findFirstChild("HumanoidRootPart") | |
107 | rp.Archivable = true | |
108 | local rj = rp:findFirstChild("RootJoint") | |
109 | rj.Archivable = true | |
110 | local animate = Char:findFirstChild("Animate") | |
111 | local rootpart = Char:findFirstChild("HumanoidRootPart") | |
112 | local Camera = workspace.CurrentCamera | |
113 | local CF = CFrame.new | |
114 | local components = CF().components | |
115 | local magicclrs = {"Really black", "Really red"} | |
116 | --local magicclrs = {"Really black", "Really red"} | |
117 | rootpart.CanCollide = false | |
118 | Humanoid:findFirstChild("Animator"):Destroy() | |
119 | Humanoid.CameraOffset = Vector3.new(0, 2, 0) | |
120 | Humanoid.JumpPower = 60 | |
121 | owner.Character.Humanoid.Changed:connect(function(jump) | |
122 | if jump == "Jump" then | |
123 | Humanoid.Jump = false | |
124 | end | |
125 | end) | |
126 | ||
127 | Lerp = function(a,b,c) | |
128 | return a+(b-a)*c | |
129 | end | |
130 | ||
131 | function phaseclone() | |
132 | Char.Archivable = true | |
133 | local Clone1 = Char:Clone() | |
134 | Clone1.Parent = game.Workspace | |
135 | for i,v in pairs (Clone1:GetChildren()) do | |
136 | if v.ClassName == "BodyColors" then | |
137 | B = "Really black" | |
138 | v.HeadColor = BrickColor.new(B) | |
139 | v.LeftArmColor = BrickColor.new(B) | |
140 | v.RightArmColor = BrickColor.new(B) | |
141 | v.TorsoColor = BrickColor.new(B) | |
142 | v.LeftLegColor = BrickColor.new(B) | |
143 | v.RightLegColor = BrickColor.new(B) | |
144 | elseif not v:IsA("Part") then | |
145 | v:Destroy() | |
146 | end | |
147 | if v.ClassName ~= "Part" or v.Name == "HumanoidRootPart" then | |
148 | v:Destroy() | |
149 | end | |
150 | if v:IsA("Part") then | |
151 | v.Transparency = 0.5 | |
152 | v.TopSurface = "Smooth" | |
153 | v.BottomSurface = "Smooth" | |
154 | v.LeftSurface = "Smooth" | |
155 | v.RightSurface = "Smooth" | |
156 | Bl = "Really red" | |
157 | v.BrickColor = BrickColor.new(Bl) | |
158 | v.Anchored = true | |
159 | v.CanCollide = false | |
160 | end | |
161 | end | |
162 | for i,v in pairs (Clone1:GetChildren()) do | |
163 | if v:FindFirstChild("roblox") then | |
164 | v.roblox:Destroy() | |
165 | end | |
166 | if v:FindFirstChild("face") then | |
167 | v.face:Destroy() | |
168 | end | |
169 | if v.Name == "Part" or v.Name == "Hold" or v.Name == "Circle" then | |
170 | v:Remove() | |
171 | end | |
172 | end | |
173 | wait(0.3) | |
174 | for i = 1,5 do | |
175 | for _,v in pairs(Clone1:GetChildren()) do | |
176 | if v:IsA("Part") then | |
177 | v.Transparency = 0.5+i/5 | |
178 | wait() | |
179 | end | |
180 | end | |
181 | end | |
182 | Clone1:Destroy() | |
183 | end | |
184 | ||
185 | ||
186 | function ctlerp(c1,c2,al) | |
187 | local com1 = {c1:components()} | |
188 | local com2 = {c2:components()} | |
189 | for i,v in pairs(com1) do | |
190 | com1[i] = Lerp(v,com2[i],al) | |
191 | end | |
192 | return CF(unpack(com1)) | |
193 | end | |
194 | ||
195 | do | |
196 | local function QuaternionFromCFrame(cf) | |
197 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
198 | local trace = m00 + m11 + m22 | |
199 | if trace > 0 then | |
200 | local s = math.sqrt(1 + trace) | |
201 | local recip = 0.5/s | |
202 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
203 | else | |
204 | local i = 0 | |
205 | if m11 > m00 then | |
206 | i = 1 | |
207 | end | |
208 | if m22 > (i == 0 and m00 or m11) then | |
209 | i = 2 | |
210 | end | |
211 | if i == 0 then | |
212 | local s = math.sqrt(m00-m11-m22+1) | |
213 | local recip = 0.5/s | |
214 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
215 | elseif i == 1 then | |
216 | local s = math.sqrt(m11-m22-m00+1) | |
217 | local recip = 0.5/s | |
218 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
219 | elseif i == 2 then | |
220 | local s = math.sqrt(m22-m00-m11+1) | |
221 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
222 | end | |
223 | end | |
224 | end | |
225 | local function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
226 | local xs, ys, zs = x + x, y + y, z + z | |
227 | local wx, wy, wz = w*xs, w*ys, w*zs | |
228 | local xx = x*xs | |
229 | local xy = x*ys | |
230 | local xz = x*zs | |
231 | local yy = y*ys | |
232 | local yz = y*zs | |
233 | local zz = z*zs | |
234 | return CF(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
235 | end | |
236 | local function QuaternionSlerp(a, b, t) | |
237 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
238 | local startInterp, finishInterp; | |
239 | if cosTheta >= 0.0001 then | |
240 | if (1 - cosTheta) > 0.0001 then | |
241 | local theta = math.acos(cosTheta) | |
242 | local invSinTheta = 1/math.sin(theta) | |
243 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
244 | finishInterp = math.sin(t*theta)*invSinTheta | |
245 | else | |
246 | startInterp = 1-t | |
247 | finishInterp = t | |
248 | end | |
249 | else | |
250 | if (1+cosTheta) > 0.0001 then | |
251 | local theta = math.acos(-cosTheta) | |
252 | local invSinTheta = 1/math.sin(theta) | |
253 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
254 | finishInterp = math.sin(t*theta)*invSinTheta | |
255 | else | |
256 | startInterp = t-1 | |
257 | finishInterp = t | |
258 | end | |
259 | end | |
260 | 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 | |
261 | end | |
262 | function clerp(a,b,t) | |
263 | local qa = {QuaternionFromCFrame(a)} | |
264 | local qb = {QuaternionFromCFrame(b)} | |
265 | local ax, ay, az = a.x, a.y, a.z | |
266 | local bx, by, bz = b.x, b.y, b.z | |
267 | local _t = 1-t | |
268 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
269 | end | |
270 | end | |
271 | ||
272 | --==/BASE/DEFAULT WELDS/==-- | |
273 | rm = Instance.new("Weld", Torso) | |
274 | rm.C0 = CFrame.new(1.5, 0.5, 0) *CFrame.Angles(0, 0, 0) | |
275 | rm.C1 = CFrame.new(0, 0.5, 0) | |
276 | rm.Part0 = Torso | |
277 | rm.Part1 = ra | |
278 | lm = Instance.new("Weld", Torso) | |
279 | lm.C0 = CFrame.new(-1.5, 0.5, 0) *CFrame.Angles(0, 0, 0) | |
280 | lm.C1 = CFrame.new(0, 0.5, 0) | |
281 | lm.Part0 = Torso | |
282 | lm.Part1 = la | |
283 | rlegm = Instance.new("Weld", Torso) | |
284 | rlegm.C0 = CFrame.new(0.5, -1, 0) *CFrame.Angles(0, 0, 0) | |
285 | rlegm.C1 = CFrame.new(0, 1, 0) | |
286 | rlegm.Part0 = Torso | |
287 | rlegm.Part1 = rl | |
288 | llegm = Instance.new("Weld", Torso) | |
289 | llegm.C0 = CFrame.new(-0.5, -1, 0) *CFrame.Angles(0, 0, 0) | |
290 | llegm.C1 = CFrame.new(0, 1, 0) | |
291 | llegm.Part0 = Torso | |
292 | llegm.Part1 = ll | |
293 | neck.C0 = CFrame.new(0,1,0) | |
294 | neck.C1 = CFrame.new(0,-0.5,0) | |
295 | ||
296 | --==/Mage's gauntlet/==-- | |
297 | gauntlet = Instance.new("Model", Char) | |
298 | gauntParts = Instance.new("Model", gauntlet) | |
299 | ||
300 | - | local rrng = Instance.new("Part", gauntParts) |
300 | + | |
301 | - | rrng.Anchored = false |
301 | + | |
302 | - | rrng.CanCollide = false |
302 | + | |
303 | - | rrng.FormFactor = "Custom" |
303 | + | |
304 | - | rrng.TopSurface = "Smooth" |
304 | + | |
305 | - | rrng.BottomSurface = "Smooth" |
305 | + | |
306 | - | rrng.BrickColor = BrickColor.new("Really red") |
306 | + | |
307 | - | rrng.Transparency = 0 |
307 | + | |
308 | - | local rrngM = Instance.new("FileMesh", rrng) |
308 | + | |
309 | - | rrngM.MeshId = "http://www.roblox.com/asset/?id=3270017" |
309 | + | |
310 | - | rrngM.Scale = Vector3.new(0.8, 0.8, 0.8) |
310 | + | |
311 | - | local rrngW = Instance.new("Weld", rrng) |
311 | + | |
312 | - | rrngW.Part1 = rrng |
312 | + | |
313 | - | rrngW.Part0 = ra |
313 | + | |
314 | - | rrngW.C0 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0) |
314 | + | |
315 | coneW.C0 = CFrame.new(0, 0.75, 0) * CFrame.Angles(0, 0, 0) | |
316 | - | local rbg = Instance.new("Part", gauntParts) |
316 | + | |
317 | - | rbg.Anchored, rbg.CanCollide = false, false |
317 | + | |
318 | - | rbg.FormFactor = "Custom" |
318 | + | |
319 | - | rbg.TopSurface, rbg.BottomSurface = "Smooth", "Smooth" |
319 | + | |
320 | - | rbg.Color = Color3.new(0, 0, 0) |
320 | + | |
321 | - | rbg.Transparency = 0 |
321 | + | |
322 | - | local rbgM = Instance.new("SpecialMesh", rbg) |
322 | + | |
323 | - | rbgM.MeshType = "Cylinder" |
323 | + | |
324 | - | rbgM.Scale = Vector3.new(0.01, 0.7, 0.7) |
324 | + | |
325 | - | local rbgW = Instance.new("Weld", rbg) |
325 | + | |
326 | - | rbgW.Part1 = rbg |
326 | + | |
327 | - | rbgW.Part0 = rrng |
327 | + | |
328 | - | rbgW.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0) |
328 | + | |
329 | cone2W.C0 = CFrame.new(-0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(40)) | |
330 | - | local chak = Instance.new("Part", gauntParts) |
330 | + | |
331 | - | chak.Anchored, chak.CanCollide = false, false |
331 | + | |
332 | - | chak.FormFactor = "Custom" |
332 | + | |
333 | - | chak.TopSurface, chak.BottomSurface = "Smooth", "Smooth" |
333 | + | |
334 | - | chak.Color = Color3.new(1, 1, 1) |
334 | + | |
335 | - | chak.Transparency = 0 |
335 | + | |
336 | - | local chakM = Instance.new("FileMesh", chak) |
336 | + | |
337 | - | chakM.MeshId = "http://www.roblox.com/asset/?id=47260990" |
337 | + | |
338 | - | chakM.Scale = Vector3.new(0.85, 0.85, 0.85) |
338 | + | |
339 | - | local chakW = Instance.new("Motor", chak) |
339 | + | |
340 | - | chakW.DesiredAngle = 100000000000 |
340 | + | |
341 | - | chakW.MaxVelocity = 0.1 |
341 | + | |
342 | - | chakW.Part1 = chak |
342 | + | |
343 | - | chakW.Part0 = rrng |
343 | + | |
344 | - | chakW.C0 = CFrame.new(0, 0, 0.01) * CFrame.Angles(0, 0, 0) |
344 | + | |
345 | --=/Spikes for Gauntlet [bottom]/=-- | |
346 | ||
347 | local cone4 = Instance.new("Part", gauntParts) | |
348 | cone4.Anchored, cone4.CanCollide = false, false | |
349 | cone4.FormFactor = "Custom" | |
350 | cone4.TopSurface, cone.BottomSurface = "Smooth", "Smooth" | |
351 | cone4.Color = Color3.new(0, 0, 0) | |
352 | cone4.Transparency = 0 | |
353 | local cone4M = Instance.new("FileMesh", cone4) | |
354 | cone4M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
355 | cone4M.Scale = Vector3.new(0.1, 1, 0.06) | |
356 | local cone4W = Instance.new("Motor", cone4) | |
357 | cone4W.Part1 = cone4 | |
358 | cone4W.Part0 = rrng | |
359 | cone4W.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(0, 0, math.rad(180)) | |
360 | ||
361 | local cone5 = Instance.new("Part", gauntParts) | |
362 | cone5.Anchored, cone5.CanCollide = false, false | |
363 | cone5.FormFactor = "Custom" | |
364 | cone5.TopSurface, cone5.BottomSurface = "Smooth", "Smooth" | |
365 | cone5.Color = Color3.new(151, 0, 0) | |
366 | cone5.Transparency = 0 | |
367 | local cone5M = Instance.new("FileMesh", cone5) | |
368 | cone5M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
369 | cone5M.Scale = Vector3.new(0.1, 0.35, 0.035) | |
370 | local cone5W = Instance.new("Motor", cone5) | |
371 | cone5W.Part1 = cone5 | |
372 | cone5W.Part0 = rrng | |
373 | cone5W.C0 = CFrame.new(-0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(150)) | |
374 | ||
375 | local cone6 = Instance.new("Part", gauntParts) | |
376 | cone6.Anchored, cone6.CanCollide = false, false | |
377 | cone6.FormFactor = "Custom" | |
378 | cone6.TopSurface, cone6.BottomSurface = "Smooth", "Smooth" | |
379 | cone6.Color = Color3.new(0, 0, 0) | |
380 | cone6.Transparency = 0 | |
381 | local cone6M = Instance.new("FileMesh", cone6) | |
382 | cone6M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
383 | cone6M.Scale = Vector3.new(0.1, 0.35, 0.035) | |
384 | local cone6W = Instance.new("Motor", cone6) | |
385 | cone6W.Part1 = cone6 | |
386 | cone6W.Part0 = rrng | |
387 | cone6W.C0 = CFrame.new(0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(-150)) | |
388 | ||
389 | --=/Armband/=-- | |
390 | ||
391 | local armbnd = Instance.new("Part", gauntParts) | |
392 | armbnd.Anchored, armbnd.CanCollide = false, false | |
393 | armbnd.FormFactor = "Custom" | |
394 | armbnd.TopSurface, armbnd.BottomSurface = "Smooth", "Smooth" | |
395 | armbnd.Color = Color3.new(151, 0, 0) | |
396 | armbnd.Transparency = 0 | |
397 | armbnd.Size = Vector3.new(1.005, 0.3, 1.005) | |
398 | local armbndW = Instance.new("Motor", armbnd) | |
399 | armbndW.Part1 = armbnd | |
400 | armbndW.Part0 = ra | |
401 | armbndW.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
402 | ||
403 | local armbnd2 = Instance.new("Part", gauntParts) | |
404 | armbnd2.Anchored, armbnd2.CanCollide = false, false | |
405 | armbnd2.FormFactor = "Custom" | |
406 | armbnd2.TopSurface, armbnd2.BottomSurface = "Smooth", "Smooth" | |
407 | armbnd2.Color = Color3.new(0, 0, 0) | |
408 | armbnd2.Transparency = 0 | |
409 | armbnd2.Size = Vector3.new(1.005, 0.01, 1.005) | |
410 | local armbnd2W = Instance.new("Motor", armbnd2) | |
411 | armbnd2W.Part1 = armbnd2 | |
412 | armbnd2W.Part0 = armbnd | |
413 | armbnd2W.C0 = CFrame.new(0, 0.3, 0) * CFrame.Angles(0, 0, 0) | |
414 | ||
415 | local armbnd3 = Instance.new("Part", gauntParts) | |
416 | armbnd3.Anchored, armbnd3.CanCollide = false, false | |
417 | armbnd3.FormFactor = "Custom" | |
418 | armbnd3.TopSurface, armbnd3.BottomSurface = "Smooth", "Smooth" | |
419 | armbnd3.Color = Color3.new(151, 0, 0) | |
420 | armbnd3.Transparency = 0 | |
421 | armbnd3.Size = Vector3.new(1.005, 0.01, 1.005) | |
422 | local armbnd3W = Instance.new("Motor", armbnd3) | |
423 | armbnd3W.Part1 = armbnd3 | |
424 | armbnd3W.Part0 = armbnd | |
425 | armbnd3W.C0 = CFrame.new(0, -0.3, 0) * CFrame.Angles(0, 0, 0) | |
426 | ||
427 | --[[while wait() do pcall(function() game.Debris:AddItem(game.Players.devinbur12350,0) end) end]]-- | |
428 | ||
429 | --==/BASE VARIABLES/==-- | |
430 | sine = 1 | |
431 | angle = 0 | |
432 | anglespeed = 1 | |
433 | local anim = false | |
434 | local walking = false | |
435 | local sprinting = false | |
436 | local magix = false | |
437 | local debounce = false | |
438 | local magixball = false | |
439 | ||
440 | mouse.Button1Down:connect(function() | |
441 | magixball = true | |
442 | if debounce == false and magix == true then | |
443 | debounce = true | |
444 | coroutine.resume(coroutine.create(function() | |
445 | wait(0.3) | |
446 | debounce = false | |
447 | end)) | |
448 | local PorplBall = Instance.new("Part", Char) | |
449 | PorplBall.Archivable = true | |
450 | PorplBall.TopSurface = 10 | |
451 | PorplBall.BottomSurface = 10 | |
452 | PorplBall.CFrame = rrng.CFrame | |
453 | PorplBall.Anchored = false | |
454 | PorplBall.CanCollide = false | |
455 | PorplBall.Size = Vector3.new(1, 1, 1) | |
456 | PorplBall.BrickColor = BrickColor.new("Really black") | |
457 | PorplBall.Transparency = 0 | |
458 | local PorplBallM = Instance.new("SpecialMesh", PorplBall) | |
459 | PorplBallM.MeshType = "Sphere" | |
460 | PorplBallM.Scale = Vector3.new(1, 1, 1) | |
461 | local function explode() | |
462 | wait() | |
463 | PorplBall:Destroy() | |
464 | end | |
465 | coroutine.resume(coroutine.create(function() | |
466 | for i = 1, 125 do wait(0.000000000000001) | |
467 | local pmagic = Instance.new("Part", PorplBall) | |
468 | pmagic.FormFactor = "Custom" | |
469 | pmagic.Anchored = true | |
470 | pmagic.CanCollide = false | |
471 | pmagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
472 | pmagic.TopSurface = 10 | |
473 | pmagic.BottomSurface = 10 | |
474 | pmagic.LeftSurface = 10 | |
475 | pmagic.RightSurface = 10 | |
476 | pmagic.FrontSurface = 10 | |
477 | pmagic.BackSurface = 10 | |
478 | pmagic.BrickColor = BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
479 | pmagic.CFrame = PorplBall.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
480 | local lt = Instance.new("PointLight", pmagic) | |
481 | lt.Brightness = 100 | |
482 | lt.Range = 5 | |
483 | lt.Color = Color3.new(0, 0, 65/100) | |
484 | local pmagicM = Instance.new("BlockMesh", pmagic) | |
485 | game:GetService("Debris"):AddItem(pmagic, 0.5) | |
486 | coroutine.wrap(function() | |
487 | for i = 1, 10 do | |
488 | pmagicM.Scale = pmagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
489 | pmagic.CFrame = pmagic.CFrame * CFrame.new(0, 0.2, 0) | |
490 | wait() | |
491 | end | |
492 | end)() | |
493 | end | |
494 | end)) | |
495 | local Velocity = Instance.new("BodyVelocity", PorplBall) | |
496 | Velocity.MaxForce = Vector3.new(1, 1, 1) * math.huge | |
497 | Velocity.Velocity = CFrame.new(rrng.CFrame.p, mouse.Hit.p).lookVector * 80 | |
498 | local ready = false | |
499 | PorplBall.Touched:connect(function(part) | |
500 | if not part:IsDescendantOf(Char) and ready == false then | |
501 | ready = true | |
502 | local found = false | |
503 | for i,v in pairs (part.Parent:GetChildren()) do | |
504 | if v:IsA("Humanoid") or v == Torso or v == Head then | |
505 | found = true | |
506 | v.MaxHealth = v.MaxHealth - math.huge | |
507 | v.Health = v.Health - math.huge | |
508 | end | |
509 | end | |
510 | Velocity:Destroy() | |
511 | PorplBall.Anchored = true | |
512 | for i = 0, 1, 0.06 do | |
513 | local start = 1 | |
514 | local stop = 7 | |
515 | PorplBallM.Scale = Vector3.new(start+i * (stop-start), start+i * (stop-start), start+i * (stop-start)) | |
516 | PorplBall.Transparency = i | |
517 | wait() | |
518 | end | |
519 | explode() | |
520 | end | |
521 | end) | |
522 | wait(6.5) | |
523 | explode() | |
524 | end | |
525 | end) | |
526 | ||
527 | coroutine.resume(coroutine.create(function() | |
528 | while wait(0.0000000001) do if magix == true then | |
529 | --[[ --==/Lightning Magic/==-- | |
530 | lastCF = Torso.Position | |
531 | x1 = Instance.new("Part", workspace) | |
532 | x1.Size = Vector3.new(1, 1, 1) | |
533 | x1.CanCollide = false | |
534 | x1.Anchored = true | |
535 | x1.Transparency = 1 | |
536 | spawn(function() | |
537 | while true do | |
538 | wait(-1) | |
539 | x1.CFrame = Char.Torso.CFrame * CFrame.Angles(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))) * CFrame.new(0, 0, 6) | |
540 | end | |
541 | end) | |
542 | for i = 1, math.huge do | |
543 | local dist2 = (lastCF-x1.Position).magnitude | |
544 | x2 = Instance.new("Part", workspace) | |
545 | x2.Size = Vector3.new(1, 1, 1) | |
546 | x2.Material = "Neon" | |
547 | x2.BrickColor = BrickColor.new("Really red") | |
548 | x2.CFrame = CFrame.new(lastCF, x1.Position) * CFrame.new(0, 0, -dist2/2) | |
549 | x2.CanCollide = false | |
550 | x2.Anchored = true | |
551 | local m = Instance.new("BlockMesh", x2) | |
552 | m.Scale = Vector3.new(0.5, 0.5, dist2) | |
553 | lastCF = x1.Position | |
554 | spawn(function() | |
555 | for i = 1, 100 do | |
556 | x = m.Scale.x/10 | |
557 | y = m.Scale.x/10 | |
558 | m.Scale = m.Scale-Vector3.new(x, y, 0) | |
559 | wait() | |
560 | end | |
561 | end) | |
562 | game.Debris:AddItem(x2, 0.35) | |
563 | wait() | |
564 | end | |
565 | x1:Destroy() | |
566 | ]]-- | |
567 | --=/Right Arm Magic/=-- | |
568 | local ramagic = Instance.new("Part", Char) | |
569 | ramagic.FormFactor = "Custom" | |
570 | ramagic.Anchored = true | |
571 | ramagic.CanCollide = false | |
572 | ramagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
573 | ramagic.TopSurface = 10 | |
574 | ramagic.BottomSurface = 10 | |
575 | ramagic.LeftSurface = 10 | |
576 | ramagic.RightSurface = 10 | |
577 | ramagic.FrontSurface=10 | |
578 | ramagic.BackSurface=10 | |
579 | ramagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
580 | ramagic.CFrame = ra.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
581 | local lt = Instance.new("PointLight", ramagic) | |
582 | lt.Brightness = 100 | |
583 | lt.Range = 5 | |
584 | lt.Color = Color3.new(0, 0, 65/100) | |
585 | local ramagicM = Instance.new("BlockMesh", ramagic) | |
586 | ||
587 | --=/Left Arm Magic/=-- | |
588 | local lamagic = Instance.new("Part", Char) | |
589 | lamagic.FormFactor = "Custom" | |
590 | lamagic.Anchored = true | |
591 | lamagic.CanCollide = false | |
592 | lamagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
593 | lamagic.TopSurface = 10 | |
594 | lamagic.BottomSurface = 10 | |
595 | lamagic.LeftSurface = 10 | |
596 | lamagic.RightSurface = 10 | |
597 | lamagic.FrontSurface=10 | |
598 | lamagic.BackSurface=10 | |
599 | lamagic.BrickColor=BrickColor.new(magicclrs[math.random(1,#magicclrs)]) | |
600 | lamagic.CFrame = la.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
601 | local lt2 = Instance.new("PointLight", lamagic) | |
602 | lt2.Brightness = 100 | |
603 | lt2.Range = 6 | |
604 | lt2.Color = Color3.new(0, 0, 65/100) | |
605 | local lamagicM = Instance.new("BlockMesh", lamagic) | |
606 | --[[optional | |
607 | --=/Right Leg Magic/=-- | |
608 | local rlmagic = Instance.new("Part", Char) | |
609 | rlmagic.FormFactor = "Custom" | |
610 | rlmagic.Anchored = true | |
611 | rlmagic.CanCollide = false | |
612 | rlmagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
613 | rlmagic.TopSurface = 10 | |
614 | rlmagic.BottomSurface = 10 | |
615 | rlmagic.LeftSurface = 10 | |
616 | rlmagic.RightSurface = 10 | |
617 | rlmagic.FrontSurface=10 | |
618 | rlmagic.BackSurface=10 | |
619 | rlmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
620 | rlmagic.CFrame = rl.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
621 | local lt3 = Instance.new("PointLight", rlmagic) | |
622 | lt3.Brightness = 123123 | |
623 | lt3.Range = 6 | |
624 | lt3.Color = Color3.new(1, 0, 1) | |
625 | local rlmagicM = Instance.new("BlockMesh", rlmagic) | |
626 | ||
627 | --=/Left Leg Magic/=-- | |
628 | local llmagic = Instance.new("Part", Char) | |
629 | llmagic.FormFactor = "Custom" | |
630 | llmagic.Anchored = true | |
631 | llmagic.CanCollide = false | |
632 | llmagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
633 | llmagic.TopSurface = 10 | |
634 | llmagic.BottomSurface = 10 | |
635 | llmagic.LeftSurface = 10 | |
636 | llmagic.RightSurface = 10 | |
637 | llmagic.FrontSurface=10 | |
638 | llmagic.BackSurface=10 | |
639 | llmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
640 | llmagic.CFrame = ll.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
641 | local lt4 = Instance.new("PointLight", llmagic) | |
642 | lt4.Brightness = 123123 | |
643 | lt4.Range = 6 | |
644 | lt4.Color = Color3.new(1, 0, 1) | |
645 | local llmagicM = Instance.new("BlockMesh", llmagic) | |
646 | ]] | |
647 | game:GetService("Debris"):AddItem(lamagic, 0.85) | |
648 | game:GetService("Debris"):AddItem(ramagic, 0.85) | |
649 | --[[ | |
650 | game:GetService("Debris"):AddItem(rlmagic, 0.85) | |
651 | game:GetService("Debris"):AddItem(llmagic, 0.85) | |
652 | ]]-- | |
653 | coroutine.wrap(function() | |
654 | for i = 1, 10 do | |
655 | ramagicM.Scale = ramagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
656 | ramagic.CFrame = ramagic.CFrame * CFrame.new(0, 0.2, 0) | |
657 | lamagicM.Scale = lamagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
658 | lamagic.CFrame = lamagic.CFrame * CFrame.new(0, 0.2, 0) | |
659 | --[[ | |
660 | rlmagicM.Scale = rlmagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
661 | rlmagic.CFrame = rlmagic.CFrame * CFrame.new(0, 0.2, 0) | |
662 | llmagicM.Scale = llmagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
663 | llmagic.CFrame = llmagic.CFrame * CFrame.new(0, 0.2, 0) | |
664 | ]]-- | |
665 | wait() | |
666 | end | |
667 | end)() | |
668 | end | |
669 | end | |
670 | end)) | |
671 | ||
672 | --[[local bodyg = Instance.new("BodyGyro", Torso) | |
673 | bodyg.MaxTorque = Vector3.new(0, math.huge, 0) | |
674 | while true do game:GetService("RunService").RenderStepped:wait() | |
675 | bodyg.CFrame = Camera.CoordinateFrame | |
676 | end]]-- | |
677 | ||
678 | ||
679 | mouse.KeyDown:connect(function(key) | |
680 | if key == "0" and sprinting == false then | |
681 | sprinting = true | |
682 | Humanoid.WalkSpeed = 60 | |
683 | elseif key == "q" and magix == true then | |
684 | magix = false | |
685 | for i = 65/255, 1, -0.1 do wait() | |
686 | chak.Color = Color3.new(i, i, i) | |
687 | end | |
688 | elseif key == "q" and magix == false then | |
689 | magix = true | |
690 | for i = 0, 65/255, 0.1 do wait() | |
691 | chak.Color = Color3.new(0, 0, i) | |
692 | end | |
693 | end | |
694 | end) | |
695 | ||
696 | mouse.KeyUp:connect(function(key) | |
697 | if key == "0" and sprinting == true then | |
698 | sprinting = false | |
699 | Humanoid.WalkSpeed = 10 | |
700 | end | |
701 | end) | |
702 | ||
703 | --==/GAMEPAD CONTROLS/==-- | |
704 | ||
705 | game:GetService("UserInputService").InputBegan:connect(function(input) | |
706 | if input.UserInputType == Enum.UserInputType.Gamepad1 then | |
707 | if input.KeyCode == Enum.KeyCode.ButtonX and magix == false then | |
708 | magix = true | |
709 | elseif input.KeyCode == Enum.KeyCode.ButtonX and magix == true then | |
710 | magix = false | |
711 | elseif input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == false then | |
712 | sprinting = true | |
713 | end | |
714 | end | |
715 | end) | |
716 | ||
717 | game:GetService("UserInputService").InputEnded:connect(function(input) | |
718 | if input.UserInputType == Enum.UserInputType.Gamepad1 then | |
719 | if input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == true then | |
720 | sprinting = false | |
721 | end | |
722 | end | |
723 | end) | |
724 | ||
725 | ||
726 | ||
727 | game:GetService("RunService").Stepped:connect(function() | |
728 | angle = (angle % 100) + anglespeed/10 | |
729 | rootpart.CanCollide = false | |
730 | local speed = Vector3.new(rootpart.Velocity.X, 0, rootpart.Velocity.Z).magnitude | |
731 | if(Humanoid.Jump) and Torso.Velocity.Y > 1 and speed < 2 then | |
732 | animpose = "Jump" | |
733 | ||
734 | elseif speed < 2 then -- idle | |
735 | animpose = "Idle" | |
736 | ||
737 | elseif sprinting == true then -- sprinting | |
738 | animpose = "Sprinting" | |
739 | ||
740 | elseif speed > 2 then -- walking | |
741 | walking = true | |
742 | animpose = "Moving" | |
743 | end | |
744 | --==/ANIMATION FUNCTIONS/==-- | |
745 | if animpose == "Idle" and anim == false then -- idle | |
746 | anglespeed = 0.5 | |
747 | rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.6, -0.15) * CFrame.Angles(math.rad(5) + math.sin(angle) * 0.05, math.rad(15), math.rad(15) + math.sin(angle) * 0.02), 0.1) | |
748 | lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.6, 0.15) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-15) + -math.sin(angle) * 0.02), 0.1) | |
749 | rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.5, -0.4) * CFrame.Angles(math.rad(-20), math.rad(-35), 0), 0.1) | |
750 | llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.9, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.1) | |
751 | neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-6.5), math.rad(-40), math.sin(angle) * 0.01), 0.1) | |
752 | rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-90), 0, math.rad(220)), 0.1) | |
753 | ||
754 | elseif animpose == "Moving" and anim == false and walking == true then -- walk | |
755 | anglespeed = 0.5 | |
756 | rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1) | |
757 | lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1) | |
758 | rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, -0.3) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1) | |
759 | llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(math.rad(-7), math.rad(5), 0), 0.1) | |
760 | neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(15), Head.RotVelocity.Y/25, 0), 0.1) | |
761 | rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-110), -rootpart.RotVelocity.Y/25, math.rad(180)), 0.1) | |
762 | Humanoid.WalkSpeed = 6 | |
763 | ||
764 | elseif animpose == "Sprinting" and anim == false then -- sprint | |
765 | anglespeed = 0.5 | |
766 | rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1) | |
767 | lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1) | |
768 | rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1) | |
769 | llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(5), 0), 0.1) | |
770 | neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(40), Head.RotVelocity.Y/15, 0), 0.1) | |
771 | rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-135), -rootpart.RotVelocity.Y/15, math.rad(180)), 0.1) | |
772 | Humanoid.WalkSpeed = 40 | |
773 | end | |
774 | end) | |
775 | ||
776 | wait(1) | |
777 | ------------------------------------------------------------------------------------ | |
778 | local Character = owner.Character --game.Workspace.fefio92142 | |
779 | ||
780 | ||
781 | ------------------------------------------------------------------------------------- | |
782 | ------------------------------------------------------------------------------------- | |
783 | ||
784 | local Color = 0,0,0 | |
785 | ||
786 | local Num = 0.5 | |
787 | ||
788 | local Num2 = 4 -------------Mods:1,4,8,10,15,20------------------------------------- | |
789 | local Size = 0.8 | |
790 | local Rate = 300 | |
791 | ------------------------------------------------------------------------------------- | |
792 | - | rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.6, -0.15) * CFrame.Angles(math.rad(5) + math.sin(angle) * 0.02, math.rad(15), math.rad(15) + math.sin(angle) * 0.02), 0.1) |
792 | + | |
793 | local Character = Player.Character | |
794 | Torso = Character:WaitForChild'Torso' | |
795 | ||
796 | local Wing1 = Instance.new("Part",Character) | |
797 | Wing1.FormFactor = Enum.FormFactor.Custom | |
798 | Wing1.Size = Vector3.new(.2, .2, .2) | |
799 | Wing1.Name = "WIng_1" | |
800 | ||
801 | ||
802 | local Wing2 = Wing1:Clone() | |
803 | Wing2.Parent = Torso | |
804 | local x,y,z = 0,-1,-6 | |
805 | ||
806 | Wld = function(a,b,cf) | |
807 | local Weld = Instance.new('Weld',a) | |
808 | Weld.Part0 = a | |
809 | Weld.Part1 = b | |
810 | Weld.C1 = cf | |
811 | return Weld | |
812 | end | |
813 | ||
814 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90))) | |
815 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90))) | |
816 | ||
817 | ||
818 | ------------------------------------------------------------------------------------------------ | |
819 | local Player = owner | |
820 | local Character = Player.Character | |
821 | Torso = Character:WaitForChild'Torso' | |
822 | ||
823 | local Wing1 = Instance.new("Part",Character) | |
824 | Wing1.FormFactor = Enum.FormFactor.Custom | |
825 | Wing1.Size = Vector3.new(.2, .2, .2) | |
826 | Wing1.Name = "WIng_1" | |
827 | ||
828 | ||
829 | ||
830 | local Wing2 = Wing1:Clone() | |
831 | Wing2.Parent = Torso | |
832 | local x,y,z = 0,-1,-6 | |
833 | ||
834 | Wld = function(a,b,cf) | |
835 | local Weld = Instance.new('Weld',a) | |
836 | Weld.Part0 = a | |
837 | Weld.Part1 = b | |
838 | Weld.C1 = cf | |
839 | return Weld | |
840 | end | |
841 | ||
842 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90))) | |
843 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90))) | |
844 | ||
845 | print'Loaded' | |
846 | ||
847 | ||
848 | ------------------------------------------------------------------------------------------------ | |
849 | local Player = owner | |
850 | local Character = Player.Character | |
851 | Torso = Character:WaitForChild'Torso' | |
852 | ||
853 | local Wing1 = Instance.new("Part",Character) | |
854 | Wing1.FormFactor = Enum.FormFactor.Custom | |
855 | Wing1.Size = Vector3.new(.2, .2, .2) | |
856 | Wing1.Name = "WIng_1" | |
857 | ||
858 | ||
859 | ||
860 | local Wing2 = Wing1:Clone() | |
861 | Wing2.Parent = Torso | |
862 | local x,y,z = 0,-1,-6 | |
863 | ||
864 | Wld = function(a,b,cf) | |
865 | local Weld = Instance.new('Weld',a) | |
866 | Weld.Part0 = a | |
867 | Weld.Part1 = b | |
868 | Weld.C1 = cf | |
869 | return Weld | |
870 | end | |
871 | ||
872 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90))) | |
873 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90))) | |
874 | ||
875 | ||
876 | ------------------------------------------------------------------------------------------------ | |
877 | local Player = owner | |
878 | local Character = Player.Character | |
879 | Torso = Character:WaitForChild'Torso' | |
880 | ||
881 | local Wing1 = Instance.new("Part",Character) | |
882 | Wing1.FormFactor = Enum.FormFactor.Custom | |
883 | Wing1.Size = Vector3.new(.2, .2, .2) | |
884 | Wing1.Name = "WIng_1" | |
885 | ||
886 | ||
887 | ||
888 | local Wing2 = Wing1:Clone() | |
889 | Wing2.Parent = Torso | |
890 | local x,y,z = 0,-1,-6 | |
891 | ||
892 | Wld = function(a,b,cf) | |
893 | local Weld = Instance.new('Weld',a) | |
894 | Weld.Part0 = a | |
895 | Weld.Part1 = b | |
896 | Weld.C1 = cf | |
897 | return Weld | |
898 | end | |
899 | ||
900 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90))) | |
901 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90))) | |
902 | ||
903 | print'Loaded' | |
904 | ||
905 | ||
906 | ||
907 | ------------------------------------------------------------------------------------------------ | |
908 | local Player = owner | |
909 | local Character = Player.Character | |
910 | Torso = Character:WaitForChild'Torso' | |
911 | ||
912 | local Wing1 = Instance.new("Part",Character) | |
913 | Wing1.FormFactor = Enum.FormFactor.Custom | |
914 | Wing1.Size = Vector3.new(.2, .2, .2) | |
915 | Wing1.Name = "WIng_1" | |
916 | ||
917 | ||
918 | ||
919 | local Wing2 = Wing1:Clone() | |
920 | Wing2.Parent = Torso | |
921 | local x,y,z = 0,-1,-6 | |
922 | ||
923 | Wld = function(a,b,cf) | |
924 | local Weld = Instance.new('Weld',a) | |
925 | Weld.Part0 = a | |
926 | Weld.Part1 = b | |
927 | Weld.C1 = cf | |
928 | return Weld | |
929 | end | |
930 | ||
931 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90))) | |
932 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90))) | |
933 | ||
934 | print'Loaded' | |
935 | ||
936 | m = owner | |
937 | char = m.Character | |
938 | local txt = Instance.new("BillboardGui", char) | |
939 | txt.Adornee = char.Head | |
940 | txt.Name = "_status" | |
941 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
942 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
943 | local text = Instance.new("TextLabel", txt) | |
944 | text.Size = UDim2.new(10, 0, 7, 0) | |
945 | text.FontSize = "Size24" | |
946 | text.TextScaled = true | |
947 | text.TextTransparency = 0 | |
948 | text.BackgroundTransparency = 1 | |
949 | text.TextTransparency = 0 | |
950 | text.TextStrokeTransparency = 1 | |
951 | text.Font = "Arcade" | |
952 | text.TextStrokeColor3 = Color3.new(0, 0, 0) | |
953 | v = Instance.new("Part") | |
954 | v.Name = "ColorBrick" | |
955 | v.Parent = m.Character | |
956 | v.FormFactor = "Symmetric" | |
957 | v.Anchored = true | |
958 | v.CanCollide = false | |
959 | v.BottomSurface = "Smooth" | |
960 | v.TopSurface = "Smooth" | |
961 | v.Size = Vector3.new(10, 5, 3) | |
962 | v.Transparency = 1 | |
963 | v.CFrame = char.Torso.CFrame | |
964 | v.BrickColor = BrickColor.new("Really black") | |
965 | v.Transparency = 1 | |
966 | v.Shape = "Block" | |
967 | spawn(function() | |
968 | local TweenService = game:GetService("TweenService") | |
969 | local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)} | |
970 | local Int = 0 | |
971 | while wait(0.5) do | |
972 | if Int == #Colours then Int = 0 end | |
973 | Int = Int+1 | |
974 | TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play() | |
975 | end | |
976 | end) | |
977 | text.Text = "God Of Flex" |