View difference between Paste ID: r6YsiiTT and UdxB83ZY
SHOW: | | - or go back to the newest paste.
1
plr = game.Player.LocalPlayer
2
TFont = "RobloxRoundDropdownButton"
3
	local Gui = Instance.new("ScreenGui")
4
	Gui.Parent = plr.PlayerGui
5
	Gui.Name = "SwordEditor"
6
	local Frame = Instance.new("Frame")
7
	Frame.Name = "Frame"
8
	Frame.Parent = Gui
9
	local StartSound = Instance.new("Sound",Frame)
10
	StartSound.SoundId = "rbxassetid://255881176"
11
	StartSound.Volume = 100000
12
	Frame.BackgroundColor3 = Color3.fromRGB(255,255,255)
13
	Frame.BackgroundTransparency = 0.2
14
	Frame.BorderColor3 = Color3.fromRGB(103, 161, 202)
15
	Frame.BorderSizePixel = 10
16
	Frame.Position = UDim2.new(0, -600,0, 23) --UDim2.new(0, 270,0, 23)
17
	Frame.Size = UDim2.new(0, 500,0, 420) --Blaze it
18
	Frame.Draggable = true
19
	Frame.Active = true
20
	local FHelp = Instance.new("Frame")
21
	FHelp.Name = "HelpFrame"
22
	FHelp.Parent = Gui
23
	FHelp.BackgroundColor3 = Color3.fromRGB(255,255,255)
24
	FHelp.BackgroundTransparency = 0
25
	FHelp.BorderColor3 = Color3.fromRGB(103, 161, 202)
26
	FHelp.BorderSizePixel = 10
27
	FHelp.Position = UDim2.new(0, 795,0, 10)
28
	FHelp.Size = UDim2.new(0, 200,0, 400) 
29
	FHelp.Draggable = true
30
	FHelp.Active = true
31
	FHelp.Visible = false
32
ClickId = 156286438
33
local Preset5 = Instance.new("TextButton",Frame)
34
local PresetSound5 = Instance.new("Sound",Preset5)
35
PresetSound5.SoundId = "rbxassetid://"..ClickId
36
local Preset4 = Instance.new("TextButton",Frame)
37
local PresetSound4 = Instance.new("Sound",Preset4)
38
PresetSound4.SoundId = "rbxassetid://"..ClickId
39
local Preset3 = Instance.new("TextButton",Frame)
40
local PresetSound3 = Instance.new("Sound",Preset3)
41
PresetSound3.SoundId = "rbxassetid://"..ClickId
42
local Preset2 = Instance.new("TextButton",Frame)
43
local PresetSound2 = Instance.new("Sound",Preset2)
44
PresetSound2.SoundId = "rbxassetid://"..ClickId
45
local Preset1 = Instance.new("TextButton",Frame)
46
local PresetSound1 = Instance.new("Sound",Preset1)
47
PresetSound1.SoundId = "rbxassetid://"..ClickId
48
local CloseGui = Instance.new("TextButton",Frame)
49
local ClosSo = Instance.new("Sound",CloseGui)
50
local CloCh = Instance.new("BoolValue",CloseGui)
51
ClosSo.SoundId = "rbxassetid://"..ClickId
52
local RangeHint = Instance.new("TextButton",Frame)
53
local Rainb = Instance.new("TextButton",Frame)
54
local RainS = Instance.new("Sound",Rainb)
55
local RainV = Instance.new("BoolValue",Rainb)
56
RainS.SoundId = "rbxassetid://"..ClickId
57
local Color3Value = Instance.new("Color3Value",Frame)
58
local SetColorValue = Instance.new("TextButton",Frame)
59
local Color3M = Instance.new("Sound",SetColorValue)
60
local DayChanger = Instance.new("TextButton",Frame)
61
local DCS = Instance.new("Sound",DayChanger)
62
DCS.SoundId = "rbxassetid://156286438"
63
local DayVal = Instance.new("BoolValue",DayChanger)
64
local Glow = Instance.new("TextButton",Frame)
65
local SGlow = Instance.new("Sound",Glow)
66
SGlow.SoundId = "rbxassetid://"..ClickId
67
local GlowV = Instance.new("BoolValue",Glow)
68
Color3M.SoundId = "rbxassetid://"..ClickId
69
Color3Value.Name = "Color3a"
70
local Color1 = Instance.new("TextButton")
71
Color1.Parent = FHelp
72
local Color2 = Instance.new("TextButton")
73
Color2.Parent = FHelp
74
local Color3i = Instance.new("TextButton")
75
Color3i.Parent = FHelp
76
local Color4 = Instance.new("TextButton")
77
Color4.Parent = FHelp
78
local Color5 = Instance.new("TextButton")
79
Color5.Parent = FHelp
80
local Color6 = Instance.new("TextButton")
81
Color6.Parent = FHelp
82
local Color7 = Instance.new("TextButton")
83
Color7.Parent = FHelp
84
local Color8 = Instance.new("TextButton")
85
Color8.Parent = FHelp
86
local Color9 = Instance.new("TextButton")
87
Color9.Parent = FHelp
88
local Color10 = Instance.new("TextButton")
89
Color10.Parent = FHelp
90
local Color11 = Instance.new("TextButton")
91
Color11.Parent = FHelp
92
local Color12 = Instance.new("TextButton")
93
Color12.Parent = FHelp
94
local Color13 = Instance.new("TextButton")
95
Color13.Parent = FHelp
96
local Color14 = Instance.new("TextButton")
97
Color14.Parent = FHelp
98
local Color15 = Instance.new("TextButton")
99
Color15.Parent = FHelp
100
local Color16 = Instance.new("TextButton")
101
Color16.Parent = FHelp
102
local FClose = Instance.new("TextButton")
103
FClose.Parent = FHelp
104
local FClS = Instance.new("Sound",FClose)
105
FClS.SoundId = "rbxassetid://"..ClickId
106
local Help = Instance.new("TextButton")
107
Help.Parent = Frame
108
HelpSO = Instance.new("Sound",Help)
109
HelpSO.SoundId = "rbxassetid://"..ClickId
110
local IdHint = Instance.new("TextButton")
111
IdHint.Parent = Frame
112
local PitHint = Instance.new("TextButton")
113
PitHint.Parent = Frame
114
thegui = plr.PlayerGui.SwordEditor.Frame
115
helpgui = plr.PlayerGui.SwordEditor.HelpFrame
116
local VolHint = Instance.new("TextButton")
117
VolHint.Parent = Frame
118
local ColorValue = Instance.new("TextBox")
119
ColorValue.Parent = Frame
120
local ColorE = Instance.new("TextButton")
121
ColorE.Parent = Frame
122
local ColEV = Instance.new("BoolValue",ColorE)
123
local ColSO = Instance.new("Sound",ColorE)
124
ColSO.SoundId = "rbxassetid://"..ClickId
125
local Done = Instance.new("TextButton")
126
Done.Parent = Frame
127
local DSO = Instance.new("Sound",Done)
128
DSO.SoundId = "rbxassetid://"..255881176
129
local TITLE = Instance.new("TextButton")
130
TITLE.Parent = Frame
131
local Default = Instance.new("TextButton")
132
Default.Parent = Frame
133
local DEFSO = Instance.new("Sound",Default)
134
DEFSO.SoundId = "rbxassetid://"..ClickId
135
local RColor = Instance.new("TextButton")
136
RColor.Parent = Frame
137
local RCOSO = Instance.new("Sound",RColor)
138
RCOSO.SoundId = "rbxassetid://"..ClickId
139
local RColorB = Instance.new("BoolValue",RColor)
140
local CE = Instance.new("TextButton")
141
CE.Parent = Frame
142
local CESO = Instance.new("Sound",CE)
143
CESO.SoundId = "rbxassetid://"..ClickId
144
local CEB = Instance.new("BoolValue",CE)
145
local CC = Instance.new("TextBox")
146
CC.Parent = Frame
147
local MU = Instance.new("TextButton")
148
MU.Parent = Frame
149
local MUSO = Instance.new("Sound",MU)
150
MUSO.SoundId = "rbxassetid://"..ClickId
151
local MUB = Instance.new("BoolValue",MU)
152
local MID = Instance.new("TextBox")
153
MID.Parent = Frame
154
local MPitch = Instance.new("TextBox")
155
MPitch.Parent = Frame
156
local LI = Instance.new("TextButton")
157
LI.Parent = Frame
158
local LISO = Instance.new("Sound",LI)
159
LISO.SoundId = "rbxassetid://"..ClickId
160
local LIB = Instance.new("BoolValue",LI)
161
local LRange = Instance.new("TextBox")
162
LRange.Parent = Frame
163
local MVolume = Instance.new("TextBox")
164
MVolume.Parent = Frame
165
local PA = Instance.new("TextButton")
166
PA.Parent = Frame
167
local PASO = Instance.new("Sound",PA)
168
PASO.SoundId = "rbxassetid://"..ClickId
169
local PAB = Instance.new("BoolValue",PA)
170
local HEA = Instance.new("TextBox")
171
HEA.Parent = Frame
172
local PSP = Instance.new("TextBox")
173
PSP.Parent = Frame
174
local MIDM = Instance.new("TextBox")
175
MIDM.Parent = Frame
176
local MADM = Instance.new("TextBox")
177
MADM.Parent = Frame
178
local HAX = Instance.new("TextButton")
179
HAX.Parent = Frame
180
local HAXSO = Instance.new("Sound",HAX)
181
HAXSO.SoundId = "rbxassetid://"..ClickId
182
local HAXB = Instance.new("BoolValue",HAX)
183
local BAN = Instance.new("TextButton")
184
BAN.Parent = Frame
185
local BANSO = Instance.new("Sound",BAN)
186
BANSO.SoundId = "rbxassetid://"..ClickId
187
local BANB = Instance.new("BoolValue",BAN)
188
------------------------------------------ Presets
189
Preset1.Name = "Preset1"
190
Preset1.Position = UDim2.new(0, 10,0, 360)
191
Preset1.Size = UDim2.new(0, 80,0, 50)
192
Preset1.Font = "Highway"
193
Preset1.Style = TFont
194
Preset1.TextSize = 18
195
Preset1.Text = "Red"
196
Preset1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
197
Preset1.TextWrapped = true
198
Preset1.TextScaled = true
199
thegui.Preset1.MouseButton1Down:connect(function()
200
thegui.Preset1.Sound:Play()
201
    thegui.Music.Value.Value = true
202
    thegui.Music.TextColor3 = Color3.fromRGB(0,255,0)
203
	thegui.Light.Value.Value = true
204
	thegui.Light.TextColor3 = Color3.fromRGB(0,255,0)
205
	thegui.ColorValue.Value.Value = true
206
	thegui.ColorValue.TextColor3 = Color3.fromRGB(0,255,0)
207
    thegui.ColorCode.Text = "15"
208
	thegui.Health.Text = "500"
209
	thegui.LightRange.Text = "7"
210
	thegui.MaximumDamage.Text = "50"
211
	thegui.MinimumDamage.Text = "30"
212
	thegui.MusicId.Text = "181547615"
213
	thegui.MusicPitch.Text = "1"
214
	thegui.Speed.Text = "30"
215
	thegui.TheColor.Text = "0,0,0"
216
	thegui.MusicVolume.Text = "1"
217
end)
218
-----
219
Preset2.Name = "Preset2"
220
Preset2.Position = UDim2.new(0, 90,0, 360)
221
Preset2.Size = UDim2.new(0, 80,0, 50)
222
Preset2.Font = "Highway"
223
Preset2.Style = TFont
224
Preset2.TextSize = 14
225
Preset2.Text = "Violet"
226
Preset2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
227
Preset2.TextWrapped = false
228
Preset2.TextScaled = false
229
thegui.Preset2.MouseButton1Down:connect(function()
230
thegui.Preset2.Sound:Play()
231
    thegui.Music.Value.Value = true
232
    thegui.Music.TextColor3 = Color3.fromRGB(0,255,0)
233
	thegui.Light.Value.Value = true
234
	thegui.Light.TextColor3 = Color3.fromRGB(0,255,0)
235
	thegui.ColorValue.Value.Value = true
236
	thegui.ColorValue.TextColor3 = Color3.fromRGB(0,255,0)
237
    thegui.ColorCode.Text = "8"
238
	thegui.Particles.Value.Value = true
239
	thegui.Particles.TextColor3 = Color3.fromRGB(0,255,0)
240
	thegui.Health.Text = "1000"
241
	thegui.LightRange.Text = "7"
242
	thegui.MaximumDamage.Text = "40"
243
	thegui.MinimumDamage.Text = "60"
244
	thegui.MusicId.Text = "293336157"
245
	thegui.MusicPitch.Text = "1"
246
	thegui.Speed.Text = "30"
247
	thegui.TheColor.Text = "0,0,0"
248
	thegui.MusicVolume.Text = "1"
249
end)
250
-----
251
Preset3.Name = "Preset3"
252
Preset3.Position = UDim2.new(0, 170,0, 360)
253
Preset3.Size = UDim2.new(0, 80,0, 50)
254
Preset3.Font = "Highway"
255
Preset3.Style = TFont
256
Preset3.TextSize = 14
257
Preset3.Text = "Megalovania"
258
Preset3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
259
Preset3.TextWrapped = false
260
Preset3.TextScaled = false
261
thegui.Preset3.MouseButton1Down:connect(function()
262
thegui.Preset3.Sound:Play()
263
    thegui.Music.Value.Value = true
264
    thegui.Music.TextColor3 = Color3.fromRGB(0,255,0)
265
	thegui.ColorValue.TextColor3 = Color3.fromRGB(0,255,0)
266
    thegui.ColorCode.Text = "4"
267
	thegui.Hackermode.Value.Value = true
268
	thegui.Hackermode.TextColor3 = Color3.fromRGB(0,255,0)
269
	thegui.Health.Text = "1000"
270
	thegui.LightRange.Text = "0"
271
	thegui.MaximumDamage.Text = "40"
272
	thegui.MinimumDamage.Text = "60"
273
	thegui.MusicId.Text = "306370481"
274
	thegui.MusicPitch.Text = "1"
275
	thegui.Speed.Text = "50"
276
	thegui.TheColor.Text = "0,0,0"
277
	thegui.MusicVolume.Text = "1"
278
end)
279
-----
280
Preset4.Name = "Preset4"
281
Preset4.Position = UDim2.new(0, 250,0, 360)
282
Preset4.Size = UDim2.new(0, 80,0, 50)
283
Preset4.Font = "Highway"
284
Preset4.Style = TFont
285
Preset4.TextSize = 14
286
Preset4.Text = "Rainbow"
287
Preset4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
288
Preset4.TextWrapped = false
289
Preset4.TextScaled = false
290
thegui.Preset4.MouseButton1Down:connect(function()
291
thegui.Preset4.Sound:Play()
292
	thegui.Light.Value.Value = true
293
	thegui.Light.TextColor3 = Color3.fromRGB(0,255,0)
294
    thegui.Music.Value.Value = true
295
    thegui.Music.TextColor3 = Color3.fromRGB(0,255,0)
296
    thegui.Rainbow.Value.Value = true
297
	thegui.Rainbow.TextColor3 = Color3.fromRGB(0,255,0)
298
	thegui.Particles.Value.Value = true
299
	thegui.Particles.TextColor3 = Color3.fromRGB(0,255,0)
300
	thegui.Health.Text = "500000"
301
	thegui.LightRange.Text = "9"
302
	thegui.MaximumDamage.Text = "40"
303
	thegui.MinimumDamage.Text = "60"
304
	thegui.MusicId.Text = "340427391"
305
	thegui.MusicPitch.Text = "1"
306
	thegui.Speed.Text = "30"
307
	thegui.TheColor.Text = "0,0,0"
308
	thegui.MusicVolume.Text = "1"
309
end)
310
-----
311
Preset5.Name = "Preset5"
312
Preset5.Position = UDim2.new(0, 330,0, 360)
313
Preset5.Size = UDim2.new(0, 80,0, 50)
314
Preset5.Font = "Highway"
315
Preset5.Style = TFont
316
Preset5.TextSize = 14
317
Preset5.Text = "Dubstep"
318
Preset5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
319
Preset5.TextWrapped = false
320
Preset5.TextScaled = false
321
thegui.Preset5.MouseButton1Down:connect(function()
322
thegui.Preset5.Sound:Play()
323
    thegui.Music.Value.Value = true
324
    thegui.Music.TextColor3 = Color3.fromRGB(0,255,0)
325
	thegui.Light.Value.Value = true
326
	thegui.Light.TextColor3 = Color3.fromRGB(0,255,0)
327
	thegui.ColorValue.Value.Value = true
328
	thegui.ColorValue.TextColor3 = Color3.fromRGB(0,255,0)
329
    thegui.ColorCode.Text = "6"
330
	thegui.Hackermode.Value.Value = true
331
	thegui.Hackermode.TextColor3 = Color3.fromRGB(0,255,0)
332
	thegui.Health.Text = "1000"
333
	thegui.LightRange.Text = "7"
334
	thegui.MaximumDamage.Text = "40"
335
	thegui.MinimumDamage.Text = "60"
336
	thegui.MusicId.Text = "477943828"
337
	thegui.MusicPitch.Text = "1"
338
	thegui.Speed.Text = "30"
339
	thegui.TheColor.Text = "0,0,0"
340
	thegui.MusicVolume.Text = "1"
341
end)
342
---------------------------------- Close Button
343
CloseGui.Name = "Close"
344
CloseGui.Position = UDim2.new(0, 505,0, -15)
345
CloseGui.Size = UDim2.new(0, 30,0, 30)
346
CloseGui.Style = TFont
347
CloseGui.TextSize = 18
348
CloseGui.TextColor3 = Color3.fromRGB(255,0,0)
349
CloseGui.Style = TFont
350
CloseGui.Font = "Highway"
351
CloseGui.Text = "<"
352
CloseGui.TextScaled = false
353
CloseGui.TextWrapped = false
354
function ON11()
355
	thegui.Close.Sound.PlaybackSpeed = 1
356
	thegui.Close.Sound:Play()
357
	for Out = 270,-505,-25 do
358
		thegui.Position = UDim2.new(0, Out,0, 23)
359
		wait(0)
360
	end
361
	thegui.Close.Value.Value = true
362
	thegui.Close.Text = ">"
363
	StartSound.PlaybackSpeed = 0.93
364
	StartSound:Play()
365
end
366
function ON12()
367
	thegui.Close.Sound.PlaybackSpeed = 0.93
368
	thegui.Close.Sound:Play()
369
	for In = -505,270,25 do
370
		thegui.Position = UDim2.new(0, In,0, 23)
371
		wait(0)
372
	end
373
	thegui.Close.Value.Value = false
374
	thegui.Close.Text = "<"
375
	StartSound.PlaybackSpeed = 1
376
	StartSound:Play()
377
end
378
thegui.Close.MouseButton1Down:connect(function()
379
	if thegui.Close.Value.Value == false then
380
		ON11()
381
	else
382
		ON12()
383
		end
384
end)
385
---------------------------------- Rainbow Sword
386
Rainb.Name = "Rainbow"
387
Rainb.Position = UDim2.new(0, 10,0, 250)
388
Rainb.Size = UDim2.new(0, 80,0, 30)
389
Rainb.Style = TFont
390
Rainb.TextSize = 18
391
Rainb.TextColor3 = Color3.fromRGB(255,0,0)
392
Rainb.Style = TFont
393
Rainb.Font = "Highway"
394
Rainb.Text = "Rainbow"
395
Rainb.TextScaled = false
396
Rainb.TextWrapped = false
397
function ON10()
398
	thegui.Rainbow.Sound.PlaybackSpeed = 1
399
	thegui.Rainbow.Sound:Play()
400
	thegui.Rainbow.Value.Value = true
401
	print("true")
402
	thegui.Rainbow.TextColor3 = Color3.fromRGB(0,255,0)
403
	end
404
function OFF10()
405
	thegui.Rainbow.Sound.PlaybackSpeed = 0.93
406
	thegui.Rainbow.Sound:Play()
407
	if thegui.Rainbow.Value.Value == true then
408
		thegui.Rainbow.Value.Value = false
409
		print("false")
410
		thegui.Rainbow.TextColor3 = Color3.fromRGB(255,0,0)
411
	end
412
end
413
thegui.Rainbow.MouseButton1Down:connect(function()
414
	if thegui.Rainbow.Value.Value == false then
415
	    ON10()
416
	else
417
		OFF10()
418
	end
419
end)
420
---------------------------------- Glowing Sword
421
Glow.Name = "GlowSword"
422
Glow.Position = UDim2.new(0, 10,0, 220)
423
Glow.Size = UDim2.new(0, 80,0, 30)
424
Glow.BackgroundTransparency = 1
425
Glow.TextSize = 18
426
Glow.TextColor3 = Color3.fromRGB(255,0,0)
427
Glow.Style = TFont
428
Glow.Font = "Highway"
429
Glow.Text = "Glow"
430
Glow.TextScaled = false
431
Glow.TextWrapped = true
432
function ON9()
433
	thegui.GlowSword.Sound.PlaybackSpeed = 1
434
	thegui.GlowSword.Sound:Play()
435
	thegui.GlowSword.Value.Value = true
436
	print("true")
437
	thegui.GlowSword.TextColor3 = Color3.fromRGB(0,255,0)
438
	end
439
function OFF9()
440
	thegui.GlowSword.Sound.PlaybackSpeed = 0.93
441
	thegui.GlowSword.Sound:Play()
442
	if thegui.GlowSword.Value.Value == true then
443
		thegui.GlowSword.Value.Value = false
444
		print("false")
445
		thegui.GlowSword.TextColor3 = Color3.fromRGB(255,0,0)
446
	end
447
end
448
thegui.GlowSword.MouseButton1Down:connect(function()
449
	if thegui.GlowSword.Value.Value == false then
450
	    ON9()
451
	else
452
		OFF9()
453
	end
454
end)
455
---------------------------------- Day Time Changer
456
DayChanger.Name = "TimeChanger"
457
DayChanger.Position = UDim2.new(0, 325,0, 200)
458
DayChanger.Size = UDim2.new(0, 75,0, 30)
459
DayChanger.BackgroundTransparency = 1
460
DayChanger.TextSize = 14
461
DayChanger.Style = TFont
462
DayChanger.Font = "Highway"
463
DayChanger.Text = "Dark"
464
DayChanger.TextScaled = false
465
DayChanger.TextWrapped = false
466
thegui.TimeChanger.MouseButton1Down:connect(function()
467
	thegui.TimeChanger.Sound:Play()
468
	game.Lighting.Ambient = Color3.fromRGB(10,10,10)
469
	game.Lighting.GlobalShadows = false
470
	game.Lighting.Brightness = false
471
	game.Lighting.TimeOfDay = 0
472
	thegui.TimeChanger.Value.Value = true
473
end)
474
---------------------------------- Help Color
475
Color1.Name = "1color"
476
Color1.Position = UDim2.new(0, 60,0, 0)
477
Color1.Size = UDim2.new(0, 75,0, 30)
478
Color1.BackgroundTransparency = 1
479
Color1.TextSize = 14
480
Color1.Font = "Highway"
481
Color1.Text = "1 = RED"
482
Color1.TextScaled = false
483
Color1.TextWrapped = false
484
-----
485
Color2.Name = "2color"
486
Color2.Position = UDim2.new(0, 60,0, 15)
487
Color2.Size = UDim2.new(0, 75,0, 30)
488
Color2.BackgroundTransparency = 1
489
Color2.TextSize = 14
490
Color2.Font = "Highway"
491
Color2.Text = "2 = BLUE"
492
Color2.TextScaled = false
493
Color2.TextWrapped = false
494
-----
495
Color3i.Name = "3color"
496
Color3i.Position = UDim2.new(0, 60,0, 30)
497
Color3i.Size = UDim2.new(0, 75,0, 30)
498
Color3i.BackgroundTransparency = 1
499
Color3i.TextSize = 14
500
Color3i.Font = "Highway"
501
Color3i.Text = "3 = GREEN"
502
Color3i.TextScaled = false
503
Color3i.TextWrapped = false
504
-----
505
Color4.Name = "4color"
506
Color4.Position = UDim2.new(0, 60,0, 45)
507
Color4.Size = UDim2.new(0, 75,0, 30)
508
Color4.BackgroundTransparency = 1
509
Color4.TextSize = 14
510
Color4.Font = "Highway"
511
Color4.Text = "4 = BLACK"
512
Color4.TextScaled = false
513
Color4.TextWrapped = false
514
-----
515
Color5.Name = "5color"
516
Color5.Position = UDim2.new(0, 60,0, 60)
517
Color5.Size = UDim2.new(0, 75,0, 30)
518
Color5.BackgroundTransparency = 1
519
Color5.TextSize = 14
520
Color5.Font = "Highway"
521
Color5.Text = "5 = WHITE"
522
Color5.TextScaled = false
523
Color5.TextWrapped = false
524
-----
525
Color6.Name = "6color"
526
Color6.Position = UDim2.new(0, 60,0, 75)
527
Color6.Size = UDim2.new(0, 75,0, 30)
528
Color6.BackgroundTransparency = 1
529
Color6.TextSize = 14
530
Color6.Font = "Highway"
531
Color6.Text = "6 = CYAN"
532
Color6.TextScaled = false
533
Color6.TextWrapped = false
534
-----
535
Color7.Name = "7color"
536
Color7.Position = UDim2.new(0, 60,0, 90)
537
Color7.Size = UDim2.new(0, 75,0, 30)
538
Color7.BackgroundTransparency = 1
539
Color7.TextSize = 14
540
Color7.Font = "Highway"
541
Color7.Text = "7 = PINK"
542
Color7.TextScaled = false
543
Color7.TextWrapped = false
544
-----
545
Color8.Name = "8color"
546
Color8.Position = UDim2.new(0, 60,0, 105)
547
Color8.Size = UDim2.new(0, 75,0, 30)
548
Color8.BackgroundTransparency = 1
549
Color8.TextSize = 14
550
Color8.Font = "Highway"
551
Color8.Text = "8 = MAGENTA"
552
Color8.TextScaled = false
553
Color8.TextWrapped = false
554
-----
555
Color9.Name = "9color"
556
Color9.Position = UDim2.new(0, 60,0, 120)
557
Color9.Size = UDim2.new(0, 75,0, 30)
558
Color9.BackgroundTransparency = 1
559
Color9.TextSize = 14
560
Color9.Font = "Highway"
561
Color9.Text = "9 = ULTRAVIOLET"
562
Color9.TextScaled = false
563
Color9.TextWrapped = false
564
-----
565
Color10.Name = "10color"
566
Color10.Position = UDim2.new(0, 60,0, 135)
567
Color10.Size = UDim2.new(0, 75,0, 30)
568
Color10.BackgroundTransparency = 1
569
Color10.TextSize = 14
570
Color10.Font = "Highway"
571
Color10.Text = "10 = DARK GREEN"
572
Color10.TextScaled = false
573
Color10.TextWrapped = false
574
-----
575
Color11.Name = "11color"
576
Color11.Position = UDim2.new(0, 60,0, 150)
577
Color11.Size = UDim2.new(0, 75,0, 30)
578
Color11.BackgroundTransparency = 1
579
Color11.TextSize = 14
580
Color11.Font = "Highway"
581
Color11.Text = "11 = DARK GREY"
582
Color11.TextScaled = false
583
Color11.TextWrapped = false
584
-----
585
Color12.Name = "12color"
586
Color12.Position = UDim2.new(0, 60,0, 165)
587
Color12.Size = UDim2.new(0, 75,0, 30)
588
Color12.BackgroundTransparency = 1
589
Color12.TextSize = 14
590
Color12.Font = "Highway"
591
Color12.Text = "12 = LIGHT GREY"
592
Color12.TextScaled = false
593
Color12.TextWrapped = false
594
-----
595
Color13.Name = "13color"
596
Color13.Position = UDim2.new(0, 60,0, 180)
597
Color13.Size = UDim2.new(0, 75,0, 30)
598
Color13.BackgroundTransparency = 1
599
Color13.TextSize = 14
600
Color13.Font = "Highway"
601
Color13.Text = "13 = YELLOW"
602
Color13.TextScaled = false
603
Color13.TextWrapped = false
604
-----
605
Color14.Name = "14color"
606
Color14.Position = UDim2.new(0, 60,0, 195)
607
Color14.Size = UDim2.new(0, 75,0, 30)
608
Color14.BackgroundTransparency = 1
609
Color14.TextSize = 14
610
Color14.Font = "Highway"
611
Color14.Text = "14 = ORANGE"
612
Color14.TextScaled = false
613
Color14.TextWrapped = false
614
-----
615
Color15.Name = "15color"
616
Color15.Position = UDim2.new(0, 60,0, 210)
617
Color15.Size = UDim2.new(0, 75,0, 30)
618
Color15.BackgroundTransparency = 1
619
Color15.TextSize = 14
620
Color15.Font = "Highway"
621
Color15.Text = "15 = INFRA-RED"
622
Color15.TextScaled = false
623
Color15.TextWrapped = false
624
-----
625
Color16.Name = "16color"
626
Color16.Position = UDim2.new(0, 60,0, 225)
627
Color16.Size = UDim2.new(0, 75,0, 30)
628
Color16.BackgroundTransparency = 1
629
Color16.TextSize = 14
630
Color16.Font = "Highway"
631
Color16.Text = "16 = ALIEN COLOR"
632
Color16.TextScaled = false
633
Color16.TextWrapped = false
634
---------------------------------- Help Close
635
FClose.Name = "HelpClose"
636
FClose.Position = UDim2.new(0, 60,0, 365)
637
FClose.Size = UDim2.new(0, 75,0, 30)
638
FClose.Text = "Close"
639
FClose.Style = TFont
640
FClose.TextSize = 14
641
FClose.TextScaled = false
642
FClose.TextWrapped = false
643
plr.PlayerGui.SwordEditor.HelpFrame.HelpClose.MouseButton1Down:connect(function()
644
	plr.PlayerGui.SwordEditor.HelpFrame.Visible = false
645
	plr.PlayerGui.SwordEditor.HelpFrame.HelpClose.Sound:Play()
646
end)
647
---------------------------------- Help
648
Help.Name = "Help"
649
Help.Position = UDim2.new(0, -25,0, -25)
650
Help.Size = UDim2.new(0, 40,0, 40)
651
Help.Text = "Help"
652
Help.Font = "Highway"
653
Help.Style = TFont
654
Help.TextSize = 14
655
Help.TextScaled = false
656
Help.TextWrapped = false
657
thegui.Help.MouseButton1Down:connect(function()
658
	thegui.Help.Sound:Play()
659
	plr.PlayerGui.SwordEditor.HelpFrame.Visible = true
660
end)
661
---------------------------------- Hints
662
VolHint.Name = "VolumeHint"
663
VolHint.Position = UDim2.new(0, 110,0, 85)
664
VolHint.Size = UDim2.new(0, 80,0, 50)
665
VolHint.BackgroundTransparency = 1
666
VolHint.Font = "Highway"
667
VolHint.TextSize = 18
668
VolHint.Text = "Volume"
669
VolHint.TextWrapped = true
670
VolHint.TextScaled = false
671
PitHint.Name = "PitchHint"
672
PitHint.Position = UDim2.new(0, 180,0, 85)
673
PitHint.Size = UDim2.new(0, 80,0, 50)
674
PitHint.BackgroundTransparency = 1
675
PitHint.Font = "Highway"
676
PitHint.TextSize = 18
677
PitHint.Text = "Pitch"
678
PitHint.TextWrapped = true
679
PitHint.TextScaled = false
680
IdHint.Name = "IdHint"
681
IdHint.Position = UDim2.new(0, 250,0, 85)
682
IdHint.Size = UDim2.new(0, 80,0, 50)
683
IdHint.BackgroundTransparency = 1
684
IdHint.Font = "Highway"
685
IdHint.TextSize = 18
686
IdHint.Text = "Music Id"
687
IdHint.TextWrapped = true
688
IdHint.TextScaled = false
689
RangeHint.Name = "RangeHint"
690
RangeHint.Position = UDim2.new(0, 92,0, 152)
691
RangeHint.Size = UDim2.new(0, 115,0, 30)
692
RangeHint.BackgroundTransparency = 1
693
RangeHint.Font = "Highway"
694
RangeHint.TextSize = 18
695
RangeHint.Text = "Light Range"
696
RangeHint.TextWrapped = true
697
RangeHint.TextScaled = false
698
---------------------------------- Random Color
699
RColor.Name = "RandomColor"
700
RColor.TextColor3 = Color3.fromRGB(255,0,0)
701
RColor.Position = UDim2.new(0, 10,0, 10)
702
RColor.Size = UDim2.new(0, 80,0, 30)
703
RColor.Style = TFont
704
RColor.Font = "Highway"
705
RColor.TextSize = 18
706
RColor.Text = "Random Color"
707
RColor.TextWrapped = true
708
RColor.TextScaled = false
709
function ON1()
710
	thegui.RandomColor.Sound.PlaybackSpeed = 1
711
	thegui.RandomColor.Sound:Play()
712
	thegui.RandomColor.Value.Value = true
713
	print("true")
714
	thegui.RandomColor.TextColor3 = Color3.fromRGB(0,255,0)
715
	end
716
function OFF1()
717
	thegui.RandomColor.Sound.PlaybackSpeed = 0.93
718
	thegui.RandomColor.Sound:Play()
719
	if thegui.RandomColor.Value.Value == true then
720
		thegui.RandomColor.Value.Value = false
721
		print("false")
722
		thegui.RandomColor.TextColor3 = Color3.fromRGB(255,0,0)
723
	end
724
end
725
thegui.RandomColor.MouseButton1Down:connect(function()
726
	if thegui.RandomColor.Value.Value == false then
727
	    ON1()
728
	else
729
		OFF1()
730
	end
731
end)
732
---------------------------------- Color
733
ColorE.Name = "ColorValue"
734
ColorE.TextColor3 = Color3.fromRGB(255,0,0)
735
ColorE.Position = UDim2.new(0, 100,0, 10)
736
ColorE.Size = UDim2.new(0, 80,0, 30)
737
ColorE.Style = TFont
738
ColorE.Font = "Highway"
739
ColorE.TextSize = 18
740
ColorE.Text = "Color"
741
ColorE.TextWrapped = true
742
ColorE.TextScaled = false
743
function ON8()
744
	thegui.ColorValue.Sound.PlaybackSpeed = 1
745
	thegui.ColorValue.Sound:Play()
746
	thegui.ColorValue.Value.Value = true
747
	print("true")
748
	thegui.ColorValue.TextColor3 = Color3.fromRGB(0,255,0)
749
	end
750
function OFF8()
751
	thegui.ColorValue.Sound.PlaybackSpeed = 0.93
752
	thegui.ColorValue.Sound:Play()
753
	if thegui.ColorValue.Value.Value == true then
754
		thegui.ColorValue.Value.Value = false
755
		print("false")
756
		thegui.ColorValue.TextColor3 = Color3.fromRGB(255,0,0)
757
	end
758
end
759
thegui.ColorValue.MouseButton1Down:connect(function()
760
	if thegui.ColorValue.Value.Value == false then
761
	    ON8()
762
	else
763
		OFF8()
764
	end
765
end)
766
---------------------------------- Color Id
767
ColorValue.Name = "ColorCode"
768
ColorValue.BackgroundColor3 = Color3.fromRGB(255,255,255)
769
ColorValue.BorderSizePixel = 0
770
ColorValue.TextColor3 = Color3.fromRGB(255,0,0)
771
ColorValue.Position = UDim2.new(0, 180,0, 15)
772
ColorValue.Size = UDim2.new(0, 20,0, 20)
773
ColorValue.Font = "Highway"
774
ColorValue.TextSize = 18
775
ColorValue.Text = "ID"
776
ColorValue.TextColor3 = Color3.new(0,0,0)
777
ColorValue.TextWrapped = true
778
ColorValue.TextScaled = false
779
---------------------------------- Custom Color
780
CE.Name = "CustomColor"
781
CE.TextColor3 = Color3.fromRGB(255,0,0)
782
CE.Position = UDim2.new(0, 10,0, 40)
783
CE.Size = UDim2.new(0, 80,0, 30)
784
CE.Style = TFont
785
CE.Font = "Highway"
786
CE.TextSize = 18
787
CE.Text = "Custom Color"
788
CE.TextWrapped = true
789
CE.TextScaled = false
790
function ON2()
791
	thegui.CustomColor.Sound.PlaybackSpeed = 1
792
	thegui.CustomColor.Sound:Play()
793
	thegui.CustomColor.Value.Value = true
794
	print("true")
795
	thegui.CustomColor.TextColor3 = Color3.fromRGB(0,255,0)
796
	end
797
function OFF2()
798
	thegui.CustomColor.Sound.PlaybackSpeed = 0.93
799
	thegui.CustomColor.Sound:Play()
800
	if thegui.CustomColor.Value.Value == true then
801
		thegui.CustomColor.Value.Value = false
802
		print("false")
803
		thegui.CustomColor.TextColor3 = Color3.fromRGB(255,0,0)
804
	end
805
end
806
thegui.CustomColor.MouseButton1Down:connect(function()
807
	if thegui.CustomColor.Value.Value == false then
808
	    ON2()
809
	else
810
		OFF2()
811
	end
812
end)
813
---------------------------------- Custom Color
814
CC.Name = "TheColor"
815
CC.Position = UDim2.new(0, 100,0, 45)
816
CC.Size = UDim2.new(0, 100,0, 25)
817
CC.Font = "Highway"
818
CC.TextSize = 18
819
CC.Text = "CustomColor"
820
CC.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
821
CC.TextWrapped = true
822
CC.TextScaled = false
823
CC.BorderSizePixel = 0
824
---------------------------------- Music
825
MU.Name = "Music"
826
MU.TextColor3 = Color3.fromRGB(255,0,0)
827
MU.Position = UDim2.new(0, 10,0, 70)
828
MU.Size = UDim2.new(0, 80,0, 30)
829
MU.Style = TFont
830
MU.Font = "Highway"
831
MU.TextSize = 18
832
MU.Text = "Music"
833
MU.TextWrapped = true
834
MU.TextScaled = false
835
MU.BackgroundColor3 = Color3.fromRGB(255,255,255)
836
function ON3()
837
	thegui.Music.Sound.PlaybackSpeed = 1
838
	thegui.Music.Sound:Play()
839
	thegui.Music.Value.Value = true
840
	print("true")
841
	thegui.Music.TextColor3 = Color3.fromRGB(0,255,0)
842
	end
843
function OFF3()
844
	thegui.Music.Sound.PlaybackSpeed = 0.93
845
	thegui.Music.Sound:Play()
846
	if thegui.Music.Value.Value == true then
847
		thegui.Music.Value.Value = false
848
		print("false")
849
		thegui.Music.TextColor3 = Color3.fromRGB(255,0,0)
850
	end
851
end
852
thegui.Music.MouseButton1Down:connect(function()
853
	if thegui.Music.Value.Value == false then
854
	    ON3()
855
	else
856
		OFF3()
857
	end
858
end)
859
---------------------------------- MusicId
860
MID.Name = "MusicId"
861
MID.BackgroundColor3 = Color3.fromRGB(255,2552,255)
862
MID.BorderSizePixel = 0
863
MID.Position = UDim2.new(0, 240,0, 75)
864
MID.Size = UDim2.new(0, 100,0, 25)
865
MID.Font = "Highway"
866
MID.TextSize = 18
867
MID.Text = ""
868
MID.TextScaled = false
869
MID.TextWrapped = true
870
MID.TextScaled = false
871
---------------------------------- Music Pitch
872
MPitch.Name = "MusicPitch"
873
MPitch.Position = UDim2.new(0, 210,0, 75)
874
MPitch.Size = UDim2.new(0, 20,0, 25)
875
MPitch.Font = "Highway"
876
MPitch.TextSize = 18
877
MPitch.Text = ""
878
MPitch.TextWrapped = true
879
MPitch.TextScaled = false
880
MPitch.BackgroundColor3 = Color3.fromRGB(255,255,255)
881
MPitch.BorderSizePixel = 0
882
---------------------------------- Light
883
LI.Name = "Light"
884
LI.Position = UDim2.new(0, 10,0, 130)
885
LI.Size = UDim2.new(0, 80,0, 30)
886
LI.Style = TFont
887
LI.Font = "Highway"
888
LI.TextSize = 18
889
LI.Text = "Light"
890
LI.TextWrapped = true
891
LI.TextScaled = false
892
LI.TextColor3 = Color3.fromRGB(255,0,0)
893
function ON4()
894
	thegui.Light.Sound.PlaybackSpeed = 1
895
	thegui.Light.Sound:Play()
896
	thegui.Light.Value.Value = true
897
	print("true")
898
	thegui.Light.TextColor3 = Color3.fromRGB(0,255,0)
899
	end
900
function OFF4()
901
	thegui.Light.Sound.PlaybackSpeed = 0.93
902
	thegui.Light.Sound:Play()
903
	if thegui.Light.Value.Value == true then
904
		thegui.Light.Value.Value = false
905
		print("false")
906
		thegui.Light.TextColor3 = Color3.fromRGB(255,0,0)
907
	end
908
end
909
thegui.Light.MouseButton1Down:connect(function()
910
	if thegui.Light.Value.Value == false then
911
	    ON4()
912
	else
913
		OFF4()
914
	end
915
end)
916
---------------------------------- Range
917
LRange.Name = "LightRange"
918
LRange.Position = UDim2.new(0, 100,0, 135)
919
LRange.BackgroundColor3 = Color3.fromRGB(255,255,255)
920
LRange.BorderSizePixel = 0
921
LRange.Size = UDim2.new(0, 100,0, 25)
922
LRange.Font = "Highway"
923
LRange.TextSize = 18
924
LRange.Text = "Range"
925
LRange.TextWrapped = true
926
LRange.TextScaled = false
927
---------------------------------- Volume
928
MVolume.Name = "MusicVolume"
929
MVolume.Position = UDim2.new(0, 100,0, 75)
930
MVolume.Size = UDim2.new(0, 100,0, 25)
931
MVolume.Font = "Highway"
932
MVolume.TextSize = 18
933
MVolume.Text = ""
934
MVolume.TextWrapped = true
935
MVolume.TextScaled = false
936
MVolume.BackgroundColor3 = Color3.fromRGB(255,255,255)
937
MVolume.BorderSizePixel = 0
938
---------------------------------- Particles
939
PA.Name = "Particles"
940
PA.TextColor3 = Color3.fromRGB(255,0,0)
941
PA.Position = UDim2.new(0, 10,0, 100)
942
PA.Size = UDim2.new(0, 80,0, 30)
943
PA.Style = TFont
944
PA.Font = "Highway"
945
PA.TextSize = 18
946
PA.Text = "Particles"
947
PA.TextWrapped = true
948
PA.TextScaled = false
949
function ON5()
950
	thegui.Particles.Sound.PlaybackSpeed = 1
951
	thegui.Particles.Sound:Play()
952
	thegui.Particles.Value.Value = true
953
	print("true")
954
	thegui.Particles.TextColor3 = Color3.fromRGB(0,255,0)
955
	end
956
function OFF5()
957
	thegui.Particles.Sound.PlaybackSpeed = 0.93
958
	thegui.Particles.Sound:Play()
959
	if thegui.Particles.Value.Value == true then
960
		thegui.Particles.Value.Value = false
961
		print("false")
962
		thegui.Particles.TextColor3 = Color3.fromRGB(255,0,0)
963
	end
964
end
965
thegui.Particles.MouseButton1Down:connect(function()
966
	if thegui.Particles.Value.Value == false then
967
	    ON5()
968
	else
969
		OFF5()
970
	end
971
end)
972
---------------------------------- Health
973
HEA.Name = "Health"
974
HEA.Position = UDim2.new(0, 410,0, 10)
975
HEA.BackgroundColor3 = Color3.fromRGB(255,255,255)
976
HEA.BorderSizePixel = 0
977
HEA.Size = UDim2.new(0, 80,0, 50)
978
HEA.Font = "Highway"
979
HEA.TextSize = 18
980
HEA.Text = "Health"
981
HEA.TextWrapped = true
982
HEA.TextScaled = false
983
---------------------------------- Speed
984
PSP.Name = "Speed"
985
PSP.Position = UDim2.new(0, 410,0, 70)
986
PSP.BackgroundColor3 = Color3.fromRGB(255,255,255)
987
PSP.BorderSizePixel = 0
988
PSP.Size = UDim2.new(0, 80,0, 50)
989
PSP.Font = "Highway"
990
PSP.TextSize = 18
991
PSP.Text = "Speed"
992
PSP.TextWrapped = true
993
PSP.TextScaled = false
994
---------------------------------- Minimum Damage
995
MIDM.Name = "MinimumDamage"
996
MIDM.Position = UDim2.new(0, 410,0, 190)
997
MIDM.BackgroundColor3 = Color3.fromRGB(255,255,255)
998
MIDM.BorderSizePixel = 0
999
MIDM.Size = UDim2.new(0, 80,0, 50)
1000
MIDM.Font = "Highway"
1001
MIDM.TextSize = 18
1002
MIDM.Text = "MinimumDamage"
1003
MIDM.TextWrapped = true
1004
MIDM.TextScaled = false
1005
---------------------------------- Maximum Damage
1006
MADM.Name = "MaximumDamage"
1007
MADM.Position = UDim2.new(0, 410,0, 250)
1008
MADM.BackgroundColor3 = Color3.fromRGB(255,255,255)
1009
MADM.BorderSizePixel = 0
1010
MADM.Size = UDim2.new(0, 80,0, 50)
1011
MADM.Font = "Highway"
1012
MADM.TextSize = 18
1013
MADM.Text = "MaximumDamage"
1014
MADM.TextWrapped = true
1015
MADM.TextScaled = false
1016
---------------------------------- Hackermode
1017
HAX.Name = "Hackermode"
1018
HAX.TextColor3 = Color3.fromRGB(255,0,0)
1019
HAX.Position = UDim2.new(0, 10,0, 160)
1020
HAX.Size = UDim2.new(0, 80,0, 30)
1021
HAX.Style = TFont
1022
HAX.TextSize = 18
1023
HAX.Font = "Highway"
1024
HAX.Text = "Hacker"
1025
HAX.TextWrapped = true
1026
HAX.TextScaled = false
1027
---------------------------------- Done Button
1028
Done.Name = "Done"
1029
Done.Position = UDim2.new(0, 160,0, 300)
1030
Done.Size = UDim2.new(0, 200,0, 50)
1031
Done.Style = TFont
1032
Done.Font = "Highway"
1033
Done.TextSize = 23
1034
Done.Text = "Generate a Sword"
1035
Done.TextWrapped = true
1036
Done.TextScaled = false
1037
function Done()
1038
	thegui.Done.Sound.Volume = 10000
1039
	thegui.Done.Sound.PlaybackSpeed = 1.3
1040
	thegui.Done.Sound:Play()
1041
	thegui.Visible = false
1042
	helpgui.Visible = false
1043
end
1044
-----------------------------------
1045
function ON6()
1046
	thegui.Hackermode.Sound.PlaybackSpeed = 1
1047
	thegui.Hackermode.Sound:Play()
1048
	thegui.Hackermode.Value.Value = true
1049
	print("true")
1050
	thegui.Hackermode.TextColor3 = Color3.fromRGB(0,255,0)
1051
	end
1052
function OFF6()
1053
	thegui.Hackermode.Sound.PlaybackSpeed = 0.93
1054
	thegui.Hackermode.Sound:Play()
1055
	if thegui.Hackermode.Value.Value == true then
1056
		thegui.Hackermode.Value.Value = false
1057
		print("false")
1058
		thegui.Hackermode.TextColor3 = Color3.fromRGB(255,0,0)
1059
	end
1060
end
1061
thegui.Hackermode.MouseButton1Down:connect(function()
1062
	if thegui.Hackermode.Value.Value == false then
1063
	    ON6()
1064
	else
1065
		OFF6()
1066
	end
1067
end)
1068
---------------------------------- Ban
1069
BAN.Name = "Banmode"
1070
BAN.TextColor3 = Color3.fromRGB(255,0,0)
1071
BAN.Position = UDim2.new(0, 10,0, 190)
1072
BAN.Size = UDim2.new(0, 80,0, 30)
1073
BAN.Style = TFont
1074
BAN.TextSize = 18
1075
BAN.Font = "Highway"
1076
BAN.Text = "Ban mode"
1077
BAN.TextWrapped = false
1078
BAN.TextScaled = false
1079
function ON7()
1080
	thegui.Banmode.Sound.PlaybackSpeed = 1
1081
	thegui.Banmode.Sound:Play()
1082
	thegui.Banmode.Value.Value = true
1083
	print("true")
1084
	thegui.Banmode.TextColor3 = Color3.fromRGB(0,255,0)
1085
	end
1086
function OFF7()
1087
	thegui.Banmode.Sound.PlaybackSpeed = 0.93
1088
	thegui.Banmode.Sound:Play()
1089
	if thegui.Banmode.Value.Value == true then
1090
		thegui.Banmode.Value.Value = false
1091
		print("false")
1092
		thegui.Banmode.TextColor3 = Color3.fromRGB(255,0,0)
1093
	end
1094
end
1095
thegui.Banmode.MouseButton1Down:connect(function()
1096
	if thegui.Banmode.Value.Value == false then
1097
	    ON7()
1098
	else
1099
		OFF7()
1100
	end
1101
end)
1102
---------------------------------- Defailt Button
1103
Default.Name = "Default"
1104
Default.Position = UDim2.new(0, 320,0, 250)
1105
Default.Size = UDim2.new(0, 80,0, 50)
1106
Default.Font = "Highway"
1107
Default.Style = TFont
1108
Default.TextSize = 18
1109
Default.Text = "Default Settings"
1110
Default.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1111
Default.TextWrapped = true
1112
Default.TextScaled = true
1113
thegui.Default.MouseButton1Down:connect(function()
1114
thegui.Default.Sound.PlaybackSpeed = 1
1115
thegui.Default.Sound:Play()
1116
	thegui.Health.Text = "100"
1117
	thegui.ColorCode.Text = 1
1118
	thegui.LightRange.Text = "0"
1119
	thegui.MaximumDamage.Text = "70"
1120
	thegui.MinimumDamage.Text = "40"
1121
	thegui.MusicId.Text = "0"
1122
	thegui.MusicPitch.Text = "1"
1123
	thegui.Speed.Text = "16"
1124
	thegui.TheColor.Text = "0,0,0"
1125
	thegui.MusicVolume.Text = "1"
1126
end)
1127
------------------------------------ TITLE
1128
TITLE.Name = "Title"
1129
TITLE.Position = UDim2.new(0, 140,0, -20)
1130
TITLE.Size = UDim2.new(0, 230,0, 30)
1131
TITLE.Font = "Highway"
1132
TITLE.Style = TFont
1133
TITLE.TextSize = 20
1134
TITLE.Text = "Luckyxero's Sword Editor"
1135
TITLE.TextWrapped = true
1136
TITLE.TextScaled = false
1137
TITLE.AutoButtonColor = false
1138
--------------------------------------
1139
-------------------------------------- Set Color Value
1140
SetColorValue.Name = "SetColorValue"
1141
SetColorValue.Position = UDim2.new(0, 205,0, 42)
1142
SetColorValue.Size = UDim2.new(0, 50,0, 30)
1143
SetColorValue.Font = "Highway"
1144
SetColorValue.TextSize = 18
1145
SetColorValue.Text = "Set"
1146
SetColorValue.TextWrapped = false
1147
thegui.SetColorValue.MouseButton1Down:connect(function()
1148
	thegui.SetColorValue.Sound:Play()
1149
	local nums = {}
1150
	string.gsub(thegui.TheColor.Text,'[^,]+',function(c) table.insert(nums,tonumber(c)) end)
1151
	thegui.Color3a.Value = Color3.new(nums[1]/255,nums[2]/255,nums[3]/255)
1152
	thegui.SetColorValue.BackgroundColor3 = thegui.Color3a.Value
1153
	thegui.SetColorValue.BorderColor3 = thegui.SetColorValue.BackgroundColor3
1154
end)
1155
for Pos = -600,270,25 do
1156
Frame.Position = UDim2.new(0, Pos,0, 23)
1157
wait(0)
1158
end
1159
StartSound:Play()
1160
print("waiting for respond")
1161
thegui.Done.MouseButton1Down:wait()
1162
Done()
1163
print("Continuing...")
1164
--[SETTINGS]--
1165
random = thegui.RandomColor.Value.Value --If you want a random color between 1 or 16, set on true
1166
CustomColorEnabled = thegui.CustomColor.Value.Value --If you want to make your own color. **WARNING** DO NOT ENABLE 2 BOOLEANS AT THE SAME TIME
1167
CustomColor = thegui.Color3a.Value --Color3.new(red,green,blue)
1168
Music = thegui.Music.Value.Value --Makes you emit music
1169
MusicId = thegui.MusicId.Text
1170
Pitch = thegui.MusicPitch.Text
1171
Light = thegui.Light.Value.Value
1172
LightRange = thegui.LightRange.Text
1173
MusicVolume = thegui.MusicVolume.Text
1174
Particles = thegui.Particles.Value.Value --Particle effects when attacking
1175
Health = thegui.Health.Text --Your health
1176
Speed = thegui.Speed.Text --Your speed
1177
DMGMIN = thegui.MinimumDamage.Text --Minimim sword damage
1178
DMGMAX = thegui.MaximumDamage.Text --Maximum sword damage
1179
Hackermode = thegui.Hackermode.Value.Value --Insta kill OP sword. Damage = 1.#INF. Infinity.
1180
Banmode = thegui.Banmode.Value.Value --Punishes player
1181
ColorNumber = tonumber(thegui.ColorCode.Text)
1182
ColorCodeVal = ColorNumber
1183
--[[SETTINGS]]--
1184
1185
Val = 0
1186
function GetRandomVal()
1187
	Val = math.random(1,16)
1188
end
1189
Colors = {"Really red", "Really blue", "Lime green", "Really black", "Institutional white", "Toothpaste", "Hot Pink", "Magenta", "Dark blue", "Camo", "Dark stone grey", "Fossil", "New Yeller", "Deep orange", "Crimson", "Eggplant"}
1190
local ColorColor = Colors[0] --Sword Color. To change color: Set Colors[Value] to any value between 1 and 12
1191
if ColorCodeVal == 1 then
1192
ColorColor = Colors[1]
1193
elseif ColorCodeVal == 2 then
1194
	ColorColor = Colors[2]
1195
elseif ColorCodeVal == 3 then
1196
	ColorColor = Colors[3]
1197
elseif ColorCodeVal == 4 then
1198
	ColorColor = Colors[4]
1199
elseif ColorCodeVal == 5 then
1200
	ColorColor = Colors[5]
1201
elseif ColorCodeVal == 6 then
1202
	ColorColor = Colors[6]
1203
elseif ColorCodeVal == 7 then
1204
	ColorColor = Colors[7]
1205
elseif ColorCodeVal == 8 then
1206
	ColorColor = Colors[8]
1207
elseif ColorCodeVal == 9 then
1208
	ColorColor = Colors[9]
1209
elseif ColorCodeVal == 10 then
1210
	ColorColor = Colors[10]
1211
elseif ColorCodeVal == 11 then
1212
	ColorColor = Colors[11]
1213
elseif ColorCodeVal == 12 then
1214
	ColorColor = Colors[12]
1215
elseif ColorCodeVal == 13 then
1216
	ColorColor = Colors[13]
1217
elseif ColorCodeVal == 14 then
1218
	ColorColor = Colors[14]
1219
elseif ColorCodeVal == 15 then
1220
	ColorColor = Colors[15]
1221
elseif ColorCodeVal == 16 then
1222
	ColorColor = Colors[16]
1223
end
1224
--[[Values: Colors
1225
1 = Red
1226
2 = Blue
1227
3 = Green --My favorite :D
1228
4 = Black
1229
5 = White
1230
6 = Cyan
1231
7 = Pink
1232
8 = Magenta
1233
9 = Ultraviolet
1234
10 = Dark green
1235
11 = Dark grey
1236
12 = Light grey
1237
13 = Yellow
1238
14 = Orange
1239
15 = Infra red
1240
16 = Alien color
1241
]]--
1242
if Hackermode == true then
1243
	DMGMIN = 9999^9999
1244
	DMGMAX = 99999^99999
1245
end
1246
SwordDamage = {DMGMIN, DMGMAX}
1247
if random == true then
1248
	GetRandomVal()
1249
	ColorColor = Colors[Val]
1250
end
1251
if CustomColorEnabled == true then
1252
	ColorColor = CustomColor
1253
end
1254
plr = game.Players.LocalPlayer
1255
local TestPart = Instance.new("Part")
1256
TestPart.Size = Vector3.new(0.1,0.1,0.1)
1257
TestPart.Anchored = true
1258
TestPart.Transparency = 1
1259
if Music == true then
1260
local IdleSound = Instance.new("Sound")
1261
IdleSound.SoundId = "rbxassetid://"..MusicId
1262
IdleSound.PlaybackSpeed = Pitch
1263
IdleSound.Looped = true
1264
IdleSound.Volume = MusicVolume
1265
IdleSound.Parent = plr.Character.Torso
1266
IdleSound.MaxDistance = 230
1267
IdleSound:Play()
1268
end
1269
TestPart.BrickColor = BrickColor.new(ColorColor)
1270
if CustomColorEnabled == true then
1271
PermColor = thegui.Color3a.Value
1272
Cr = PermColor.r*255
1273
Cg = PermColor.g*255
1274
Cb = PermColor.b*255
1275
ColorColor = Color3.fromRGB(Cr,Cg,Cb)
1276
end
1277
print("Output:",ColorColor)
1278
plr.Character.Humanoid.MaxHealth = Health
1279
plr.Character.Humanoid.Health = Health
1280
plr.Character.Humanoid.WalkSpeed = Speed
1281
Player=game:GetService("Players").LocalPlayer
1282
Character=Player.Character 
1283
PlayerGui=Player.PlayerGui
1284
Backpack=Player.Backpack 
1285
Torso=Character.Torso 
1286
Head=Character.Head 
1287
Humanoid=Character.Humanoid
1288
m=Instance.new('Model',Character)
1289
LeftArm=Character["Left Arm"] 
1290
LeftLeg=Character["Left Leg"] 
1291
RightArm=Character["Right Arm"] 
1292
RightLeg=Character["Right Leg"] 
1293
LS=Torso["Left Shoulder"] 
1294
LH=Torso["Left Hip"] 
1295
RS=Torso["Right Shoulder"] 
1296
RH=Torso["Right Hip"] 
1297
Face = Head.face
1298
Neck=Torso.Neck
1299
it=Instance.new
1300
attacktype=2
1301
vt=Vector3.new
1302
cf=CFrame.new
1303
euler=CFrame.fromEulerAnglesXYZ 
1304
angles=CFrame.Angles
1305
cloaked=true
1306
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1307
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1308
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
1309
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
1310
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
1311
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
1312
RootPart=Character.HumanoidRootPart
1313
RootJoint=RootPart.RootJoint
1314
RootCF=euler(-1.57,0,3.14)
1315
attack = false 
1316
attackdebounce = false 
1317
deb=false
1318
equipped=true
1319
hand=false
1320
MMouse=nil
1321
combo=0
1322
mana=0
1323
trispeed=.2
1324
attackmode='none'
1325
local idle=0
1326
local Anim="Idle"
1327
local Effects={}
1328
local gun=false
1329
local shoot=false
1330
player=nil 
1331
mana=0
1332
local CurrentMode = "Unsheathed"
1333
1334
mouse=Player:GetMouse()
1335
--save shoulders 
1336
RSH, LSH=nil, nil 
1337
--welds 
1338
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
1339
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
1340
LH=Torso["Left Hip"]
1341
RH=Torso["Right Hip"]
1342
TorsoColor=Torso.BrickColor
1343
function NoOutline(Part)
1344
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1345
end
1346
player=Player 
1347
ch=Character
1348
RSH=ch.Torso["Right Shoulder"] 
1349
LSH=ch.Torso["Left Shoulder"] 
1350
-- 
1351
RSH.Parent=nil 
1352
LSH.Parent=nil 
1353
-- 
1354
RW.Name="Right Shoulder"
1355
RW.Part0=ch.Torso 
1356
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
1357
RW.C1=cf(0, 0.5, 0) 
1358
RW.Part1=ch["Right Arm"] 
1359
RW.Parent=ch.Torso 
1360
-- 
1361
LW.Name="Left Shoulder"
1362
LW.Part0=ch.Torso 
1363
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
1364
LW.C1=cf(0, 0.5, 0) 
1365
LW.Part1=ch["Left Arm"] 
1366
LW.Parent=ch.Torso 
1367
1368
        local function weldBetween(a, b)
1369
            local weldd = Instance.new("ManualWeld")
1370
            weldd.Part0 = a
1371
            weldd.Part1 = b
1372
            weldd.C0 = CFrame.new()
1373
            weldd.C1 = b.CFrame:inverse() * a.CFrame
1374
            weldd.Parent = a
1375
            return weldd
1376
        end
1377
1378
        function nooutline(part)
1379
                part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
1380
        end
1381
        
1382
        function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
1383
                local fp=it("Part")
1384
                fp.formFactor=formfactor
1385
                fp.Parent=parent
1386
                fp.Reflectance=reflectance
1387
                fp.Transparency=transparency
1388
                fp.CanCollide=false
1389
                fp.Locked=true
1390
                fp.BrickColor=BrickColor.new(tostring(brickcolor))
1391
                fp.Name=name
1392
                fp.Size=size
1393
                fp.Position=Character.Torso.Position
1394
                nooutline(fp)
1395
                fp.Material=material
1396
                fp:BreakJoints()
1397
                return fp
1398
        end
1399
        
1400
        function swait(num)
1401
    if num==0 or num==nil then
1402
    game:service'RunService'.Heartbeat:wait(0)
1403
    else
1404
    for i=0,num do
1405
    game:service'RunService'.Heartbeat:wait(0)
1406
    end
1407
    end
1408
    end
1409
        
1410
        function mesh(Mesh,part,meshtype,meshid,offset,scale)
1411
                local mesh=it(Mesh)
1412
                mesh.Parent=part
1413
                if Mesh=="SpecialMesh" then
1414
                        mesh.MeshType=meshtype
1415
                        mesh.MeshId=meshid
1416
                end
1417
                mesh.Offset=offset
1418
                mesh.Scale=scale
1419
                return mesh
1420
        end
1421
        
1422
        function weld(parent,part0,part1,c0,c1)
1423
                local weld=it("Weld")
1424
                weld.Parent=parent
1425
                weld.Part0=part0
1426
                weld.Part1=part1
1427
                weld.C0=c0
1428
                weld.C1=c1
1429
                return weld
1430
        end
1431
        
1432
        
1433
local function CFrameFromTopBack(at, top, back)
1434
local right = top:Cross(back)
1435
return CFrame.new(at.x, at.y, at.z,
1436
right.x, top.x, back.x,
1437
right.y, top.y, back.y,
1438
right.z, top.z, back.z)
1439
end
1440
1441
function Triangle(a, b, c)
1442
local edg1 = (c-a):Dot((b-a).unit)
1443
local edg2 = (a-b):Dot((c-b).unit)
1444
local edg3 = (b-c):Dot((a-c).unit)
1445
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1446
a, b, c = a, b, c
1447
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1448
a, b, c = b, c, a
1449
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1450
a, b, c = c, a, b
1451
else
1452
assert(false, "unreachable")
1453
end
1454
 
1455
local len1 = (c-a):Dot((b-a).unit)
1456
local len2 = (b-a).magnitude - len1
1457
local width = (a + (b-a).unit*len1 - c).magnitude
1458
 
1459
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1460
 
1461
local list = {}
1462
 
1463
if len1 > 0.01 then
1464
local w1 = Instance.new('WedgePart', m)
1465
game:GetService("Debris"):AddItem(w1,5)
1466
w1.Material = "SmoothPlastic"
1467
w1.FormFactor = 'Custom'
1468
if thegui.Rainbow.Value.Value == true then
1469
	w1.Color = Color3.new(math.random(), math.random(), math.random())
1470
else
1471
	w1.BrickColor = BrickColor.new(ColorColor)
1472
end
1473
w1.Transparency = 0
1474
w1.Reflectance = 0
1475
w1.Material = "Neon"
1476
w1.CanCollide = false
1477
NoOutline(w1)
1478
local sz = Vector3.new(0.2, width, len1)
1479
w1.Size = sz
1480
local sp = Instance.new("SpecialMesh",w1)
1481
sp.MeshType = "Wedge"
1482
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
1483
w1:BreakJoints()
1484
w1.Anchored = true
1485
w1.Parent = workspace
1486
w1.Transparency = 0.2
1487
if Particles == true  then
1488
	local Fire = Instance.new("ParticleEmitter")
1489
	Fire.Rate = 1000
1490
	Fire.Size = NumberSequence.new(0.1, 0.3)
1491
	Fire.Transparency = NumberSequence.new(0.6, 0.6)
1492
	Fire.Speed = NumberRange.new(2, 15)
1493
	Fire.VelocitySpread = 100000
1494
	Fire.Color = ColorSequence.new(w1.Color)
1495
	Fire.LockedToPart = true
1496
	Fire.Parent = w1
1497
	Fire.LightEmission = 1000
1498
	Fire.VelocityInheritance = 2
1499
	Fire.RotSpeed = NumberRange.new(1000,10000)
1500
	Fire.Rotation = NumberRange.new(1000,10000)
1501
	end
1502
table.insert(Effects,{w1,"Disappear",.03})
1503
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1504
table.insert(list,w1)
1505
end
1506
if len2 > 0.01 then
1507
TestPart:Remove()
1508
local w2 = Instance.new('WedgePart', m)
1509
game:GetService("Debris"):AddItem(w2,5)
1510
w2.Material = "SmoothPlastic"
1511
w2.FormFactor = 'Custom'
1512
if thegui.Rainbow.Value.Value == true then
1513
	w2.Color = Color3.new(math.random(), math.random(), math.random())
1514
else
1515
	w2.BrickColor = BrickColor.new(ColorColor)
1516
end
1517
w2.Transparency = 0
1518
w2.Reflectance = 0
1519
w2.Material = "Neon"
1520
w2.CanCollide = false
1521
NoOutline(w2)
1522
local sz = Vector3.new(0.2, width, len2)
1523
w2.Size = sz
1524
local sp = Instance.new("SpecialMesh",w2)
1525
sp.MeshType = "Wedge"
1526
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
1527
w2:BreakJoints()
1528
w2.Anchored = true
1529
w2.Parent = workspace
1530
w2.Transparency = 0.2
1531
if Particles == true then
1532
	local Fire2 = Instance.new("ParticleEmitter")
1533
	Fire2.Rate = 1000
1534
	Fire2.Size = NumberSequence.new(0.1, 0.3)
1535
	Fire2.Transparency = NumberSequence.new(0.6, 0.6)
1536
	Fire2.Speed = NumberRange.new(2, 15)
1537
	Fire2.VelocitySpread = 100000
1538
	Fire2.Color = ColorSequence.new(w2.Color)
1539
	Fire2.LockedToPart = true
1540
	Fire2.LightEmission = 1000
1541
	Fire2.VelocityInheritance = 2
1542
	Fire2.RotSpeed = NumberRange.new(1000,10000)
1543
	Fire2.Rotation = NumberRange.new(1000,10000)
1544
	Fire2.Parent = w2
1545
	end
1546
table.insert(Effects,{w2,"Disappear",.03})
1547
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1548
table.insert(list,w2)
1549
end
1550
return unpack(list)
1551
end
1552
        
1553
        
1554
so = function(id,par,vol,pit) 
1555
coroutine.resume(coroutine.create(function()
1556
local sou = Instance.new("Sound",par or workspace)
1557
sou.Volume=vol
1558
sou.Pitch=pit or 1
1559
sou.SoundId=id
1560
swait() 
1561
sou:play() 
1562
game:GetService("Debris"):AddItem(sou,6)
1563
end))
1564
end
1565
 
1566
function clerp(a,b,t) 
1567
local qa = {QuaternionFromCFrame(a)}
1568
local qb = {QuaternionFromCFrame(b)} 
1569
local ax, ay, az = a.x, a.y, a.z 
1570
local bx, by, bz = b.x, b.y, b.z
1571
local _t = 1-t
1572
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
1573
end 
1574
 
1575
function QuaternionFromCFrame(cf) 
1576
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
1577
local trace = m00 + m11 + m22 
1578
if trace > 0 then 
1579
local s = math.sqrt(1 + trace) 
1580
local recip = 0.5/s 
1581
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
1582
else 
1583
local i = 0 
1584
if m11 > m00 then
1585
i = 1
1586
end
1587
if m22 > (i == 0 and m00 or m11) then 
1588
i = 2 
1589
end 
1590
if i == 0 then 
1591
local s = math.sqrt(m00-m11-m22+1) 
1592
local recip = 0.5/s 
1593
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
1594
elseif i == 1 then 
1595
local s = math.sqrt(m11-m22-m00+1) 
1596
local recip = 0.5/s 
1597
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
1598
elseif i == 2 then 
1599
local s = math.sqrt(m22-m00-m11+1) 
1600
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
1601
end 
1602
end 
1603
end
1604
 
1605
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
1606
local xs, ys, zs = x + x, y + y, z + z 
1607
local wx, wy, wz = w*xs, w*ys, w*zs 
1608
local xx = x*xs 
1609
local xy = x*ys 
1610
local xz = x*zs 
1611
local yy = y*ys 
1612
local yz = y*zs 
1613
local zz = z*zs 
1614
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
1615
end
1616
 
1617
function QuaternionSlerp(a, b, t) 
1618
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
1619
local startInterp, finishInterp; 
1620
if cosTheta >= 0.0001 then 
1621
if (1 - cosTheta) > 0.0001 then 
1622
local theta = math.acos(cosTheta) 
1623
local invSinTheta = 1/math.sin(theta) 
1624
startInterp = math.sin((1-t)*theta)*invSinTheta 
1625
finishInterp = math.sin(t*theta)*invSinTheta  
1626
else 
1627
startInterp = 1-t 
1628
finishInterp = t 
1629
end 
1630
else 
1631
if (1+cosTheta) > 0.0001 then 
1632
local theta = math.acos(-cosTheta) 
1633
local invSinTheta = 1/math.sin(theta) 
1634
startInterp = math.sin((t-1)*theta)*invSinTheta 
1635
finishInterp = math.sin(t*theta)*invSinTheta 
1636
else 
1637
startInterp = t-1 
1638
finishInterp = t 
1639
end 
1640
end 
1641
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 
1642
end
1643
1644
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1645
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
1646
end 
1647
1648
Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
1649
        if hit.Parent==nil then
1650
                return
1651
        end
1652
        local h=hit.Parent:FindFirstChild("Humanoid")
1653
        for _,v in pairs(hit.Parent:children()) do
1654
        if v:IsA("Humanoid") then
1655
        h=v
1656
        end
1657
        end
1658
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
1659
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
1660
        end
1661
        if hit.Parent.className=="Hat" then
1662
        hit=hit.Parent.Parent:findFirstChild("Head")
1663
        end
1664
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
1665
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
1666
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
1667
                        return
1668
                end]]
1669
--                        hs(hit,1.2) 
1670
                        local c=Instance.new("ObjectValue")
1671
                        c.Name="creator"
1672
                        c.Value=game:service("Players").LocalPlayer
1673
                        c.Parent=h
1674
                        game:GetService("Debris"):AddItem(c,.5)
1675
                local Damage=math.random(SwordDamage[1],SwordDamage[2])
1676
--                h:TakeDamage(Damage)
1677
                local  blocked=false
1678
                local  block=hit.Parent:findFirstChild("Block")
1679
                if block~=nil then
1680
                print(block.className)
1681
                if block.className=="NumberValue" then
1682
                if block.Value>0 then
1683
                blocked=true
1684
                if decreaseblock==nil then
1685
                block.Value=block.Value-1
1686
                end
1687
                end
1688
                end
1689
                if block.className=="IntValue" then
1690
                if block.Value>0 then
1691
                blocked=true
1692
                if decreaseblock~=nil then
1693
                block.Value=block.Value-1
1694
                end
1695
                end
1696
                end
1697
                end
1698
                if blocked==false then
1699
--                h:TakeDamage(Damage)
1700
                h.Health=h.Health-Damage
1701
                ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
1702
                else
1703
                h.Health=h.Health-(Damage/2)
1704
                ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
1705
                end
1706
                if Type=="Knockdown" then
1707
                local hum=hit.Parent.Humanoid
1708
hum.PlatformStand=true
1709
coroutine.resume(coroutine.create(function(HHumanoid)
1710
swait(1)
1711
HHumanoid.PlatformStand=false
1712
end),hum)
1713
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
1714
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
1715
local bodvol=Instance.new("BodyVelocity")
1716
bodvol.velocity=angle*knockback
1717
bodvol.P=5000
1718
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1719
bodvol.Parent=hit
1720
local rl=Instance.new("BodyAngularVelocity")
1721
rl.P=3000
1722
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1723
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1724
rl.Parent=hit
1725
game:GetService("Debris"):AddItem(bodvol,.5)
1726
game:GetService("Debris"):AddItem(rl,.5)
1727
                elseif Type=="Normal" then
1728
                local vp=Instance.new("BodyVelocity")
1729
                vp.P=500
1730
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
1731
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
1732
                if KnockbackType==1 then
1733
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
1734
                elseif KnockbackType==2 then
1735
                vp.velocity=Property.CFrame.lookVector*knockback
1736
                end
1737
                if knockback>0 then
1738
                        vp.Parent=hit.Parent.Torso
1739
                end
1740
                game:GetService("Debris"):AddItem(vp,.5)
1741
                elseif Type=="Up" then
1742
                local bodyVelocity=Instance.new("BodyVelocity")
1743
                bodyVelocity.velocity=vt(0,60,0)
1744
                bodyVelocity.P=5000
1745
                bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1746
                bodyVelocity.Parent=hit
1747
                game:GetService("Debris"):AddItem(bodyVelocity,1)
1748
                local rl=Instance.new("BodyAngularVelocity")
1749
                rl.P=3000
1750
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1751
                rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
1752
                rl.Parent=hit
1753
                game:GetService("Debris"):AddItem(rl,.5)
1754
                elseif Type=="Snare" then
1755
                local bp=Instance.new("BodyPosition")
1756
                bp.P=2000
1757
                bp.D=100
1758
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1759
                bp.position=hit.Parent.Torso.Position
1760
                bp.Parent=hit.Parent.Torso
1761
                game:GetService("Debris"):AddItem(bp,1)
1762
                elseif Type=="Target" then
1763
	            local Targetting = false
1764
                if Targetting==false then
1765
                ZTarget=hit.Parent.Torso
1766
                coroutine.resume(coroutine.create(function(Part) 
1767
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
1768
                swait(5)
1769
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
1770
                end),ZTarget)
1771
                local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
1772
                local  targetgui=Instance.new("BillboardGui")
1773
                targetgui.Parent=ZTarget
1774
                targetgui.Size=UDim2.new(10,100,10,100)
1775
                local targ=Instance.new("ImageLabel")
1776
                targ.Parent=targetgui
1777
                targ.BackgroundTransparency=1
1778
                targ.Image="rbxassetid://4834067"
1779
                targ.Size=UDim2.new(1,0,1,0)
1780
                cam.CameraType="Scriptable"
1781
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
1782
                local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
1783
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
1784
                Targetting=true
1785
                RocketTarget=ZTarget
1786
                for i=1,Property do
1787
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
1788
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
1789
                swait()
1790
                end
1791
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
1792
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
1793
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
1794
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
1795
                end
1796
                Targetting=false
1797
                RocketTarget=nil
1798
                targetgui.Parent=nil
1799
                cam.CameraType="Custom"
1800
                end
1801
                end
1802
                        local debounce=Instance.new("BoolValue")
1803
                        debounce.Name="DebounceHit"
1804
                        debounce.Parent=hit.Parent
1805
                        debounce.Value=true
1806
                        game:GetService("Debris"):AddItem(debounce,Delay)
1807
                        c=Instance.new("ObjectValue")
1808
                        c.Name="creator"
1809
                        c.Value=Player
1810
                        c.Parent=h
1811
                        game:GetService("Debris"):AddItem(c,.5)
1812
        end
1813
end
1814
1815
1816
function ShowDamage(Pos, Text, Time, Color)
1817
	local Rate = (1 / 30)
1818
	local Pos = (Pos or Vector3.new(0, 0, 0))
1819
	local Text = (Text or "")
1820
	local Time = (Time or 2)
1821
	local Color = (Color or Color3.new(1, 0, 0))
1822
	local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
1823
	EffectPart.Anchored = true
1824
	local BillboardGui = Instance.new("BillboardGui")
1825
	BillboardGui.Size = UDim2.new(3, 0, 3, 0)
1826
	BillboardGui.Adornee = EffectPart
1827
	local TextLabel = Instance.new("TextLabel")
1828
	TextLabel.BackgroundTransparency = 1
1829
	TextLabel.Size = UDim2.new(1, 0, 1, 0)
1830
	TextLabel.Text = Text
1831
	TextLabel.TextColor3 = Color
1832
	TextLabel.TextScaled = true
1833
	TextLabel.Font = Enum.Font.ArialBold
1834
	TextLabel.Parent = BillboardGui
1835
	BillboardGui.Parent = EffectPart
1836
	game.Debris:AddItem(EffectPart, (Time + 0.1))
1837
	EffectPart.Parent = game:GetService("Workspace")
1838
	Delay(0, function()
1839
		local Frames = (Time / Rate)
1840
		for Frame = 1, Frames do
1841
			wait(Rate)
1842
			local Percent = (Frame / Frames)
1843
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1844
			TextLabel.TextTransparency = Percent
1845
		end
1846
		if EffectPart and EffectPart.Parent then
1847
			EffectPart:Destroy()
1848
		end
1849
	end)
1850
end
1851
print("Rainbow: ",ColorColor)
1852
handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Light stone grey","Handle",Vector3.new(0.34799999, 2.78399992, 0.34799999))
1853
handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00324273, 0.013961792, -0.00828075409, -1.38366803e-013, -0.999999881, 4.25688995e-009, 2.4656245e-007, -4.25688951e-009, -1, 1, -1.373172e-013, 2.4656245e-007))
1854
mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
1855
Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,ColorColor,"Hitbox",Vector3.new(1.04400003, 6.35600042, 0.600000024))
1856
Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000308990479, -5.48094559, -2.00271606e-005, 1, 6.10120843e-011, -1.08637464e-014, -6.10120843e-011, 1, 7.57154339e-011, 1.08637574e-014, -7.57154339e-011, 1))
1857
1858
if Light == true then
1859
local Lite = it("PointLight",Torso)
1860
Lite.Color = TestPart.Color
1861
Lite.Name = "Lite"
1862
Lite.Range = LightRange
1863
Lite.Brightness = 10555
1864
Lite.Shadows = false
1865
end
1866
function CustomColorActive()
1867
	print("CCFunction start")
1868
	print("CCCheck true")
1869
for i,v in pairs(plr.Character.Model:GetChildren()) do
1870
	if v.ClassName == "Part" then
1871
		if v.BrickColor == BrickColor.new("Medium stone grey") then
1872
			v.Color = ColorColor
1873
		end
1874
	end
1875
end
1876
print("CCFunction end")
1877
end
1878
function RainbowSword()
1879
print("RSFunction Start")
1880
for v,i in pairs(plr.Character.Model:GetChildren()) do
1881
	if i.ClassName == "Part" then
1882
		if i.BrickColor == BrickColor.new("Really red") then
1883
			i.Color = Color3.new(math.random(), math.random(), math.random())
1884
		end
1885
	end
1886
end
1887
print("RSFunction End")
1888
end
1889
if thegui.Rainbow.Value.Value == true then
1890
	RainbowSword()
1891
	print("RSFunction Called")
1892
end
1893
function GlowActive()
1894
	print("GFunction start")
1895
	for a,b in pairs(plr.Character.Model:GetChildren()) do
1896
		if b.ClassName == "Part" then
1897
			b.Material = "Neon"
1898
		end
1899
	end
1900
end
1901
function BreakEffect(brickcolor,cframe,x1,y1,z1)
1902
local prt=part("Custom",workspace,"Neon",0,0,ColorColor,"Effect",vt(0.5,0.5,0.5))
1903
prt.Anchored=true
1904
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1905
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1906
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
1907
CF=Part.CFrame
1908
Numbb=0
1909
randnumb=math.random()-math.random()
1910
for i=0,1,0.05 do
1911
wait()
1912
CF=CF*cf(0,1,0)
1913
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
1914
Part.CFrame=CF*euler(Numbb,0,0)
1915
Part.Transparency=i
1916
Numbb=Numbb+randnumb
1917
end
1918
Part.Parent=nil
1919
end),prt)
1920
end
1921
--BreakEffect(BrickColor.new(ColorColor),Hitbox.CFrame,0.5,math.random(5,20),0.5)
1922
1923
function attackone()
1924
        attack=true
1925
        local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end) 
1926
        for i=0,2,0.5 do
1927
	    swait()
1928
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(120),math.rad(0),math.rad(20)),.3)
1929
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
1930
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1931
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1932
handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(70),math.rad(-10),math.rad(0)),.3)
1933
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
1934
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
1935
        end
1936
        so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,1) 
1937
        so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,1) 
1938
        hitconasdf = Hitbox.Touched:connect(function(hit)
1939
                local hum12 = hit.Parent:FindFirstChild("Humanoid")
1940
                if hum12 and not hum12:IsDescendantOf(Character) then
1941
                        so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
1942
                        for i = 1,10 do
1943
                        BreakEffect(BrickColor.new(ColorColor),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
1944
                        end
1945
                        hitconasdf:disconnect()
1946
                end
1947
        end)
1948
                for i=0,1,0.2 do
1949
	swait()
1950
                local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
1951
if Hackermode == true then
1952
	Hitbox.Touched:connect(function(hit)
1953
		if hit.Parent:FindFirstChild("Humanoid") then
1954
			hit.Parent:BreakJoints()
1955
			hit.Parent.Torso.Position = Vector3.new(hit.Parent.Torso.Position.X + 1, hit.Parent.Torso.Position.Y + 1, hit.Parent.Torso.Position.Z + 1)
1956
		end
1957
	end)
1958
end
1959
if Banmode == true then
1960
	Hitbox.Touched:connect(function(hit)
1961
		if hit.Parent:FindFirstChild("Humanoid") then
1962
			hit.Parent:Remove()
1963
		end
1964
	end)
1965
end
1966
if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
1967
local h = 5
1968
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
1969
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1970
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
1971
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1972
scfr = blcf
1973
elseif not scfr then
1974
scfr = blcf
1975
end
1976
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(110),math.rad(-90),math.rad(20)),.3)
1977
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
1978
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1979
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1980
handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-60),math.rad(-10),math.rad(0)),.3)
1981
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
1982
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
1983
        end
1984
        attack=false
1985
        con:disconnect()
1986
        scfr = nil
1987
        pcall(function()
1988
        hitconasdf:disconnect()
1989
        end)
1990
end
1991
1992
function attacktwo()
1993
        attack=true
1994
        local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end) 
1995
        for i=0,2,0.5 do
1996
	swait()
1997
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.3)
1998
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
1999
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2000
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2001
handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-30),math.rad(-10),math.rad(0)),.3)
2002
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
2003
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
2004
        end
2005
        so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,.9) 
2006
        so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,.9) 
2007
        hitconasdf = Hitbox.Touched:connect(function(hit)
2008
                local hum12 = hit.Parent:FindFirstChild("Humanoid")
2009
                if hum12 and not hum12:IsDescendantOf(Character) then
2010
                        so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
2011
                        for i = 1,10 do
2012
                        BreakEffect(BrickColor.new(ColorColor),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
2013
                        end
2014
                        hitconasdf:disconnect()
2015
                end
2016
        end)
2017
        for i=0,1,0.2 do
2018
	swait()
2019
if Hackermode == true then
2020
	Hitbox.Touched:connect(function(hit)
2021
		if hit.Parent:FindFirstChild("Humanoid") then
2022
			hit.Parent:BreakJoints()
2023
			hit.Parent.Torso.Position = Vector3.new(hit.Parent.Torso.Position.X + 1, hit.Parent.Torso.Position.Y + 1, hit.Parent.Torso.Position.Z + 1)
2024
		end
2025
	end)
2026
end
2027
if Banmode == true then
2028
	Hitbox.Touched:connect(function(hit)
2029
		if hit.Parent:FindFirstChild("Humanoid") then
2030
			hit.Parent:Remove()
2031
		end
2032
	end)
2033
end
2034
local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
2035
if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
2036
local h = 5
2037
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2038
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2039
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2040
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2041
scfr = blcf
2042
elseif not scfr then
2043
scfr = blcf
2044
end
2045
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-50),math.rad(90)),.3)
2046
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
2047
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2048
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2049
handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-50),math.rad(10),math.rad(0)),.3)
2050
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
2051
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
2052
        end
2053
        attack=false
2054
        con:disconnect()
2055
        scfr = nil
2056
        pcall(function()
2057
        hitconasdf:disconnect()
2058
        end)
2059
end
2060
if CustomColorEnabled == true then
2061
CustomColorActive()
2062
print("CCE Activated")
2063
end
2064
if thegui.GlowSword.Value.Value == true then
2065
	GlowActive()
2066
	print("GFunction Activated")
2067
end
2068
function Stab()
2069
	plr.Character.Humanoid.WalkSpeed = Speed*2+20
2070
attack=true
2071
local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end) 
2072
for i=0,1,0.1 do
2073
swait()
2074
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
2075
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(60)),.3)
2076
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(20),math.rad(90)),.3)
2077
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-20),math.rad(-90)),.3)
2078
LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2079
RH.C0=clerp(RH.C0,cf(1,-.9,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2080
handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
2081
end
2082
hitconasdf = Hitbox.Touched:connect(function(hit)
2083
                local hum12 = hit.Parent:FindFirstChild("Humanoid")
2084
                if hum12 and not hum12:IsDescendantOf(Character) then
2085
                        so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
2086
                        for i = 1,10 do
2087
                        BreakEffect(BrickColor.new(ColorColor),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
2088
                        end
2089
                        hitconasdf:disconnect()
2090
                end
2091
        end)
2092
if Hackermode == true then
2093
	Hitbox.Touched:connect(function(hit)
2094
		if hit.Parent:FindFirstChild("Humanoid") then
2095
			hit.Parent:BreakJoints()
2096
			hit.Parent.Torso.Position = Vector3.new(hit.Parent.Torso.Position.X + 1, hit.Parent.Torso.Position.Y + 1, hit.Parent.Torso.Position.Z + 1)
2097
		end
2098
	end)
2099
end
2100
if Banmode == true then
2101
	Hitbox.Touched:connect(function(hit)
2102
		if hit.Parent:FindFirstChild("Humanoid") then
2103
			hit.Parent:Remove()
2104
		end
2105
	end)
2106
end
2107
so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,.9)
2108
so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,.9) 
2109
for i=0,1,0.1 do
2110
swait()
2111
local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
2112
if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
2113
local h = 5
2114
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2115
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2116
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2117
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2118
scfr = blcf
2119
elseif not scfr then
2120
scfr = blcf
2121
end
2122
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
2123
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-80)),.4)
2124
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
2125
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.4)
2126
LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
2127
RH.C0=clerp(RH.C0,cf(1,-.9,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4)
2128
handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.4)
2129
end
2130
con:disconnect()
2131
attack=false
2132
scfr = nil
2133
pcall(function()
2134
        hitconasdf:disconnect()
2135
        end)
2136
plr.Character.Humanoid.WalkSpeed = Speed
2137
end
2138
2139
function Spin()
2140
attack=true
2141
local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end)
2142
hitconasdf = Hitbox.Touched:connect(function(hit)
2143
                local hum12 = hit.Parent:FindFirstChild("Humanoid")
2144
                if hum12 and not hum12:IsDescendantOf(Character) then
2145
                        so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
2146
                        for i = 1,5 do
2147
                        BreakEffect(BrickColor.new(ColorColor),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
2148
                        end
2149
                        hitconasdf:disconnect()
2150
                end
2151
        end)
2152
if Hackermode == true then
2153
	Hitbox.Touched:connect(function(hit)
2154
		if hit.Parent:FindFirstChild("Humanoid") then
2155
			hit.Parent:BreakJoints()
2156
			hit.Parent.Torso.Position = Vector3.new(hit.Parent.Torso.Position.X + 1, hit.Parent.Torso.Position.Y + 1, hit.Parent.Torso.Position.Z + 1)
2157
		end
2158
	end)
2159
end
2160
if Banmode == true then
2161
	Hitbox.Touched:connect(function(hit)
2162
		if hit.Parent:FindFirstChild("Humanoid") then
2163
			hit.Parent:Remove()
2164
		end
2165
	end)
2166
end
2167
for i=0,1,1 do
2168
so("http://roblox.com/asset/?id=154965962",Hitbox,1,1)
2169
so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,1) 
2170
swait()
2171
for i=0,1,0.1 do
2172
swait()
2173
local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
2174
if scfr and (Hitbox.Position-scfr.p).magnitude > .1  then
2175
local h = 5
2176
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2177
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2178
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2179
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2180
scfr = blcf
2181
elseif not scfr then
2182
scfr = blcf
2183
end
2184
RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(90),math.rad(0),math.rad(-50)),.3)
2185
LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*angles(math.rad(90),math.rad(0),math.rad(50)),.3)
2186
LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.3)
2187
RH.C0=clerp(RH.C0,cf(1,-.5,-1)*angles(math.rad(-20),math.rad(90),math.rad(0)),.3)
2188
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5)*euler(6*i,0,0),.5)
2189
handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(30)),1)
2190
end
2191
end
2192
attack=false
2193
con:disconnect()
2194
scfr = nil
2195
pcall(function()
2196
        hitconasdf:disconnect()
2197
        end)
2198
end
2199
2200
function ContAttack()
2201
        attack=true
2202
        local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end) 
2203
        hitconasdf = Hitbox.Touched:connect(function(hit)
2204
                local hum12 = hit.Parent:FindFirstChild("Humanoid")
2205
                if hum12 and not hum12:IsDescendantOf(Character) then
2206
                        so('http://roblox.com/asset/?id=154965973',Hitbox,1,1)
2207
                        for i = 1,10 do
2208
                        BreakEffect(BrickColor.new(ColorColor),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5)
2209
                        end
2210
                        hitconasdf:disconnect()
2211
                end
2212
        end) 
2213
        for i=1,4 do
2214
	    swait()
2215
        for i=0,1,0.2 do
2216
                swait()
2217
if Hackermode == true then
2218
Hitbox.Touched:connect(function(hit)
2219
	hit.Parent.Humanoid.Health = 0
2220
end)
2221
end
2222
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(120),math.rad(0),math.rad(20)),.3)
2223
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
2224
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2225
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2226
handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(70),math.rad(-10),math.rad(0)),.3)
2227
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
2228
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
2229
        end
2230
        so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,1) 
2231
        so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,1) 
2232
for i=0,1,0.2 do
2233
swait()
2234
local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
2235
if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
2236
local h = 5
2237
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2238
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2239
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2240
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2241
scfr = blcf
2242
elseif not scfr then
2243
scfr = blcf
2244
end
2245
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(110),math.rad(-90),math.rad(20)),.3)
2246
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
2247
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2248
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2249
handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-60),math.rad(-10),math.rad(0)),.3)
2250
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
2251
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
2252
        end
2253
        for i=0,1,0.2 do
2254
                swait()
2255
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.3)
2256
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3)
2257
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2258
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2259
handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-30),math.rad(-10),math.rad(0)),.3)
2260
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3)
2261
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3)
2262
        end
2263
        so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,.9) 
2264
        so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,.9) 
2265
for i=0,1,0.2 do
2266
swait()
2267
local blcf = Hitbox.CFrame*CFrame.new(0,.3,0)
2268
if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
2269
local h = 5
2270
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2271
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2272
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2273
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2274
scfr = blcf
2275
elseif not scfr then
2276
scfr = blcf
2277
end
2278
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-50),math.rad(90)),.3)
2279
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3)
2280
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2281
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2282
handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-50),math.rad(10),math.rad(0)),.3)
2283
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
2284
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3)
2285
        end
2286
        end
2287
        attack=false
2288
        con:disconnect()
2289
        scfr = nil
2290
        pcall(function()
2291
        hitconasdf:disconnect()
2292
        end)
2293
end
2294
2295
2296
function Sheathe()
2297
attack = true
2298
so("http://www.roblox.com/asset/?id=273797222",Hitbox,1,.9) 
2299
CurrentMode = "Sheathed"
2300
for i = 0,1,0.1 do
2301
swait()
2302
handleweld.Part0 = Torso
2303
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
2304
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.3)
2305
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(190),math.rad(0),math.rad(0)),.3)
2306
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(20),math.rad(-10)),.3)
2307
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2308
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2309
handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
2310
end
2311
attack = false
2312
end
2313
2314
function Unsheathe()
2315
attack = true
2316
CurrentMode = "Unsheathed"
2317
so("http://www.roblox.com/asset/?id=239169404",Hitbox,1,.9) 
2318
for i = 0,1,0.1 do
2319
swait()
2320
handleweld.Part0 = RightArm
2321
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
2322
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
2323
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(200),math.rad(0),math.rad(0)),.3)
2324
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(-30),math.rad(-30)),.3)
2325
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2326
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2327
handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3)
2328
end
2329
scfr = nil
2330
attack = false
2331
end
2332
2333
local Sit = false
2334
2335
mouse.Button1Down:connect(function()
2336
        if attack==false then
2337
                if attacktype==1 and CurrentMode == "Unsheathed" then
2338
                        attack=true
2339
                        attacktype=2
2340
                        attackone()
2341
                elseif attacktype==2 and CurrentMode == "Unsheathed" then
2342
                        attack=true
2343
                        attacktype=1
2344
                        attacktwo()
2345
                end
2346
        end
2347
end)
2348
2349
mouse.KeyDown:connect(function(k)
2350
        k=k:lower()
2351
        if k=='q' then
2352
                if attack==false and CurrentMode == "Unsheathed" then
2353
                        Stab()
2354
                end
2355
                elseif k=='e' then
2356
                if attack==false and CurrentMode == "Unsheathed" then
2357
                        Spin()
2358
                end
2359
                elseif k=='r' then
2360
                if attack==false and CurrentMode == "Unsheathed" then
2361
                        ContAttack()
2362
                end
2363
                elseif k=='f' then
2364
                if attack==false and CurrentMode == "Unsheathed" then
2365
                        Sheathe()
2366
                elseif k=='f' then
2367
                if attack==false and Sit == false and CurrentMode == "Sheathed" then
2368
                        Unsheathe()
2369
                end
2370
                end
2371
                elseif k=='t' then
2372
                if attack==false and Sit == false and CurrentMode == "Sheathed" then
2373
                Sit = true
2374
                Humanoid.WalkSpeed = 0
2375
                elseif k=='t' then
2376
                if attack==false and Sit == true and CurrentMode == "Sheathed" then
2377
                Sit = false
2378
                Humanoid.WalkSpeed = 16
2379
                end
2380
                end
2381
2382
        end
2383
end)
2384
2385
2386
local sine = 0
2387
local change = 1
2388
local val = 0
2389
2390
while true do
2391
swait()
2392
sine = sine + change
2393
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
2394
local velderp=RootPart.Velocity.y
2395
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
2396
if equipped==true or equipped==false then
2397
if attack==false then
2398
idle=idle+1
2399
else
2400
idle=0
2401
end
2402
if idle>=500 then
2403
if attack==false then
2404
end
2405
end
2406
if RootPart.Velocity.y > 1 and hitfloor==nil then 
2407
Anim="Jump"
2408
if attack==false and Sit == false and CurrentMode == "Unsheathed" then
2409
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
2410
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
2411
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(50),math.rad(0),math.rad(30)),.3)
2412
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-40),math.rad(5),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2413
LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2414
handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(85),math.rad(-10),math.rad(0)),.3)
2415
end
2416
if attack==false and Sit == false and CurrentMode == "Sheathed" then
2417
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
2418
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
2419
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(30)),.3)
2420
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-30)),.3)
2421
LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
2422
RH.C0=clerp(RH.C0,cf(1,-1,-.2)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
2423
handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
2424
end
2425
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
2426
Anim="Fall"
2427
if attack==false and Sit == false and CurrentMode == "Unsheathed" then
2428
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
2429
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
2430
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-5),math.rad(0),math.rad(20)),.3)
2431
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-40),math.rad(5),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2432
LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2433
handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(85),math.rad(-10),math.rad(0)),.3)
2434
end
2435
if attack==false and Sit == false and CurrentMode == "Sheathed" then
2436
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
2437
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
2438
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(50)),.3)
2439
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-50)),.3)
2440
LH.C0=clerp(LH.C0,cf(-1,-.5,-.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
2441
RH.C0=clerp(RH.C0,cf(1,-1,-.5)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
2442
handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
2443
end
2444
elseif torvel<1 and hitfloor~=nil then
2445
Anim="Idle"
2446
if attack==false and Sit == false and CurrentMode == "Unsheathed" then
2447
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.3)
2448
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(40)),.3)
2449
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(40),math.rad(0),math.rad(20)),.3)
2450
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(20),math.rad(-10)),.3)
2451
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2452
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2453
handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(85),math.rad(-10),math.rad(0)),.3)
2454
end
2455
if attack==false and Sit == false and CurrentMode == "Sheathed" then
2456
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
2457
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(0)),.3)
2458
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(5)),.3)
2459
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-5)),.3)
2460
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
2461
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
2462
handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
2463
end
2464
if attack==false and Sit == true and CurrentMode == "Sheathed" then
2465
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
2466
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
2467
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-10),math.rad(0),math.rad(5)),.3)
2468
LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(30)),.3)
2469
LH.C0=clerp(LH.C0,cf(-1,.7,-.5)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
2470
RH.C0=clerp(RH.C0,cf(1,-.5,-.5)*angles(math.rad(0),math.rad(90),math.rad(70))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
2471
handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
2472
end
2473
elseif torvel>2 and hitfloor~=nil then
2474
Anim="Walk"
2475
if attack==false and Sit == false and CurrentMode == "Unsheathed" then
2476
change=3
2477
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
2478
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
2479
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-5),math.rad(0),math.rad(20)),.3)
2480
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-30),math.rad(5),math.rad(-10)),.3)
2481
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
2482
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
2483
handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(15),math.rad(-10),math.rad(0)),.3)
2484
end
2485
if attack==false and Sit == false and CurrentMode == "Sheathed" then
2486
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
2487
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2488
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(30*math.cos(sine/10)),math.rad(0),math.rad(5)),.3)
2489
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-30*math.cos(sine/10)),math.rad(0),math.rad(-5)),.3)
2490
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
2491
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
2492
handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3)
2493
end
2494
end
2495
end
2496
if thegui.TimeChanger.Value.Value == true then
2497
	game.Lighting.Ambient = Color3.fromRGB(10,10,10)
2498
	game.Lighting.Brightness = 0
2499
	game.Lighting.GlobalShadows = false
2500
	game.Lighting.TimeOfDay = 0
2501
	wait(0)
2502
end
2503
if thegui.Rainbow.Value.Value == true and thegui.Light.Value.Value == true then
2504
	plr.Character.Torso.Lite.Color = Color3.new(math.random(), math.random(), math.random())
2505
end
2506
CustomColorEnabled = false
2507
if #Effects>0 then
2508
for e=1,#Effects do
2509
if Effects[e]~=nil then
2510
local Thing=Effects[e]
2511
if Thing~=nil then
2512
local Part=Thing[1]
2513
local Mode=Thing[2]
2514
local Delay=Thing[3]
2515
local IncX=Thing[4]
2516
local IncY=Thing[5]
2517
local IncZ=Thing[6]
2518
if Thing[1].Transparency<=1 then
2519
if Thing[2]=="Block1" then
2520
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2521
Mesh=Thing[1].Mesh
2522
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2523
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2524
elseif Thing[2]=="Cylinder" then
2525
Mesh=Thing[1].Mesh
2526
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2527
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2528
elseif Thing[2]=="Blood" then
2529
Mesh=Thing[7]
2530
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
2531
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2532
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2533
elseif Thing[2]=="Elec" then
2534
Mesh=Thing[1].Mesh
2535
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
2536
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2537
elseif Thing[2]=="Disappear" then
2538
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2539
end
2540
else
2541
Part.Parent=nil
2542
table.remove(Effects,e)
2543
end
2544
end
2545
end
2546
end
2547
end
2548
end
2549
print("hey im done")