View difference between Paste ID: bM58Ly31 and Pjp15T3c
SHOW: | | - or go back to the newest paste.
1-
-------
1+
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2-
--Ryu--
2+
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3-
-------
3+
4-
 
4+
	print("FE Compatibility code by Mokiros")
5-
--Fe Converter--
5+
	script.Parent = Player.Character
6-
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 = {}
6+
7
	--RemoteEvent for communicating
8-
    script.Parent = owner.Character
8+
	local Event = Instance.new("RemoteEvent")
9-
    local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
9+
	Event.Name = "UserInput_Event"
10-
    local function NewFakeEvent()
10+
11-
        local Bind = Instance.new("BindableEvent")
11+
	--Fake event to make stuff like Mouse.KeyDown work
12-
        local Fake;Fake = {Connections = {},
12+
	local function fakeEvent()
13-
        fakeEvent=true;
13+
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
14-
        Connect=function(self,Func)
14+
		t.connect = t.Connect
15-
            Bind.Event:connect(Func)
15+
		return t
16-
            self.Connections[Bind] = true
16+
	end
17-
            return setmetatable({Connected = true},{
17+
18-
            __index = function (self,Index)
18+
	--Creating fake input objects with fake variables
19-
                if Index:lower() == "disconnect" then
19+
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
20-
                    return function() Fake.Connections[Bind] = false;self.Connected = false end
20+
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
21
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
22-
                return Fake[Index]
22+
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
23-
            end;
23+
	end}
24-
            __tostring = function() return "Connection" end;
24+
	--Merged 2 functions into one by checking amount of arguments
25-
        })
25+
	CAS.UnbindAction = CAS.BindAction
26-
        end}
26+
27-
        Fake.connect = Fake.Connect;return Fake;
27+
	--This function will trigger the events that have been :Connect()'ed
28-
    end
28+
	local function te(self,ev,...)
29-
    local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
29+
		local t = m[ev]
30-
    local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
30+
		if t and t._fakeEvent and t.Function then
31-
    local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
31+
			t.Function(...)
32-
        self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
32+
		end
33-
    end};ContextActionService.UnBindAction = ContextActionService.BindAction
33+
	end
34-
    local function TriggerEvent(self,Event,...)
34+
	m.TrigEvent = te
35-
        local Trigger = Mouse[Event]
35+
	UIS.TrigEvent = te
36-
        if Trigger and Trigger.fakeEvent and Trigger.Connections then
36+
37-
            for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
37+
	Event.OnServerEvent:Connect(function(plr,io)
38-
        end
38+
	    if plr~=Player then return end
39-
    end
39+
		if io.isMouse then
40-
    Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
40+
			m.Target = io.Target
41-
    Event.OnServerEvent:Connect(function(FiredBy,Input)
41+
			m.Hit = io.Hit
42-
        if FiredBy.Name ~= owner.Name then return end
42+
		else
43-
        if Input.MouseEvent then
43+
			local b = io.UserInputState == Enum.UserInputState.Begin
44-
            Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
44+
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
45-
        else
45+
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
46-
            local Begin = Input.UserInputState == Enum.UserInputState.Begin
46+
			end
47-
            if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
47+
			for _,t in pairs(CAS.Actions) do
48-
            for _,Action in pairs(ContextActionService.Actions) do
48+
				for _,k in pairs(t.Keys) do
49-
                for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
49+
					if k==io.KeyCode then
50-
            end
50+
						t.Function(t.Name,io.UserInputState,io)
51-
            Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
51+
					end
52-
            UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
52+
				end
53-
        end
53+
			end
54-
    end)
54+
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
55-
    InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
55+
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
56-
    Event.Parent = NLS([[
56+
	    end
57-
        local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
57+
	end)
58-
        local Input = function(Input,gameProcessedEvent)
58+
	Event.Parent = NLS([==[
59-
            if gameProcessedEvent then return end
59+
	local Player = game:GetService("Players").LocalPlayer
60-
            Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
60+
	local Event = script:WaitForChild("UserInput_Event")
61-
        end
61+
62-
        UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
62+
	local UIS = game:GetService("UserInputService")
63-
        local Hit,Target
63+
	local input = function(io,a)
64-
        while wait(1/30) do
64+
		if a then return end
65-
            if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
65+
		--Since InputObject is a client-side instance, we create and pass table instead
66-
                Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
66+
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
67-
            end
67+
	end
68-
        end
68+
	UIS.InputBegan:Connect(input)
69-
    ]],owner.Character)
69+
	UIS.InputEnded:Connect(input)
70
71-
RealGame = game;game = setmetatable({},{
71+
	local Mouse = Player:GetMouse()
72-
    __index = function (self,Index)
72+
	local h,t
73-
        local Sandbox = function (Thing)
73+
	--Give the server mouse data 30 times every second, but only if the values changed
74-
            if Thing:IsA("Player") then
74+
	--If player is not moving their mouse, client won't fire events
75-
                local RealPlayer = Thing
75+
	while wait(1/30) do
76-
                return setmetatable({},{
76+
		if h~=Mouse.Hit or t~=Mouse.Target then
77-
                    __index = function (self,Index)
77+
			h,t=Mouse.Hit,Mouse.Target
78-
                        local Type = type(RealPlayer[Index])
78+
			Event:FireServer({isMouse=true,Target=t,Hit=h})
79-
                        if Type == "function" then
79+
		end
80-
                            if Index:lower() == "getmouse" or Index:lower() == "mouse" then
80+
	end]==],Player.Character)
81-
                                return function (self)return InternalData["Mouse"] end
81+
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
82-
                            end
82+
83-
                            return function (self,...)return RealPlayer[Index](RealPlayer,...) end
83+
84-
                        end
84+
local plrs = game:GetService("Players")
85-
                        return RealPlayer[Index]
85+
86-
                    end;
86+
87-
                    __tostring = function(self) return RealPlayer.Name end
87+
local tweenserv = game:GetService("TweenService")
88-
                })
88+
local lighting = game:GetService("Lighting")
89-
            end
89+
local hum = char:FindFirstChildOfClass("Humanoid")
90-
        end
90+
local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
91-
        if RealGame[Index] then
91+
local root = char:FindFirstChild("HumanoidRootPart")
92-
            local Type = type(RealGame[Index])
92+
local head = char:FindFirstChild("Head")
93-
            if Type == "function" then
93+
local face = head:FindFirstChildOfClass("Decal")
94-
                if Index:lower() == "getservice" or Index:lower() == "service" then
94+
local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm")
95-
                    return function (self,Service)
95+
local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm")
96-
                        local FakeServices = {
96+
local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg")
97-
                            ["players"] = function()
97+
local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg")
98-
                                return setmetatable({},{
98+
local neck = tor:FindFirstChild("Neck")
99-
                                    __index = function (self2,Index2)
99+
local rootj = root:FindFirstChild("RootJoint")
100-
                                        local RealService = RealGame:GetService(Service)
100+
local LS = tor:FindFirstChild("Left Shoulder")
101-
                                        local Type2 = type(Index2)
101+
local RS = tor:FindFirstChild("Right Shoulder")
102-
                                        if Type2 == "function" then
102+
local LH = tor:FindFirstChild("Left Hip")
103-
                                            return function (self,...) return RealService[Index2](RealService,...)end
103+
local RH = tor:FindFirstChild("Right Hip")
104-
                                        else
104+
local bp = plr:FindFirstChild("Backpack")
105-
                                            if Index2:lower() == "localplayer" then return Sandbox(owner) end
105+
local cam = workspace.CurrentCamera
106-
                                            return RealService[Index2]
106+
107-
                                        end
107+
hum:ClearAllChildren()
108-
                                    end;
108+
char.Animate:remove()
109-
                                    __tostring = function(self) return RealGame:GetService(Service).Name end
109+
110-
                                })
110+
111-
                            end;
111+
--Converted with ttyyuu12345's model to script plugin v4
112-
                            ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
112+
function sandbox(var,func)
113-
                            ["userinputservice"] = function() return InternalData["UserInputService"] end;
113+
	local env = getfenv(func)
114-
                            ["runservice"] = function()
114+
	local newenv = setmetatable({},{
115-
                                return setmetatable({},{
115+
		__index = function(self,k)
116-
                                    __index = function(self2,Index2)
116+
			if k=="script" then
117-
                                        local RealService = RealGame:GetService(Service)
117+
				return var
118-
                                        local Type2 = type(Index2)
118+
			else
119-
                                        if Type2 == "function" then
119+
				return env[k]
120-
                                            return function (self,...) return RealService[Index2](RealService,...) end
120+
			end
121-
                                        else
121+
		end,
122-
                                            local RunServices = {
122+
	})
123-
                                                ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
123+
	setfenv(func,newenv)
124-
                                                ["renderstepped"] = function() return RealService["Stepped"] end
124+
	return func
125-
                                            }
125+
126-
                                            if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
126+
cors = {}
127-
                                            return RealService[Index2]
127+
mas = Instance.new("Model",game:GetService("Lighting"))
128-
                                        end
128+
Model0 = Instance.new("Model")
129-
                                    end
129+
Part1 = Instance.new("Part")
130-
                                })
130+
ManualWeld2 = Instance.new("ManualWeld")
131-
                            end
131+
Part3 = Instance.new("Part")
132-
                        }
132+
Part4 = Instance.new("Part")
133-
                        if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
133+
ManualWeld5 = Instance.new("ManualWeld")
134-
                        return RealGame:GetService(Service)
134+
Part6 = Instance.new("Part")
135-
                    end
135+
ManualWeld7 = Instance.new("ManualWeld")
136
Part8 = Instance.new("Part")
137-
                return function (self,...) return RealGame[Index](RealGame,...) end
137+
ParticleEmitter9 = Instance.new("ParticleEmitter")
138-
            else
138+
ManualWeld10 = Instance.new("ManualWeld")
139-
                if game:GetService(Index) then return game:GetService(Index) end
139+
Part11 = Instance.new("Part")
140-
                return RealGame[Index]
140+
ManualWeld12 = Instance.new("ManualWeld")
141-
            end
141+
Part19 = Instance.new("Part")
142-
        end
142+
ManualWeld20 = Instance.new("ManualWeld")
143-
        return nil
143+
Part21 = Instance.new("Part")
144-
    end
144+
ManualWeld22 = Instance.new("ManualWeld")
145-
        });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
145+
Model0.Name = "saber"
146-
---------
146+
Model0.Parent = mas
147-
--Stuff--
147+
Part1.Name = "hand"
148-
---------
148+
Part1.Parent = Model0
149-
 
149+
Part1.Material = Enum.Material.SmoothPlastic
150
Part1.BrickColor = BrickColor.new("Really white")
151-
print('Local User is '..plr.Name)
151+
Part1.Rotation = Vector3.new(0, -90, 0)
152
Part1.CanCollide = false
153-
local hum = char.Humanoid
153+
Part1.Shape = Enum.PartType.Cylinder
154-
local hed = char.Head
154+
Part1.Size = Vector3.new(1.29999995, 0.299999952, 0.299999952)
155-
local mouse = plr:GetMouse()
155+
Part1.CFrame = CFrame.new(-1741.76343, 117.599991, -204.231796, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
156-
local root = char.HumanoidRootPart
156+
Part1.BottomSurface = Enum.SurfaceType.Smooth
157-
local rootj = root.RootJoint
157+
Part1.TopSurface = Enum.SurfaceType.Smooth
158-
local tors = char.Torso
158+
Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
159-
local ra = char["Right Arm"]
159+
Part1.Position = Vector3.new(-1741.76343, 117.599991, -204.231796)
160-
local la = char["Left Arm"]
160+
Part1.Orientation = Vector3.new(0, -90, 0)
161-
local rl = char["Right Leg"]
161+
Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
162-
local ll = char["Left Leg"]
162+
ManualWeld2.Name = "Weld"
163-
local neck = tors["Neck"]
163+
ManualWeld2.Parent = Part1
164-
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
164+
ManualWeld2.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
165-
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
165+
ManualWeld2.C1 = CFrame.new(0.0347900391, 0, 0.0680541992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
166-
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
166+
ManualWeld2.Part0 = Part1
167-
local maincolor = BrickColor.new("Institutional white")
167+
ManualWeld2.Part1 = Part3
168-
local sine = 0
168+
Part3.Name = "main"
169
Part3.Parent = Model0
170-
local idle = 0
170+
Part3.Transparency = 1
171-
local change = 1
171+
Part3.CanCollide = false
172-
local val = 0
172+
Part3.Size = Vector3.new(1, 1, 1)
173-
local toim = 0
173+
Part3.CFrame = CFrame.new(-1741.79822, 117.599991, -204.29985, 1, 0, 0, 0, 1, 0, 0, 0, 1)
174-
local idleanim = 0.4
174+
Part3.BottomSurface = Enum.SurfaceType.Smooth
175-
local sine = 0
175+
Part3.TopSurface = Enum.SurfaceType.Smooth
176-
local Sit = 1
176+
Part3.Position = Vector3.new(-1741.79822, 117.599991, -204.29985)
177-
cam = game.Workspace.CurrentCamera
177+
Part4.Name = "cap2"
178-
CF = CFrame.new
178+
Part4.Parent = Model0
179-
angles = CFrame.Angles
179+
Part4.Material = Enum.Material.SmoothPlastic
180-
attack = false
180+
Part4.BrickColor = BrickColor.new("Really white")
181-
Euler = CFrame.fromEulerAnglesXYZ
181+
Part4.Rotation = Vector3.new(0, -90, 0)
182-
Rad = math.rad
182+
Part4.CanCollide = false
183-
IT = Instance.new
183+
Part4.Shape = Enum.PartType.Cylinder
184-
BrickC = BrickColor.new
184+
Part4.Size = Vector3.new(0.0999999046, 0.349999994, 0.349999994)
185-
Cos = math.cos
185+
Part4.CFrame = CFrame.new(-1741.76343, 117.599991, -203.531723, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
186-
Acos = math.acos
186+
Part4.BottomSurface = Enum.SurfaceType.Smooth
187-
Sin = math.sin
187+
Part4.TopSurface = Enum.SurfaceType.Smooth
188-
Asin = math.asin
188+
Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
189-
Abs = math.abs
189+
Part4.Position = Vector3.new(-1741.76343, 117.599991, -203.531723)
190-
Mrandom = math.random
190+
Part4.Orientation = Vector3.new(0, -90, 0)
191-
Floor = math.floor
191+
Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
192-
local Player_Size = 1
192+
ManualWeld5.Name = "Weld"
193-
if Player_Size ~= 1 then
193+
ManualWeld5.Parent = Part4
194-
root.Size = root.Size * Player_Size
194+
ManualWeld5.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
195-
tors.Size = tors.Size * Player_Size
195+
ManualWeld5.C1 = CFrame.new(0.0347900391, 0, 0.768127441, 1, 0, 0, 0, 1, 0, 0, 0, 1)
196-
hed.Size = hed.Size * Player_Size
196+
ManualWeld5.Part0 = Part4
197-
ra.Size = ra.Size * Player_Size
197+
ManualWeld5.Part1 = Part3
198-
la.Size = la.Size * Player_Size
198+
Part6.Name = "bot1"
199-
rl.Size = rl.Size * Player_Size
199+
Part6.Parent = Model0
200-
ll.Size = ll.Size * Player_Size
200+
Part6.Material = Enum.Material.SmoothPlastic
201-
----------------------------------------------------------------------------------
201+
Part6.BrickColor = BrickColor.new("Really white")
202-
rootj.Parent = root
202+
Part6.Rotation = Vector3.new(0, -90, 0)
203-
neck.Parent = tors
203+
Part6.CanCollide = false
204-
RW.Parent = tors
204+
Part6.Shape = Enum.PartType.Cylinder
205-
LW.Parent = tors
205+
Part6.Size = Vector3.new(0.0999999046, 0.349999994, 0.349999994)
206-
RH.Parent = tors
206+
Part6.CFrame = CFrame.new(-1741.76343, 117.599991, -204.931747, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
207-
LH.Parent = tors
207+
Part6.BottomSurface = Enum.SurfaceType.Smooth
208-
----------------------------------------------------------------------------------
208+
Part6.TopSurface = Enum.SurfaceType.Smooth
209-
rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
209+
Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
210-
rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
210+
Part6.Position = Vector3.new(-1741.76343, 117.599991, -204.931747)
211-
neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
211+
Part6.Orientation = Vector3.new(0, -90, 0)
212-
neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
212+
Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
213-
RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
213+
ManualWeld7.Name = "Weld"
214-
LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
214+
ManualWeld7.Parent = Part6
215-
----------------------------------------------------------------------------------
215+
ManualWeld7.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
216-
RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
216+
ManualWeld7.C1 = CFrame.new(0.0347900391, 0, -0.631896973, 1, 0, 0, 0, 1, 0, 0, 0, 1)
217-
LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
217+
ManualWeld7.Part0 = Part6
218-
RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
218+
ManualWeld7.Part1 = Part3
219-
LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
219+
Part8.Name = "cap"
220-
--hat.Parent = Character
220+
Part8.Parent = Model0
221
Part8.Material = Enum.Material.SmoothPlastic
222-
hum.WalkSpeed = 16
222+
Part8.BrickColor = BrickColor.new("White")
223-
hum.JumpPower = 57
223+
Part8.Rotation = Vector3.new(0, -90, 0)
224-
for i,v in pairs(char:children()) do
224+
Part8.CanCollide = false
225-
    if v:IsA("Hat") then
225+
Part8.Shape = Enum.PartType.Cylinder
226-
        v:Destroy()
226+
Part8.Size = Vector3.new(0.0999999046, 0.300000012, 0.300000012)
227-
    end
227+
Part8.CFrame = CFrame.new(-1741.76343, 117.599991, -203.431747, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
228
Part8.BottomSurface = Enum.SurfaceType.Smooth
229-
for i,v in pairs(char:children()) do
229+
Part8.TopSurface = Enum.SurfaceType.Smooth
230-
    if v:IsA("Accessory") then
230+
Part8.Color = Color3.new(0.937255, 0.721569, 0.219608)
231-
        v:Destroy()
231+
Part8.Position = Vector3.new(-1741.76343, 117.599991, -203.431747)
232-
    end
232+
Part8.Orientation = Vector3.new(0, -90, 0)
233
Part8.Color = Color3.new(0.937255, 0.721569, 0.219608)
234-
for i,v in pairs(char:children()) do
234+
ParticleEmitter9.Parent = Part8
235-
    if v:IsA("Hair") then
235+
ParticleEmitter9.LockedToPart = true
236-
        v:Destroy()
236+
ParticleEmitter9.Transparency = NumberSequence.new(0,0.1)
237-
    end
237+
ParticleEmitter9.Size = NumberSequence.new(0.5,0.5)
238
ParticleEmitter9.Color = ColorSequence.new(Color3.new(0.333333, 0, 0),Color3.new(0.666667, 0, 0))
239-
for i,v in pairs(char:children()) do
239+
ParticleEmitter9.EmissionDirection = "Right"
240-
    if v:IsA("Shirt") then
240+
ParticleEmitter9.LightEmission = 1011111
241-
        v:Destroy()
241+
ParticleEmitter9.Texture = "rbxassetid://147313514"
242-
    end
242+
ParticleEmitter9.Lifetime = NumberRange.new(0.5, 0.5)
243
ParticleEmitter9.Rate = 200111
244-
for i,v in pairs(char:children()) do
244+
ParticleEmitter9.RotSpeed = NumberRange.new(360, 360)
245-
    if v:IsA("Pants") then
245+
ParticleEmitter9.Speed = NumberRange.new(10, 10)
246-
        v:Destroy()
246+
ParticleEmitter9.VelocitySpread = 2
247-
    end
247+
ParticleEmitter9.Color = ColorSequence.new(Color3.new(0.333333, 0, 0),Color3.new(0.666667, 0, 0))
248
ManualWeld10.Name = "Weld"
249-
for i,v in pairs(char:children()) do
249+
ManualWeld10.Parent = Part8
250-
    if v:IsA("Graphic Shirt") then
250+
ManualWeld10.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
251-
        v:Destroy()
251+
ManualWeld10.C1 = CFrame.new(0.0347900391, 0, 0.868103027, 1, 0, 0, 0, 1, 0, 0, 0, 1)
252-
    end
252+
ManualWeld10.Part0 = Part8
253
ManualWeld10.Part1 = Part3
254-
for i,v in pairs(char:children()) do
254+
Part11.Name = "bot2"
255-
    if v:IsA("GraphicShirt") then
255+
Part11.Parent = Model0
256-
        v:Destroy()
256+
Part11.Material = Enum.Material.SmoothPlastic
257-
    end
257+
Part11.BrickColor = BrickColor.new("Really white")
258
Part11.Rotation = Vector3.new(0, -90, 0)
259-
 
259+
Part11.CanCollide = false
260-
for _,v in pairs(char:children()) do
260+
Part11.Shape = Enum.PartType.Cylinder
261-
if v:IsA("Shirt") then
261+
Part11.Size = Vector3.new(0.0999999046, 0.300000012, 0.300000012)
262-
v.ShirtTemplate = "rbxassetid://0"
262+
Part11.CFrame = CFrame.new(-1741.76343, 117.599991, -205.031723, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
263-
elseif v:IsA("Pants") then
263+
Part11.BottomSurface = Enum.SurfaceType.Smooth
264-
v.PantsTemplate = "rbxassetid://0"
264+
Part11.TopSurface = Enum.SurfaceType.Smooth
265-
elseif v:IsA("ShirtGraphic") then
265+
Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
266-
v:Remove()
266+
Part11.Position = Vector3.new(-1741.76343, 117.599991, -205.031723)
267-
wait(.1)
267+
Part11.Orientation = Vector3.new(0, -90, 0)
268-
tors.roblox:Remove()
268+
Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
269-
elseif v:IsA("Accessory") then
269+
ManualWeld12.Name = "Weld"
270-
v:Remove()
270+
ManualWeld12.Parent = Part11
271
ManualWeld12.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
272
ManualWeld12.C1 = CFrame.new(0.0347900391, 0, -0.731872559, 1, 0, 0, 0, 1, 0, 0, 0, 1)
273-
 
273+
ManualWeld12.Part0 = Part11
274-
shirt = "rbxassetid://1158386378"
274+
ManualWeld12.Part1 = Part3
275-
pants = "rbxassetid://832841995"
275+
Part19.Name = "outblade"
276-
 
276+
Part19.Parent = Model0
277-
knuckles1 = Instance.new("Shirt")
277+
Part19.Material = Enum.Material.Neon
278-
knuckles1.Parent = char
278+
Part19.BrickColor = BrickColor.new("Maroon")
279-
knuckles1.ShirtTemplate = shirt
279+
Part19.Rotation = Vector3.new(0, -90, 0)
280-
knuckles2 = Instance.new("Pants")
280+
Part19.CanCollide = false
281-
knuckles2.Parent = char
281+
Part19.Shape = Enum.PartType.Cylinder
282-
knuckles2.PantsTemplate = pants
282+
Part19.Size = Vector3.new(4.39999962, 0.2500000012, 0.2500000012)
283-
 
283+
Part19.CFrame = CFrame.new(-1741.76343, 117.599991, -201.181747, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
284-
torso = char["Torso"]
284+
Part19.BottomSurface = Enum.SurfaceType.Smooth
285-
rightarm = char["Right Arm"]
285+
Part19.TopSurface = Enum.SurfaceType.Smooth
286-
leftarm = char["Left Arm"]
286+
Part19.Color = Color3.new(0.458824, 0, 0)
287-
head = char["Head"]
287+
Part19.Position = Vector3.new(-1741.76343, 117.599991, -201.181747)
288-
leftleg = char["Left Leg"]
288+
Part19.Orientation = Vector3.new(0, -90, 0)
289-
rightleg = char["Right Leg"]
289+
Part19.Color = Color3.new(0.458824, 0, 0)
290-
 
290+
ManualWeld20.Name = "Weld"
291-
torso.BrickColor = BrickColor.new("Light orange")
291+
ManualWeld20.Parent = Part19
292-
rightarm.BrickColor = BrickColor.new("Light orange")
292+
ManualWeld20.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
293-
leftarm.BrickColor = BrickColor.new("Light orange")
293+
ManualWeld20.C1 = CFrame.new(0.0347900391, 0, 3.11810303, 1, 0, 0, 0, 1, 0, 0, 0, 1)
294-
rightleg.BrickColor = BrickColor.new("Light orange")
294+
ManualWeld20.Part0 = Part19
295-
leftleg.BrickColor = BrickColor.new("Light orange")
295+
ManualWeld20.Part1 = Part3
296-
head.BrickColor = BrickColor.new("Light orange")
296+
Part21.Name = "outball"
297-
head.face.Texture = "http://www.roblox.com/asset/?id=65724729"
297+
Part21.Parent = Model0
298-
 
298+
Part21.Material = Enum.Material.Neon
299-
hum.Animator.Parent = nil
299+
Part21.BrickColor = BrickColor.new("white")
300-
 
300+
Part21.Rotation = Vector3.new(0, -90, 0)
301
Part21.CanCollide = false
302-
    if num == 0 or num == nil then
302+
Part21.Shape = Enum.PartType.Ball
303-
        game:service("RunService").Stepped:wait(0)
303+
Part21.Size = Vector3.new(0.25, 0.25, 0.25)
304-
    else
304+
Part21.CFrame = CFrame.new(-1741.76343, 117.599991, -198.981674, 1.19248806e-08, 0, -1, 0, 1, 0, 1, 0, 1.19248806e-08)
305-
        for i = 0, num do
305+
Part21.BottomSurface = Enum.SurfaceType.Smooth
306-
            game:service("RunService").Stepped:wait(0)
306+
Part21.TopSurface = Enum.SurfaceType.Smooth
307-
        end
307+
Part21.Color = Color3.new(0.458824, 0, 0)
308-
    end
308+
Part21.Position = Vector3.new(-1741.76343, 117.599991, -198.981674)
309
Part21.Orientation = Vector3.new(0, -90, 0)
310
Part21.Color = Color3.new(0.458824, 0, 0)
311-
    local qa = {
311+
ManualWeld22.Name = "Weld"
312-
        QuaternionFromCFrame(a)
312+
ManualWeld22.Parent = Part21
313-
    }
313+
ManualWeld22.C0 = CFrame.new(0, 0, 0, 1.19248806e-08, 0, 1, 0, 1, 0, -1, 0, 1.19248806e-08)
314-
    local qb = {
314+
ManualWeld22.C1 = CFrame.new(0.0347900391, 0, 5.31817627, 1, 0, 0, 0, 1, 0, 0, 0, 1)
315-
        QuaternionFromCFrame(b)
315+
ManualWeld22.Part0 = Part21
316-
    }
316+
ManualWeld22.Part1 = Part3
317-
    local ax, ay, az = a.x, a.y, a.z
317+
for i,v in pairs(mas:GetChildren()) do
318-
    local bx, by, bz = b.x, b.y, b.z
318+
	v.Parent = char
319-
    local _t = 1 - t
319+
	saber = v
320-
    return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
320+
	outblade = Part19
321
	outball = Part21
322-
function QuaternionFromCFrame(cf)
322+
	particle = ParticleEmitter9
323-
    local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
323+
	main = Part3
324-
    local trace = m00 + m11 + m22
324+
	cap = Part8
325-
    if trace > 0 then
325+
	pcall(function() v:MakeJoints() end)
326-
        local s = math.sqrt(1 + trace)
326+
327-
        local recip = 0.5 / s
327+
mas:Destroy()
328-
        return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
328+
for i,v in pairs(cors) do
329-
    else
329+
	spawn(function()
330-
        local i = 0
330+
		pcall(v)
331-
        if m00 < m11 then
331+
	end)
332-
            i = 1
332+
333-
        end
333+
334-
        if m22 > (i == 0 and m00 or m11) then
334+
local ws = hum.WalkSpeed
335-
            i = 2
335+
local jp = hum.JumpPower
336-
        end
336+
local nws = ws
337-
        if i == 0 then
337+
local njp = jp
338-
            local s = math.sqrt(m00 - m11 - m22 + 1)
338+
339-
            local recip = 0.5 / s
339+
local rootj0 = rootj.C0
340-
            return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
340+
local neck0 = neck.C0
341-
        elseif i == 1 then
341+
local LS0 = LS.C0
342-
            local s = math.sqrt(m11 - m22 - m00 + 1)
342+
local RS0 = RS.C0
343-
            local recip = 0.5 / s
343+
local LH0 = LH.C0
344-
            return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
344+
local RH0 = RH.C0
345-
        elseif i == 2 then
345+
local rootj1 = rootj.C1
346-
            local s = math.sqrt(m22 - m00 - m11 + 1)
346+
local neck1 = neck.C1
347-
            local recip = 0.5 / s
347+
local LS1 = LS.C1
348-
            return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
348+
local RS1 = RS.C1
349-
        end
349+
local LH1 = LH.C1
350-
    end
350+
local RH1 = RH.C1
351
352-
function QuaternionToCFrame(px, py, pz, x, y, z, w)
352+
local pshew = Instance.new("Sound", cap)
353-
    local xs, ys, zs = x + x, y + y, z + z
353+
pshew.SoundId = "rbxassetid://605604103"
354-
    local wx, wy, wz = w * xs, w * ys, w * zs
354+
pshew.Volume = 2
355-
    local xx = x * xs
355+
pshew.Name = "PSHEW"
356-
    local xy = x * ys
356+
357-
    local xz = x * zs
357+
local sheww = Instance.new("Sound", cap)
358-
    local yy = y * ys
358+
sheww.SoundId = "rbxassetid://605607641"
359-
    local yz = y * zs
359+
sheww.Volume = 2
360-
    local zz = z * zs
360+
sheww.Name = "SHEWW"
361-
    return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
361+
362
local wanwan = Instance.new("Sound", outblade)
363-
function QuaternionSlerp(a, b, t)
363+
wanwan.SoundId = "rbxassetid://1460966017"
364-
    local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
364+
wanwan.Volume = 1
365-
    local startInterp, finishInterp
365+
wanwan.Name = "WANWAN"
366-
    if cosTheta >= 1.0E-4 then
366+
wanwan.Looped = true
367-
        if 1 - cosTheta > 1.0E-4 then
367+
368-
            local theta = math.acos(cosTheta)
368+
local chwan = Instance.new("Sound", outblade)
369-
            local invSinTheta = 1 / Sin(theta)
369+
chwan.SoundId = "rbxassetid://1647165403"
370-
            startInterp = Sin((1 - t) * theta) * invSinTheta
370+
chwan.Volume = 1
371-
            finishInterp = Sin(t * theta) * invSinTheta
371+
chwan.Name = "CHWAN"
372-
        else
372+
373-
            startInterp = 1 - t
373+
local pssps = Instance.new("Sound", outblade)
374-
            finishInterp = t
374+
pssps.SoundId = "rbxassetid://1335649595"
375-
        end
375+
pssps.Volume = 1
376-
    elseif 1 + cosTheta > 1.0E-4 then
376+
pssps.Name = "PSSPS"
377-
        local theta = math.acos(-cosTheta)
377+
378-
        local invSinTheta = 1 / Sin(theta)
378+
local vomb = Instance.new("Sound", outblade)
379-
        startInterp = Sin((t - 1) * theta) * invSinTheta
379+
vomb.SoundId = "rbxassetid://2088308141"
380-
        finishInterp = Sin(t * theta) * invSinTheta
380+
vomb.Volume = 2
381-
    else
381+
vomb.Name = "VOMB"
382-
        startInterp = t - 1
382+
383-
        finishInterp = t
383+
local ooowa = Instance.new("Sound", larm)
384-
    end
384+
ooowa.SoundId = "rbxassetid://1386781853"
385-
    return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
385+
ooowa.Volume = 2.5
386
ooowa.Name = "OOOWA"
387-
function rayCast(Position, Direction, Range, Ignore)
387+
388-
    return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
388+
local koohaa = Instance.new("Sound", head)
389
koohaa.SoundId = "rbxassetid://149840174"
390-
local RbxUtility = LoadLibrary("RbxUtility")
390+
koohaa.Volume = 2
391-
local Create = RbxUtility.Create
391+
koohaa.Name = "KOOOHAAA"
392-
 
392+
koohaa.Looped = true
393
koohaa:Play()
394
local thepos = koohaa.TimePosition
395
396-
 
396+
-----------------------------------------------------------------------------
397
398
local CFn = CFrame.new
399
local CFa = CFrame.Angles
400
local Rad = math.rad
401-
 
401+
local Cos = math.cos
402-
 
402+
local Sin = math.sin
403
local sine = 1
404
local attacking = false
405-
 
405+
406-
 
406+
local Changing = false
407
local Swinging = false
408-
    tf = tf + s
408+
local kill = false
409-
    if tf >= frame then
409+
local attackstate = 1
410-
        if allowframeloss then
410+
local Choking = false
411-
            script.Heartbeat:Fire()
411+
local buttonC = false
412-
            lastframe = tick()
412+
413-
        else
413+
-----------------------------------------------------------------------------
414-
            for i = 1, math.floor(tf / frame) do
414+
415-
                script.Heartbeat:Fire()
415+
for i,v in pairs(char:GetChildren()) do
416-
            end
416+
	if v:IsA("Shirt") then
417-
            lastframe = tick()
417+
		v:Destroy()
418-
        end
418+
	end
419-
        if tossremainder then
419+
	if v:IsA("Pants") then
420-
            tf = 0
420+
		v:Destroy()
421-
        else
421+
	end
422-
            tf = tf - frame * math.floor(tf / frame)
422+
	if v:IsA("Accessory") then
423-
        end
423+
		v:Destroy()
424-
    end
424+
	end
425
end
426-
 
426+
427-
necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
427+
local ff = Instance.new("ForceField", char)
428-
RSH, LSH = nil, nil
428+
ff.Visible = false
429-
RW = Instance.new("Weld")
429+
hum.MaxHealth = math.huge
430-
LW = Instance.new("Weld")
430+
hum.Health = math.huge
431-
RH = tors["Right Hip"]
431+
432-
LH = tors["Left Hip"]
432+
local shirt = Instance.new("Shirt", char)
433-
RSH = tors["Right Shoulder"]
433+
shirt.ShirtTemplate = "rbxassetid://2505006282"
434-
LSH = tors["Left Shoulder"]
434+
local pants = Instance.new("Pants", char)
435-
RSH.Parent = nil
435+
pants.PantsTemplate = "rbxassetid://2505006249"
436-
LSH.Parent = nil
436+
437-
RW.Name = "RW"
437+
head.Transparency = 1
438-
RW.Part0 = tors
438+
439-
RW.C0 = CF(1.5, 0.5, 0)
439+
local hair = Instance.new("Part", char)
440-
RW.C1 = CF(0, 0.5, 0)
440+
hair.Size = Vector3.new(1, 1, 1)
441-
RW.Part1 = ra
441+
442-
RW.Parent = tors
442+
local hairm = Instance.new("SpecialMesh", hair)
443-
LW.Name = "LW"
443+
hairm.MeshId = "rbxassetid://306063581"
444-
LW.Part0 = tors
444+
hairm.TextureId = "rbxassetid://306062884"
445-
LW.C0 = CF(-1.5, 0.5, 0)
445+
446-
LW.C1 = CF(0, 0.5, 0)
446+
local hairw = Instance.new("Weld", hair)
447-
LW.Part1 = la
447+
hairw.Part0 = head
448-
LW.Parent = tors
448+
hairw.Part1 = hair
449-
Effects = {}
449+
hairw.C1 = CFn(0, -0.1, 0)
450-
 
450+
451-
--------
451+
local AT0 = Instance.new("Attachment", outblade)
452-
--Hats--
452+
AT0.Position = Vector3.new(-2.2, 0, 0)
453-
--------
453+
454-
 
454+
local AT1 = Instance.new("Attachment", outblade)
455-
hair = Instance.new("Part")
455+
AT1.Position = Vector3.new(2.4, 0, 0)
456-
hair.Parent = char
456+
457-
hair.Name = "BlackHair"
457+
local trail = Instance.new("Trail", outblade)
458-
hair.Position = head.Position
458+
trail.Attachment0 = AT0
459
trail.Attachment1 = AT1
460-
hairmesh = Instance.new("SpecialMesh")
460+
trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(1, 0.9, 0)})
461-
hairmesh.Parent = hair
461+
trail.LightEmission = 30111111
462-
hairmesh.MeshId = "rbxassetid://12212520"
462+
trail.Lifetime = 111111111111
463-
hairmesh.TextureId = "rbxassetid://15364375"
463+
trail.MaxLength = 10111
464-
hairmesh.Scale = Vector3.new(1, 1, 1)
464+
trail.MinLength = 1011111
465-
hairmesh.Offset = Vector3.new(0, 0.67, 0)
465+
trail.WidthScale = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0), NumberSequenceKeypoint.new(1, 0.2, 0)})
466-
hairweld = Instance.new("Weld")
466+
trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(85, 0, 0), 0), ColorSequenceKeypoint.new(1, Color3.fromRGB(170, 0, 0), 0)})
467-
hairweld.Parent = hair
467+
468-
hairweld.Part0 = hair
468+
local mainw = Instance.new("Weld", main)
469-
hairweld.Part1 = head
469+
mainw.Part0 = tor
470-
 
470+
mainw.Part1 = main
471-
headband = Instance.new("Part")
471+
mainw.C1 = CFn(1, 1, 0)
472-
headband.Parent = char
472+
473-
headband.Name = "HeadbandRed"
473+
local bld = Instance.new("Part", saber)
474-
headband.Position = head.Position
474+
bld.Size = Vector3.new(4.7, 1, 1)
475-
headband.CanCollide = false
475+
bld.CanCollide = false
476-
headband.BrickColor = BrickColor.new("Really red")
476+
bld.Transparency = 1
477-
headbandmesh = Instance.new("SpecialMesh")
477+
478-
headbandmesh.Parent = headband
478+
local bldw = Instance.new("Weld", bld)
479-
headbandmesh.MeshId = "rbxassetid://11124978"
479+
bldw.Part0 = outblade
480-
headbandmesh.Scale = Vector3.new(1, 1, 1)
480+
bldw.Part1 = bld
481-
headbandmesh.Offset = Vector3.new(0, 0.47, 0)
481+
482-
headbandweld = Instance.new("Weld")
482+
local cape = Instance.new("Part", char)
483-
headbandweld.Parent = headband
483+
cape.Size = Vector3.new(2, 3.6, 1)
484-
headbandweld.Part0 = headband
484+
cape.Material = "SmoothPlastic"
485-
headbandweld.Part1 = head
485+
cape.BrickColor = BrickColor.new("Really white")
486-
 
486+
local capem = Instance.new("SpecialMesh", cape)
487-
-----------------
487+
capem.MeshType = "FileMesh"
488-
--Start Attacks--
488+
capem.MeshId = "rbxassetid://114046169"
489-
-----------------
489+
capem.Scale = Vector3.new(1.2, 1.8, 1.1)
490
491-
grab = false
491+
local capew = Instance.new("Weld", cape)
492-
charge = false
492+
capew.Part0 = tor
493-
 
493+
capew.Part1 = cape
494-
mouse.KeyDown:connect(function(Press)
494+
capew.C1 = CFn(0, 0.7, -0.35)
495-
    Press=Press:lower()
495+
496-
    if Press=="e" and charge==false then
496+
outblade.Transparency = 1
497-
        attack = true
497+
outball.Transparency = 1
498-
        charge = true
498+
trail.Enabled = false
499-
        hum.WalkSpeed = 0
499+
particle.Transparency = NumberSequence.new(0, 1)
500-
        hadouken = Instance.new("Part")
500+
particle.LockedToPart = false
501-
        hadouken.Parent = char
501+
particle.Enabled = false
502-
        hadouken.BrickColor = BrickColor.new("Toothpaste")
502+
503-
        hadouken.Material = "Neon"
503+
-----------------------------------------------------------------------------
504-
        hadouken.Shape = "Ball"
504+
505-
        hadouken.Size = Vector3.new(3, 3, 3)
505+
506-
        hadouken.Position = rightarm.Position
506+
507-
        whado = Instance.new("Weld")
507+
508-
        whado.Parent = hadouken
508+
509-
        whado.Part0 = hadouken
509+
510-
        whado.Part1 = torso
510+
511-
        whado.C0 = CFrame.new(0, 0, 1)
511+
512-
        hadouken.Touched:connect(function(hit)
512+
513-
            dude = hit.Parent
513+
514-
           
514+
515-
            dude:Destroy()
515+
516-
            hadouken.Size = Vector3.new(4, 4, 4)
516+
517-
            wait(0.12)
517+
518-
            hadouken.Size = Vector3.new(3, 3, 3)
518+
519-
            wait(0.12)
519+
520-
            hadouken:Destroy()
520+
	tf = tf + s
521-
            charge = false
521+
	if tf >= frame then
522-
        end)
522+
		if allowframeloss then
523-
        wait(0.05)
523+
			script.Heartbeat:Fire()
524-
        whado.C0 = CFrame.new(0, 0, 2)
524+
			lastframe = tick()
525-
        wait(0.05)
525+
		else
526-
        whado.C0 = CFrame.new(0, 0, 3)
526+
			for i = 1, math.floor(tf / frame) do
527-
        wait(0.05)
527+
				script.Heartbeat:Fire()
528-
        whado.C0 = CFrame.new(0, 0, 4)
528+
			end
529-
        wait(0.05)
529+
			lastframe = tick()
530-
        whado.C0 = CFrame.new(0, 0, 5)
530+
		end
531-
        wait(0.05)
531+
		if tossremainder then
532-
        whado.C0 = CFrame.new(0, 0, 6)
532+
			tf = 0
533-
        wait(0.05)
533+
		else
534-
        whado.C0 = CFrame.new(0, 0, 7)
534+
			tf = tf - frame * math.floor(tf / frame)
535-
        wait(0.05)
535+
		end
536-
        whado.C0 = CFrame.new(0, 0, 8)
536+
	end
537-
        wait(0.05)
537+
538-
        whado.C0 = CFrame.new(0, 0, 9)
538+
539-
        wait(0.05)
539+
540-
        whado.C0 = CFrame.new(0, 0, 10)
540+
	if num == 0 or num == nil then
541-
        wait(0.05)
541+
		game:service("RunService").Stepped:wait(0)
542-
        hadouken.Transparency = 0.5
542+
	else
543-
        wait(0.05)
543+
		for i = 0, num do
544-
        hadouken:Destroy()
544+
			game:service("RunService").Stepped:wait(0)
545-
        charge = false
545+
		end
546-
        attack = false
546+
	end
547-
        hum.WalkSpeed = 16
547+
548-
    end
548+
549
function clerp(a, b, t)
550
	return a:lerp(b, t)
551-
mouse.KeyDown:connect(function(Press)
551+
552-
Press=Press:lower()
552+
553-
if Press=='v' and grab==false then
553+
function Sound(id, vol, par, name, looped)
554-
		grab = true
554+
	if not par:FindFirstChild(name) then
555-
		hitbox = Instance.new("Part")
555+
		local sound = Instance.new("Sound", par)
556-
		hitbox.Parent = rightarm
556+
		sound.SoundId = id
557-
		hitbox.Size = rightarm.Size
557+
		sound.Volume = vol
558-
		hitbox.Anchored = false
558+
		if looped == true then
559-
		hitbox.CanCollide = false
559+
			sound.Looped = true
560-
		hitbox.Transparency = 0.9
560+
		end
561-
		hitbox.BrickColor = BrickColor.new("Really red")
561+
		sound.Name = name
562-
		hitbox.Locked = false
562+
		sound:Play()
563-
		hitweld = Instance.new("Weld")
563+
		return sound
564-
		hitweld.Parent = hitbox
564+
	else
565-
		hitweld.Part0 = hitbox
565+
		local sound = par:FindFirstChild(name)
566-
		hitweld.Part1 = rightarm
566+
		sound:Play()
567-
		hitbox.Touched:connect(function(hit)
567+
		return sound
568-
			grab = true
568+
	end
569-
			tors = hit.Parent.Torso
569+
570-
			
570+
571-
			weldy = Instance.new("Weld")
571+
function StopSound(id, vol, par, name, looped)
572-
			weldy.Parent = tors
572+
	if not par:FindFirstChild(name) then
573-
			weldy.Part0 = tors
573+
		local sound = Instance.new("Sound", par)
574-
			weldy.Part1 = hitbox
574+
		sound.SoundId = id
575-
			weldy.C0 = CFrame.new(0, -3, 0)
575+
		sound.Volume = vol
576-
		end)
576+
		if looped == true then
577
			sound.Looped = true
578
		end
579
		sound.Name = name
580-
mouse.KeyDown:connect(function(Press)
580+
		sound:Stop()
581-
Press=Press:lower()
581+
		return sound
582-
if Press=='c' then
582+
	else
583-
	grab = false
583+
		local sound = par:FindFirstChild(name)
584-
	hitbox.CanCollide = false
584+
		sound:Stop()
585-
	hitbox:Destroy()
585+
		return sound
586-
	weldy:Destroy()
586+
	end
587-
	hitweld:Destroy()
587+
588
589
function Force(part, pos, part2, pos2, par2)
590
	local parp = Instance.new("Part", char)
591-
--------------------
591+
	parp.Size = Vector3.new(1, 1, 1)
592-
--Start Animations--
592+
	parp.Transparency = 1
593-
--------------------
593+
	parp.CanCollide = false
594-
 
594+
	local parpw = Instance.new("Weld", parp)
595-
print("By youngmacka123")
595+
	parpw.Part0 = part
596
	parpw.Part1 = parp
597-
    swait()
597+
	parpw.C1 = pos
598-
    sine = sine + change
598+
	local pare = Instance.new("ParticleEmitter", parp)
599-
    local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
599+
	pare.LockedToPart = true
600-
    local velderp = root.Velocity.y
600+
	pare.Transparency = NumberSequence.new(0.4, 1)
601-
    hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
601+
	pare.Size = NumberSequence.new(1.25, 0)
602-
    if equipped == true or equipped == false then
602+
	pare.Lifetime = NumberRange.new(1)
603-
        if attack == false then
603+
	pare.Rotation = NumberRange.new(0, 360)
604-
            idle = idle + 1
604+
	pare.Rate = 2001111111
605-
        else
605+
	pare.RotSpeed = NumberRange.new(360, 360)
606-
            idle = 0
606+
	pare.Speed = NumberRange.new(4)
607-
        end
607+
	pare.Color = ColorSequence.new(Color3.fromRGB(170, 0, 0),Color3.fromRGB(255, 255, 255))
608-
        if 1 < root.Velocity.y and hitfloor == nil then
608+
	pare.SpreadAngle = Vector2.new(360, 360)
609-
            Anim = "Jump"
609+
	pare.Texture = "rbxassetid://122356023"
610-
            if attack == false then
610+
	local parp2 = parp:Clone()
611-
                rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
611+
	parp2.Parent = par2
612-
                neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
612+
	local parp2w = parp2:FindFirstChild("Weld")
613-
                RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
613+
	parp2w.Part0 = part2
614-
                LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
614+
	parp2w.Part1 = parp2
615-
                RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
615+
	parp2w.C1 = pos2
616-
                LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
616+
	return parp, parp2
617-
            end
617+
618-
        elseif -1 > root.Velocity.y and hitfloor == nil then
618+
619-
            Anim = "Fall"
619+
function equipunequip()
620-
            if attack == false then
620+
	if attacking == false and equipped == false and Changing == false then
621-
                rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
621+
		attacking = true
622-
                neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
622+
		Changing = true
623-
                RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
623+
		hum.WalkSpeed = 0
624-
                LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
624+
		hum.JumpPower = 0
625-
                RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
625+
		for i = 0,1,.1 do
626-
                LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
626+
			neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-20), 0, Rad(-60)), i)
627-
            end
627+
			rootj.C1 = clerp(rootj.C1, rootj1, i)
628-
        elseif torvel < 1 and hitfloor ~= nil then
628+
			LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
629-
            Anim = "Idle"
629+
			RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-30), Rad(-3)), i)
630-
            change = 1
630+
			LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
631-
            if attack == false then
631+
			RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
632-
                rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
632+
			neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
633-
                tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-20)), 0.3)
633+
			rootj.C0 = clerp(rootj.C0, rootj0, i)
634-
                RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
634+
			LS.C0 = clerp(LS.C0, LS0, i)
635-
                LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
635+
			RS.C0 = clerp(RS.C0, RS0 * CFn(0, 0, -0.5) * CFa(0, Rad(90), 0), i)
636-
                RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-76)), 0.1)
636+
			LH.C0 = clerp(LH.C0, LH0, i)
637-
                LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(56)), 0.1)
637+
			RH.C0 = clerp(RH.C0, RH0, i)
638-
            end
638+
			swait()
639-
        elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
639+
		end
640-
            Anim = "Walk"
640+
		StopSound("rbxassetid://605607641", 2, cap, "SHEWW", false)
641-
            change = 1.1
641+
		Sound("rbxassetid://605604103", 2, cap, "PSHEW", false)
642-
            if attack == false then
642+
		Sound("rbxassetid://1460966017", 1, cap, "WANWAN", true)
643-
                rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
643+
		equipped = true
644-
                tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
644+
		mainw.Part0 = rarm
645-
                RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size)  * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
645+
		mainw.C1 = CFn(0, 1, 0) * CFa(0, Rad(180), 0)
646-
                LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
646+
		outblade.Transparency = 0
647-
                RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(37)  * Cos(sine / 7) , Rad(8 * Cos(sine / 7)), Rad(6) - ra.RotVelocity.Y / 75), 0.1)
647+
		outball.Transparency = 0
648-
                LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37)  * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) ,   Rad(-6) + la.RotVelocity.Y / 75), 0.1)
648+
		trail.Enabled = true
649-
            end
649+
		particle.Transparency = NumberSequence.new(0, 0.1)
650-
        elseif torvel >= 25 and hitfloor ~= nil then
650+
		particle.LockedToPart = true
651-
            Anim = "Sprint"
651+
		particle.Enabled = true
652-
            change = 1.35
652+
		for i = 0,1,.1 do
653-
            if attack == false then
653+
			neck.C1 = clerp(neck.C1, neck1, i)
654-
            rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
654+
			rootj.C1 = clerp(rootj.C1, rootj1, i)
655-
            tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
655+
			LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
656-
            RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
656+
			RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(50), 0, 0), i)
657-
            LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
657+
			LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
658-
            RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110)  * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
658+
			RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
659-
            LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110)  * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
659+
			neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
660-
            end
660+
			rootj.C0 = clerp(rootj.C0, rootj0, i)
661-
        end
661+
			LS.C0 = clerp(LS.C0, LS0, i)
662-
    end
662+
			RS.C0 = clerp(RS.C0, RS0, i)
663-
 
663+
			LH.C0 = clerp(LH.C0, LH0, i)
664-
                   
664+
			RH.C0 = clerp(RH.C0, RH0, i)
665-
               
665+
			swait()
666-
           
666+
		end
667-
       
667+
		hum.WalkSpeed = nws
668-
   
668+
		hum.JumpPower = njp
669
		Changing = false
670-
-------------------------------------------------------
670+
		attacking = false
671-
--End Animations And Script--
671+
	elseif attacking == false and equipped == true and Changing == false then
672-
-------------------------------------------------------
672+
		attacking = true
673
		Changing = true
674
		hum.WalkSpeed = 0
675
		hum.JumpPower = 0
676
		StopSound("rbxassetid://605604103", 2, cap, "PSHEW", false)
677
		Sound("rbxassetid://605607641", 2, cap, "SHEWW", false)
678
		StopSound("rbxassetid://1460966017", 1, cap, "WANWAN", true)
679
		outblade.Transparency = 1
680
		outball.Transparency = 1
681
		trail.Enabled = false
682
		particle.Transparency = NumberSequence.new(0, 1)
683
		particle.LockedToPart = false
684
		particle.Enabled = false
685
		for i = 0,1,.1 do
686
			neck.C1 = clerp(neck.C1, neck1, i)
687
			rootj.C1 = clerp(rootj.C1, rootj1, i)
688
			LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
689
			RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(50), 0, 0), i)
690
			LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
691
			RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
692
			neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
693
			rootj.C0 = clerp(rootj.C0, rootj0, i)
694
			LS.C0 = clerp(LS.C0, LS0, i)
695
			RS.C0 = clerp(RS.C0, RS0, i)
696
			LH.C0 = clerp(LH.C0, LH0, i)
697
			RH.C0 = clerp(RH.C0, RH0, i)
698
			swait()
699
		end
700
		for i = 0,1,.1 do
701
			neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-20), 0, Rad(-60)), i)
702
			rootj.C1 = clerp(rootj.C1, rootj1, i)
703
			LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
704
			RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-30), Rad(-3)), i)
705
			LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
706
			RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
707
			neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
708
			rootj.C0 = clerp(rootj.C0, rootj0, i)
709
			LS.C0 = clerp(LS.C0, LS0, i)
710
			RS.C0 = clerp(RS.C0, RS0 * CFn(0, 0, -0.5) * CFa(0, Rad(90), 0), i)
711
			LH.C0 = clerp(LH.C0, LH0, i)
712
			RH.C0 = clerp(RH.C0, RH0, i)
713
			swait()
714
		end
715
		mainw.Part0 = tor
716
		mainw.C1 = CFn(1, 1, 0)
717
		equipped = false
718
		hum.WalkSpeed = nws
719
		hum.JumpPower = njp
720
		Changing = false
721
		attacking = false
722
	end
723
end
724
725
function Swing()
726
	if attacking == false and equipped == true and Swinging == false then
727
		attacking = true
728
		Swinging = true
729
		kill = true
730
		hum.WalkSpeed = 3
731
		hum.JumpPower = 5
732
		local hey = bld.Touched:connect(function(hit)
733
    			if kill == true and hit.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
734
            	    kill = false
735
            		local killman = hit.Parent
736
            		local killhum = killman:FindFirstChildOfClass("Humanoid")
737
					local up = true
738
					for i = 1,2 do
739
						local cutpart = Instance.new("Part", killman)
740
						cutpart.Size = Vector3.new(hit.Size.X, hit.Size.Y / 2, hit.Size.Z)
741
						cutpart.BrickColor = hit.BrickColor
742
						cutpart.Material = hit.Material
743
						cutpart.Transparency = hit.Transparency
744
						cutpart.Reflectance = hit.Reflectance
745
						cutpart.BackSurface = hit.BackSurface
746
						cutpart.BottomSurface = hit.BottomSurface
747
						cutpart.FrontSurface = hit.FrontSurface
748
						cutpart.LeftSurface = hit.LeftSurface
749
						cutpart.RightSurface = hit.RightSurface
750
						cutpart.TopSurface = hit.TopSurface
751
						if up == true then
752
							cutpart.CFrame = hit.CFrame * CFn(0, hit.Size.Y / 2, 0)
753
							up = false
754
						else
755
							cutpart.CFrame = hit.CFrame * CFn(0, -(hit.Size.Y / 2), 0)
756
							up = true
757
						end
758
					end
759
					hit:Destroy()
760
            		killman:BreakJoints()
761
					if attackstate == 1 then
762
						Sound("rbxassetid://1647165403", 1, outblade, "CHWAN", false)
763
					elseif attackstate == 2 then
764
						Sound("rbxassetid://1335649595", 1, outblade, "PSSPS", false)
765
					end
766
        	elseif kill == true and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") and not hit:IsDescendantOf(char) then
767
            	    kill = false
768
            		local killman = hit.Parent.Parent
769
            		local killhum = killman:FindFirstChildOfClass("Humanoid")
770
					local up = true
771
					for i = 1,2 do
772
						local cutpart = Instance.new("Part", killman)
773
						cutpart.Size = Vector3.new(hit.Size.X, hit.Size.Y / 2, hit.Size.Z)
774
						cutpart.BrickColor = hit.BrickColor
775
						cutpart.Material = hit.Material
776
						cutpart.Transparency = hit.Transparency
777
						cutpart.Reflectance = hit.Reflectance
778
						cutpart.BackSurface = hit.BackSurface
779
						cutpart.BottomSurface = hit.BottomSurface
780
						cutpart.FrontSurface = hit.FrontSurface
781
						cutpart.LeftSurface = hit.LeftSurface
782
						cutpart.RightSurface = hit.RightSurface
783
						cutpart.TopSurface = hit.TopSurface
784
						if up == true then
785
							cutpart.CFrame = hit.CFrame * CFn(0, hit.Size.Y / 2, 0)
786
							up = false
787
						else
788
							cutpart.CFrame = hit.CFrame * CFn(0, -(hit.Size.Y / 2), 0)
789
							up = true
790
						end
791
					end
792
					hit:Destroy()
793
            		killman:BreakJoints()
794
					if attackstate == 1 then
795
						Sound("rbxassetid://1647165403", 1, outblade, "CHWAN", false)
796
					elseif attackstate == 2 then
797
						Sound("rbxassetid://1335649595", 1, outblade, "PSSPS", false)
798
					end
799
                end
800
    		end)
801
		if attackstate == 1 then
802
			attackstate = 2
803
			for i = 0,1,.15 do
804
				neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-10)), i)
805
				rootj.C1 = clerp(rootj.C1, rootj1, i)
806
				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
807
				RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-80), Rad(-40)), i)
808
				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
809
				RH.C1 = clerp(RH.C1, RH1 * CFn(0.3, 0, 0) * CFa(Rad(5), 0, 0), i)
810
				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
811
				rootj.C0 = clerp(rootj.C0, rootj0, i)
812
				LS.C0 = clerp(LS.C0, LS0, i)
813
				RS.C0 = clerp(RS.C0, RS0 * CFa(0, Rad(30), 0), i)
814
				LH.C0 = clerp(LH.C0, LH0, i)
815
				RH.C0 = clerp(RH.C0, RH0, i)
816
				swait()
817
			end
818
			Sound("rbxassetid://2088308141", 2, outblade, "VOMB", false)
819
			for i = 0,1,.15 do
820
				neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(10)), i)
821
				rootj.C1 = clerp(rootj.C1, rootj1, i)
822
				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
823
				RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(-80), Rad(-50)), i)
824
				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
825
				RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
826
				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
827
				rootj.C0 = clerp(rootj.C0, rootj0, i)
828
				LS.C0 = clerp(LS.C0, LS0, i)
829
				RS.C0 = clerp(RS.C0, RS0 * CFa(0, Rad(-75), 0), i)
830
				LH.C0 = clerp(LH.C0, LH0, i)
831
				RH.C0 = clerp(RH.C0, RH0, i)
832
				swait()
833
			end
834
		elseif attackstate == 2 then
835
			attackstate = 1
836
			for i = 0,1,.15 do
837
				neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(10)), i)
838
				rootj.C1 = clerp(rootj.C1, rootj1, i)
839
				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
840
				RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(110), Rad(-20), Rad(-90)), i)
841
				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
842
				RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
843
				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
844
				rootj.C0 = clerp(rootj.C0, rootj0, i)
845
				LS.C0 = clerp(LS.C0, LS0, i)
846
				RS.C0 = clerp(RS.C0, RS0, i)
847
				LH.C0 = clerp(LH.C0, LH0, i)
848
				RH.C0 = clerp(RH.C0, RH0, i)
849
				swait()
850
			end
851
			Sound("rbxassetid://2088308141", 2, outblade, "VOMB", false)
852
			for i = 0,1,.15 do
853
				neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-10)), i)
854
				rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(-40)), i)
855
				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), i)
856
				RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(-80), Rad(70), Rad(-40)), i)
857
				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), 0, 0), i)
858
				RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), Rad(40), 0), i)
859
				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
860
				rootj.C0 = clerp(rootj.C0, rootj0, i)
861
				LS.C0 = clerp(LS.C0, LS0, i)
862
				RS.C0 = clerp(RS.C0, RS0, i)
863
				LH.C0 = clerp(LH.C0, LH0, i)
864
				RH.C0 = clerp(RH.C0, RH0, i)
865
				swait()
866
			end
867
		end
868
		hum.WalkSpeed = nws
869
		hum.JumpPower = njp
870
		kill = false
871
		hey:disconnect()
872
		Swinging = false
873
		attacking = false
874
	end
875
end
876
877
function Choke()
878
	if attacking == false and Choking == false then
879
		attacking = true
880
		Choking = true
881
		hum.WalkSpeed = 0
882
		hum.JumpPower = 0
883
		if Mouse.Target ~= nil and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
884
			local theguy = Mouse.Target.Parent
885
			local thehum = theguy:FindFirstChildOfClass("Humanoid")
886
			if thehum.Health > 0 then
887
			    local thehead = theguy:FindFirstChild("Head")
888
    			local thetor = theguy:FindFirstChild("Torso") or theguy:FindFirstChild("UpperTorso")
889
    			root.CFrame = CFn(root.CFrame.p, Vector3.new(Mouse.Hit.x, root.CFrame.y, Mouse.Hit.z))
890
    			thetor.CFrame = CFn(thetor.CFrame.p, Vector3.new(root.CFrame.x, thetor.CFrame.y, root.CFrame.z))
891
    			local thetorframe = thetor.CFrame
892
    			local forpar, forpar2 = Force(larm, CFn(0, 1, 0), thehead, CFn(0, 0.5, 0), theguy)
893
				if thetor.Anchored == true then
894
					thetor.Anchored = false
895
				end
896
    			local thebv = Instance.new("BodyPosition", thetor)
897
    			thebv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
898
    			thebv.Position = thetorframe.p
899
				Sound("rbxassetid://1386781853", 2.5, larm, "OOOWA", false)
900
    			for i = 0,1,.15 do
901
    				neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-20)) , i)
902
    				rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
903
    				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(90)), i)
904
    				RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
905
    				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
906
    				RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
907
    				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
908
    				rootj.C0 = clerp(rootj.C0, rootj0, i)
909
    				LS.C0 = clerp(LS.C0, LS0, i)
910
    				RS.C0 = clerp(RS.C0, RS0, i)
911
    				LH.C0 = clerp(LH.C0, LH0, i)
912
    				RH.C0 = clerp(RH.C0, RH0, i)
913
    				swait()
914
    			end
915
    			thebv.Position = thetorframe * CFn(0, 10, 0).p
916
    			for i = 0,1,.05 do
917
    				neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(20), 0, Rad(-20)), i)
918
    				rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
919
    				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(140)), i)
920
    				RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
921
    				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
922
    				RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
923
    				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
924
    				rootj.C0 = clerp(rootj.C0, rootj0, i)
925
    				LS.C0 = clerp(LS.C0, LS0, i)
926
    				RS.C0 = clerp(RS.C0, RS0, i)
927
    				LH.C0 = clerp(LH.C0, LH0, i)
928
    				RH.C0 = clerp(RH.C0, RH0, i)
929
    				swait()
930
    			end
931
    			for i = 1,math.huge do
932
    				if buttonC == true and thehum.Health > 0 then
933
    					thehum.Health = thehum.Health - 1.5
934
    					swait()
935
    				elseif buttonC == false or thehum.Health <= 0 then
936
    					break
937
    				end
938
    			end
939
    			if thehum.Health <= 0 then
940
    			    theguy:BreakJoints()
941
    				Sound("rbxassetid://513153251", 4, thetor, "OUCH", false)
942
    			end
943
    			thebv:Destroy()
944
    			forpar:Destroy()
945
    			forpar2:Destroy()
946
			end
947
		elseif Mouse.Target ~= nil and Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") then
948
			local theguy = Mouse.Target.Parent.Parent
949
			local thehum = theguy:FindFirstChildOfClass("Humanoid")
950
			   if thehum.Health > 0 then
951
			    local thehead = theguy:FindFirstChild("Head")
952
    			local thetor = theguy:FindFirstChild("Torso") or theguy:FindFirstChild("UpperTorso")
953
    			root.CFrame = CFn(root.CFrame.p, Vector3.new(Mouse.Hit.x, root.CFrame.y, Mouse.Hit.z))
954
    			thetor.CFrame = CFn(thetor.CFrame.p, Vector3.new(root.CFrame.x, root.CFrame.y, root.CFrame.z))
955
    			local thetorframe = thetor.CFrame
956
    			local forpar, forpar2 = Force(larm, CFn(0, 1, 0), thehead, CFn(0, 0.5, 0), theguy)
957
				if thetor.Anchored == true then
958
					thetor.Anchored = false
959
				end
960
    			local thebv = Instance.new("BodyPosition", thetor)
961
    			thebv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
962
    			thebv.Position = thetorframe.p
963
				Sound("rbxassetid://1386781853", 2.5, larm, "OOOWA", false)
964
    			for i = 0,1,.15 do
965
    				neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, Rad(-20)) , i)
966
    				rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
967
    				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(90)), i)
968
    				RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
969
    				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
970
    				RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
971
    				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
972
    				rootj.C0 = clerp(rootj.C0, rootj0, i)
973
    				LS.C0 = clerp(LS.C0, LS0, i)
974
    				RS.C0 = clerp(RS.C0, RS0, i)
975
    				LH.C0 = clerp(LH.C0, LH0, i)
976
    				RH.C0 = clerp(RH.C0, RH0, i)
977
    				swait()
978
    			end
979
    			thebv.Position = thetorframe * CFn(0, 10, 0).p
980
    			for i = 0,1,.05 do
981
    				neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(20), 0, Rad(-20)), i)
982
    				rootj.C1 = clerp(rootj.C1, rootj1 * CFa(0, 0, Rad(20)), i)
983
    				LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, Rad(140)), i)
984
    				RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(20), 0), i)
985
    				LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(5), Rad(-20), 0), i)
986
    				RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(5), 0, 0), i)
987
    				neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), i)
988
    				rootj.C0 = clerp(rootj.C0, rootj0, i)
989
    				LS.C0 = clerp(LS.C0, LS0, i)
990
    				RS.C0 = clerp(RS.C0, RS0, i)
991
    				LH.C0 = clerp(LH.C0, LH0, i)
992
    				RH.C0 = clerp(RH.C0, RH0, i)
993
    				swait()
994
    			end
995
    			for i = 1,math.huge do
996
    				if buttonC == true and thehum.Health > 0 then
997
    					thehum.Health = thehum.Health - 1.5
998
    					swait()
999
    				elseif buttonC == false or thehum.Health <= 0 then
1000
    					break
1001
    				end
1002
    			end
1003
    			if thehum.Health <= 0 then
1004
    			    theguy:BreakJoints()
1005
    				Sound("rbxassetid://513153251", 4, thetor, "OUCH", false)
1006
    			end
1007
    			thebv:Destroy()
1008
    			forpar:Destroy()
1009
    			forpar2:Destroy()
1010
			end
1011
		end
1012
		hum.WalkSpeed = nws
1013
		hum.JumpPower = njp
1014
		Choking = false
1015
		attacking = false
1016
	end
1017
end
1018
1019
1020
1021
-----------------------------------------------------------------------------
1022
1023
function kdown(k)
1024
	if k == "e" then
1025
		equipunequip()
1026
	elseif k == "c" then
1027
		if buttonC == false then
1028
			buttonC = true
1029
			Choke()
1030
		end
1031
	end
1032
end
1033
1034
function kup(k)
1035
	if k == "c" then
1036
		if buttonC == true then
1037
			buttonC = false
1038
		end
1039
	end
1040
end
1041
1042
function lmdown()
1043
	Swing()
1044
end
1045
1046
Mouse.KeyDown:connect(kdown)
1047
Mouse.KeyUp:connect(kup)
1048
Mouse.Button1Down:connect(lmdown)
1049
1050
-----------------------------------------------------------------------------
1051
1052
warn([[Darth Vader.
1053
	last updated: 2018/7/19, 20:14 JST.
1054
	
1055
	Please do not leak this script.]])
1056
1057
-----------------------------------------------------------------------------
1058
1059
while true do
1060
	swait()
1061
	sine = sine + 1
1062
	local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
1063
	if Changing == true then
1064
		state = "Change"
1065
	elseif Swinging == true then
1066
		state = "Swing"
1067
	elseif Choking == true then
1068
		state = "Choking"
1069
	elseif 1 < root.Velocity.y then
1070
		state = "Jump"
1071
	elseif -1 > root.Velocity.y then
1072
		state = "Fall"
1073
	elseif torvel < 1 then
1074
		state = "Idle"
1075
	elseif tor.Velocity.magnitude < 50 then
1076
		state = "Walk"
1077
	end
1078
	
1079
	if state == "Jump" then
1080
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-10), 0, 0), 0.15)
1081
		rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-10), 0, 0), 0.15)
1082
		LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), 0.15)
1083
		RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, 0), 0.15)
1084
		LH.C1 = clerp(LH.C1, LH1 * CFn(0.5, -1, -0.1) * CFa(Rad(-10), 0, Rad(-40)), 0.15)
1085
		RH.C1 = clerp(RH.C1, RH1 * CFn(-0.3, -0.8, 0) * CFa(Rad(-5), 0, Rad(15)), 0.15)
1086
		neck.C0 = clerp(neck.C0, neck0, 0.15)
1087
		rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
1088
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1089
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1090
		LH.C0 = clerp(LH.C0, LH0, 0.15)
1091
		RH.C0 = clerp(RH.C0, RH0, 0.15)
1092
	elseif state == "Fall" then
1093
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 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(20), 0, 0), 0.15)
1096
		RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(20), 0, 0), 0.15)
1097
		LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
1098
		RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 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 * CFa(0, 0, Rad(20)), 0.15)
1104
		RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
1105
	elseif state == "Idle" then
1106
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-7 * Sin(sine / 15)), 0, 0), 0.15)
1107
		rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 15)) * CFa(Rad(-2 * Sin(sine / 15)), 0, 0), 0.15)
1108
		LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
1109
		RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
1110
		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)
1111
		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)
1112
		neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(10), 0, 0), 0.15)
1113
		rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(2), 0, 0), 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, 0.15)
1117
		RH.C0 = clerp(RH.C0, RH0, 0.15)
1118
	elseif state == "Walk" then
1119
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5 * Sin(sine / 4)), 0, 0), 0.15)
1120
		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)
1121
		LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
1122
		RS.C1 = clerp(RS.C1, RS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
1123
		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)
1124
		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)
1125
		neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), 0.15)
1126
		rootj.C0 = clerp(rootj.C0, rootj0, 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 * CFa(0, 0, Rad(20)), 0.15)
1130
		RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
1131
	end
1132
	if not head:FindFirstChild("KOOOHAAA") then
1133
		koohaa = Instance.new("Sound", head)
1134
		koohaa.SoundId = "rbxassetid://149840174"
1135
		koohaa.Name = "KOOOHAAA"
1136
		koohaa.Volume = 2
1137
		koohaa.TimePosition = thepos
1138
		koohaa.Looped = true
1139
		koohaa:Play()
1140
	end
1141
	thepos = koohaa.TimePosition
1142
end
1143
-----------------------------------------------------------------------------
1144
1145
while true do
1146
	swait()
1147
	sine = sine + 1
1148
	local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
1149
	if Changing == true then
1150
		state = "Change"
1151
	elseif Swinging == true then
1152
		state = "Swing"
1153
	elseif Choking == true then
1154
		state = "Choking"
1155
	elseif 1 < root.Velocity.y then
1156
		state = "Jump"
1157
	elseif -1 > root.Velocity.y then
1158
		state = "Fall"
1159
	elseif torvel < 1 then
1160
		state = "Idle"
1161
	elseif tor.Velocity.magnitude < 50 then
1162
		state = "Walk"
1163
	end
1164
	
1165
	if state == "Jump" then
1166
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-10), 0, 0), 0.15)
1167
		rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-10), 0, 0), 0.15)
1168
		LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), 0.15)
1169
		RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, 0), 0.15)
1170
		LH.C1 = clerp(LH.C1, LH1 * CFn(0.5, -1, -0.1) * CFa(Rad(-10), 0, Rad(-40)), 0.15)
1171
		RH.C1 = clerp(RH.C1, RH1 * CFn(-0.3, -0.8, 0) * CFa(Rad(-5), 0, Rad(15)), 0.15)
1172
		neck.C0 = clerp(neck.C0, neck0, 0.15)
1173
		rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
1174
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1175
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1176
		LH.C0 = clerp(LH.C0, LH0, 0.15)
1177
		RH.C0 = clerp(RH.C0, RH0, 0.15)
1178
	elseif state == "Fall" then
1179
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15)
1180
		rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(10), 0, 0), 0.15)
1181
		LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(20), 0, 0), 0.15)
1182
		RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(20), 0, 0), 0.15)
1183
		LH.C1 = clerp(LH.C1, LH1 * CFn(0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
1184
		RH.C1 = clerp(RH.C1, RH1 * CFn(-0.1, -0.4, -0.1) * CFa(Rad(-2), 0, 0), 0.15)
1185
		neck.C0 = clerp(neck.C0, neck0, 0.15)
1186
		rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
1187
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1188
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1189
		LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
1190
		RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
1191
	elseif state == "Idle" then
1192
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-7 * Sin(sine / 15)), 0, 0), 0.15)
1193
		rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.1 * Cos(sine / 15)) * CFa(Rad(-2 * Sin(sine / 15)), 0, 0), 0.15)
1194
		LS.C1 = clerp(LS.C1, LS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
1195
		RS.C1 = clerp(RS.C1, RS1 * CFn(0, 0.1 * Cos(sine / 15), 0) * CFa(Rad(5), 0, 0), 0.15)
1196
		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)
1197
		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)
1198
		neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(10), 0, 0), 0.15)
1199
		rootj.C0 = clerp(rootj.C0, rootj0 * CFa(Rad(2), 0, 0), 0.15)
1200
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1201
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1202
		LH.C0 = clerp(LH.C0, LH0, 0.15)
1203
		RH.C0 = clerp(RH.C0, RH0, 0.15)
1204
	elseif state == "Walk" then
1205
		neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5 * Sin(sine / 4)), 0, 0), 0.15)
1206
		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)
1207
		LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
1208
		RS.C1 = clerp(RS.C1, RS1 * CFa(0, 0, Rad(-25 * Sin(sine / 8))), 0.15)
1209
		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)
1210
		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)
1211
		neck.C0 = clerp(neck.C0, neck0 * CFa(Rad(5), 0, 0), 0.15)
1212
		rootj.C0 = clerp(rootj.C0, rootj0, 0.15)
1213
		LS.C0 = clerp(LS.C0, LS0, 0.15)
1214
		RS.C0 = clerp(RS.C0, RS0, 0.15)
1215
		LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(20)), 0.15)
1216
		RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(-20)), 0.15)
1217
	end
1218
	if not head:FindFirstChild("KOOOHAAA") then
1219
		koohaa = Instance.new("Sound", head)
1220
		koohaa.SoundId = "rbxassetid://149840174"
1221
		koohaa.Name = "KOOOHAAA"
1222
		koohaa.Volume = 2
1223
		koohaa.TimePosition = thepos
1224
		koohaa.Looped = true
1225
		koohaa:Play()
1226
	end
1227
	thepos = koohaa.TimePosition
1228
end