View difference between Paste ID: ykPt0P9C and nTQ0xc08
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
6
7
wait(1)
8
9
10
local plrs = game:GetService("Players")
11
local plr = plrs.LocalPlayer
12
local Mouse = plr:GetMouse()
13
local char = plr.Character
14
local tweenserv = game:GetService("TweenService")
15
local lighting = game:GetService("Lighting")
16
local hum = char:FindFirstChildOfClass("Humanoid")
17
local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
18
local root = char:FindFirstChild("HumanoidRootPart")
19
local head = char:FindFirstChild("Head")
20
local face = head:FindFirstChildOfClass("Decal")
21
local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm")
22
local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm")
23
local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg")
24
local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg")
25
local neck = tor:FindFirstChild("Neck")
26
local rootj = root:FindFirstChild("RootJoint")
27
local LS = tor:FindFirstChild("Left Shoulder")
28
local RS = tor:FindFirstChild("Right Shoulder")
29
local LH = tor:FindFirstChild("Left Hip")
30
local RH = tor:FindFirstChild("Right Hip")
31
local bp = plr:FindFirstChild("Backpack")
32
local cam = workspace.CurrentCamera
33
34
hum:ClearAllChildren()
35
char.Animate:remove()
36
37
38
--Converted with ttyyuu12345's model to script plugin v4
39
function sandbox(var,func)
40
	local env = getfenv(func)
41
	local newenv = setmetatable({},{
42
		__index = function(self,k)
43
			if k=="script" then
44
				return var
45
			else
46
				return env[k]
47
			end
48
		end,
49
	})
50
	setfenv(func,newenv)
51
	return func
52
end
53
cors = {}
54
mas = Instance.new("Model",game:GetService("Lighting"))
55
Model0 = Instance.new("Model")
56
Part1 = Instance.new("Part")
57
ManualWeld2 = Instance.new("ManualWeld")
58
Part3 = Instance.new("Part")
59
Part4 = Instance.new("Part")
60
ManualWeld5 = Instance.new("ManualWeld")
61
Part6 = Instance.new("Part")
62
ManualWeld7 = Instance.new("ManualWeld")
63
Part8 = Instance.new("Part")
64
ParticleEmitter9 = Instance.new("ParticleEmitter")
65
ManualWeld10 = Instance.new("ManualWeld")
66
Part11 = Instance.new("Part")
67
ManualWeld12 = Instance.new("ManualWeld")
68
Part19 = Instance.new("Part")
69
ManualWeld20 = Instance.new("ManualWeld")
70
Part21 = Instance.new("Part")
71
ManualWeld22 = Instance.new("ManualWeld")
72
Model0.Name = "saber"
73
Model0.Parent = mas
74
Part1.Name = "hand"
75
Part1.Parent = Model0
76
Part1.Material = Enum.Material.SmoothPlastic
77
Part1.BrickColor = BrickColor.new("Really black")
78
Part1.Rotation = Vector3.new(0, -90, 0)
79
Part1.CanCollide = false
80
Part1.Shape = Enum.PartType.Cylinder
81
Part1.Size = Vector3.new(1.29999995, 0.299999952, 0.299999952)
82
Part1.CFrame = CFrame.new(-1741.76343, 117.599991, -204.231796, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
83
Part1.BottomSurface = Enum.SurfaceType.Smooth
84
Part1.TopSurface = Enum.SurfaceType.Smooth
85
Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
86
Part1.Position = Vector3.new(-1741.76343, 117.599991, -204.231796)
87
Part1.Orientation = Vector3.new(0, -90, 0)
88
Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
89
ManualWeld2.Name = "Weld"
90
ManualWeld2.Parent = Part1
91
ManualWeld2.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
92
ManualWeld2.C1 = CFrame.new(0.0347900391, 0, 0.0680541992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
93
ManualWeld2.Part0 = Part1
94
ManualWeld2.Part1 = Part3
95
Part3.Name = "main"
96
Part3.Parent = Model0
97
Part3.Transparency = 1
98
Part3.CanCollide = false
99
Part3.Size = Vector3.new(1, 1, 1)
100
Part3.CFrame = CFrame.new(-1741.79822, 117.599991, -204.29985, 1, 0, 0, 0, 1, 0, 0, 0, 1)
101
Part3.BottomSurface = Enum.SurfaceType.Smooth
102
Part3.TopSurface = Enum.SurfaceType.Smooth
103
Part3.Position = Vector3.new(-1741.79822, 117.599991, -204.29985)
104
Part4.Name = "cap2"
105
Part4.Parent = Model0
106
Part4.Material = Enum.Material.SmoothPlastic
107
Part4.BrickColor = BrickColor.new("Really black")
108
Part4.Rotation = Vector3.new(0, -90, 0)
109
Part4.CanCollide = false
110
Part4.Shape = Enum.PartType.Cylinder
111
Part4.Size = Vector3.new(0.0999999046, 0.349999994, 0.349999994)
112
Part4.CFrame = CFrame.new(-1741.76343, 117.599991, -203.531723, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
113
Part4.BottomSurface = Enum.SurfaceType.Smooth
114
Part4.TopSurface = Enum.SurfaceType.Smooth
115
Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
116
Part4.Position = Vector3.new(-1741.76343, 117.599991, -203.531723)
117
Part4.Orientation = Vector3.new(0, -90, 0)
118
Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
119
ManualWeld5.Name = "Weld"
120
ManualWeld5.Parent = Part4
121
ManualWeld5.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
122
ManualWeld5.C1 = CFrame.new(0.0347900391, 0, 0.768127441, 1, 0, 0, 0, 1, 0, 0, 0, 1)
123
ManualWeld5.Part0 = Part4
124
ManualWeld5.Part1 = Part3
125
Part6.Name = "bot1"
126
Part6.Parent = Model0
127
Part6.Material = Enum.Material.SmoothPlastic
128
Part6.BrickColor = BrickColor.new("Really black")
129
Part6.Rotation = Vector3.new(0, -90, 0)
130
Part6.CanCollide = false
131
Part6.Shape = Enum.PartType.Cylinder
132
Part6.Size = Vector3.new(0.0999999046, 0.349999994, 0.349999994)
133
Part6.CFrame = CFrame.new(-1741.76343, 117.599991, -204.931747, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
134
Part6.BottomSurface = Enum.SurfaceType.Smooth
135
Part6.TopSurface = Enum.SurfaceType.Smooth
136
Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
137
Part6.Position = Vector3.new(-1741.76343, 117.599991, -204.931747)
138
Part6.Orientation = Vector3.new(0, -90, 0)
139
Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
140
ManualWeld7.Name = "Weld"
141
ManualWeld7.Parent = Part6
142
ManualWeld7.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
143
ManualWeld7.C1 = CFrame.new(0.0347900391, 0, -0.631896973, 1, 0, 0, 0, 1, 0, 0, 0, 1)
144
ManualWeld7.Part0 = Part6
145
ManualWeld7.Part1 = Part3
146
Part8.Name = "cap"
147
Part8.Parent = Model0
148
Part8.Material = Enum.Material.SmoothPlastic
149
Part8.BrickColor = BrickColor.new("Gold")
150
Part8.Rotation = Vector3.new(0, -90, 0)
151
Part8.CanCollide = false
152
Part8.Shape = Enum.PartType.Cylinder
153
Part8.Size = Vector3.new(0.0999999046, 0.300000012, 0.300000012)
154
Part8.CFrame = CFrame.new(-1741.76343, 117.599991, -203.431747, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
155
Part8.BottomSurface = Enum.SurfaceType.Smooth
156
Part8.TopSurface = Enum.SurfaceType.Smooth
157
Part8.Color = Color3.new(0.937255, 0.721569, 0.219608)
158
Part8.Position = Vector3.new(-1741.76343, 117.599991, -203.431747)
159
Part8.Orientation = Vector3.new(0, -90, 0)
160
Part8.Color = Color3.new(0.937255, 0.721569, 0.219608)
161
ParticleEmitter9.Parent = Part8
162
ParticleEmitter9.LockedToPart = true
163
ParticleEmitter9.Transparency = NumberSequence.new(0,0.1)
164
ParticleEmitter9.Size = NumberSequence.new(0.5,0.5)
165
ParticleEmitter9.Color = ColorSequence.new(Color3.new(0.333333, 0, 0),Color3.new(0.666667, 0, 0))
166
ParticleEmitter9.EmissionDirection = "Right"
167
ParticleEmitter9.LightEmission = 0.44999998807907
168
ParticleEmitter9.Texture = "rbxassetid://147313514"
169
ParticleEmitter9.Lifetime = NumberRange.new(0.5, 0.5)
170
ParticleEmitter9.Rate = 200
171
ParticleEmitter9.RotSpeed = NumberRange.new(360, 360)
172
ParticleEmitter9.Speed = NumberRange.new(10, 10)
173
ParticleEmitter9.VelocitySpread = 2
174
ParticleEmitter9.Color = ColorSequence.new(Color3.new(0.333333, 0, 0),Color3.new(0.666667, 0, 0))
175
ManualWeld10.Name = "Weld"
176
ManualWeld10.Parent = Part8
177
ManualWeld10.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
178
ManualWeld10.C1 = CFrame.new(0.0347900391, 0, 0.868103027, 1, 0, 0, 0, 1, 0, 0, 0, 1)
179
ManualWeld10.Part0 = Part8
180
ManualWeld10.Part1 = Part3
181
Part11.Name = "bot2"
182
Part11.Parent = Model0
183
Part11.Material = Enum.Material.SmoothPlastic
184
Part11.BrickColor = BrickColor.new("Really black")
185
Part11.Rotation = Vector3.new(0, -90, 0)
186
Part11.CanCollide = false
187
Part11.Shape = Enum.PartType.Cylinder
188
Part11.Size = Vector3.new(0.0999999046, 0.300000012, 0.300000012)
189
Part11.CFrame = CFrame.new(-1741.76343, 117.599991, -205.031723, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
190
Part11.BottomSurface = Enum.SurfaceType.Smooth
191
Part11.TopSurface = Enum.SurfaceType.Smooth
192
Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
193
Part11.Position = Vector3.new(-1741.76343, 117.599991, -205.031723)
194
Part11.Orientation = Vector3.new(0, -90, 0)
195
Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
196
ManualWeld12.Name = "Weld"
197
ManualWeld12.Parent = Part11
198
ManualWeld12.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
199
ManualWeld12.C1 = CFrame.new(0.0347900391, 0, -0.731872559, 1, 0, 0, 0, 1, 0, 0, 0, 1)
200
ManualWeld12.Part0 = Part11
201
ManualWeld12.Part1 = Part3
202
Part19.Name = "outblade"
203
Part19.Parent = Model0
204
Part19.Material = Enum.Material.Neon
205
Part19.BrickColor = BrickColor.new("Maroon")
206
Part19.Rotation = Vector3.new(0, -90, 0)
207
Part19.CanCollide = false
208
Part19.Shape = Enum.PartType.Cylinder
209
Part19.Size = Vector3.new(4.39999962, 0.2500000012, 0.2500000012)
210
Part19.CFrame = CFrame.new(-1741.76343, 117.599991, -201.181747, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
211
Part19.BottomSurface = Enum.SurfaceType.Smooth
212
Part19.TopSurface = Enum.SurfaceType.Smooth
213
Part19.Color = Color3.new(0.458824, 0, 0)
214
Part19.Position = Vector3.new(-1741.76343, 117.599991, -201.181747)
215
Part19.Orientation = Vector3.new(0, -90, 0)
216
Part19.Color = Color3.new(0.458824, 0, 0)
217
ManualWeld20.Name = "Weld"
218
ManualWeld20.Parent = Part19
219
ManualWeld20.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
220
ManualWeld20.C1 = CFrame.new(0.0347900391, 0, 3.11810303, 1, 0, 0, 0, 1, 0, 0, 0, 1)
221
ManualWeld20.Part0 = Part19
222
ManualWeld20.Part1 = Part3
223
Part21.Name = "outball"
224
Part21.Parent = Model0
225
Part21.Material = Enum.Material.Neon
226
Part21.BrickColor = BrickColor.new("Maroon")
227
Part21.Rotation = Vector3.new(0, -90, 0)
228
Part21.CanCollide = false
229
Part21.Shape = Enum.PartType.Ball
230
Part21.Size = Vector3.new(0.25, 0.25, 0.25)
231
Part21.CFrame = CFrame.new(-1741.76343, 117.599991, -198.981674, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
232
Part21.BottomSurface = Enum.SurfaceType.Smooth
233
Part21.TopSurface = Enum.SurfaceType.Smooth
234
Part21.Color = Color3.new(0.458824, 0, 0)
235
Part21.Position = Vector3.new(-1741.76343, 117.599991, -198.981674)
236
Part21.Orientation = Vector3.new(0, -90, 0)
237
Part21.Color = Color3.new(0.458824, 0, 0)
238
ManualWeld22.Name = "Weld"
239
ManualWeld22.Parent = Part21
240
ManualWeld22.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
241
ManualWeld22.C1 = CFrame.new(0.0347900391, 0, 5.31817627, 1, 0, 0, 0, 1, 0, 0, 0, 1)
242
ManualWeld22.Part0 = Part21
243
ManualWeld22.Part1 = Part3
244
for i,v in pairs(mas:GetChildren()) do
245
	v.Parent = char
246
	saber = v
247
	outblade = Part19
248
	outball = Part21
249
	particle = ParticleEmitter9
250
	main = Part3
251
	cap = Part8
252
	pcall(function() v:MakeJoints() end)
253
end
254
mas:Destroy()
255
for i,v in pairs(cors) do
256
	spawn(function()
257
		pcall(v)
258
	end)
259
end
260
261
local ws = hum.WalkSpeed
262
local jp = hum.JumpPower
263
local nws = ws
264
local njp = jp
265
266
local rootj0 = rootj.C0
267
local neck0 = neck.C0
268
local LS0 = LS.C0
269
local RS0 = RS.C0
270
local LH0 = LH.C0
271
local RH0 = RH.C0
272
local rootj1 = rootj.C1
273
local neck1 = neck.C1
274
local LS1 = LS.C1
275
local RS1 = RS.C1
276
local LH1 = LH.C1
277
local RH1 = RH.C1
278
279
local pshew = Instance.new("Sound", cap)
280
pshew.SoundId = "rbxassetid://605604103"
281
pshew.Volume = 2
282
pshew.Name = "PSHEW"
283
284
local sheww = Instance.new("Sound", cap)
285
sheww.SoundId = "rbxassetid://605607641"
286
sheww.Volume = 2
287
sheww.Name = "SHEWW"
288
289
local wanwan = Instance.new("Sound", outblade)
290
wanwan.SoundId = "rbxassetid://1460966017"
291
wanwan.Volume = 1
292
wanwan.Name = "WANWAN"
293
wanwan.Looped = true
294
295
local chwan = Instance.new("Sound", outblade)
296
chwan.SoundId = "rbxassetid://1647165403"
297
chwan.Volume = 1
298
chwan.Name = "CHWAN"
299
300
local pssps = Instance.new("Sound", outblade)
301
pssps.SoundId = "rbxassetid://1335649595"
302
pssps.Volume = 1
303
pssps.Name = "PSSPS"
304
305
local vomb = Instance.new("Sound", outblade)
306
vomb.SoundId = "rbxassetid://2088308141"
307
vomb.Volume = 2
308
vomb.Name = "VOMB"
309
310
local ooowa = Instance.new("Sound", larm)
311
ooowa.SoundId = "rbxassetid://1386781853"
312
ooowa.Volume = 2.5
313
ooowa.Name = "OOOWA"
314
315
local koohaa = Instance.new("Sound", head)
316
koohaa.SoundId = "rbxassetid://149840174"
317
koohaa.Volume = 2
318
koohaa.Name = "KOOOHAAA"
319
koohaa.Looped = true
320
koohaa:Play()
321
local thepos = koohaa.TimePosition
322
323
-----------------------------------------------------------------------------
324
325
local CFn = CFrame.new
326
local CFa = CFrame.Angles
327
local Rad = math.rad
328
local Cos = math.cos
329
local Sin = math.sin
330
local sine = 1
331
local attacking = false
332
local equipped = false
333
local Changing = false
334
local Swinging = false
335
local kill = false
336
local attackstate = 1
337
local Choking = false
338
local buttonC = false
339
340
-----------------------------------------------------------------------------
341
342
for i,v in pairs(char:GetChildren()) do
343
	if v:IsA("Shirt") then
344
		v:Destroy()
345
	end
346
	if v:IsA("Pants") then
347
		v:Destroy()
348
	end
349
	if v:IsA("Accessory") then
350
		v:Destroy()
351
	end
352
end
353
354
local ff = Instance.new("ForceField", char)
355
ff.Visible = false
356
hum.MaxHealth = math.huge
357
hum.Health = math.huge
358
359
local shirt = Instance.new("Shirt", char)
360
shirt.ShirtTemplate = "rbxassetid://1724954890"
361
local pants = Instance.new("Pants", char)
362
pants.PantsTemplate = "rbxassetid://1057571121"
363
364
head.Transparency = 1
365
366
local hair = Instance.new("Part", char)
367
hair.Size = Vector3.new(1, 1, 1)
368
hair.CanCollide = false
369
local hairm = Instance.new("SpecialMesh", hair)
370
hairm.MeshId = "rbxassetid://306063581"
371
hairm.TextureId = "rbxassetid://306062884"
372
373
local hairw = Instance.new("Weld", hair)
374
hairw.Part0 = head
375
hairw.Part1 = hair
376
hairw.C1 = CFn(0, -0.1, 0)
377
378
local AT0 = Instance.new("Attachment", outblade)
379
AT0.Position = Vector3.new(-2.2, 0, 0)
380
381
local AT1 = Instance.new("Attachment", outblade)
382
AT1.Position = Vector3.new(2.4, 0, 0)
383
384
local trail = Instance.new("Trail", outblade)
385
trail.Attachment0 = AT0
386
trail.Attachment1 = AT1
387
trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(1, 0.9, 0)})
388
trail.LightEmission = 0.7
389
trail.Lifetime = 0.5
390
trail.MaxLength = 2
391
trail.MinLength = 0.05
392
trail.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(1, 0.2, 0)})
393
trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(85, 0, 0), 0), ColorSequenceKeypoint.new(1, Color3.fromRGB(170, 0, 0), 0)})
394
395
local mainw = Instance.new("Weld", main)
396
mainw.Part0 = tor
397
mainw.Part1 = main
398
mainw.C1 = CFn(1, 1, 0)
399
400
local bld = Instance.new("Part", saber)
401
bld.Size = Vector3.new(4.7, 1, 1)
402
bld.CanCollide = false
403
bld.Transparency = 1
404
405
local bldw = Instance.new("Weld", bld)
406
bldw.Part0 = outblade
407
bldw.Part1 = bld
408
409
local cape = Instance.new("Part", char)
410
cape.Size = Vector3.new(2, 3.6, 1)
411
cape.Material = "SmoothPlastic"
412
cape.BrickColor = BrickColor.new("Really black")
413
local capem = Instance.new("SpecialMesh", cape)
414
capem.MeshType = "FileMesh"
415
capem.MeshId = "rbxassetid://114046169"
416
capem.Scale = Vector3.new(1.2, 1.8, 1.1)
417
418
local capew = Instance.new("Weld", cape)
419
capew.Part0 = tor
420
capew.Part1 = cape
421
capew.C1 = CFn(0, 0.7, -0.35)
422
423
outblade.Transparency = 1
424
outball.Transparency = 1
425
trail.Enabled = false
426
particle.Transparency = NumberSequence.new(0, 1)
427
particle.LockedToPart = false
428
particle.Enabled = false
429
430
-----------------------------------------------------------------------------
431
432
ArtificialHB = Instance.new("BindableEvent", script)
433
ArtificialHB.Name = "Heartbeat"
434
script:WaitForChild("Heartbeat")
435
436
frame = 1 / 60
437
tf = 0
438
allowframeloss = false
439
tossremainder = false
440
441
442
lastframe = tick()
443
script.Heartbeat:Fire()
444
445
446
game:GetService("RunService").Heartbeat:connect(function(s, p)
447
	tf = tf + s
448
	if tf >= frame then
449
		if allowframeloss then
450
			script.Heartbeat:Fire()
451
			lastframe = tick()
452
		else
453
			for i = 1, math.floor(tf / frame) do
454
				script.Heartbeat:Fire()
455
			end
456
			lastframe = tick()
457
		end
458
		if tossremainder then
459
			tf = 0
460
		else
461
			tf = tf - frame * math.floor(tf / frame)
462
		end
463
	end
464
end)
465
466
function swait(num)
467
	if num == 0 or num == nil then
468
		game:service("RunService").Stepped:wait(0)
469
	else
470
		for i = 0, num do
471
			game:service("RunService").Stepped:wait(0)
472
		end
473
	end
474
end
475
476
function clerp(a, b, t)
477
	return a:lerp(b, t)
478
end
479
480
function Sound(id, vol, par, name, looped)
481
	if not par:FindFirstChild(name) then
482
		local sound = Instance.new("Sound", par)
483
		sound.SoundId = id
484
		sound.Volume = vol
485
		if looped == true then
486
			sound.Looped = true
487
		end
488
		sound.Name = name
489
		sound:Play()
490
		return sound
491
	else
492
		local sound = par:FindFirstChild(name)
493
		sound:Play()
494
		return sound
495
	end
496
end
497
498
function StopSound(id, vol, par, name, looped)
499
	if not par:FindFirstChild(name) then
500
		local sound = Instance.new("Sound", par)
501
		sound.SoundId = id
502
		sound.Volume = vol
503
		if looped == true then
504
			sound.Looped = true
505
		end
506
		sound.Name = name
507
		sound:Stop()
508
		return sound
509
	else
510
		local sound = par:FindFirstChild(name)
511
		sound:Stop()
512
		return sound
513
	end
514
end
515
516
function Force(part, pos, part2, pos2, par2)
517
	local parp = Instance.new("Part", char)
518
	parp.Size = Vector3.new(1, 1, 1)
519
	parp.Transparency = 1
520
	parp.CanCollide = false
521
	local parpw = Instance.new("Weld", parp)
522
	parpw.Part0 = part
523
	parpw.Part1 = parp
524
	parpw.C1 = pos
525
	local pare = Instance.new("ParticleEmitter", parp)
526
	pare.LockedToPart = true
527
	pare.Transparency = NumberSequence.new(0.4, 1)
528
	pare.Size = NumberSequence.new(1.25, 0)
529
	pare.Lifetime = NumberRange.new(1)
530
	pare.Rotation = NumberRange.new(0, 360)
531
	pare.Rate = 200
532
	pare.RotSpeed = NumberRange.new(360, 360)
533
	pare.Speed = NumberRange.new(4)
534
	pare.Color = ColorSequence.new(Color3.fromRGB(170, 0, 0),Color3.fromRGB(255, 255, 255))
535
	pare.SpreadAngle = Vector2.new(360, 360)
536
	pare.Texture = "rbxassetid://122356023"
537
	local parp2 = parp:Clone()
538
	parp2.Parent = par2
539
	local parp2w = parp2:FindFirstChild("Weld")
540
	parp2w.Part0 = part2
541
	parp2w.Part1 = parp2
542
	parp2w.C1 = pos2
543
	return parp, parp2
544
end
545
546
function equipunequip()
547
	if attacking == false and equipped == false and Changing == false then
548
		attacking = true
549
		Changing = true
550
		hum.WalkSpeed = 0
551
		hum.JumpPower = 0
552
		for i = 0,1,.1 do
553
			neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-20), 0, Rad(-60)), i)
554
			rootj.C1 = clerp(rootj.C1, rootj1, i)
555
			LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
556
			RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-30), Rad(-3)), i)
557
			LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
558
			RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
559
			neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
560
			rootj.C0 = clerp(rootj.C0, rootj0, i)
561
			LS.C0 = clerp(LS.C0, LS0, i)
562
			RS.C0 = clerp(RS.C0, RS0 * CFn(0, 0, -0.5) * CFa(0, Rad(90), 0), i)
563
			LH.C0 = clerp(LH.C0, LH0, i)
564
			RH.C0 = clerp(RH.C0, RH0, i)
565
			swait()
566
		end
567
		StopSound("rbxassetid://605607641", 2, cap, "SHEWW", false)
568
		Sound("rbxassetid://605604103", 2, cap, "PSHEW", false)
569
		Sound("rbxassetid://1460966017", 1, cap, "WANWAN", true)
570
		equipped = true
571
		mainw.Part0 = rarm
572
		mainw.C1 = CFn(0, 1, 0) * CFa(0, Rad(180), 0)
573
		outblade.Transparency = 0
574
		outball.Transparency = 0
575
		trail.Enabled = true
576
		particle.Transparency = NumberSequence.new(0, 0.1)
577
		particle.LockedToPart = true
578
		particle.Enabled = true
579
		for i = 0,1,.1 do
580
			neck.C1 = clerp(neck.C1, neck1, i)
581
			rootj.C1 = clerp(rootj.C1, rootj1, i)
582
			LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
583
			RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(50), 0, 0), i)
584
			LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
585
			RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
586
			neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
587
			rootj.C0 = clerp(rootj.C0, rootj0, i)
588
			LS.C0 = clerp(LS.C0, LS0, i)
589
			RS.C0 = clerp(RS.C0, RS0, i)
590
			LH.C0 = clerp(LH.C0, LH0, i)
591
			RH.C0 = clerp(RH.C0, RH0, i)
592
			swait()
593
		end
594
		hum.WalkSpeed = nws
595
		hum.JumpPower = njp
596
		Changing = false
597
		attacking = false
598
	elseif attacking == false and equipped == true and Changing == false then
599
		attacking = true
600
		Changing = true
601
		hum.WalkSpeed = 0
602
		hum.JumpPower = 0
603
		StopSound("rbxassetid://605604103", 2, cap, "PSHEW", false)
604
		Sound("rbxassetid://605607641", 2, cap, "SHEWW", false)
605
		StopSound("rbxassetid://1460966017", 1, cap, "WANWAN", true)
606
		outblade.Transparency = 1
607
		outball.Transparency = 1
608
		trail.Enabled = false
609
		particle.Transparency = NumberSequence.new(0, 1)
610
		particle.LockedToPart = false
611
		particle.Enabled = false
612
		for i = 0,1,.1 do
613
			neck.C1 = clerp(neck.C1, neck1, i)
614
			rootj.C1 = clerp(rootj.C1, rootj1, i)
615
			LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
616
			RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(50), 0, 0), i)
617
			LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
618
			RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
619
			neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
620
			rootj.C0 = clerp(rootj.C0, rootj0, i)
621
			LS.C0 = clerp(LS.C0, LS0, i)
622
			RS.C0 = clerp(RS.C0, RS0, i)
623
			LH.C0 = clerp(LH.C0, LH0, i)
624
			RH.C0 = clerp(RH.C0, RH0, i)
625
			swait()
626
		end
627
		for i = 0,1,.1 do
628
			neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-20), 0, Rad(-60)), i)
629
			rootj.C1 = clerp(rootj.C1, rootj1, i)
630
			LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
631
			RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-30), Rad(-3)), i)
632
			LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
633
			RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
634
			neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
635
			rootj.C0 = clerp(rootj.C0, rootj0, i)
636
			LS.C0 = clerp(LS.C0, LS0, i)
637
			RS.C0 = clerp(RS.C0, RS0 * CFn(0, 0, -0.5) * CFa(0, Rad(90), 0), i)
638
			LH.C0 = clerp(LH.C0, LH0, i)
639
			RH.C0 = clerp(RH.C0, RH0, i)
640
			swait()
641
		end
642
		mainw.Part0 = tor
643
		mainw.C1 = CFn(1, 1, 0)
644
		equipped = false
645
		hum.WalkSpeed = nws
646
		hum.JumpPower = njp
647
		Changing = false
648
		attacking = false
649
	end
650
end
651
652
function Swing()
653
	if attacking == false and equipped == true and Swinging == false then
654
		attacking = true
655
		Swinging = true
656
		kill = true
657
		hum.WalkSpeed = 3
658
		hum.JumpPower = 5
659
		local hey = bld.Touched:connect(function(hit)
660
    			if kill == true and hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
661
            	    kill = false
662
            		local killman = hit.Parent
663
            		local killhum = killman:FindFirstChildOfClass("Humanoid")
664
					local up = true
665
					for i = 1,2 do
666
						local cutpart = Instance.new("Part", killman)
667
						cutpart.Size = Vector3.new(hit.Size.X, hit.Size.Y / 2, hit.Size.Z)
668
						cutpart.BrickColor = hit.BrickColor
669
						cutpart.Material = hit.Material
670
						cutpart.Transparency = hit.Transparency
671
						cutpart.Reflectance = hit.Reflectance
672
						cutpart.BackSurface = hit.BackSurface
673
						cutpart.BottomSurface = hit.BottomSurface
674
						cutpart.FrontSurface = hit.FrontSurface
675
						cutpart.LeftSurface = hit.LeftSurface
676
						cutpart.RightSurface = hit.RightSurface
677
						cutpart.TopSurface = hit.TopSurface
678
						if up == true then
679
							cutpart.CFrame = hit.CFrame * CFn(0, hit.Size.Y / 2, 0)
680
							up = false
681
						else
682
							cutpart.CFrame = hit.CFrame * CFn(0, -(hit.Size.Y / 2), 0)
683
							up = true
684
						end
685
					end
686
					hit:Destroy()
687
            		killman:BreakJoints()
688
					if attackstate == 1 then
689
						Sound("rbxassetid://1647165403", 1, outblade, "CHWAN", false)
690
					elseif attackstate == 2 then
691
						Sound("rbxassetid://1335649595", 1, outblade, "PSSPS", false)
692
					end
693
        	elseif kill == true and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
694
            	    kill = false
695
            		local killman = hit.Parent.Parent
696
            		local killhum = killman:FindFirstChildOfClass("Humanoid")
697
					local up = true
698
					for i = 1,2 do
699
						local cutpart = Instance.new("Part", killman)
700
						cutpart.Size = Vector3.new(hit.Size.X, hit.Size.Y / 2, hit.Size.Z)
701
						cutpart.BrickColor = hit.BrickColor
702
						cutpart.Material = hit.Material
703
						cutpart.Transparency = hit.Transparency
704
						cutpart.Reflectance = hit.Reflectance
705
						cutpart.BackSurface = hit.BackSurface
706
						cutpart.BottomSurface = hit.BottomSurface
707
						cutpart.FrontSurface = hit.FrontSurface
708
						cutpart.LeftSurface = hit.LeftSurface
709
						cutpart.RightSurface = hit.RightSurface
710
						cutpart.TopSurface = hit.TopSurface
711
						if up == true then
712
							cutpart.CFrame = hit.CFrame * CFn(0, hit.Size.Y / 2, 0)
713
							up = false
714
						else
715
							cutpart.CFrame = hit.CFrame * CFn(0, -(hit.Size.Y / 2), 0)
716
							up = true
717
						end
718
					end
719
					hit:Destroy()
720
            		killman:BreakJoints()
721
					if attackstate == 1 then
722
						Sound("rbxassetid://1647165403", 1, outblade, "CHWAN", false)
723
					elseif attackstate == 2 then
724
						Sound("rbxassetid://1335649595", 1, outblade, "PSSPS", false)
725
					end
726
                end
727
    		end)
728
		if attackstate == 1 then
729
			attackstate = 2
730
			for i = 0,1,.15 do
731
				neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-10)), i)
732
				rootj.C1 = clerp(rootj.C1, rootj1, i)
733
				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
734
				RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-80), Rad(-40)), i)
735
				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
736
				RH.C1 = clerp(RH.C1, RH1 * CFn(0.3, 0, 0) * CFa(Rad(5), 0, 0), i)
737
				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
738
				rootj.C0 = clerp(rootj.C0, rootj0, i)
739
				LS.C0 = clerp(LS.C0, LS0, i)
740
				RS.C0 = clerp(RS.C0, RS0 * CFa(0, Rad(30), 0), i)
741
				LH.C0 = clerp(LH.C0, LH0, i)
742
				RH.C0 = clerp(RH.C0, RH0, i)
743
				swait()
744
			end
745
			Sound("rbxassetid://2088308141", 2, outblade, "VOMB", false)
746
			for i = 0,1,.15 do
747
				neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(10)), i)
748
				rootj.C1 = clerp(rootj.C1, rootj1, i)
749
				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
750
				RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-80), Rad(-50)), i)
751
				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
752
				RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
753
				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
754
				rootj.C0 = clerp(rootj.C0, rootj0, i)
755
				LS.C0 = clerp(LS.C0, LS0, i)
756
				RS.C0 = clerp(RS.C0, RS0 * CFa(0, Rad(-75), 0), i)
757
				LH.C0 = clerp(LH.C0, LH0, i)
758
				RH.C0 = clerp(RH.C0, RH0, i)
759
				swait()
760
			end
761
		elseif attackstate == 2 then
762
			attackstate = 1
763
			for i = 0,1,.15 do
764
				neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(10)), i)
765
				rootj.C1 = clerp(rootj.C1, rootj1, i)
766
				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
767
				RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(110), Rad(-20), Rad(-90)), i)
768
				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
769
				RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
770
				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
771
				rootj.C0 = clerp(rootj.C0, rootj0, i)
772
				LS.C0 = clerp(LS.C0, LS0, i)
773
				RS.C0 = clerp(RS.C0, RS0, i)
774
				LH.C0 = clerp(LH.C0, LH0, i)
775
				RH.C0 = clerp(RH.C0, RH0, i)
776
				swait()
777
			end
778
			Sound("rbxassetid://2088308141", 2, outblade, "VOMB", false)
779
			for i = 0,1,.15 do
780
				neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-10)), i)
781
				rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(-40)), i)
782
				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
783
				RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(-80), Rad(70), Rad(-40)), i)
784
				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
785
				RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), Rad(40), 0), i)
786
				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
787
				rootj.C0 = clerp(rootj.C0, rootj0, i)
788
				LS.C0 = clerp(LS.C0, LS0, i)
789
				RS.C0 = clerp(RS.C0, RS0, i)
790
				LH.C0 = clerp(LH.C0, LH0, i)
791
				RH.C0 = clerp(RH.C0, RH0, i)
792
				swait()
793
			end
794
		end
795
		hum.WalkSpeed = nws
796
		hum.JumpPower = njp
797
		kill = false
798
		hey:disconnect()
799
		Swinging = false
800
		attacking = false
801
	end
802
end
803
804
function Choke()
805
	if attacking == false and Choking == false then
806
		attacking = true
807
		Choking = true
808
		hum.WalkSpeed = 0
809
		hum.JumpPower = 0
810
		if Mouse.Target ~= nil and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
811
			local theguy = Mouse.Target.Parent
812
			local thehum = theguy:FindFirstChildOfClass("Humanoid")
813
			if thehum.Health > 0 then
814
			    local thehead = theguy:FindFirstChild("Head")
815
    			local thetor = theguy:FindFirstChild("Torso") or theguy:FindFirstChild("UpperTorso")
816
    			root.CFrame = CFn(root.CFrame.p, Vector3.new(Mouse.Hit.x, root.CFrame.y, Mouse.Hit.z))
817
    			thetor.CFrame = CFn(thetor.CFrame.p, Vector3.new(root.CFrame.x, thetor.CFrame.y, root.CFrame.z))
818
    			local thetorframe = thetor.CFrame
819
    			local forpar, forpar2 = Force(larm, CFn(0, 1, 0), thehead, CFn(0, 0.5, 0), theguy)
820
				if thetor.Anchored == true then
821
					thetor.Anchored = false
822
				end
823
    			local thebv = Instance.new("BodyPosition", thetor)
824
    			thebv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
825
    			thebv.Position = thetorframe.p
826
				Sound("rbxassetid://1386781853", 2.5, larm, "OOOWA", false)
827
    			for i = 0,1,.15 do
828
    				neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-20)) , i)
829
    				rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
830
    				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(90)), i)
831
    				RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
832
    				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
833
    				RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
834
    				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
835
    				rootj.C0 = clerp(rootj.C0, rootj0, i)
836
    				LS.C0 = clerp(LS.C0, LS0, i)
837
    				RS.C0 = clerp(RS.C0, RS0, i)
838
    				LH.C0 = clerp(LH.C0, LH0, i)
839
    				RH.C0 = clerp(RH.C0, RH0, i)
840
    				swait()
841
    			end
842
    			thebv.Position = thetorframe * CFn(0, 10, 0).p
843
    			for i = 0,1,.05 do
844
    				neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(20), 0, Rad(-20)), i)
845
    				rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
846
    				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(140)), i)
847
    				RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
848
    				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
849
    				RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
850
    				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
851
    				rootj.C0 = clerp(rootj.C0, rootj0, i)
852
    				LS.C0 = clerp(LS.C0, LS0, i)
853
    				RS.C0 = clerp(RS.C0, RS0, i)
854
    				LH.C0 = clerp(LH.C0, LH0, i)
855
    				RH.C0 = clerp(RH.C0, RH0, i)
856
    				swait()
857
    			end
858
    			for i = 1,math.huge do
859
    				if buttonC == true and thehum.Health > 0 then
860
    					thehum.Health = thehum.Health - 1.5
861
    					swait()
862
    				elseif buttonC == false or thehum.Health <= 0 then
863
    					break
864
    				end
865
    			end
866
    			if thehum.Health <= 0 then
867
    			    theguy:BreakJoints()
868
    				Sound("rbxassetid://513153251", 4, thetor, "OUCH", false)
869
    			end
870
    			thebv:Destroy()
871
    			forpar:Destroy()
872
    			forpar2:Destroy()
873
			end
874
		elseif Mouse.Target ~= nil and Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") then
875
			local theguy = Mouse.Target.Parent.Parent
876
			local thehum = theguy:FindFirstChildOfClass("Humanoid")
877
			   if thehum.Health > 0 then
878
			    local thehead = theguy:FindFirstChild("Head")
879
    			local thetor = theguy:FindFirstChild("Torso") or theguy:FindFirstChild("UpperTorso")
880
    			root.CFrame = CFn(root.CFrame.p, Vector3.new(Mouse.Hit.x, root.CFrame.y, Mouse.Hit.z))
881
    			thetor.CFrame = CFn(thetor.CFrame.p, Vector3.new(root.CFrame.x, root.CFrame.y, root.CFrame.z))
882
    			local thetorframe = thetor.CFrame
883
    			local forpar, forpar2 = Force(larm, CFn(0, 1, 0), thehead, CFn(0, 0.5, 0), theguy)
884
				if thetor.Anchored == true then
885
					thetor.Anchored = false
886
				end
887
    			local thebv = Instance.new("BodyPosition", thetor)
888
    			thebv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
889
    			thebv.Position = thetorframe.p
890
				Sound("rbxassetid://1386781853", 2.5, larm, "OOOWA", false)
891
    			for i = 0,1,.15 do
892
    				neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-20)) , i)
893
    				rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
894
    				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(90)), i)
895
    				RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
896
    				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
897
    				RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
898
    				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
899
    				rootj.C0 = clerp(rootj.C0, rootj0, i)
900
    				LS.C0 = clerp(LS.C0, LS0, i)
901
    				RS.C0 = clerp(RS.C0, RS0, i)
902
    				LH.C0 = clerp(LH.C0, LH0, i)
903
    				RH.C0 = clerp(RH.C0, RH0, i)
904
    				swait()
905
    			end
906
    			thebv.Position = thetorframe * CFn(0, 10, 0).p
907
    			for i = 0,1,.05 do
908
    				neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(20), 0, Rad(-20)), i)
909
    				rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
910
    				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(140)), i)
911
    				RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
912
    				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
913
    				RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
914
    				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
915
    				rootj.C0 = clerp(rootj.C0, rootj0, i)
916
    				LS.C0 = clerp(LS.C0, LS0, i)
917
    				RS.C0 = clerp(RS.C0, RS0, i)
918
    				LH.C0 = clerp(LH.C0, LH0, i)
919
    				RH.C0 = clerp(RH.C0, RH0, i)
920
    				swait()
921
    			end
922
    			for i = 1,math.huge do
923
    				if buttonC == true and thehum.Health > 0 then
924
    					thehum.Health = thehum.Health - 1.5
925
    					swait()
926
    				elseif buttonC == false or thehum.Health <= 0 then
927
    					break
928
    				end
929
    			end
930
    			if thehum.Health <= 0 then
931
    			    theguy:BreakJoints()
932
    				Sound("rbxassetid://513153251", 4, thetor, "OUCH", false)
933
    			end
934
    			thebv:Destroy()
935
    			forpar:Destroy()
936
    			forpar2:Destroy()
937
			end
938
		end
939
		hum.WalkSpeed = nws
940
		hum.JumpPower = njp
941
		Choking = false
942
		attacking = false
943
	end
944
end
945
946
947
948
-----------------------------------------------------------------------------
949
950
function kdown(k)
951
	if k == "e" then
952
		equipunequip()
953
	elseif k == "c" then
954
		if buttonC == false then
955
			buttonC = true
956
			Choke()
957
		end
958
	end
959
end
960
961
function kup(k)
962
	if k == "c" then
963
		if buttonC == true then
964
			buttonC = false
965
		end
966
	end
967
end
968
969
function lmdown()
970
	Swing()
971
end
972
973
Mouse.KeyDown:connect(kdown)
974
Mouse.KeyUp:connect(kup)
975
Mouse.Button1Down:connect(lmdown)
976
977
-----------------------------------------------------------------------------
978
979
warn([[Darth Vader.
980
	last updated: 2018/7/19, 20:14 JST.
981
	
982
	Please do not leak this script.]])
983
984
-----------------------------------------------------------------------------
985
986
while true do
987
	swait()
988
	sine = sine + 1
989
	local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
990
	if Changing == true then
991
		state = "Change"
992
	elseif Swinging == true then
993
		state = "Swing"
994
	elseif Choking == true then
995
		state = "Choking"
996
	elseif 1 < root.Velocity.y then
997
		state = "Jump"
998
	elseif -1 > root.Velocity.y then
999
		state = "Fall"
1000
	elseif torvel < 1 then
1001
		state = "Idle"
1002
	elseif tor.Velocity.magnitude < 50 then
1003
		state = "Walk"
1004
	end
1005
	
1006
	if state == "Jump" then
1007
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-10), 0, 0), 0.15)
1008
		rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-10), 0, 0), 0.15)
1009
		LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), 0.15)
1010
		RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, 0), 0.15)
1011
		LH.C1 = clerp(LH.C1, LH1 * CFn(0.5, -1, -0.1) * CFa(Rad(-10), 0, Rad(-40)), 0.15)
1012
		RH.C1 = clerp(RH.C1, RH1 * CFn(-0.3, -0.8, 0) * CFa(Rad(-5), 0, Rad(15)), 0.15)
1013
		neck.C0 = clerp(neck.C0, neck0, 0.15)
1014
		rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
1015
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1016
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1017
		LH.C0 = clerp(LH.C0, LH0, 0.15)
1018
		RH.C0 = clerp(RH.C0, RH0, 0.15)
1019
	elseif state == "Fall" then
1020
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15)
1021
		rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(10), 0, 0), 0.15)
1022
		LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, 0), 0.15)
1023
		RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(20), 0, 0), 0.15)
1024
		LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
1025
		RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
1026
		neck.C0 = clerp(neck.C0, neck0, 0.15)
1027
		rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
1028
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1029
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1030
		LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
1031
		RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
1032
	elseif state == "Idle" then
1033
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-7 * Sin(sine / 15)), 0, 0), 0.15)
1034
		rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 15)) * CFa(Rad(-2 * Sin(sine / 15)), 0, 0), 0.15)
1035
		LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
1036
		RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
1037
		LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, Rad(2 * Sin(sine / 15))), 0.15)
1038
		RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, Rad(-2 * Sin(sine / 15))), 0.15)
1039
		neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(10), 0, 0), 0.15)
1040
		rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(2), 0, 0), 0.15)
1041
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1042
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1043
		LH.C0 = clerp(LH.C0, LH0, 0.15)
1044
		RH.C0 = clerp(RH.C0, RH0, 0.15)
1045
	elseif state == "Walk" then
1046
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5 * Sin(sine / 4)), 0, 0), 0.15)
1047
		rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 4)) * CFa(Rad(-5), 0, Rad(5 * Sin(sine / 8))), 0.15)
1048
		LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
1049
		RS.C1 = clerp(RS.C1, RS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
1050
		LH.C1 = clerp(LH.C1, LH1 * CFn(0.15 * Cos(sine / 8), -0.3 * Cos(sine / 8), 0) * CFa(0, 0, Rad(55 * Sin(sine / 8))), 0.15)
1051
		RH.C1 = clerp(RH.C1, RH1 * CFn(0.15 * Cos(sine / 8), 0.3 * Cos(sine / 8), 0) * CFa(0, 0, Rad(55 * Sin(sine / 8))), 0.15)
1052
		neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), 0.15)
1053
		rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
1054
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1055
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1056
		LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
1057
		RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
1058
	end
1059
	if not head:FindFirstChild("KOOOHAAA") then
1060
		koohaa = Instance.new("Sound", head)
1061
		koohaa.SoundId = "rbxassetid://149840174"
1062
		koohaa.Name = "KOOOHAAA"
1063
		koohaa.Volume = 2
1064
		koohaa.TimePosition = thepos
1065
		koohaa.Looped = true
1066
		koohaa:Play()
1067
	end
1068
	thepos = koohaa.TimePosition
1069
end
1070
-----------------------------------------------------------------------------
1071
1072
while true do
1073
	swait()
1074
	sine = sine + 1
1075
	local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
1076
	if Changing == true then
1077
		state = "Change"
1078
	elseif Swinging == true then
1079
		state = "Swing"
1080
	elseif Choking == true then
1081
		state = "Choking"
1082
	elseif 1 < root.Velocity.y then
1083
		state = "Jump"
1084
	elseif -1 > root.Velocity.y then
1085
		state = "Fall"
1086
	elseif torvel < 1 then
1087
		state = "Idle"
1088
	elseif tor.Velocity.magnitude < 50 then
1089
		state = "Walk"
1090
	end
1091
	
1092
	if state == "Jump" then
1093
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-10), 0, 0), 0.15)
1094
		rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-10), 0, 0), 0.15)
1095
		LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), 0.15)
1096
		RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, 0), 0.15)
1097
		LH.C1 = clerp(LH.C1, LH1 * CFn(0.5, -1, -0.1) * CFa(Rad(-10), 0, Rad(-40)), 0.15)
1098
		RH.C1 = clerp(RH.C1, RH1 * CFn(-0.3, -0.8, 0) * CFa(Rad(-5), 0, Rad(15)), 0.15)
1099
		neck.C0 = clerp(neck.C0, neck0, 0.15)
1100
		rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
1101
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1102
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1103
		LH.C0 = clerp(LH.C0, LH0, 0.15)
1104
		RH.C0 = clerp(RH.C0, RH0, 0.15)
1105
	elseif state == "Fall" then
1106
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15)
1107
		rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(10), 0, 0), 0.15)
1108
		LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, 0), 0.15)
1109
		RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(20), 0, 0), 0.15)
1110
		LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
1111
		RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
1112
		neck.C0 = clerp(neck.C0, neck0, 0.15)
1113
		rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
1114
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1115
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1116
		LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
1117
		RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
1118
	elseif state == "Idle" then
1119
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-7 * Sin(sine / 15)), 0, 0), 0.15)
1120
		rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 15)) * CFa(Rad(-2 * Sin(sine / 15)), 0, 0), 0.15)
1121
		LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
1122
		RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
1123
		LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, Rad(2 * Sin(sine / 15))), 0.15)
1124
		RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, Rad(-2 * Sin(sine / 15))), 0.15)
1125
		neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(10), 0, 0), 0.15)
1126
		rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(2), 0, 0), 0.15)
1127
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1128
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1129
		LH.C0 = clerp(LH.C0, LH0, 0.15)
1130
		RH.C0 = clerp(RH.C0, RH0, 0.15)
1131
	elseif state == "Walk" then
1132
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5 * Sin(sine / 4)), 0, 0), 0.15)
1133
		rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 4)) * CFa(Rad(-5), 0, Rad(5 * Sin(sine / 8))), 0.15)
1134
		LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
1135
		RS.C1 = clerp(RS.C1, RS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
1136
		LH.C1 = clerp(LH.C1, LH1 * CFn(0.15 * Cos(sine / 8), -0.3 * Cos(sine / 8), 0) * CFa(0, 0, Rad(55 * Sin(sine / 8))), 0.15)
1137
		RH.C1 = clerp(RH.C1, RH1 * CFn(0.15 * Cos(sine / 8), 0.3 * Cos(sine / 8), 0) * CFa(0, 0, Rad(55 * Sin(sine / 8))), 0.15)
1138
		neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), 0.15)
1139
		rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
1140
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1141
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1142
		LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
1143
		RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
1144
	end
1145
	if not head:FindFirstChild("KOOOHAAA") then
1146
		koohaa = Instance.new("Sound", head)
1147
		koohaa.SoundId = "rbxassetid://149840174"
1148
		koohaa.Name = "KOOOHAAA"
1149
		koohaa.Volume = 2
1150
		koohaa.TimePosition = thepos
1151
		koohaa.Looped = true
1152
		koohaa:Play()
1153
	end
1154
	thepos = koohaa.TimePosition
1155
end