View difference between Paste ID: mzjiNfqp and vWaGdxja
SHOW: | | - or go back to the newest paste.
1
2
if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
3
do
4
	script.Parent = owner.Character
5
	local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
6
	local function NewFakeEvent()
7
		local Bind = Instance.new("BindableEvent")
8
		local Fake;Fake = {Connections = {},
9
		fakeEvent=true;
10
		Connect=function(self,Func)
11
			Bind.Event:connect(Func)
12
			self.Connections[Bind] = true
13
			return setmetatable({Connected = true},{
14
			__index = function (self,Index)
15
				if Index:lower() == "disconnect" then
16
					return function() Fake.Connections[Bind] = false;self.Connected = false end
17
				end
18
				return Fake[Index]
19
			end;
20
			__tostring = function() return "Connection" end;
21
		})
22
		end}
23
		Fake.connect = Fake.Connect;return Fake;
24
	end
25
	local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
26
	local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
27
	local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
28
		self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
29
	end};ContextActionService.UnBindAction = ContextActionService.BindAction
30
	local function TriggerEvent(self,Event,...)
31
		local Trigger = Mouse[Event]
32
		if Trigger and Trigger.fakeEvent and Trigger.Connections then
33
			for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
34
		end
35
	end
36
	Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
37
	Event.OnServerEvent:Connect(function(FiredBy,Input)
38
		if FiredBy.Name ~= owner.Name then return end
39
		if Input.MouseEvent then
40
			Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
41
		else
42
			local Begin = Input.UserInputState == Enum.UserInputState.Begin
43
			if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
44
			for _,Action in pairs(ContextActionService.Actions) do
45
				for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
46
			end
47
			Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
48
			UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
49
		end
50
	end)
51
	InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
52
	Event.Parent = NLS([[
53
		local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
54
		local Input = function(Input,gameProcessedEvent)
55
			if gameProcessedEvent then return end
56
			Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
57
		end
58
		UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
59
		local Hit,Target
60
		while wait(1/30) do
61
			if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
62
				Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
63
			end
64
		end
65
	]],owner.Character)
66
end
67
RealGame = game;game = setmetatable({},{
68
	__index = function (self,Index)
69
		local Sandbox = function (Thing)
70
			if Thing:IsA("Player") then
71
				local RealPlayer = Thing
72
				return setmetatable({},{
73
					__index = function (self,Index)
74
						local Type = type(RealPlayer[Index])
75
						if Type == "function" then
76
							if Index:lower() == "getmouse" or Index:lower() == "mouse" then
77
								return function (self)return InternalData["Mouse"] end
78
							end
79
							return function (self,...)return RealPlayer[Index](RealPlayer,...) end
80
						end
81
						return RealPlayer[Index]
82
					end;
83
					__tostring = function(self) return RealPlayer.Name end
84
				})
85
			end
86
		end
87
		if RealGame[Index] then
88
			local Type = type(RealGame[Index])
89
			if Type == "function" then
90
				if Index:lower() == "getservice" or Index:lower() == "service" then
91
					return function (self,Service)
92
						local FakeServices = {
93
							["players"] = function()
94
								return setmetatable({},{
95
									__index = function (self2,Index2)
96
										local RealService = RealGame:GetService(Service)
97
										local Type2 = type(Index2)
98
										if Type2 == "function" then
99
											return function (self,...) return RealService[Index2](RealService,...)end
100
										else
101
											if Index2:lower() == "localplayer" then return Sandbox(owner) end
102
											return RealService[Index2]
103
										end
104
									end;
105
									__tostring = function(self) return RealGame:GetService(Service).Name end
106
								})
107
							end;
108
							["contextactionservice"] = function() return InternalData["ContextActionService"] end;
109
							["userinputservice"] = function() return InternalData["UserInputService"] end;
110
							["runservice"] = function()
111
								return setmetatable({},{
112
									__index = function(self2,Index2)
113
										local RealService = RealGame:GetService(Service)
114
										local Type2 = type(Index2)
115
										if Type2 == "function" then
116
											return function (self,...) return RealService[Index2](RealService,...) end
117
										else
118
											local RunServices = {
119
												["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
120
												["renderstepped"] = function() return RealService["Stepped"] end
121
											}
122
											if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
123
											return RealService[Index2]
124
										end
125
									end
126
								})
127
							end
128
						}
129
						if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
130
						return RealGame:GetService(Service)
131
					end
132
				end
133
				return function (self,...) return RealGame[Index](RealGame,...) end
134
			else
135
				if game:GetService(Index) then return game:GetService(Index) end
136
				return RealGame[Index]
137
			end
138
		end
139
		return nil
140
	end
141
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
142
143
local plrs = game:GetService("Players")
144
local plr = plrs.LocalPlayer
145
local char = plr.Character
146
local tweenserv = game:GetService("TweenService")
147
local lighting = game:GetService("Lighting")
148
local hum = char:FindFirstChildOfClass("Humanoid")
149
local mou = plr:GetMouse()
150
local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
151
local root = char:FindFirstChild("HumanoidRootPart")
152
local head = char:FindFirstChild("Head")
153
local face = head:FindFirstChildOfClass("Decal")
154
local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm")
155
local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm")
156
local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg")
157
local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg")
158
local neck = tor:FindFirstChild("Neck")
159
local rootj = root:FindFirstChild("RootJoint")
160
local LS = tor:FindFirstChild("Left Shoulder")
161
local RS = tor:FindFirstChild("Right Shoulder")
162
local LH = tor:FindFirstChild("Left Hip")
163
local RH = tor:FindFirstChild("Right Hip")
164
local bp = plr:FindFirstChild("Backpack")
165
local cam = workspace.CurrentCamera
166
shirt = Instance.new("Shirt", char)
167
shirt.Name = "Shirt"
168
pants = Instance.new("Pants", char)
169
pants.Name = "Pants"
170
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=279525348"
171
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=279356147"
172
head.BrickColor = BrickColor.new("Pastel brown")
173
    for i,v in pairs(char:GetChildren()) do
174
        if v.ClassName == "Accessory" or v.ClassName == "Hat" then
175
            v:destroy()
176
        end
177
    end
178
179
script.Name = "Oilsauce's Excalibur"
180
hum:ClearAllChildren()
181
char.Animate:remove()
182
local Hair = Instance.new("Part")
183
Hair.Parent = char
184
Hair.Name = "Hair"
185
Hair.Size = Vector3.new(1, 1, 1)
186
Hair.CFrame = head.CFrame
187
Hair:BreakJoints()
188
Hair.CanCollide = false
189
Hair.TopSurface = "Smooth"
190
Hair.BottomSurface = "Smooth"
191
Hair.BrickColor = BrickColor.new("White")
192
Weld = Instance.new("Weld")
193
Weld.Name = "Weld"
194
Weld.Part0 = head
195
Weld.Part1 = Hair
196
Weld.Parent = head
197
Weld.C0 = CFrame.new(0.01,0.3,0.0)*CFrame.fromEulerAnglesXYZ(0,0,0)
198
Mesh = Instance.new("SpecialMesh")
199
Mesh.Parent = Hair
200
Mesh.MeshId = "rbxassetid://1018858340"
201
Mesh.TextureId = "rbxassetid://36378680"
202
Mesh.Scale = Vector3.new(1.05,1, 1)
203
local AZZ = Instance.new("ParticleEmitter",rarm)
204
AZZ.Texture = "rbxassetid://278520320"
205
AZZ.EmissionDirection = "Top"
206
AZZ.Rotation = NumberRange.new(-100, 100)
207
AZZ.Size = NumberSequence.new(1)
208
AZZ.Lifetime = NumberRange.new(0.8,1)
209
AZZ.Rate = 17
210
AZZ.Speed = NumberRange.new(0.3)
211
AZZ.LightEmission = 1
212
AZZ.VelocitySpread = 100
213
local mAZZ = Instance.new("ParticleEmitter",rarm)
214
mAZZ.Texture = "rbxassetid://833874434"
215
mAZZ.EmissionDirection = "Top"
216
mAZZ.Rotation = NumberRange.new(-100, 100)
217
mAZZ.Size = NumberSequence.new(1)
218
mAZZ.Lifetime = NumberRange.new(0.8,1)
219
mAZZ.Rate = 17
220
mAZZ.Speed = NumberRange.new(0.3)
221
mAZZ.LightEmission = 1
222
mAZZ.VelocitySpread = 100
223
local LAZZ = Instance.new("ParticleEmitter",larm)
224
LAZZ.Texture = "rbxassetid://278520320"
225
LAZZ.EmissionDirection = "Top"
226
LAZZ.Rotation = NumberRange.new(-100, 100)
227
LAZZ.Size = NumberSequence.new(1)
228
LAZZ.Lifetime = NumberRange.new(0.8,1)
229
LAZZ.Rate = 17
230
LAZZ.Speed = NumberRange.new(0.3)
231
LAZZ.LightEmission = 1
232
LAZZ.VelocitySpread = 100
233
local lAZZ = Instance.new("ParticleEmitter",larm)
234
lAZZ.Texture = "rbxassetid://833874434"
235
lAZZ.EmissionDirection = "Top"
236
lAZZ.Rotation = NumberRange.new(-100, 100)
237
lAZZ.Size = NumberSequence.new(1)
238
lAZZ.Lifetime = NumberRange.new(0.8,1)
239
lAZZ.Rate = 17
240
lAZZ.Speed = NumberRange.new(0.3)
241
lAZZ.LightEmission = 1
242
lAZZ.VelocitySpread = 100
243
local sAZZ = Instance.new("ParticleEmitter",tor)
244
sAZZ.Texture = "rbxassetid://278520320"
245
sAZZ.EmissionDirection = "Top"
246
sAZZ.Rotation = NumberRange.new(-100, 100)
247
sAZZ.Size = NumberSequence.new(1)
248
sAZZ.Lifetime = NumberRange.new(0.8,1)
249
sAZZ.Rate = 17
250
sAZZ.Speed = NumberRange.new(0.3)
251
sAZZ.LightEmission = 1
252
sAZZ.VelocitySpread = 100
253
local SAZZ = Instance.new("ParticleEmitter",tor)
254
SAZZ.Texture = "rbxassetid://833874434"
255
SAZZ.EmissionDirection = "Top"
256
SAZZ.Rotation = NumberRange.new(-100, 100)
257
SAZZ.Size = NumberSequence.new(1)
258
SAZZ.Lifetime = NumberRange.new(0.8,1)
259
SAZZ.Rate = 17
260
SAZZ.Speed = NumberRange.new(0.3)
261
SAZZ.LightEmission = 1
262
SAZZ.VelocitySpread = 100
263
local ZAZZ = Instance.new("ParticleEmitter",head)
264
ZAZZ.Texture = "rbxassetid://278520320"
265
ZAZZ.EmissionDirection = "Top"
266
ZAZZ.Rotation = NumberRange.new(-100, 100)
267
ZAZZ.Size = NumberSequence.new(1)
268
ZAZZ.Lifetime = NumberRange.new(0.8,1)
269
ZAZZ.Rate = 17
270
ZAZZ.Speed = NumberRange.new(0.3)
271
ZAZZ.LightEmission = 1
272
ZAZZ.VelocitySpread = 100
273
local BAZZ = Instance.new("ParticleEmitter",rleg)
274
BAZZ.Texture = "rbxassetid://278520320"
275
BAZZ.EmissionDirection = "Top"
276
BAZZ.Rotation = NumberRange.new(-100, 100)
277
BAZZ.Size = NumberSequence.new(1)
278
BAZZ.Lifetime = NumberRange.new(0.8,1)
279
BAZZ.Rate = 17
280
BAZZ.Speed = NumberRange.new(0.3)
281
BAZZ.LightEmission = 1
282
BAZZ.VelocitySpread = 100
283
local CAZZ = Instance.new("ParticleEmitter",lleg)
284
CAZZ.Texture = "rbxassetid://278520320"
285
CAZZ.EmissionDirection = "Top"
286
CAZZ.Rotation = NumberRange.new(-100, 100)
287
CAZZ.Size = NumberSequence.new(1)
288
CAZZ.Lifetime = NumberRange.new(0.8,1)
289
CAZZ.Rate = 17
290
CAZZ.Speed = NumberRange.new(0.3)
291
CAZZ.LightEmission = 1
292
CAZZ.VelocitySpread = 100
293
--Converted with ttyyuu12345's model to script plugin v4
294
function sandbox(var,func)
295
	local env = getfenv(func)
296
	local newenv = setmetatable({},{
297
		__index = function(self,k)
298
			if k=="script" then
299
				return var
300
			else
301
				return env[k]
302
			end
303
		end,
304
	})
305
	setfenv(func,newenv)
306
	return func
307
end
308
cors = {}
309
mas = Instance.new("Model",game:GetService("Lighting"))
310
Model0 = Instance.new("Model")
311
Part1 = Instance.new("Part")
312
ManualWeld2 = Instance.new("ManualWeld")
313
Part3 = Instance.new("Part")
314
ManualWeld4 = Instance.new("ManualWeld")
315
Part5 = Instance.new("Part")
316
ManualWeld6 = Instance.new("ManualWeld")
317
Part7 = Instance.new("Part")
318
ManualWeld8 = Instance.new("ManualWeld")
319
Part9 = Instance.new("Part")
320
ManualWeld10 = Instance.new("ManualWeld")
321
Part11 = Instance.new("Part")
322
ManualWeld12 = Instance.new("ManualWeld")
323
Part13 = Instance.new("Part")
324
ManualWeld14 = Instance.new("ManualWeld")
325
Part15 = Instance.new("Part")
326
CornerWedgePart16 = Instance.new("CornerWedgePart")
327
ManualWeld17 = Instance.new("ManualWeld")
328
CornerWedgePart18 = Instance.new("CornerWedgePart")
329
ManualWeld19 = Instance.new("ManualWeld")
330
CornerWedgePart20 = Instance.new("CornerWedgePart")
331
ManualWeld21 = Instance.new("ManualWeld")
332
CornerWedgePart22 = Instance.new("CornerWedgePart")
333
ManualWeld23 = Instance.new("ManualWeld")
334
WedgePart24 = Instance.new("WedgePart")
335
ManualWeld25 = Instance.new("ManualWeld")
336
WedgePart26 = Instance.new("WedgePart")
337
ManualWeld27 = Instance.new("ManualWeld")
338
WedgePart28 = Instance.new("WedgePart")
339
ManualWeld29 = Instance.new("ManualWeld")
340
WedgePart30 = Instance.new("WedgePart")
341
ManualWeld31 = Instance.new("ManualWeld")
342
Part32 = Instance.new("Part")
343
ManualWeld33 = Instance.new("ManualWeld")
344
Part34 = Instance.new("Part")
345
ManualWeld35 = Instance.new("ManualWeld")
346
Model0.Name = "OilStyled-Arthur-Excalibur"
347
Model0.Parent = mas
348
Model0.PrimaryPart = Part32
349
Part1.Parent = Model0
350
Part1.Material = Enum.Material.Glass
351
Part1.BrickColor = BrickColor.new("Gold")
352
Part1.Rotation = Vector3.new(0, 90, 0)
353
Part1.CanCollide = false
354
Part1.Locked = true
355
Part1.Shape = Enum.PartType.Cylinder
356
Part1.Size = Vector3.new(1.20000005, 0.299999952, 0.299999952)
357
Part1.CFrame = CFrame.new(-14.0602179, 9.95006561, 0.555490255, 0, 0, 1, 0, 1, 0, -1, 0, 0)
358
Part1.BottomSurface = Enum.SurfaceType.Smooth
359
Part1.TopSurface = Enum.SurfaceType.Smooth
360
Part1.Color = Color3.new(0.937255, 0.721569, 0.219608)
361
Part1.Position = Vector3.new(-14.0602179, 9.95006561, 0.555490255)
362
Part1.Orientation = Vector3.new(0, 90, 0)
363
Part1.Color = Color3.new(0.937255, 0.721569, 0.219608)
364
ManualWeld2.Name = "Weld"
365
ManualWeld2.Parent = Part1
366
ManualWeld2.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
367
ManualWeld2.C1 = CFrame.new(-4.24999714, -0.0073223114, 0.00865459442, 0, 0, -1, 0, 1, 0, 1, 0, 0)
368
ManualWeld2.Part0 = Part1
369
ManualWeld2.Part1 = Part15
370
Part3.Parent = Model0
371
Part3.Material = Enum.Material.Glass
372
Part3.BrickColor = BrickColor.new("Gold")
373
Part3.Rotation = Vector3.new(-180, 0, 90)
374
Part3.CanCollide = false
375
Part3.Locked = true
376
Part3.Shape = Enum.PartType.Cylinder
377
Part3.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006)
378
Part3.CFrame = CFrame.new(-14.0602179, 9.95005989, 1.25548816, 0, -1, 0, -1, 0, 0, 0, 0, -1)
379
Part3.BottomSurface = Enum.SurfaceType.Smooth
380
Part3.TopSurface = Enum.SurfaceType.Smooth
381
Part3.Color = Color3.new(0.937255, 0.721569, 0.219608)
382
Part3.Position = Vector3.new(-14.0602179, 9.95005989, 1.25548816)
383
Part3.Orientation = Vector3.new(0, 180, -90)
384
Part3.Color = Color3.new(0.937255, 0.721569, 0.219608)
385
ManualWeld4.Name = "Weld"
386
ManualWeld4.Parent = Part3
387
ManualWeld4.C0 = CFrame.new(0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1)
388
ManualWeld4.C1 = CFrame.new(-4.94999504, -0.00732803345, 0.00865459442, 0, 0, -1, 0, 1, 0, 1, 0, 0)
389
ManualWeld4.Part0 = Part3
390
ManualWeld4.Part1 = Part15
391
Part5.Parent = Model0
392
Part5.Material = Enum.Material.Wood
393
Part5.BrickColor = BrickColor.new("CGA brown")
394
Part5.Rotation = Vector3.new(0, 90, 0)
395
Part5.CanCollide = false
396
Part5.Locked = true
397
Part5.Shape = Enum.PartType.Cylinder
398
Part5.Size = Vector3.new(0.699999928, 0.349999994, 0.349999994)
399
Part5.CFrame = CFrame.new(-14.0602179, 9.95005989, 0.60549283, 0, 0, 1, 0, 1, 0, -1, 0, 0)
400
Part5.BottomSurface = Enum.SurfaceType.Smooth
401
Part5.TopSurface = Enum.SurfaceType.Smooth
402
Part5.Color = Color3.new(0.666667, 0.333333, 0)
403
Part5.Position = Vector3.new(-14.0602179, 9.95005989, 0.60549283)
404
Part5.Orientation = Vector3.new(0, 90, 0)
405
Part5.Color = Color3.new(0.666667, 0.333333, 0)
406
ManualWeld6.Name = "Weld"
407
ManualWeld6.Parent = Part5
408
ManualWeld6.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
409
ManualWeld6.C1 = CFrame.new(-4.29999971, -0.00732803345, 0.00865459442, 0, 0, -1, 0, 1, 0, 1, 0, 0)
410
ManualWeld6.Part0 = Part5
411
ManualWeld6.Part1 = Part15
412
Part7.Parent = Model0
413
Part7.Material = Enum.Material.Glass
414
Part7.BrickColor = BrickColor.new("Gold")
415
Part7.Rotation = Vector3.new(0, 90, 0)
416
Part7.CanCollide = false
417
Part7.Locked = true
418
Part7.Size = Vector3.new(0.199999899, 0.399999976, 2)
419
Part7.CFrame = CFrame.new(-14.018878, 9.95738792, 0.0554900169, 0, 0, 1, 0, 1, 0, -1, 0, 0)
420
Part7.BottomSurface = Enum.SurfaceType.Smooth
421
Part7.TopSurface = Enum.SurfaceType.Smooth
422
Part7.Color = Color3.new(0.937255, 0.721569, 0.219608)
423
Part7.Position = Vector3.new(-14.018878, 9.95738792, 0.0554900169)
424
Part7.Orientation = Vector3.new(0, 90, 0)
425
Part7.Color = Color3.new(0.937255, 0.721569, 0.219608)
426
ManualWeld8.Name = "Weld"
427
ManualWeld8.Parent = Part7
428
ManualWeld8.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
429
ManualWeld8.C1 = CFrame.new(-3.7499969, 0, 0.0499944687, 0, 0, -1, 0, 1, 0, 1, 0, 0)
430
ManualWeld8.Part0 = Part7
431
ManualWeld8.Part1 = Part15
432
Part9.Parent = Model0
433
Part9.Material = Enum.Material.Glass
434
Part9.BrickColor = BrickColor.new("Lily white")
435
Part9.Reflectance = 0.10000000149012
436
Part9.Rotation = Vector3.new(0, 90, 0)
437
Part9.CanCollide = false
438
Part9.Locked = true
439
Part9.Size = Vector3.new(4.69999981, 0.0999999717, 0.100000016)
440
Part9.CFrame = CFrame.new(-14.1688719, 9.95738411, -2.39450908, 0, 0, 1, 0, 1, 0, -1, 0, 0)
441
Part9.BottomSurface = Enum.SurfaceType.Smooth
442
Part9.TopSurface = Enum.SurfaceType.Smooth
443
Part9.Color = Color3.new(0.929412, 0.917647, 0.917647)
444
Part9.Position = Vector3.new(-14.1688719, 9.95738411, -2.39450908)
445
Part9.Orientation = Vector3.new(0, 90, 0)
446
Part9.Color = Color3.new(0.929412, 0.917647, 0.917647)
447
ManualWeld10.Name = "Weld"
448
ManualWeld10.Parent = Part9
449
ManualWeld10.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
450
ManualWeld10.C1 = CFrame.new(-1.29999781, -3.81469727e-06, -0.0999994278, 0, 0, -1, 0, 1, 0, 1, 0, 0)
451
ManualWeld10.Part0 = Part9
452
ManualWeld10.Part1 = Part15
453
Part11.Parent = Model0
454
Part11.Material = Enum.Material.Glass
455
Part11.BrickColor = BrickColor.new("Lily white")
456
Part11.Reflectance = 0.10000000149012
457
Part11.Rotation = Vector3.new(0, 90, 0)
458
Part11.CanCollide = false
459
Part11.Locked = true
460
Part11.Size = Vector3.new(4.69999981, 0.0999999717, 0.100000016)
461
Part11.CFrame = CFrame.new(-13.9688702, 9.95738602, -2.39450788, 0, 0, 1, 0, 1, 0, -1, 0, 0)
462
Part11.BottomSurface = Enum.SurfaceType.Smooth
463
Part11.TopSurface = Enum.SurfaceType.Smooth
464
Part11.Color = Color3.new(0.929412, 0.917647, 0.917647)
465
Part11.Position = Vector3.new(-13.9688702, 9.95738602, -2.39450788)
466
Part11.Orientation = Vector3.new(0, 90, 0)
467
Part11.Color = Color3.new(0.929412, 0.917647, 0.917647)
468
ManualWeld12.Name = "Weld"
469
ManualWeld12.Parent = Part11
470
ManualWeld12.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
471
ManualWeld12.C1 = CFrame.new(-1.299999, -1.90734863e-06, 0.100002289, 0, 0, -1, 0, 1, 0, 1, 0, 0)
472
ManualWeld12.Part0 = Part11
473
ManualWeld12.Part1 = Part15
474
Part13.Parent = Model0
475
Part13.Material = Enum.Material.Glass
476
Part13.BrickColor = BrickColor.new("Lily white")
477
Part13.Reflectance = 0.10000000149012
478
Part13.Rotation = Vector3.new(0, 90, 0)
479
Part13.CanCollide = false
480
Part13.Locked = true
481
Part13.Size = Vector3.new(2.5999999, 0.0500000007, 0.100000016)
482
Part13.CFrame = CFrame.new(-14.0688677, 9.95738602, -1.34450984, 0, 0, 1, 0, 1, 0, -1, 0, 0)
483
Part13.BottomSurface = Enum.SurfaceType.Smooth
484
Part13.TopSurface = Enum.SurfaceType.Smooth
485
Part13.Color = Color3.new(0.929412, 0.917647, 0.917647)
486
Part13.Position = Vector3.new(-14.0688677, 9.95738602, -1.34450984)
487
Part13.Orientation = Vector3.new(0, 90, 0)
488
Part13.Color = Color3.new(0.929412, 0.917647, 0.917647)
489
ManualWeld14.Name = "Weld"
490
ManualWeld14.Parent = Part13
491
ManualWeld14.C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
492
ManualWeld14.C1 = CFrame.new(-2.34999704, -1.90734863e-06, 4.76837158e-06, 0, 0, -1, 0, 1, 0, 1, 0, 0)
493
ManualWeld14.Part0 = Part13
494
ManualWeld14.Part1 = Part15
495
Part15.Parent = Model0
496
Part15.Material = Enum.Material.Glass
497
Part15.BrickColor = BrickColor.new("Lily white")
498
Part15.Reflectance = 0.10000000149012
499
Part15.Rotation = Vector3.new(0, 90, 0)
500
Part15.CanCollide = false
501
Part15.Locked = true
502
Part15.Size = Vector3.new(2.0999999, 0.100000001, 0.100000016)
503
Part15.CFrame = CFrame.new(-14.0688725, 9.95738792, -3.69450688, 0, 0, 1, 0, 1, 0, -1, 0, 0)
504
Part15.BottomSurface = Enum.SurfaceType.Smooth
505
Part15.TopSurface = Enum.SurfaceType.Smooth
506
Part15.Color = Color3.new(0.929412, 0.917647, 0.917647)
507
Part15.Position = Vector3.new(-14.0688725, 9.95738792, -3.69450688)
508
Part15.Orientation = Vector3.new(0, 90, 0)
509
Part15.Color = Color3.new(0.929412, 0.917647, 0.917647)
510
CornerWedgePart16.Parent = Model0
511
CornerWedgePart16.Material = Enum.Material.Glass
512
CornerWedgePart16.BrickColor = BrickColor.new("Lily white")
513
CornerWedgePart16.Reflectance = 0.10000000149012
514
CornerWedgePart16.Rotation = Vector3.new(-90, -90, 0)
515
CornerWedgePart16.CanCollide = false
516
CornerWedgePart16.Locked = true
517
CornerWedgePart16.Size = Vector3.new(0.0500000007, 0.899999976, 0.150000006)
518
CornerWedgePart16.CFrame = CFrame.new(-14.1444778, 9.93199825, -5.18227577, 0, 0, -1, 1, 0, 0, 0, -1, 0)
519
CornerWedgePart16.Color = Color3.new(0.929412, 0.917647, 0.917647)
520
CornerWedgePart16.Position = Vector3.new(-14.1444778, 9.93199825, -5.18227577)
521
CornerWedgePart16.Orientation = Vector3.new(0, -90, 90)
522
CornerWedgePart16.Color = Color3.new(0.929412, 0.917647, 0.917647)
523
ManualWeld17.Name = "Weld"
524
ManualWeld17.Parent = CornerWedgePart16
525
ManualWeld17.C0 = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, -1, -1, 0, 0)
526
ManualWeld17.C1 = CFrame.new(1.48776889, -0.0253896713, -0.0756053925, 0, 0, -1, 0, 1, 0, 1, 0, 0)
527
ManualWeld17.Part0 = CornerWedgePart16
528
ManualWeld17.Part1 = Part15
529
CornerWedgePart18.Parent = Model0
530
CornerWedgePart18.Material = Enum.Material.Glass
531
CornerWedgePart18.BrickColor = BrickColor.new("Lily white")
532
CornerWedgePart18.Reflectance = 0.10000000149012
533
CornerWedgePart18.Rotation = Vector3.new(-90, 90, 0)
534
CornerWedgePart18.CanCollide = false
535
CornerWedgePart18.Locked = true
536
CornerWedgePart18.Size = Vector3.new(0.0500000007, 0.899999976, 0.150000006)
537
CornerWedgePart18.CFrame = CFrame.new(-13.9944744, 9.98199368, -5.18227577, 0, 0, 1, -1, 0, 0, 0, -1, 0)
538
CornerWedgePart18.Color = Color3.new(0.929412, 0.917647, 0.917647)
539
CornerWedgePart18.Position = Vector3.new(-13.9944744, 9.98199368, -5.18227577)
540
CornerWedgePart18.Orientation = Vector3.new(0, 90, -90)
541
CornerWedgePart18.Color = Color3.new(0.929412, 0.917647, 0.917647)
542
ManualWeld19.Name = "Weld"
543
ManualWeld19.Parent = CornerWedgePart18
544
ManualWeld19.C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0)
545
ManualWeld19.C1 = CFrame.new(1.48776889, 0.024605751, 0.0743980408, 0, 0, -1, 0, 1, 0, 1, 0, 0)
546
ManualWeld19.Part0 = CornerWedgePart18
547
ManualWeld19.Part1 = Part15
548
CornerWedgePart20.Parent = Model0
549
CornerWedgePart20.Material = Enum.Material.Glass
550
CornerWedgePart20.BrickColor = BrickColor.new("Lily white")
551
CornerWedgePart20.Reflectance = 0.10000000149012
552
CornerWedgePart20.Rotation = Vector3.new(-90, 0, 0)
553
CornerWedgePart20.CanCollide = false
554
CornerWedgePart20.Locked = true
555
CornerWedgePart20.Size = Vector3.new(0.150000006, 0.899999976, 0.0500000007)
556
CornerWedgePart20.CFrame = CFrame.new(-14.1444778, 9.98199844, -5.18227577, 1, 0, 0, 0, 0, 1, 0, -1, 0)
557
CornerWedgePart20.Color = Color3.new(0.929412, 0.917647, 0.917647)
558
CornerWedgePart20.Position = Vector3.new(-14.1444778, 9.98199844, -5.18227577)
559
CornerWedgePart20.Orientation = Vector3.new(-90, 0, 0)
560
CornerWedgePart20.Color = Color3.new(0.929412, 0.917647, 0.917647)
561
ManualWeld21.Name = "Weld"
562
ManualWeld21.Parent = CornerWedgePart20
563
ManualWeld21.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0)
564
ManualWeld21.C1 = CFrame.new(1.48776889, 0.0246105194, -0.0756053925, 0, 0, -1, 0, 1, 0, 1, 0, 0)
565
ManualWeld21.Part0 = CornerWedgePart20
566
ManualWeld21.Part1 = Part15
567
CornerWedgePart22.Parent = Model0
568
CornerWedgePart22.Material = Enum.Material.Glass
569
CornerWedgePart22.BrickColor = BrickColor.new("Lily white")
570
CornerWedgePart22.Reflectance = 0.10000000149012
571
CornerWedgePart22.Rotation = Vector3.new(90, 0, -180)
572
CornerWedgePart22.CanCollide = false
573
CornerWedgePart22.Locked = true
574
CornerWedgePart22.Size = Vector3.new(0.150000006, 0.899999976, 0.0500000007)
575
CornerWedgePart22.CFrame = CFrame.new(-13.9944782, 9.93199444, -5.18227577, -1, 0, 0, 0, 0, -1, 0, -1, 0)
576
CornerWedgePart22.Color = Color3.new(0.929412, 0.917647, 0.917647)
577
CornerWedgePart22.Position = Vector3.new(-13.9944782, 9.93199444, -5.18227577)
578
CornerWedgePart22.Orientation = Vector3.new(90, 180, 0)
579
CornerWedgePart22.Color = Color3.new(0.929412, 0.917647, 0.917647)
580
ManualWeld23.Name = "Weld"
581
ManualWeld23.Parent = CornerWedgePart22
582
ManualWeld23.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0)
583
ManualWeld23.C1 = CFrame.new(1.48776889, -0.025393486, 0.0743942261, 0, 0, -1, 0, 1, 0, 1, 0, 0)
584
ManualWeld23.Part0 = CornerWedgePart22
585
ManualWeld23.Part1 = Part15
586
WedgePart24.Parent = Model0
587
WedgePart24.Material = Enum.Material.Glass
588
WedgePart24.BrickColor = BrickColor.new("Gold")
589
WedgePart24.Rotation = Vector3.new(-90, 90, 0)
590
WedgePart24.CanCollide = false
591
WedgePart24.Locked = true
592
WedgePart24.Size = Vector3.new(0.399999946, 0.200000018, 0.50000006)
593
WedgePart24.CFrame = CFrame.new(-14.3113461, 9.95738983, -0.127655029, 0, 0, 1, -1, 0, 0, 0, -1, 0)
594
WedgePart24.BottomSurface = Enum.SurfaceType.Smooth
595
WedgePart24.Color = Color3.new(0.937255, 0.721569, 0.219608)
596
WedgePart24.Position = Vector3.new(-14.3113461, 9.95738983, -0.127655029)
597
WedgePart24.Orientation = Vector3.new(0, 90, -90)
598
WedgePart24.Color = Color3.new(0.937255, 0.721569, 0.219608)
599
ManualWeld25.Name = "Weld"
600
ManualWeld25.Parent = WedgePart24
601
ManualWeld25.C0 = CFrame.new(0, 0, 0, 0, -1, 0, 0, 0, -1, 1, 0, 0)
602
ManualWeld25.C1 = CFrame.new(-3.56685185, 1.90734863e-06, -0.242473602, 0, 0, -1, 0, 1, 0, 1, 0, 0)
603
ManualWeld25.Part0 = WedgePart24
604
ManualWeld25.Part1 = Part15
605
WedgePart26.Parent = Model0
606
WedgePart26.Material = Enum.Material.Glass
607
WedgePart26.BrickColor = BrickColor.new("Gold")
608
WedgePart26.Rotation = Vector3.new(-90, -90, 0)
609
WedgePart26.CanCollide = false
610
WedgePart26.Locked = true
611
WedgePart26.Size = Vector3.new(0.399999946, 0.200000018, 0.50000006)
612
WedgePart26.CFrame = CFrame.new(-13.8113518, 9.95738792, -0.127655029, 0, 0, -1, 1, 0, 0, 0, -1, 0)
613
WedgePart26.BottomSurface = Enum.SurfaceType.Smooth
614
WedgePart26.Color = Color3.new(0.937255, 0.721569, 0.219608)
615
WedgePart26.Position = Vector3.new(-13.8113518, 9.95738792, -0.127655029)
616
WedgePart26.Orientation = Vector3.new(0, -90, 90)
617
WedgePart26.Color = Color3.new(0.937255, 0.721569, 0.219608)
618
ManualWeld27.Name = "Weld"
619
ManualWeld27.Parent = WedgePart26
620
ManualWeld27.C0 = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, -1, -1, 0, 0)
621
ManualWeld27.C1 = CFrame.new(-3.56685185, 0, 0.257520676, 0, 0, -1, 0, 1, 0, 1, 0, 0)
622
ManualWeld27.Part0 = WedgePart26
623
ManualWeld27.Part1 = Part15
624
WedgePart28.Parent = Model0
625
WedgePart28.Material = Enum.Material.Glass
626
WedgePart28.BrickColor = BrickColor.new("Gold")
627
WedgePart28.Rotation = Vector3.new(90, 90, 0)
628
WedgePart28.CanCollide = false
629
WedgePart28.Locked = true
630
WedgePart28.Size = Vector3.new(0.399999946, 0.200000018, 0.50000006)
631
WedgePart28.CFrame = CFrame.new(-13.271347, 9.95738983, 0.252345085, -2.62268316e-07, -8.74227766e-08, 1, 1, -2.29282264e-14, 2.62268316e-07, 0, 1, 8.74227766e-08)
632
WedgePart28.BottomSurface = Enum.SurfaceType.Smooth
633
WedgePart28.Color = Color3.new(0.937255, 0.721569, 0.219608)
634
WedgePart28.Position = Vector3.new(-13.271347, 9.95738983, 0.252345085)
635
WedgePart28.Orientation = Vector3.new(0, 90, 90)
636
WedgePart28.Color = Color3.new(0.937255, 0.721569, 0.219608)
637
ManualWeld29.Name = "Weld"
638
ManualWeld29.Parent = WedgePart28
639
ManualWeld29.C0 = CFrame.new(0, 0, 0, -2.62268316e-07, 1, 0, -8.74227766e-08, -2.29282264e-14, 1, 1, 2.62268316e-07, 8.74227766e-08)
640
ManualWeld29.C1 = CFrame.new(-3.94685197, 1.90734863e-06, 0.797525406, 0, 0, -1, 0, 1, 0, 1, 0, 0)
641
ManualWeld29.Part0 = WedgePart28
642
ManualWeld29.Part1 = Part15
643
WedgePart30.Parent = Model0
644
WedgePart30.Material = Enum.Material.Glass
645
WedgePart30.BrickColor = BrickColor.new("Gold")
646
WedgePart30.Rotation = Vector3.new(90, -90, 0)
647
WedgePart30.CanCollide = false
648
WedgePart30.Locked = true
649
WedgePart30.Size = Vector3.new(0.399999946, 0.200000033, 0.50000006)
650
WedgePart30.CFrame = CFrame.new(-14.7713461, 9.95738983, 0.252345085, 1.74845553e-07, 8.74227766e-08, -1, -1, 1.52854837e-14, -1.74845553e-07, 0, 1, 8.74227766e-08)
651
WedgePart30.BottomSurface = Enum.SurfaceType.Smooth
652
WedgePart30.Color = Color3.new(0.937255, 0.721569, 0.219608)
653
WedgePart30.Position = Vector3.new(-14.7713461, 9.95738983, 0.252345085)
654
WedgePart30.Orientation = Vector3.new(0, -90, -90)
655
WedgePart30.Color = Color3.new(0.937255, 0.721569, 0.219608)
656
ManualWeld31.Name = "Weld"
657
ManualWeld31.Parent = WedgePart30
658
ManualWeld31.C0 = CFrame.new(0, 0, 0, 1.74845553e-07, -1, 0, 8.74227766e-08, 1.52854837e-14, 1, -1, -1.74845553e-07, 8.74227766e-08)
659
ManualWeld31.C1 = CFrame.new(-3.94685197, 1.90734863e-06, -0.70247364, 0, 0, -1, 0, 1, 0, 1, 0, 0)
660
ManualWeld31.Part0 = WedgePart30
661
ManualWeld31.Part1 = Part15
662
Part32.Name = "handleP"
663
Part32.Parent = Model0
664
Part32.Transparency = 1
665
Part32.CanCollide = false
666
Part32.Locked = true
667
Part32.Size = Vector3.new(1, 1, 1)
668
Part32.CFrame = CFrame.new(-14.0687914, 9.95006847, 0.769564867, 1, 0, 0, 0, 1, 0, 0, 0, 1)
669
Part32.BottomSurface = Enum.SurfaceType.Smooth
670
Part32.TopSurface = Enum.SurfaceType.Smooth
671
Part32.Position = Vector3.new(-14.0687914, 9.95006847, 0.769564867)
672
ManualWeld33.Name = "Weld"
673
ManualWeld33.Parent = Part32
674
ManualWeld33.C1 = CFrame.new(-4.46407175, -0.00731945038, 8.10623169e-05, 0, 0, -1, 0, 1, 0, 1, 0, 0)
675
ManualWeld33.Part0 = Part32
676
ManualWeld33.Part1 = Part15
677
Part34.Name = "bladeP"
678
Part34.Parent = Model0
679
--[[Part34.Transparency = 0.7
680
Part34.BrickColor = BrickColor.new("New Yeller")
681
Part34.Material = "Neon"]]
682
Part34.Transparency = 1
683
Part34.CanCollide = false
684
Part34.Locked = true
685
Part34.Size = Vector3.new(0.6, 0.2, 5.55)
686
Part34.CFrame = CFrame.new(-14.0687914, 9.95006847, -2.98043513, 1, 0, 0, 0, 1, 0, 0, 0, 1)
687
Part34.BottomSurface = Enum.SurfaceType.Smooth
688
Part34.TopSurface = Enum.SurfaceType.Smooth
689
Part34.Position = Vector3.new(-14.0687914, 9.95006847, -2.98043513)
690
ManualWeld35.Name = "Weld"
691
ManualWeld35.Parent = Part34
692
ManualWeld35.C1 = CFrame.new(-0.714071751, -0.00731945038, 8.10623169e-05, 0, 0, -1, 0, 1, 0, 1, 0, 0)
693
ManualWeld35.Part0 = Part34
694
ManualWeld35.Part1 = Part15
695
for i,v in pairs(mas:GetChildren()) do
696
	v.Parent = char
697
	Excalibur = v
698
	handleP = Part32
699
	bladeP = Part34
700
	pcall(function() v:MakeJoints() end)
701
end
702
mas:Destroy()
703
for i,v in pairs(cors) do
704
	spawn(function()
705
		pcall(v)
706
	end)
707
end
708
709
local AT0 = Instance.new("Attachment", bladeP)
710
AT0.Position = Vector3.new(0, 0, -2.7)
711
712
local AT1 = Instance.new("Attachment", bladeP)
713
AT1.Position = Vector3.new(0, 0, 2.7)
714
715
local trial = Instance.new("Trail", bladeP)
716
trial.Attachment0 = AT0
717
trial.Attachment1 = AT1
718
trial.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))})
719
trial.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(1, 0, 0)})
720
trial.Lifetime = 0.25
721
trial.LightEmission = 1
722
trial.Enabled = false
723
724
local ws = hum.WalkSpeed
725
local jp = hum.JumpPower
726
local nws = ws
727
local njp = jp
728
729
local rootj0 = rootj.C0
730
local neck0 = neck.C0
731
local LS0 = LS.C0
732
local RS0 = RS.C0
733
local LH0 = LH.C0
734
local RH0 = RH.C0
735
local rootj1 = rootj.C1
736
local neck1 = neck.C1
737
local LS1 = LS.C1
738
local RS1 = RS.C1
739
local LH1 = LH.C1
740
local RH1 = RH.C1
741
742
-----------------------------------------------------------------------------
743
744
local CFn = CFrame.new
745
local CFa = CFrame.Angles
746
local Rad = math.rad
747
local Cos = math.cos
748
local Sin = math.sin
749
local sine = 1
750
local running = false
751
local Slashing = false
752
local lSlashing = false
753
local attackstate = 1
754
local cut = false
755
local attacking = false
756
local shoot = false
757
local Slamming = false
758
local LOCKEDON = false
759
760
local rarmP = Instance.new("Part", char)
761
rarmP.Size = Vector3.new(1, 1, 1)
762
rarmP.CanCollide = false
763
rarmP.Transparency = 1
764
rarmP.Locked = true
765
766
local rarmPw = Instance.new("Weld", rarmP)
767
rarmPw.Part0 = rarm
768
rarmPw.Part1 = rarmP
769
rarmPw.C1 = CFn(1, 0, 0) * CFa(0, 0, Rad(-90))
770
771
local hPw = Instance.new("Weld", handleP)
772
hPw.Part0 = rarmP
773
hPw.Part1 = handleP
774
775
local hPw0 = hPw.C0
776
local hPw1 = hPw.C1
777
778
local tweeninfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0)
779
780
-----------------------------------------------------------------------------
781
782
ArtificialHB = Instance.new("BindableEvent", script)
783
ArtificialHB.Name = "Heartbeat"
784
script:WaitForChild("Heartbeat")
785
786
frame = 1 / 60
787
tf = 0
788
allowframeloss = false
789
tossremainder = false
790
791
792
lastframe = tick()
793
script.Heartbeat:Fire()
794
795
796
game:GetService("RunService").Heartbeat:connect(function(s, p)
797
	tf = tf + s
798
	if tf >= frame then
799
		if allowframeloss then
800
			script.Heartbeat:Fire()
801
			lastframe = tick()
802
		else
803
			for i = 1, math.floor(tf / frame) do
804
				script.Heartbeat:Fire()
805
			end
806
			lastframe = tick()
807
		end
808
		if tossremainder then
809
			tf = 0
810
		else
811
			tf = tf - frame * math.floor(tf / frame)
812
		end
813
	end
814
end)
815
816
function swait(num)
817
	if num == 0 or num == nil then
818
		game:service("RunService").Stepped:wait(0)
819
	else
820
		for i = 0, num do
821
			game:service("RunService").Stepped:wait(0)
822
		end
823
	end
824
end
825
826
function clerp(a, b, t)
827
	return a:lerp(b, t)
828
end
829
830
function GetTorsos(pos,dis)
831
    local people = workspace:GetChildren()
832
    local peopletab = {}
833
    local temp = nil
834
    local humtor = nil
835
    local temp2 = nil
836
    for x = 1, #people do
837
        temp2 = people[x]
838
        if temp2.className == "Model" and temp2 ~= char and temp2:FindFirstChildOfClass("Humanoid") then
839
            temp = temp2:FindFirstChild("Torso") or temp2:FindFirstChild("UpperTorso")
840
            humtor = temp2:FindFirstChildOfClass("Humanoid")
841
            if temp ~= nil and humtor ~= nil and humtor.Health > 0 then
842
                if (temp.Position - pos).magnitude < dis then
843
                    table.insert(peopletab,temp)
844
                    dis = (temp.Position - pos).magnitude
845
                end
846
            end
847
        end
848
    end
849
    return peopletab
850
end
851
852
function Slash()
853
    if Slashing == false and attacking == false then
854
		attacking = true
855
		Slashing = true
856
		cut = true
857
		hum.WalkSpeed = 2
858
		hum.JumpPower = 5
859
		if Slashing == true and attacking == true then
860
    		tdmg = bladeP.Touched:connect(function(hit)
861
    			if cut == true and Slashing == true and hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) and hit.Name ~= "scar" then
862
    			    if hit.Parent == nil then
863
    			        return
864
    			    end
865
            	    cut = false
866
            		local cutman = hit.Parent
867
            		local cutthing = hit
868
            		local cuthum = cutman:FindFirstChildOfClass("Humanoid")
869
            		cuthum.Health = cuthum.Health - 10
870
            		for i = 1,10 do
871
            			local ranAng = math.random(-360, 360)
872
            			local scar = Instance.new("Part", cutman)
873
            			scar.Name = "scar"
874
            			scar.CanCollide = false
875
            			scar.Anchored = true
876
            			scar.Material = "Neon"
877
            			scar.BrickColor = BrickColor.new("New Yeller")
878
            			scar.Size = Vector3.new(0.1, 0.1, 0.1)
879
            			local scarm = Instance.new("SpecialMesh", scar)
880
            			scarm.MeshType = "Sphere"
881
            			scarm.Scale = Vector3.new(1, 20, 20)
882
            			scar.CFrame = cutthing.CFrame * CFa(Rad(ranAng), Rad(ranAng), Rad(ranAng))
883
            			local partprop = {Scale = Vector3.new(150, 10, 10)}
884
            			local partprop2 = {Transparency = 1}
885
            			local tween = tweenserv:Create(scarm, tweeninfo, partprop)
886
            			local tween2 = tweenserv:Create(scar, tweeninfo, partprop2)
887
            			tween:Play()
888
            			tween2:Play()
889
            			game:GetService("Debris"):AddItem(scar, 0.5)
890
            		end
891
        	elseif cut == true and Slashing == true and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) and hit.Name ~= "scar" then
892
        	        if hit.Parent.Parent == nil then
893
    			        return
894
    			    end
895
            	    cut = false
896
            		local cutman = hit.Parent.Parent
897
            		local cutthing = hit
898
            		local cuthum = cutman:FindFirstChildOfClass("Humanoid")
899
            		cuthum.Health = cuthum.Health - 10
900
            		for i = 1,10 do
901
            			local ranAng = math.random(-360, 360)
902
            			local scar = Instance.new("Part", cutman)
903
            			scar.Name = "scar"
904
            			scar.CanCollide = false
905
            			scar.Anchored = true
906
            			scar.Material = "Neon"
907
            			scar.BrickColor = BrickColor.new("New Yeller")
908
            			scar.Size = Vector3.new(0.1, 0.1, 0.1)
909
            			local scarm = Instance.new("SpecialMesh", scar)
910
            			scarm.MeshType = "Sphere"
911
            			scarm.Scale = Vector3.new(1, 20, 20)
912
            			scar.CFrame = cutthing.CFrame * CFa(Rad(ranAng), Rad(ranAng), Rad(ranAng))
913
            			local partprop = {Scale = Vector3.new(150, 10, 10)}
914
            			local partprop2 = {Transparency = 1}
915
            			local tween = tweenserv:Create(scarm, tweeninfo, partprop)
916
            			local tween2 = tweenserv:Create(scar, tweeninfo, partprop2)
917
            			tween:Play()
918
            			tween2:Play()
919
            			game:GetService("Debris"):AddItem(scar, 0.5)
920
            		end
921
                end
922
    		end)
923
    	end
924
		if attackstate == 1 then
925
			for i = 0,1,.15 do
926
				hPw.C1 = clerp(hPw.C1, hPw1, i)
927
				hPw.C0 = clerp(hPw.C0, hPw0, i)
928
				neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i)
929
				rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(-10), 0, Rad(-15)), i)
930
				LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i)
931
				RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(-50), Rad(-110), Rad(-120)), i)
932
				LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i)
933
				RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i)
934
				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
935
				rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
936
				LS.C0 = clerp(LS.C0, LS0, i)
937
				RS.C0 = clerp(RS.C0, RS0, i)
938
				LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
939
				RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
940
				swait()
941
			end
942
			if not bladeP:FindFirstChild("1,2sounds") then
943
				local sound12 = Instance.new("Sound", bladeP)
944
				sound12.SoundId = "rbxassetid://588693156"
945
				sound12.Volume = 2
946
				sound12.Name = "1,2sounds"
947
				sound12:Play()
948
			else
949
				local sound12 = bladeP:FindFirstChild("1,2sounds")
950
				sound12:Play()
951
			end
952
			for i = 0,1,.15 do
953
				hPw.C1 = clerp(hPw.C1, hPw1, i)
954
				hPw.C0 = clerp(hPw.C0, hPw0, i)
955
				neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i)
956
				rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(10), 0, Rad(25)), i)
957
				LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i)
958
				RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(100), Rad(-20), Rad(10)), i)
959
				LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i)
960
				RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(10)), i)
961
				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
962
				rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
963
				LS.C0 = clerp(LS.C0, LS0, i)
964
				RS.C0 = clerp(RS.C0, RS0, i)
965
				LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
966
				RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
967
				swait()
968
			end
969
		    attackstate = 2
970
		elseif attackstate == 2 then
971
			for i = 0,1,.15 do
972
				hPw.C1 = clerp(hPw.C1, hPw1, i)
973
				hPw.C0 = clerp(hPw.C0, hPw0, i)
974
				neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i)
975
				rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(10), 0, Rad(25)), i)
976
				LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i)
977
				RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(70), Rad(-20), Rad(-110)), i)
978
				LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i)
979
				RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(10)), i)
980
				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
981
				rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
982
				LS.C0 = clerp(LS.C0, LS0, i)
983
				RS.C0 = clerp(RS.C0, RS0, i)
984
				LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
985
				RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
986
				swait()
987
			end
988
			if not bladeP:FindFirstChild("1,2sounds") then
989
				local sound12 = Instance.new("Sound", bladeP)
990
				sound12.SoundId = "rbxassetid://588693156"
991
				sound12.Volume = 2
992
				sound12.Name = "1,2sounds"
993
				sound12:Play()
994
			else
995
				local sound12 = bladeP:FindFirstChild("1,2sounds")
996
				sound12:Play()
997
			end
998
			for i = 0,1,.15 do
999
				hPw.C1 = clerp(hPw.C1, hPw1 * CFa(0, Rad(-20), 0), i)
1000
				hPw.C0 = clerp(hPw.C0, hPw0, i)
1001
				neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i)
1002
				rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(-10), 0, Rad(-15)), i)
1003
				LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i)
1004
				RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(-20), Rad(-10), Rad(-20)), i)
1005
				LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i)
1006
				RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i)
1007
				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
1008
				rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
1009
				LS.C0 = clerp(LS.C0, LS0, i)
1010
				RS.C0 = clerp(RS.C0, RS0, i)
1011
				LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
1012
				RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
1013
				swait()
1014
			end
1015
			attackstate = 3
1016
		elseif attackstate == 3 then
1017
			for i = 0,1,.15 do
1018
				hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(10), Rad(-35)), i)
1019
				hPw.C0 = clerp(hPw.C0, hPw0, i)
1020
				neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(15), 0, Rad(-15)), i)
1021
				rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(45), 0, 0), i)
1022
				LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(120)), i)
1023
				RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-120)), i)
1024
				LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-45)), i)
1025
				RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(45)), i)
1026
				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
1027
				rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
1028
				LS.C0 = clerp(LS.C0, LS0, i)
1029
				RS.C0 = clerp(RS.C0, RS0, i)
1030
				LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
1031
				RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
1032
				swait()
1033
			end
1034
			if not bladeP:FindFirstChild("3sounds") then
1035
				local sound3 = Instance.new("Sound", bladeP)
1036
				sound3.SoundId = "rbxassetid://588693922"
1037
				sound3.Volume = 2
1038
				sound3.Name = "3sounds"
1039
				sound3:Play()
1040
			else
1041
				local sound3 = bladeP:FindFirstChild("3sounds")
1042
				sound3:Play()
1043
			end
1044
			for i = 0,1,.15 do
1045
				hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(-30), Rad(-35)), i)
1046
				hPw.C0 = clerp(hPw.C0, hPw0, i)
1047
				neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-15)), i)
1048
				rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(-40), 0, 0), i)
1049
				LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(10)), i)
1050
				RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-10)), i)
1051
				LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(40)), i)
1052
				RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-40)), i)
1053
				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
1054
				rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
1055
				LS.C0 = clerp(LS.C0, LS0, i)
1056
				RS.C0 = clerp(RS.C0, RS0, i)
1057
				LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
1058
				RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
1059
				swait()
1060
			end
1061
			attackstate = 1
1062
		end
1063
		hum.WalkSpeed = nws
1064
		hum.JumpPower = jp
1065
		cut = false
1066
		tdmg:Disconnect()
1067
		Slashing = false
1068
		attacking = false
1069
	end
1070
end
1071
1072
function longSlash()
1073
	if lSlashing == false and attacking == false then
1074
		attacking = true
1075
		lSlashing = true
1076
		shoot = true
1077
		hum.WalkSpeed = 2
1078
		hum.JumpPower = 5
1079
		for i = 0,1,.15 do
1080
			hPw.C1 = clerp(hPw.C1, hPw1, i)
1081
			hPw.C0 = clerp(hPw.C0, hPw0, i)
1082
			neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i)
1083
			rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(20), 0, Rad(-30)), i)
1084
			LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i)
1085
			RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(-50), Rad(-70), Rad(-160)), i)
1086
			LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-20)), i)
1087
			RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(20)), i)
1088
			neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
1089
			rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
1090
			LS.C0 = clerp(LS.C0, LS0, i)
1091
			RS.C0 = clerp(RS.C0, RS0, i)
1092
			LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
1093
			RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
1094
			swait()
1095
		end
1096
		local slashp = Instance.new("Part", char)
1097
		slashp.BrickColor = BrickColor.new("New Yeller")
1098
		slashp.Material = "Neon"
1099
		slashp.CanCollide = false
1100
		slashp.Size = Vector3.new(15, 3, 1)
1101
		slashp.Transparency = 1
1102
		slashp.CFrame = CFn(bladeP.CFrame.p, mou.Hit.p)
1103
		local slashat0 = Instance.new("Attachment", slashp)
1104
		slashat0.Position = Vector3.new(7.5, 0, 0)
1105
		local slashat1 = Instance.new("Attachment", slashp)
1106
		slashat1.Position = Vector3.new(-7.5, 0, 0)
1107
		local slashat2 = Instance.new("Attachment", slashp)
1108
		slashat2.Position = Vector3.new(7.5, -1.5, 0)
1109
		local slashat3 = Instance.new("Attachment", slashp)
1110
		slashat3.Position = Vector3.new(-7.5, -1.5, 0)
1111
		local slashat4 = Instance.new("Attachment", slashp)
1112
		slashat4.Position = Vector3.new(7.5, 1.5, 0)
1113
		local slashat5 = Instance.new("Attachment", slashp)
1114
		slashat5.Position = Vector3.new(-7.5, 1.5, 0)
1115
		local slashpt = Instance.new("Trail", slashp)
1116
		slashpt.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))})
1117
		slashpt.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(0.5, 0, 0), NumberSequenceKeypoint.new(1, 0, 0)})
1118
		slashpt.Lifetime = 0.35
1119
		slashpt.LightEmission = 1
1120
		slashpt.Attachment0 = slashat0
1121
		slashpt.Attachment1 = slashat1
1122
		slashpt.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.6, 0.5, 0), NumberSequenceKeypoint.new(1, 0.5, 0)})
1123
		local slashpt2 = Instance.new("Trail", slashp)
1124
		slashpt2.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))})
1125
		slashpt2.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(0.5, 0, 0), NumberSequenceKeypoint.new(1, 0, 0)})
1126
		slashpt2.Lifetime = 0.35
1127
		slashpt2.LightEmission = 1
1128
		slashpt2.Attachment0 = slashat2
1129
		slashpt2.Attachment1 = slashat3
1130
		slashpt2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.6, 0.5, 0), NumberSequenceKeypoint.new(1, 0.5, 0)})
1131
		local slashpt3 = Instance.new("Trail", slashp)
1132
		slashpt3.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 0))})
1133
		slashpt3.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(0.5, 0, 0), NumberSequenceKeypoint.new(1, 0, 0)})
1134
		slashpt3.Lifetime = 0.35
1135
		slashpt3.LightEmission = 1
1136
		slashpt3.Attachment0 = slashat4
1137
		slashpt3.Attachment1 = slashat5
1138
		slashpt3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(0.6, 0.5, 0), NumberSequenceKeypoint.new(1, 0.5, 0)})
1139
		local slashbv = Instance.new("BodyVelocity", slashp)
1140
		slashbv.Velocity = mou.Hit.lookVector * 180
1141
		slashbv.MaxForce = Vector3.new(100000000000, 100000000000, 100000000000)
1142
		game:GetService("Debris"):AddItem(slashp, 15)
1143
		slashp.Touched:connect(function(hit)
1144
			if shoot == true and hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
1145
				shoot = false
1146
				slashp:Destroy()
1147
				local shootman = hit.Parent
1148
				local shoottor = shootman:FindFirstChild("Torso") or shootman:FindFirstChild("UpperTorso")
1149
				local shoothum = shootman:FindFirstChildOfClass("Humanoid")
1150
				shoothum.Health = shoothum.Health - 15
1151
				local ranPit = math.random(0.9, 1.4)
1152
				if not shoottor:FindFirstChild("XDthxforthesoundtho") then
1153
					local boom = Instance.new("Sound", shoottor)
1154
					boom.SoundId = "rbxassetid://588734356"
1155
					boom.Volume = 3
1156
					boom.Pitch = ranPit
1157
					boom.Name = "XDthxforthesoundtho"
1158
					boom:Play()
1159
				else
1160
					local boom = shoottor:FindFirstChild("XDthxforthesoundtho")
1161
					boom.Pitch = ranPit
1162
					boom:Play()
1163
				end
1164
				for i = 1,15 do
1165
					local ranAng2 = math.random(-360, 360)
1166
					local scar2 = Instance.new("Part", char)
1167
					scar2.Name = "scar"
1168
					scar2.CanCollide = false
1169
					scar2.Anchored = true
1170
					scar2.Material = "Neon"
1171
					scar2.BrickColor = BrickColor.new("New Yeller")
1172
					scar2.Size = Vector3.new(0.1, 0.1, 0.1)
1173
					local scarm2 = Instance.new("SpecialMesh", scar2)
1174
					scarm2.MeshType = "Sphere"
1175
					scarm2.Scale = Vector3.new(800, 1, 1)
1176
					scar2.CFrame = shoottor.CFrame * CFa(Rad(ranAng2), Rad(ranAng2), Rad(ranAng2))
1177
					local partprop3 = {Scale = Vector3.new(600, 40, 40)}
1178
					local partprop4 = {Transparency = 1}
1179
					local tween3 = tweenserv:Create(scarm2, tweeninfo, partprop3)
1180
					local tween4 = tweenserv:Create(scar2, tweeninfo, partprop4)
1181
					tween3:Play()
1182
					tween4:Play()
1183
					game:GetService("Debris"):AddItem(scar2, 0.5)
1184
					local cutSparkle = Instance.new("Part", char)
1185
					cutSparkle.Name = "cutSparkle2244"
1186
					cutSparkle.CanCollide = false
1187
					cutSparkle.Anchored = true
1188
					cutSparkle.Material = "Neon"
1189
					cutSparkle.BrickColor  = BrickColor.new("New Yeller")
1190
					cutSparkle.Size = Vector3.new(10, 10, 10)
1191
					cutSparkle.CFrame = shoottor.CFrame
1192
					local ranPos = math.random(-30, 30)
1193
					local ranPos2 = math.random(-30, 30)
1194
					local ranPos3 = math.random(-30, 30)
1195
					local partprop5 = {CFrame = shoottor.CFrame * CFn(ranPos, ranPos2, ranPos3) * CFa(ranAng2, ranAng2, ranAng2); Size = Vector3.new(0.1, 0.1, 0.1)}
1196
					local tween5 = tweenserv:Create(cutSparkle, tweeninfo, partprop5)
1197
					tween5:Play()
1198
					game:GetService("Debris"):AddItem(cutSparkle, 0.5)
1199
				end
1200
			elseif shoot == true and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
1201
				shoot = false
1202
				slashp:Destroy()
1203
				local shootman = hit.Parent.Parent
1204
				local shoottor = shootman:FindFirstChild("Torso") or shootman:FindFirstChild("UpperTorso")
1205
				local shoothum = shootman:FindFirstChildOfClass("Humanoid")
1206
				shoothum.Health = shoothum.Health - 15
1207
				local ranPit = math.random(0.9, 1.4)
1208
				if not shoottor:FindFirstChild("XDthxforthesoundtho") then
1209
					local boom = Instance.new("Sound", shoottor)
1210
					boom.SoundId = "rbxassetid://588734356"
1211
					boom.Volume = 3
1212
					boom.Pitch = ranPit
1213
					boom.Name = "XDthxforthesoundtho"
1214
					boom:Play()
1215
				else
1216
					local boom = shoottor:FindFirstChild("XDthxforthesoundtho")
1217
					boom.Pitch = ranPit
1218
					boom:Play()
1219
				end
1220
				for i = 1,15 do
1221
					local ranAng2 = math.random(-360, 360)
1222
					local scar2 = Instance.new("Part", char)
1223
					scar2.Name = "scar"
1224
					scar2.CanCollide = false
1225
					scar2.Anchored = true
1226
					scar2.Material = "Neon"
1227
					scar2.BrickColor = BrickColor.new("New Yeller")
1228
					scar2.Size = Vector3.new(0.1, 0.1, 0.1)
1229
					local scarm2 = Instance.new("SpecialMesh", scar2)
1230
					scarm2.MeshType = "Sphere"
1231
					scarm2.Scale = Vector3.new(800, 1, 1)
1232
					scar2.CFrame = shoottor.CFrame * CFa(Rad(ranAng2), Rad(ranAng2), Rad(ranAng2))
1233
					local partprop3 = {Scale = Vector3.new(600, 40, 40)}
1234
					local partprop4 = {Transparency = 1}
1235
					local tween3 = tweenserv:Create(scarm2, tweeninfo, partprop3)
1236
					local tween4 = tweenserv:Create(scar2, tweeninfo, partprop4)
1237
					tween3:Play()
1238
					tween4:Play()
1239
					game:GetService("Debris"):AddItem(scar2, 0.5)
1240
					local cutSparkle = Instance.new("Part", char)
1241
					cutSparkle.Name = "cutSparkle2244"
1242
					cutSparkle.CanCollide = false
1243
					cutSparkle.Anchored = true
1244
					cutSparkle.Material = "Neon"
1245
					cutSparkle.BrickColor  = BrickColor.new("New Yeller")
1246
					cutSparkle.Size = Vector3.new(10, 10, 10)
1247
					cutSparkle.CFrame = shoottor.CFrame
1248
					local ranPos = math.random(-30, 30)
1249
					local ranPos2 = math.random(-30, 30)
1250
					local ranPos3 = math.random(-30, 30)
1251
					local partprop5 = {CFrame = shoottor.CFrame * CFn(ranPos, ranPos2, ranPos3) * CFa(ranAng2, ranAng2, ranAng2); Size = Vector3.new(0.1, 0.1, 0.1)}
1252
					local tween5 = tweenserv:Create(cutSparkle, tweeninfo, partprop5)
1253
					tween5:Play()
1254
					game:GetService("Debris"):AddItem(cutSparkle, 0.5)
1255
				end
1256
			end
1257
		end)
1258
		for i = 0,1,.15 do
1259
			hPw.C1 = clerp(hPw.C1, hPw1, i)
1260
			hPw.C0 = clerp(hPw.C0, hPw0, i)
1261
			neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5), 0, Rad(-15)), i)
1262
			rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(-10), 0, Rad(50)), i)
1263
			LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(30), 0, Rad(-30)), i)
1264
			RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.4, 0.2) * CFa(Rad(60), Rad(-20), Rad(10)), i)
1265
			LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(10)), i)
1266
			RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-10)), i)
1267
			neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
1268
			rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
1269
			LS.C0 = clerp(LS.C0, LS0, i)
1270
			RS.C0 = clerp(RS.C0, RS0, i)
1271
			LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
1272
			RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
1273
			swait()
1274
		end
1275
		hum.WalkSpeed = nws
1276
		hum.JumpPower = jp
1277
		lSlashing = false
1278
		attacking = false
1279
	end
1280
end
1281
1282
function SwordSlam()
1283
	if Slamming == false and attacking == false then
1284
		attacking = true
1285
		Slamming = true
1286
		hum.WalkSpeed = 0
1287
		hum.JumpPower = 0
1288
		for i = 0,1,.1 do
1289
			hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(-150), Rad(-35)), i)
1290
			hPw.C0 = clerp(hPw.C0, hPw0, i)
1291
			neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(15), 0, Rad(-15)), i)
1292
			rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1) * CFa(Rad(45), 0, 0), i)
1293
			LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(130)), i)
1294
			RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-130)), i)
1295
			LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(-45)), i)
1296
			RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.1, 0) * CFa(Rad(5), 0, Rad(45)), i)
1297
			neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
1298
			rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
1299
			LS.C0 = clerp(LS.C0, LS0, i)
1300
			RS.C0 = clerp(RS.C0, RS0, i)
1301
			LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
1302
			RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
1303
			swait()
1304
		end
1305
		if not bladeP:FindFirstChild("SLAMMM") then
1306
			local SPAM = Instance.new("Sound", bladeP)
1307
			SPAM.SoundId = "rbxassetid://1548538202"
1308
			SPAM.Name = "SLAMMM"
1309
			SPAM.Volume = 4
1310
			SPAM:Play()
1311
		else
1312
			local SPAM = bladeP:FindFirstChild("SLAMMM")
1313
			SPAM:Play()
1314
		end
1315
		for i = 1,30 do
1316
			local ranAng3 = math.random(-360, 360)
1317
			local ranAng4 = math.random(-360, 360)
1318
			local ranPos4 = math.random(-80, 80)
1319
			local ranPos5 = math.random(-80, 80)
1320
			local ranPos6 = math.random(-80, 80)
1321
			local ranPos7 = math.random(-80, 80)
1322
			local ranPos8 = math.random(-80, 80)
1323
			local ranPos9 = math.random(-80, 80)
1324
			local FIRE = Instance.new("Part", char)
1325
			FIRE.Material = "Neon"
1326
			FIRE.BrickColor = BrickColor.new("New Yeller")
1327
			FIRE.CanCollide = false
1328
			FIRE.Size = Vector3.new(30, 30, 30)
1329
			FIRE.Anchored = true
1330
			FIRE.CFrame = bladeP.CFrame
1331
			local FIRE2 = Instance.new("Part", char)
1332
			FIRE2.Material = "Neon"
1333
			FIRE2.BrickColor = BrickColor.new("New Yeller")
1334
			FIRE2.CanCollide = false
1335
			FIRE2.Anchored = true
1336
			FIRE2.CFrame = bladeP.CFrame
1337
			local FIREM = Instance.new("SpecialMesh", FIRE2)
1338
			FIREM.MeshType = "Sphere"
1339
			FIREM.Scale = Vector3.new(3, 1, 1)
1340
			local tweeninfo2 = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0)
1341
			local partprop6 = {CFrame = bladeP.CFrame * CFn(ranPos4, ranPos5, ranPos6) * CFa(ranAng3, ranAng3, ranAng3); Size = Vector3.new(0.1, 0.1, 0.1)}
1342
			local partprop7 = {CFrame = bladeP.CFrame * CFn(ranPos7, ranPos8, ranPos9) * CFa(ranAng4, ranAng4, ranAng4); Transparency = 1}
1343
			local partprop8 = {Scale = Vector3.new(15, 5, 5)}
1344
			local tween6 = tweenserv:Create(FIRE, tweeninfo2, partprop6)
1345
			local tween7 = tweenserv:Create(FIRE2, tweeninfo2, partprop7)
1346
			local tween8 = tweenserv:Create(FIREM, tweeninfo2, partprop8)
1347
			tween6:Play()
1348
			tween7:Play()
1349
			tween8:Play()
1350
			game:GetService("Debris"):AddItem(FIRE, 1)
1351
			game:GetService("Debris"):AddItem(FIRE2, 1)
1352
		end
1353
		for i,v in pairs(GetTorsos(bladeP.Position, 35)) do
1354
			if v.Parent:FindFirstChildOfClass("Humanoid") then
1355
				v.Parent:FindFirstChildOfClass("Humanoid").Health = v.Parent:FindFirstChildOfClass("Humanoid").Health - 35
1356
			end
1357
		end
1358
		for i = 0,1,.1 do
1359
			hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(-150), Rad(-35)), i)
1360
			hPw.C0 = clerp(hPw.C0, hPw0, i)
1361
			neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-15)), i)
1362
			rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 1, 0.1) * CFa(Rad(-40), 0, 0), i)
1363
			LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(90)), i)
1364
			RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-90)), i)
1365
			LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.5, 0) * CFa(Rad(5), 0, Rad(-40)), i)
1366
			RH.C1 = clerp(RH.C1, RH1 * CFn(-0.5, -0.5, 0) * CFa(Rad(5), 0, Rad(-40)), i)
1367
			neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
1368
			rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), i)
1369
			LS.C0 = clerp(LS.C0, LS0, i)
1370
			RS.C0 = clerp(RS.C0, RS0, i)
1371
			LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), i)
1372
			RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), i)
1373
			swait()
1374
		end
1375
		hum.WalkSpeed = nws
1376
		hum.JumpPower = jp
1377
		Slamming = false
1378
		attacking = false
1379
	end
1380
end
1381
1382
function LockChar()
1383
	if mou.Target ~= nil and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then
1384
		LOCKEDON = true
1385
		lockman = mou.Target.Parent
1386
		lockhead = lockman:FindFirstChild("Head")
1387
		locktor = lockman:FindFirstChild("Torso") or lockman:FindFirstChild("UpperTorso")
1388
		lockhum = lockman:FindFirstChildOfClass("Humanoid")
1389
	elseif mou.Target ~= nil and mou.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") then
1390
		LOCKEDON = true
1391
		lockman = mou.Target.Parent.Parent
1392
		lockhead = lockman:FindFirstChild("Head")
1393
		locktor = lockman:FindFirstChild("Torso") or lockman:FindFirstChild("UpperTorso")
1394
		lockhum = lockman:FindFirstChildOfClass("Humanoid")
1395
	elseif mou.Target ~= nil and not mou.Target.Parent:FindFirstChildOfClass("Humanoid") and LOCKEDON == true then
1396
		LOCKEDON = false
1397
		lockman = nil
1398
		lockhead = nil
1399
		locktor = nil
1400
		lockhum = nil
1401
	elseif mou.Target ~= nil and not mou.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") and LOCKEDON == true then
1402
		LOCKEDON = false
1403
		lockman = nil
1404
		lockhead = nil
1405
		locktor = nil
1406
		lockhum = nil
1407
	end
1408
end
1409
1410
-----------------------------------------------------------------------------
1411
1412
function kdown(k)
1413
	if string.byte(k) == 50 and running == false then
1414
		running = true
1415
		nws = ws + 11
1416
		hum.WalkSpeed = nws
1417
	elseif string.byte(k) == 50 and running == true then
1418
		running = false
1419
		nws = ws
1420
		hum.WalkSpeed = nws
1421
	elseif k == "r" then
1422
		longSlash()
1423
	elseif k == "f" then
1424
		SwordSlam()
1425
	elseif k == "q" then
1426
		LockChar()
1427
	end
1428
end
1429
1430
function lmdown()
1431
	Slash()
1432
end
1433
1434
mou.KeyDown:connect(kdown)
1435
mou.Button1Down:connect(lmdown)
1436
1437
-----------------------------------------------------------------------------
1438
1439
warn([[
1440
	
1441
	
1442
	oilsauce's Excalibur.
1443
	last updated: 2018/5/27, 12:56 JST.
1444
	
1445
	this was already logged so here
1446
	]])
1447
1448
-----------------------------------------------------------------------------
1449
1450
while true do
1451
	swait()
1452
	sine = sine + 1
1453
	local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
1454
	local campos = head.CFrame.p + Vector3.new(0, 10, 0)
1455
	if Slashing == true then
1456
		state = "Slash"
1457
		trial.Enabled = true
1458
	elseif lSlashing == true then
1459
		state = "LongSlash"
1460
		trial.Enabled = true
1461
	elseif Slamming == true then
1462
		state = "Slam"
1463
		trial.Enabled = true
1464
	elseif 1 < root.Velocity.y then
1465
		state = "Jump"
1466
		trial.Enabled = false
1467
	elseif -1 > root.Velocity.y then
1468
		state = "Fall"
1469
		trial.Enabled = false
1470
	elseif torvel < 1 then
1471
		state = "Idle"
1472
		trial.Enabled = false
1473
	elseif tor.Velocity.magnitude < 50 and running == true then
1474
		state = "Run"
1475
		trial.Enabled = true
1476
	elseif tor.Velocity.magnitude < 50 and running == false then
1477
		state = "Walk"
1478
		trial.Enabled = false
1479
	end
1480
	
1481
	if LOCKEDON == true then
1482
	    root.CFrame = CFn(root.CFrame.p, Vector3.new(locktor.CFrame.x, root.CFrame.y, locktor.CFrame.z))
1483
	    cam.CoordinateFrame = clerp(cam.CoordinateFrame, CFn(campos, locktor.CFrame.p), 0.15)
1484
	end
1485
	
1486
	if state == "Jump" then
1487
		hPw.C1 = clerp(hPw.C1, hPw1 * CFn(0, -0.4, 0) * CFa(Rad(75), Rad(25), Rad(-90)), 0.15)
1488
		hPw.C0 = clerp(hPw.C0, hPw0, 0.15)
1489
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-20), 0, 0), 0.15)
1490
		rootj.C1 = clerp(rootj.C1, rootj1, 0.15)
1491
		LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, Rad(-10)), 0.15)
1492
		RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, Rad(-65)), 0.15)
1493
		LH.C1 = clerp(LH.C1, LH1 * CFn(0.7, -1.3, -0.2) * CFa(Rad(-10), 0, Rad(-50)), 0.15)
1494
		RH.C1 = clerp(RH.C1, RH1 * CFn(-0.5, -1.1, 0) * CFa(Rad(-5), 0, Rad(40)), 0.15)
1495
		neck.C0 = clerp(neck.C0, neck0, 0.15)
1496
		rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
1497
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1498
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1499
		LH.C0 = clerp(LH.C0, LH0, 0.15)
1500
		RH.C0 = clerp(RH.C0, RH0, 0.15)
1501
	elseif state == "Fall" then
1502
		hPw.C1 = clerp(hPw.C1, hPw1 * CFn(0, -0.4, 0) * CFa(Rad(60), Rad(25), Rad(-90)), 0.15)
1503
		hPw.C0 = clerp(hPw.C0, hPw0, 0.15)
1504
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15)
1505
		rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(10), 0, 0), 0.15)
1506
		LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(-10)), 0.15)
1507
		RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, Rad(-50)), 0.15)
1508
		LH.C1 = clerp(LH.C1, LH1 * CFn(0.4, -0.7, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
1509
		RH.C1 = clerp(RH.C1, RH1 * CFn(-0.2, -0.5, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
1510
		neck.C0 = clerp(neck.C0, neck0, 0.15)
1511
		rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
1512
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1513
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1514
		LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
1515
		RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
1516
	elseif state == "Idle" then
1517
		hPw.C1 = clerp(hPw.C1, hPw1 * CFn(-0.3, -0.3, 0) * CFa(0, Rad(10), Rad(-35)), 0.15)
1518
		hPw.C0 = clerp(hPw.C0, hPw0, 0.15)
1519
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(5 * Cos(sine / 20)), 0, Rad(-15)), 0.15)
1520
		rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 15)) * CFa(Rad(-5 * Cos(sine / 15)), 0, Rad(15)), 0.15)
1521
		LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(55)), 0.15)
1522
		RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.2, 0.2) * CFa(Rad(-30), 0, Rad(-55)), 0.15)
1523
		LH.C1 = clerp(LH.C1, LH1 * CFn(0.1 * Cos(sine / 15), -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), Rad(-10), Rad(5 * Cos(sine / 15))), 0.15)
1524
		RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1 * Cos(sine / 15), -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), Rad(-15), Rad(-5 * Cos(sine / 15))), 0.15)
1525
		neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), 0.15)
1526
		rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(5), 0, 0), 0.15)
1527
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1528
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1529
		LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(5)), 0.15)
1530
		RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(5)), 0.15)
1531
	elseif state == "Run" then
1532
		hPw.C1 = clerp(hPw.C1, hPw1 * CFn(0, 0, -0.3) * CFa(0, Rad(-85), 0), 0.15)
1533
		hPw.C0 = clerp(hPw.C0, hPw0, 0.15)
1534
		neck.C1 = clerp(neck.C1, neck1 *  CFa(Rad(-5), 0, 0), 0.15)
1535
		rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-5 * Cos(sine / 1.5)), 0, Rad(5 * Cos(sine / 3))), 0.15)
1536
		LS.C1 = clerp(LS.C1, LS1 * CFn(-0.2 * Cos(sine / 3), -0.1 * Cos(sine / 6), 0) * CFa(Rad(10), 0, Rad(-110 * Cos(sine / 3))), 0.15)
1537
		RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.3, -0.1 * Cos(sine / 6)) * CFa(Rad(90), 0, 0), 0.15)
1538
		LH.C1 = clerp(LH.C1, LH1 * CFn(0.4 * Cos(sine / 3), -0.4 * Cos(sine / 3), 0) * CFa(0, 0, Rad(120 * Cos(sine / 3))), 0.15)
1539
		RH.C1 = clerp(RH.C1, RH1 * CFn(0.4 * Cos(sine / 3), 0.4 * Cos(sine / 3), 0) * CFa(0, 0, Rad(120 * Cos(sine / 3))), 0.15)
1540
		neck.C0 = clerp(neck.C0, neck0, 0.15)
1541
		rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(15), 0, 0), 0.15)
1542
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1543
		RS.C0 = clerp(RS.C0, RS0 * CFn(0, -0.2, 0), 0.15)
1544
		LH.C0 = clerp(LH.C0, LH0 * CFn(-0.3, 0, 0) * CFa(0, 0, Rad(15)), 0.15)
1545
		RH.C0 = clerp(RH.C0, RH0 * CFn(0.3, 0, 0) * CFa(0, 0, Rad(-15)), 0.15)
1546
	elseif state == "Walk" then
1547
		hPw.C1 = clerp(hPw.C1, hPw1 * CFn(0, -0.4, 0) * CFa(Rad(75), Rad(25), Rad(-90)), 0.15)
1548
		hPw.C0 = clerp(hPw.C0, hPw0, 0.15)
1549
		neck.C1 = clerp(neck.C1, neck1 *  CFa(Rad(-5), 0, 0), 0.15)
1550
		rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-5), 0, Rad(5 * Cos(sine / 6))), 0.15)
1551
		LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-25 * Cos(sine / 6))), 0.15)
1552
		RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, Rad(-65)), 0.15)
1553
		LH.C1 = clerp(LH.C1, LH1 * CFa(0, 0, Rad(50 * Cos(sine / 6))), 0.15)
1554
		RH.C1 = clerp(RH.C1, RH1 * CFa(0, 0, Rad(50 * Cos(sine / 6))), 0.15)
1555
		neck.C0 = clerp(neck.C0, neck0, 0.15)
1556
		rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
1557
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1558
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1559
		LH.C0 = clerp(LH.C0, LH0, 0.15)
1560
		RH.C0 = clerp(RH.C0, RH0, 0.15)
1561
	end
1562
end