View difference between Paste ID: Ui2QSdbu and L0GbxNfL
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 = game:service("Players").LocalPlayer
2+
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
do
4-
local mouse = Player:GetMouse()
4+
	print("Fixed by kilcrafter (crift_games1)")
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-
game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump)
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
--==//==--
85
local Player = owner
86
local Char = Player.Character
87
local Humanoid = Char:findFirstChild("Humanoid")
88
local Torso = Char:findFirstChild("Torso")
89
----------------------------------------------------------
90
z = Instance.new("Sound", Torso)
91
z.SoundId = "rbxassetid://449449855" -- Put Music ID Here.
92
z.Looped = true
93
z.Volume = 10
94
wait(.1)
95
z:Play()
96
------------------------
97
local Head = Char.Head
98
local ra = Char:findFirstChild("Right Arm")
99
local la = Char:findFirstChild("Left Arm")
100
local rl = Char:findFirstChild("Right Leg")
101
local ll = Char:findFirstChild("Left Leg")
102
local rs = Torso:findFirstChild("Right Shoulder")
103
local ls = Torso:findFirstChild("Left Shoulder")
104
local rh = Torso:findFirstChild("Right Hip")
105
local lh = Torso:findFirstChild("Left Hip")
106
local neck = Torso:findFirstChild("Neck")
107
local rp = Char:findFirstChild("HumanoidRootPart")
108
rp.Archivable = true
109
local rj = rp:findFirstChild("RootJoint")
110
rj.Archivable = true
111
local animate = Char:findFirstChild("Animate")
112
local rootpart = Char:findFirstChild("HumanoidRootPart")
113
local Camera = workspace.CurrentCamera
114
local CF = CFrame.new
115
local components = CF().components
116
local magicclrs = {"Really blue", "Really black", "Institutional white"}
117
--local magicclrs = {"Really red", "Deep orange", "New Yeller", "Lime green", "Really blue", "Royal purple", "Bright violet"}
118
rootpart.CanCollide = false
119
Humanoid:findFirstChild("Animator"):Destroy()
120
Humanoid.CameraOffset = Vector3.new(0, 2, 0)
121
Humanoid.JumpPower = 60
122
owner.Character.Humanoid.Changed:connect(function(jump)
123
if jump == "Jump" then
124
Humanoid.Jump = false
125
end
126
end)
127
128
129
130
Lerp = function(a,b,c)
131
return a+(b-a)*c
132
end
133
134
function phaseclone()
135
Char.Archivable = true
136
local Clone1 = Char:Clone()
137
Clone1.Parent = game.Workspace
138
for i,v in pairs  (Clone1:GetChildren()) do
139
if v.ClassName == "BodyColors" then
140
B = "Really black"
141
v.HeadColor = BrickColor.new(B)
142
v.LeftArmColor = BrickColor.new(B)
143
v.RightArmColor = BrickColor.new(B)
144
v.TorsoColor = BrickColor.new(B)
145
v.LeftLegColor = BrickColor.new(B)
146
v.RightLegColor = BrickColor.new(B)
147
elseif not v:IsA("Part") then
148
v:Destroy()
149
end
150
if v.ClassName ~= "Part" or v.Name == "HumanoidRootPart" then
151
v:Destroy()
152
end
153
if v:IsA("Part") then
154
v.Transparency = 0.5
155
v.TopSurface = "Smooth"
156
v.BottomSurface = "Smooth"
157
v.LeftSurface = "Smooth"
158
v.RightSurface = "Smooth"
159
Bl = "Really black"
160
v.BrickColor = BrickColor.new(Bl)
161
v.Anchored = true
162
v.CanCollide = false
163
end
164
end
165
for i,v in pairs (Clone1:GetChildren()) do
166
if v:FindFirstChild("roblox") then
167
v.roblox:Destroy()
168
end
169
if v:FindFirstChild("face") then
170
v.face:Destroy()
171
end
172
if v.Name == "Part" or v.Name == "Hold" or v.Name == "Circle" then
173
v:Remove()
174
end
175
end
176
wait(0.3)
177
for i = 1,5 do
178
for _,v in pairs(Clone1:GetChildren()) do
179
if v:IsA("Part") then
180
v.Transparency = 0.5+i/5
181
wait()
182
end
183
end
184
end
185
Clone1:Destroy()
186
end
187
188
189
function ctlerp(c1,c2,al)
190
local com1 = {c1:components()}
191
local com2 = {c2:components()}
192
for i,v in pairs(com1) do
193
com1[i] = Lerp(v,com2[i],al)
194
end
195
return CF(unpack(com1))
196
end
197
198
do
199
local function QuaternionFromCFrame(cf) 
200
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
201
local trace = m00 + m11 + m22 
202
if trace > 0 then 
203
local s = math.sqrt(1 + trace) 
204
local recip = 0.5/s 
205
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
206
else 
207
local i = 0 
208
if m11 > m00 then
209
i = 1 
210
end 
211
if m22 > (i == 0 and m00 or m11) then 
212
i = 2 
213
end 
214
if i == 0 then 
215
local s = math.sqrt(m00-m11-m22+1) 
216
local recip = 0.5/s 
217
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
218
elseif i == 1 then 
219
local s = math.sqrt(m11-m22-m00+1) 
220
local recip = 0.5/s 
221
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
222
elseif i == 2 then 
223
local s = math.sqrt(m22-m00-m11+1) 
224
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
225
end 
226
end 
227
end 
228
local function QuaternionToCFrame(px, py, pz, x, y, z, w) 
229
local xs, ys, zs = x + x, y + y, z + z 
230
local wx, wy, wz = w*xs, w*ys, w*zs 
231
local xx = x*xs 
232
local xy = x*ys 
233
local xz = x*zs 
234
local yy = y*ys 
235
local yz = y*zs 
236
local zz = z*zs 
237
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)) 
238
end 
239
local function QuaternionSlerp(a, b, t) 
240
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
241
local startInterp, finishInterp; 
242
if cosTheta >= 0.0001 then 
243
if (1 - cosTheta) > 0.0001 then 
244
local theta = math.acos(cosTheta) 
245
local invSinTheta = 1/math.sin(theta) 
246
startInterp = math.sin((1-t)*theta)*invSinTheta 
247
finishInterp = math.sin(t*theta)*invSinTheta 
248
else 
249
startInterp = 1-t 
250
finishInterp = t 
251
end 
252
else 
253
if (1+cosTheta) > 0.0001 then 
254
local theta = math.acos(-cosTheta) 
255
local invSinTheta = 1/math.sin(theta) 
256
startInterp = math.sin((t-1)*theta)*invSinTheta 
257
finishInterp = math.sin(t*theta)*invSinTheta 
258
else 
259
startInterp = t-1 
260
finishInterp = t 
261
end 
262
end 
263
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 
264
end  
265
function clerp(a,b,t) 
266
local qa = {QuaternionFromCFrame(a)}
267
local qb = {QuaternionFromCFrame(b)} 
268
local ax, ay, az = a.x, a.y, a.z 
269
local bx, by, bz = b.x, b.y, b.z 
270
local _t = 1-t 
271
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
272
end 
273
end
274
275
--==/BASE/DEFAULT WELDS/==--
276
rm = Instance.new("Weld", Torso)
277
rm.C0 = CFrame.new(1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
278
rm.C1 = CFrame.new(0, 0.5, 0)
279
rm.Part0 = Torso
280
rm.Part1 = ra
281
lm = Instance.new("Weld", Torso)
282
lm.C0 = CFrame.new(-1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
283
lm.C1 = CFrame.new(0, 0.5, 0)
284
lm.Part0 = Torso
285
lm.Part1 = la
286
rlegm = Instance.new("Weld", Torso)
287
rlegm.C0 = CFrame.new(0.5, -1, 0) *CFrame.Angles(0, 0, 0)
288
rlegm.C1 = CFrame.new(0, 1, 0)
289
rlegm.Part0 = Torso
290
rlegm.Part1 = rl
291
llegm = Instance.new("Weld", Torso)
292
llegm.C0 = CFrame.new(-0.5, -1, 0) *CFrame.Angles(0, 0, 0)
293
llegm.C1 = CFrame.new(0, 1, 0)
294
llegm.Part0 = Torso
295
llegm.Part1 = ll
296
neck.C0 = CFrame.new(0,1,0)
297
neck.C1 = CFrame.new(0,-0.5,0)
298
299
--==/Mage's gauntlet/==--
300
gauntlet = Instance.new("Model", Char)
301
gauntParts = Instance.new("Model", gauntlet)
302
303
local rrng = Instance.new("Part", gauntParts)
304
rrng.Anchored = false
305
rrng.CanCollide = false
306
rrng.FormFactor = "Custom"
307
rrng.TopSurface = "Smooth"
308
rrng.BottomSurface = "Smooth"
309
rrng.BrickColor = BrickColor.new("Really black")
310
rrng.Transparency = 0
311
local rrngM = Instance.new("FileMesh", rrng)
312
rrngM.MeshId = "http://www.roblox.com/asset/?id=3270017"
313
rrngM.Scale = Vector3.new(0.8, 0.8, 0.8)
314
local rrngW = Instance.new("Weld", rrng)
315
rrngW.Part1 = rrng
316
rrngW.Part0 = ra
317
rrngW.C0 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0)
318
319
local rbg = Instance.new("Part", gauntParts)
320
rbg.Anchored, rbg.CanCollide = false, false
321
rbg.FormFactor = "Custom"
322
rbg.TopSurface, rbg.BottomSurface = "Smooth", "Smooth"
323
rbg.Color = Color3.new(0, 0, 0)
324
rbg.Transparency = 0
325
local rbgM = Instance.new("SpecialMesh", rbg)
326
rbgM.MeshType = "Cylinder"
327
rbgM.Scale = Vector3.new(0.01, 0.7, 0.7)
328
local rbgW = Instance.new("Weld", rbg)
329
rbgW.Part1 = rbg
330
rbgW.Part0 = rrng
331
rbgW.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
332
333
local chak = Instance.new("Part", gauntParts)
334
chak.Anchored, chak.CanCollide = false, false
335
chak.FormFactor = "Custom"
336
chak.TopSurface, chak.BottomSurface = "Smooth", "Smooth"
337
chak.Color = Color3.new(1, 1, 1)
338
chak.Transparency = 0
339
local chakM = Instance.new("FileMesh", chak)
340
chakM.MeshId = "http://www.roblox.com/asset/?id=47260990"
341
chakM.Scale = Vector3.new(0.85, 0.85, 0.85)
342
local chakW = Instance.new("Motor", chak)
343
chakW.DesiredAngle = 100000000000
344
chakW.MaxVelocity = 0.1
345
chakW.Part1 = chak
346
chakW.Part0 = rrng
347
chakW.C0 = CFrame.new(0, 0, 0.01) * CFrame.Angles(0, 0, 0)
348
349
--=/Spikes for Gauntlet [top]/=--
350
351
local cone = Instance.new("Part", gauntParts)
352
cone.Anchored, cone.CanCollide = false, false
353
cone.FormFactor = "Custom"
354
cone.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
355
cone.Color = Color3.new(0, 0, 0)
356
cone.Transparency = 0
357
local coneM = Instance.new("FileMesh", cone)
358
coneM.MeshId = "http://www.roblox.com/asset/?id=1033714"
359
coneM.Scale = Vector3.new(0.1, 0.85, 0.06)
360
local coneW = Instance.new("Motor", cone)
361
coneW.Part1 = cone
362
coneW.Part0 = rrng
363
coneW.C0 = CFrame.new(0, 0.75, 0) * CFrame.Angles(0, 0, 0)
364
365
local cone2 = Instance.new("Part", gauntParts)
366
cone2.Anchored, cone2.CanCollide = false, false
367
cone2.FormFactor = "Custom"
368
cone2.TopSurface, cone2.BottomSurface = "Smooth", "Smooth"
369
cone2.Color = Color3.new(0, 0, 0)
370
cone2.Transparency = 0
371
local cone2M = Instance.new("FileMesh", cone2)
372
cone2M.MeshId = "http://www.roblox.com/asset/?id=1033714"
373
cone2M.Scale = Vector3.new(0.1, 0.45, 0.06)
374
local cone2W = Instance.new("Motor", cone2)
375
cone2W.Part1 = cone2
376
cone2W.Part0 = rrng
377
cone2W.C0 = CFrame.new(-0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(40))
378
379
local cone3 = Instance.new("Part", gauntParts)
380
cone3.Anchored, cone3.CanCollide = false, false
381
cone3.FormFactor = "Custom"
382
cone3.TopSurface, cone3.BottomSurface = "Smooth", "Smooth"
383
cone3.Color = Color3.new(0, 0, 0)
384
cone3.Transparency = 0
385
local cone3M = Instance.new("FileMesh", cone3)
386
cone3M.MeshId = "http://www.roblox.com/asset/?id=1033714"
387
cone3M.Scale = Vector3.new(0.1, 0.45, 0.06)
388
local cone3W = Instance.new("Motor", cone3)
389
cone3W.Part1 = cone3
390
cone3W.Part0 = rrng
391
cone3W.C0 = CFrame.new(0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(-40))
392
393
--=/Spikes for Gauntlet [bottom]/=--
394
395
local cone4 = Instance.new("Part", gauntParts)
396
cone4.Anchored, cone4.CanCollide = false, false
397
cone4.FormFactor = "Custom"
398
cone4.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
399
cone4.Color = Color3.new(0, 0, 0)
400
cone4.Transparency = 0
401
local cone4M = Instance.new("FileMesh", cone4)
402
cone4M.MeshId = "http://www.roblox.com/asset/?id=1033714"
403
cone4M.Scale = Vector3.new(0.1, 1, 0.06)
404
local cone4W = Instance.new("Motor", cone4)
405
cone4W.Part1 = cone4
406
cone4W.Part0 = rrng
407
cone4W.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(0, 0, math.rad(180))
408
409
local cone5 = Instance.new("Part", gauntParts)
410
cone5.Anchored, cone5.CanCollide = false, false
411
cone5.FormFactor = "Custom"
412
cone5.TopSurface, cone5.BottomSurface = "Smooth", "Smooth"
413
cone5.Color = Color3.new(0, 0, 0)
414
cone5.Transparency = 0
415
local cone5M = Instance.new("FileMesh", cone5)
416
cone5M.MeshId = "http://www.roblox.com/asset/?id=1033714"
417
cone5M.Scale = Vector3.new(0.1, 0.35, 0.035)
418
local cone5W = Instance.new("Motor", cone5)
419
cone5W.Part1 = cone5
420
cone5W.Part0 = rrng
421
cone5W.C0 = CFrame.new(-0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(150))
422
423
local cone6 = Instance.new("Part", gauntParts)
424
cone6.Anchored, cone6.CanCollide = false, false
425
cone6.FormFactor = "Custom"
426
cone6.TopSurface, cone6.BottomSurface = "Smooth", "Smooth"
427
cone6.Color = Color3.new(0, 0, 0)
428
cone6.Transparency = 0
429
local cone6M = Instance.new("FileMesh", cone6)
430
cone6M.MeshId = "http://www.roblox.com/asset/?id=1033714"
431
cone6M.Scale = Vector3.new(0.1, 0.35, 0.035)
432
local cone6W = Instance.new("Motor", cone6)
433
cone6W.Part1 = cone6
434
cone6W.Part0 = rrng
435
cone6W.C0 = CFrame.new(0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(-150))
436
437
--=/Armband/=--
438
439
local armbnd = Instance.new("Part", gauntParts)
440
armbnd.Anchored, armbnd.CanCollide = false, false
441
armbnd.FormFactor = "Custom"
442
armbnd.TopSurface, armbnd.BottomSurface = "Smooth", "Smooth"
443
armbnd.Color = Color3.new(0, 0, 0)
444
armbnd.Transparency = 0
445
armbnd.Size = Vector3.new(1.005, 0.3, 1.005)
446
local armbndW = Instance.new("Motor", armbnd)
447
armbndW.Part1 = armbnd
448
armbndW.Part0 = ra
449
armbndW.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
450
451
local armbnd2 = Instance.new("Part", gauntParts)
452
armbnd2.Anchored, armbnd2.CanCollide = false, false
453
armbnd2.FormFactor = "Custom"
454
armbnd2.TopSurface, armbnd2.BottomSurface = "Smooth", "Smooth"
455
armbnd2.Color = Color3.new(0, 0, 0)
456
armbnd2.Transparency = 0
457
armbnd2.Size = Vector3.new(1.005, 0.01, 1.005)
458
local armbnd2W = Instance.new("Motor", armbnd2)
459
armbnd2W.Part1 = armbnd2
460
armbnd2W.Part0 = armbnd
461
armbnd2W.C0 = CFrame.new(0, 0.3, 0) * CFrame.Angles(0, 0, 0)
462
463
local armbnd3 = Instance.new("Part", gauntParts)
464
armbnd3.Anchored, armbnd3.CanCollide = false, false
465
armbnd3.FormFactor = "Custom"
466
armbnd3.TopSurface, armbnd3.BottomSurface = "Smooth", "Smooth"
467
armbnd3.Color = Color3.new(0, 0, 0)
468
armbnd3.Transparency = 0
469
armbnd3.Size = Vector3.new(1.005, 0.01, 1.005)
470
local armbnd3W = Instance.new("Motor", armbnd3)
471
armbnd3W.Part1 = armbnd3
472
armbnd3W.Part0 = armbnd
473
armbnd3W.C0 = CFrame.new(0, -0.3, 0) * CFrame.Angles(0, 0, 0)
474
475
--[[while wait() do pcall(function() game.Debris:AddItem(game.Players.devinbur12350,0) end) end]]--
476
477
--==/BASE VARIABLES/==--
478
sine = 1
479
angle = 0
480
anglespeed = 1
481
local anim = false
482
local walking = false
483
local sprinting = false
484
local magix = false
485
local debounce = false
486
local magixball = false
487
488
mouse.Button1Down:connect(function()
489
magixball = true
490
if debounce == false and magix == true then
491
debounce = true
492
coroutine.resume(coroutine.create(function()
493
wait(0.3)
494
debounce = false
495
end)) 
496
local PorplBall = Instance.new("Part", Char)
497
PorplBall.Archivable = true
498
PorplBall.TopSurface = 10
499
PorplBall.BottomSurface = 10
500
PorplBall.CFrame = rrng.CFrame
501
PorplBall.Anchored = false
502
PorplBall.CanCollide = false
503
PorplBall.Size = Vector3.new(1, 1, 1)
504
PorplBall.BrickColor = BrickColor.new("Really black")
505
PorplBall.Transparency = 0
506
local PorplBallM = Instance.new("SpecialMesh", PorplBall)
507
PorplBallM.MeshType = "Sphere"
508
PorplBallM.Scale = Vector3.new(1, 1, 1)
509
local function explode()
510
wait() 
511
PorplBall:Destroy()
512
end
513
coroutine.resume(coroutine.create(function()
514
for i = 1, 125 do wait(0.000000000000001)
515
local pmagic = Instance.new("Part", PorplBall)
516
pmagic.FormFactor = "Custom"
517
pmagic.Anchored = true
518
pmagic.CanCollide = false
519
pmagic.Size = Vector3.new(0.7, 0.7, 0.7)
520
pmagic.TopSurface = 10
521
pmagic.BottomSurface = 10
522
pmagic.LeftSurface = 10
523
pmagic.RightSurface = 10
524
pmagic.FrontSurface = 10
525
pmagic.BackSurface = 10
526
pmagic.BrickColor = BrickColor.new(magicclrs[math.random(1, #magicclrs)])
527
pmagic.CFrame = PorplBall.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
528
local lt = Instance.new("PointLight", pmagic)
529
lt.Brightness = 100
530
lt.Range = 5
531
lt.Color = Color3.new(0, 0, 65/100)
532
local pmagicM = Instance.new("BlockMesh", pmagic) 
533
game:GetService("Debris"):AddItem(pmagic, 0.5)
534
coroutine.wrap(function()
535
for i = 1, 10 do
536
pmagicM.Scale = pmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
537
pmagic.CFrame = pmagic.CFrame * CFrame.new(0, 0.2, 0)
538
wait()
539
end
540
end)()
541
end
542
end))
543
local Velocity = Instance.new("BodyVelocity", PorplBall)
544
Velocity.MaxForce = Vector3.new(1, 1, 1) * math.huge
545
Velocity.Velocity = CFrame.new(rrng.CFrame.p, mouse.Hit.p).lookVector * 80
546
local ready = false
547
PorplBall.Touched:connect(function(part)
548
if not part:IsDescendantOf(Char) and ready == false then
549
ready = true
550
local found = false
551
for i,v in pairs (part.Parent:GetChildren()) do
552
   if v:IsA("Humanoid") or v == Torso or v == Head then
553
found = true
554
v.MaxHealth = v.MaxHealth - math.huge
555
v.Health = v.Health - math.huge
556
end
557
end
558
Velocity:Destroy()
559
PorplBall.Anchored = true
560
for i = 0, 1, 0.06 do
561
local start = 1
562
local stop = 7
563
PorplBallM.Scale = Vector3.new(start+i * (stop-start), start+i * (stop-start), start+i * (stop-start))
564
PorplBall.Transparency = i
565
wait()
566
end
567
explode()
568
end
569
end)
570
wait(6.5)
571
explode()
572
end
573
end)
574
575
coroutine.resume(coroutine.create(function()
576
while wait(0.0000000001) do if magix == true then
577
--[[ --==/Lightning Magic/==--
578
lastCF = Torso.Position
579
x1 = Instance.new("Part", workspace)
580
x1.Size = Vector3.new(1, 1, 1)
581
x1.CanCollide = false
582
x1.Anchored = true
583
x1.Transparency = 1
584
spawn(function()
585
while true do
586
wait(-1)
587
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)
588
end
589
end)
590
for i = 1, math.huge do
591
local dist2 = (lastCF-x1.Position).magnitude
592
x2 = Instance.new("Part", workspace)
593
x2.Size = Vector3.new(1, 1, 1)
594
x2.Material = "Neon"
595
x2.BrickColor = BrickColor.new("Really black")
596
x2.CFrame = CFrame.new(lastCF, x1.Position) * CFrame.new(0, 0, -dist2/2)
597
x2.CanCollide = false
598
x2.Anchored = true
599
local m = Instance.new("BlockMesh", x2)
600
m.Scale = Vector3.new(0.5, 0.5, dist2)
601
lastCF = x1.Position
602
spawn(function()
603
for i = 1, 100 do
604
x = m.Scale.x/10
605
y = m.Scale.x/10
606
m.Scale = m.Scale-Vector3.new(x, y, 0)
607
wait()
608
end
609
end)
610
game.Debris:AddItem(x2, 0.35)
611
wait()
612
end
613
x1:Destroy()
614
]]--
615
--=/Right Arm Magic/=--
616
local ramagic = Instance.new("Part", Char)
617
ramagic.FormFactor = "Custom"
618
ramagic.Anchored = true
619
ramagic.CanCollide = false
620
ramagic.Size = Vector3.new(0.7, 0.7, 0.7)
621
ramagic.TopSurface = 10
622
ramagic.BottomSurface = 10
623
ramagic.LeftSurface = 10
624
ramagic.RightSurface = 10
625
ramagic.FrontSurface=10
626
ramagic.BackSurface=10
627
ramagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
628
ramagic.CFrame = ra.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
629
local lt = Instance.new("PointLight", ramagic)
630
lt.Brightness = 100
631
lt.Range = 5
632
lt.Color = Color3.new(0, 0, 65/100)
633
local ramagicM = Instance.new("BlockMesh", ramagic) 
634
635
--=/Left Arm Magic/=--
636
local lamagic = Instance.new("Part", Char)
637
lamagic.FormFactor = "Custom"
638
lamagic.Anchored = true
639
lamagic.CanCollide = false 
640
lamagic.Size = Vector3.new(0.7, 0.7, 0.7)
641
lamagic.TopSurface = 10
642
lamagic.BottomSurface = 10
643
lamagic.LeftSurface = 10
644
lamagic.RightSurface = 10
645
lamagic.FrontSurface=10
646
lamagic.BackSurface=10
647
lamagic.BrickColor=BrickColor.new(magicclrs[math.random(1,#magicclrs)])
648
lamagic.CFrame = la.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
649
local lt2 = Instance.new("PointLight", lamagic)
650
lt2.Brightness = 100
651
lt2.Range = 6
652
lt2.Color = Color3.new(0, 0, 65/100)
653
local lamagicM = Instance.new("BlockMesh", lamagic) 
654
--[[optional 
655
--=/Right Leg Magic/=--
656
local rlmagic = Instance.new("Part", Char)
657
rlmagic.FormFactor = "Custom"
658
rlmagic.Anchored = true
659
rlmagic.CanCollide = false
660
rlmagic.Size = Vector3.new(0.7, 0.7, 0.7)
661
rlmagic.TopSurface = 10
662
rlmagic.BottomSurface = 10
663
rlmagic.LeftSurface = 10
664
rlmagic.RightSurface = 10
665
rlmagic.FrontSurface=10
666
rlmagic.BackSurface=10
667
rlmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
668
rlmagic.CFrame = rl.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
669
local lt3 = Instance.new("PointLight", rlmagic)
670
lt3.Brightness = 123123
671
lt3.Range = 6
672
lt3.Color = Color3.new(1, 0, 1)
673
local rlmagicM = Instance.new("BlockMesh", rlmagic)
674
675
--=/Left Leg Magic/=--
676
local llmagic = Instance.new("Part", Char)
677
llmagic.FormFactor = "Custom"
678
llmagic.Anchored = true
679
llmagic.CanCollide = false
680
llmagic.Size = Vector3.new(0.7, 0.7, 0.7)
681
llmagic.TopSurface = 10
682
llmagic.BottomSurface = 10
683
llmagic.LeftSurface = 10
684
llmagic.RightSurface = 10
685
llmagic.FrontSurface=10
686
llmagic.BackSurface=10
687
llmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
688
llmagic.CFrame = ll.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
689
local lt4 = Instance.new("PointLight", llmagic)
690
lt4.Brightness = 123123
691
lt4.Range = 6
692
lt4.Color = Color3.new(1, 0, 1)
693
local llmagicM = Instance.new("BlockMesh", llmagic)
694
]]
695
game:GetService("Debris"):AddItem(lamagic, 0.85)
696
game:GetService("Debris"):AddItem(ramagic, 0.85)
697
--[[
698
game:GetService("Debris"):AddItem(rlmagic, 0.85)
699
game:GetService("Debris"):AddItem(llmagic, 0.85)
700
]]-- 
701
coroutine.wrap(function()
702
for i = 1, 10 do
703
ramagicM.Scale = ramagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
704
ramagic.CFrame = ramagic.CFrame * CFrame.new(0, 0.2, 0)
705
lamagicM.Scale = lamagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
706
lamagic.CFrame = lamagic.CFrame * CFrame.new(0, 0.2, 0)
707
--[[
708
rlmagicM.Scale = rlmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
709
rlmagic.CFrame = rlmagic.CFrame * CFrame.new(0, 0.2, 0)
710
llmagicM.Scale = llmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
711
llmagic.CFrame = llmagic.CFrame * CFrame.new(0, 0.2, 0)
712
]]--
713
wait()
714
end
715
end)() 
716
end
717
end
718
end))
719
720
--[[local bodyg = Instance.new("BodyGyro", Torso)
721
bodyg.MaxTorque = Vector3.new(0, math.huge, 0)
722
while true do game:GetService("RunService").RenderStepped:wait()
723
bodyg.CFrame = Camera.CoordinateFrame
724
end]]--
725
726
727
mouse.KeyDown:connect(function(key)
728
if key == "0" and sprinting == false then
729
sprinting = true
730
Humanoid.WalkSpeed = 60
731
elseif key == "q" and magix == true then
732
magix = false
733
for i = 65/255, 1, -0.1 do wait()
734
chak.Color = Color3.new(i, i, i)
735
end
736
elseif key == "q" and magix == false then
737
magix = true
738
for i = 0, 65/255, 0.1 do wait()
739
chak.Color = Color3.new(0, 0, i)
740
end
741
end
742
end)
743
744-
local Character = game.Players.LocalPlayer.Character --game.Workspace.fefio92142
744+
745
if key == "0" and sprinting == true then
746
sprinting = false
747
Humanoid.WalkSpeed = 10
748
end
749
end)
750
751
--==/GAMEPAD CONTROLS/==--
752
753
game:GetService("UserInputService").InputBegan:connect(function(input)
754
if input.UserInputType == Enum.UserInputType.Gamepad1 then
755
if input.KeyCode == Enum.KeyCode.ButtonX and magix == false then
756
magix = true
757
elseif input.KeyCode == Enum.KeyCode.ButtonX and magix == true then
758-
local Player = game:service'Players'.LocalPlayer
758+
759
elseif input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == false then
760
sprinting = true
761
end
762
end
763
end)
764
765
game:GetService("UserInputService").InputEnded:connect(function(input)
766
if input.UserInputType == Enum.UserInputType.Gamepad1 then
767
if input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == true then
768
sprinting = false
769
end
770
end
771
end)
772
773
774
775
game:GetService("RunService").Stepped:connect(function()
776
angle = (angle % 100) + anglespeed/10
777
rootpart.CanCollide = false
778
local speed = Vector3.new(rootpart.Velocity.X, 0, rootpart.Velocity.Z).magnitude
779
if(Humanoid.Jump) and Torso.Velocity.Y > 1 and speed  < 2 then
780
animpose = "Jump"
781
782
elseif speed < 2 then -- idle
783
animpose = "Idle"
784
785
elseif sprinting == true then -- sprinting
786
animpose = "Sprinting"
787
788
elseif speed > 2 then -- walking
789
walking = true
790
animpose = "Moving"
791
end
792
--==/ANIMATION FUNCTIONS/==--
793
if animpose == "Idle" and anim == false then -- idle
794
anglespeed = 0.5
795
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)
796
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)
797
rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.5, -0.4) * CFrame.Angles(math.rad(-20), math.rad(-35), 0), 0.1)
798
llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.9, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.1)
799
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)
800
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)
801
802
elseif animpose == "Moving" and anim == false and walking == true then -- walk
803
anglespeed = 0.5
804-
local Player = game:service'Players'.LocalPlayer
804+
805
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)
806
rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, -0.3) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
807
llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(math.rad(-7), math.rad(5), 0), 0.1)
808
neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(15), Head.RotVelocity.Y/25, 0), 0.1)
809
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)
810
Humanoid.WalkSpeed = 6
811
812
elseif animpose == "Sprinting" and anim == false then -- sprint
813
anglespeed = 0.5
814
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)
815
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)
816
rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
817
llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(5), 0), 0.1)
818
neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(40), Head.RotVelocity.Y/15, 0), 0.1)
819
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)
820
Humanoid.WalkSpeed = 40
821
end
822
end)
823
824
wait(1)
825
------------------------------------------------------------------------------------
826
local Character = owner.Character --game.Workspace.fefio92142
827
828
829
-------------------------------------------------------------------------------------
830
-------------------------------------------------------------------------------------
831
832
local Color = 0,0,0
833
834
local Num = 0.5
835
836
local Num2 = 4 -------------Mods:1,4,8,10,15,20-------------------------------------
837
local Size = 0.8
838
local Rate = 300
839
-------------------------------------------------------------------------------------
840
local Player = owner
841
local Character = Player.Character
842
Torso = Character:WaitForChild'Torso'
843
844
local Wing1 = Instance.new("Part",Character)
845
Wing1.FormFactor = Enum.FormFactor.Custom
846
Wing1.Size = Vector3.new(.2, .2, .2)
847
Wing1.Name = "WIng_1"
848
849
local fire = Instance.new("ParticleEmitter", Wing1)
850
fire.VelocitySpread = 0
851
fire.Lifetime = NumberRange.new(2)
852-
local Player = game:service'Players'.LocalPlayer
852+
853
fire.RotSpeed = NumberRange.new(10)
854
fire.Rate = Rate
855
fire.Rotation = NumberRange.new(151515)
856
fire.Name = "Fire"
857
fire.LightEmission = 0.78
858
fire.LockedToPart = true
859
fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
860
fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
861
fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
862
863
local Wing2 = Wing1:Clone()
864
Wing2.Parent = Torso
865
local x,y,z = 0,-1,-6
866
867
Wld = function(a,b,cf)
868
local Weld = Instance.new('Weld',a)
869
Weld.Part0 = a
870
Weld.Part1 = b
871
Weld.C1 = cf
872
return Weld
873
end
874
875
local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
876
local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
877
878
879
game:service'RunService'.Stepped:connect(function()
880
--z = 6+math.sin(tick()*2)
881
y = -1+math.sin(tick()*Num)*Num2
882
Wing1.Fire.Acceleration = Vector3.new(x,y,z)
883
Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
884
end)
885
------------------------------------------------------------------------------------------------
886
local Player = owner
887
local Character = Player.Character
888
Torso = Character:WaitForChild'Torso'
889
890
local Wing1 = Instance.new("Part",Character)
891
Wing1.FormFactor = Enum.FormFactor.Custom
892
Wing1.Size = Vector3.new(.2, .2, .2)
893
Wing1.Name = "WIng_1"
894
895
local fire = Instance.new("ParticleEmitter", Wing1)
896
fire.VelocitySpread = 0
897
fire.Lifetime = NumberRange.new(2.5)
898
fire.Acceleration = Vector3.new(0, 4, 4)
899
fire.RotSpeed = NumberRange.new(10)
900-
local Player = game:service'Players'.LocalPlayer
900+
901
fire.Rotation = NumberRange.new(151515)
902
fire.Name = "Fire"
903
fire.LightEmission = 0.78
904
fire.LockedToPart = true
905
fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
906
fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
907
fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
908
909
local Wing2 = Wing1:Clone()
910
Wing2.Parent = Torso
911
local x,y,z = 0,-1,-6
912
913
Wld = function(a,b,cf)
914
local Weld = Instance.new('Weld',a)
915
Weld.Part0 = a
916
Weld.Part1 = b
917
Weld.C1 = cf
918
return Weld
919
end
920
921
local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
922
local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
923
924
print'Loaded'
925
926
game:service'RunService'.Stepped:connect(function()
927
--z = 6+math.sin(tick()*2)
928
y = -1+math.sin(tick()*Num)*Num2
929
Wing1.Fire.Acceleration = Vector3.new(x,y,z)
930
Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
931
end)
932
933
------------------------------------------------------------------------------------------------
934
local Player = owner
935
local Character = Player.Character
936
Torso = Character:WaitForChild'Torso'
937
938
local Wing1 = Instance.new("Part",Character)
939
Wing1.FormFactor = Enum.FormFactor.Custom
940
Wing1.Size = Vector3.new(.2, .2, .2)
941
Wing1.Name = "WIng_1"
942
943
local fire = Instance.new("ParticleEmitter", Wing1)
944
fire.VelocitySpread = 0
945
fire.Lifetime = NumberRange.new(2.8)
946
fire.Acceleration = Vector3.new(0, 4, 4)
947
fire.RotSpeed = NumberRange.new(10)
948-
local Player = game:service'Players'.LocalPlayer
948+
949
fire.Rotation = NumberRange.new(151515)
950
fire.Name = "Fire"
951
fire.LightEmission = 0.78
952
fire.LockedToPart = true
953
fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
954
fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
955
fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
956
957
local Wing2 = Wing1:Clone()
958
Wing2.Parent = Torso
959
local x,y,z = 0,-1,-6
960
961
Wld = function(a,b,cf)
962
local Weld = Instance.new('Weld',a)
963
Weld.Part0 = a
964
Weld.Part1 = b
965
Weld.C1 = cf
966
return Weld
967
end
968
969
local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
970
local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
971
972
print'Loaded'
973
974
game:service'RunService'.Stepped:connect(function()
975
--z = 6+math.sin(tick()*2)
976
y = -1+math.sin(tick()*Num)*Num2
977
Wing1.Fire.Acceleration = Vector3.new(x,y,z)
978
Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
979
end)
980
981
------------------------------------------------------------------------------------------------
982
local Player = owner
983
local Character = Player.Character
984
Torso = Character:WaitForChild'Torso'
985
986
local Wing1 = Instance.new("Part",Character)
987
Wing1.FormFactor = Enum.FormFactor.Custom
988
Wing1.Size = Vector3.new(.2, .2, .2)
989
Wing1.Name = "WIng_1"
990
991
local fire = Instance.new("ParticleEmitter", Wing1)
992
fire.VelocitySpread = 0
993
fire.Lifetime = NumberRange.new(3)
994
fire.Acceleration = Vector3.new(0, 4, 4)
995
fire.RotSpeed = NumberRange.new(10)
996
fire.Rate = Rate
997
fire.Rotation = NumberRange.new(151515)
998
fire.Name = "Fire"
999
fire.LightEmission = 0.78
1000
fire.LockedToPart = true
1001
fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
1002
fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
1003
fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
1004
1005
local Wing2 = Wing1:Clone()
1006
Wing2.Parent = Torso
1007
local x,y,z = 0,-1,-6
1008
1009
Wld = function(a,b,cf)
1010
local Weld = Instance.new('Weld',a)
1011
Weld.Part0 = a
1012
Weld.Part1 = b
1013
Weld.C1 = cf
1014
return Weld
1015
end
1016
1017
local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
1018
local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
1019
1020
print'Loaded'
1021
1022
game:service'RunService'.Stepped:connect(function()
1023
--z = 6+math.sin(tick()*2)
1024
y = -1+math.sin(tick()*Num)*Num2
1025
Wing1.Fire.Acceleration = Vector3.new(x,y,z)
1026
Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
1027
end)
1028
1029
------------------------------------------------------------------------------------------------
1030
local Player = owner
1031
local Character = Player.Character
1032
Torso = Character:WaitForChild'Torso'
1033
1034
local Wing1 = Instance.new("Part",Character)
1035
Wing1.FormFactor = Enum.FormFactor.Custom
1036
Wing1.Size = Vector3.new(.2, .2, .2)
1037
Wing1.Name = "WIng_1"
1038
1039
local fire = Instance.new("ParticleEmitter", Wing1)
1040
fire.VelocitySpread = 0
1041
fire.Lifetime = NumberRange.new(3.1)
1042
fire.Acceleration = Vector3.new(0, 4, 4)
1043
fire.RotSpeed = NumberRange.new(10)
1044
fire.Rate = Rate
1045
fire.Rotation = NumberRange.new(151515)
1046
fire.Name = "Fire"
1047
fire.LightEmission = 0.78
1048
fire.LockedToPart = true
1049
fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
1050
fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
1051
fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
1052
1053
local Wing2 = Wing1:Clone()
1054
Wing2.Parent = Torso
1055
local x,y,z = 0,-1,-6
1056
1057
Wld = function(a,b,cf)
1058
local Weld = Instance.new('Weld',a)
1059
Weld.Part0 = a
1060
Weld.Part1 = b
1061
Weld.C1 = cf
1062
return Weld
1063
end
1064
1065
local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
1066
local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
1067
1068
print'Loaded'
1069
1070
game:service'RunService'.Stepped:connect(function()
1071
--z = 6+math.sin(tick()*2)
1072
y = -1+math.sin(tick()*Num)*Num2
1073
Wing1.Fire.Acceleration = Vector3.new(x,y,z)
1074
Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
1075
end)