View difference between Paste ID: S3ixh58a and v5KNWzm8
SHOW: | | - or go back to the newest paste.
1-
-- [[ Name: Commander CR by ??? ]] --
1+
local Charar = game.Players.LocalPlayer.Character
2-
-- [[ Converted: By Melon ]] --
2+
Charar["InternationalFedora"].Name = "InternationalFedora2"
3-
-- [[ Reanimate: By Emper ]] --
3+
--I dont need hat clone thingy
4-
-- [[ Description: nothing to put ]] --
4+
5
local v3_net, v3_808 = Vector3.new(5000, 25.1, 0), Vector3.new(8, 0, 8)
6-
-- [[ Hats ]] --
6+
    local function getNetlessVelocity(realPartVelocity)
7
        local mag = realPartVelocity.Magnitude
8-
-- [[ Free ]] --
8+
        if mag > 1 then
9-
-- [[ www.roblox.com/catalog/4819740796/Robox ]] --
9+
            local unit = realPartVelocity.Unit
10-
-- [[ www.roblox.com/catalog/3409612660/International-Fedora-USA ]] --
10+
            if (unit.Y > 0.25) or (unit.Y < -0.75) then
11-
-- [[ www.roblox.com/catalog/3398308134/International-Fedora-Canada ]] --
11+
                return unit * (25.1 / unit.Y)
12-
-- [[ www.roblox.com/catalog/3033908130/International-Fedora-France ]] --
12+
            end
13-
-- [[ www.roblox.com/catalog/3033910400/International-Fedora-Germany ]] --
13+
        end
14
        return v3_net + realPartVelocity * v3_808
15-
-- [[ Paid (1) ]] --
15+
    end
16-
-- [[ www.roblox.com/catalog/14255528083/Torso-Extension ]] --
16+
local simradius = "shp" --simulation radius (net bypass) method
17-
-- [[ www.roblox.com/catalog/14255556501/Extra-Right-White-Arm ]] --
17+
--simulation radius (net bypass) method
18-
-- [[ www.roblox.com/catalog/14255554762/Extra-Left-White-Arm ]] --
18+
--"shp" - sethiddenproperty
19-
-- [[ www.roblox.com/catalog/14768693948/White-Extended-Right-Arm ]] --
19+
--"ssr" - setsimulationradius
20-
-- [[ www.roblox.com/catalog/14768701869/White-Extended-Left-Arm ]] --
20+
--false - disable
21
local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character
22-
-- [[ Paid (2) ]] --
22+
local newanimate = true --disables the animate script and enables after reanimation
23-
-- [[ www.roblox.com/catalog/14255528083/Torso-Extension ]] --
23+
local discharscripts = true --disables all localScripts parented to your character before reanimation
24-
-- [[ www.roblox.com/catalog/11159410305/Rectangle-Head-For-Headless ]] --
24+
local R15toR6 = true --tries to convert your character to r6 if its r15
25-
-- [[ www.roblox.com/catalog/11263254795/Dummy-Head-For-Headless ]] --
25+
local hatcollide = false --makes hats cancollide (only method 0)
26-
-- [[ www.roblox.com/catalog/12344545199/Extra-Left-hand-moving-Blocky-white ]] --
26+
local humState16 = true --enables collisions for limbs before the humanoid dies (using hum:ChangeState)
27-
-- [[ www.roblox.com/catalog/12344591101/Extra-Right-hand-moving-Blocky-white ]] --
27+
local addtools = false --puts all tools from backpack to character and lets you hold them after reanimation
28
local hedafterneck = false --disable aligns for head and enable after neck is removed
29-
-- [[ Guns ]] --
29+
local loadtime = game:GetService("Players").RespawnTime + 0.5 --anti respawn delay
30
local method = 0 --reanimation method
31-
-- [[ www.roblox.com/catalog/13760686814/Classic-MARKA-17M-Valkan-Left ]] --
31+
--methods:
32-
-- [[ www.roblox.com/catalog/4623059912/Starslayer-Railgun ]] --
32+
--0 - breakJoints (takes [loadtime] seconds to laod)
33-
-- [[ www.roblox.com/catalog/14683431575/Law-Enforcement-Beanbag ]] --
33+
--1 - limbs
34-
-- [[ www.roblox.com/catalog/5136154487/DG-40-Archangel-Sniper-Rifle-Black ]] --
34+
--2 - limbs + anti respawn
35-
-- [[ www.roblox.com/catalog/12830271515/White-Cyber-Heavy-Revolver-Left ]] --
35+
--3 - limbs + breakJoints after [loadtime] seconds
36-
-- [[ * FREE * www.roblox.com/catalog/10775031176/The-Pogo ]] --
36+
--4 - remove humanoid + breakJoints
37-
-- [[ * FREE * www.roblox.com/catalog/5552252553/Kinetic-Staff ]] --
37+
--5 - remove humanoid + limbs
38-
-- [[ The list above is the supported hats. ]] --
38+
local alignmode = 3 --AlignPosition mode
39
--modes:
40-
game:GetService("StarterGui"):SetCore("SendNotification", { 
40+
--1 - AlignPosition rigidity enabled true
41-
	Title = "Melon's (FE) Converts/Scripts";
41+
--2 - 2 AlignPositions rigidity enabled both true and false
42-
	Text = "Thanks for using!";
42+
--3 - AlignPosition rigidity enabled false
43-
	Icon = "rbxthumb://type=Asset&id=11561641603&w=150&h=150"})
43+
44-
Duration = 3;
44+
healthHide = healthHide and ((method == 0) or (method == 2) or (method == 000)) and gp(c, "Head", "BasePart")
45
46-
if not game:IsLoaded() then
46+
local lp = game:GetService("Players").LocalPlayer
47-
	game.Loaded:Wait()
47+
local rs = game:GetService("RunService")
48
local stepped = rs.Stepped
49
local heartbeat = rs.Heartbeat
50-
local function FindInstance(Parent, ClassName, Name)
50+
local renderstepped = rs.RenderStepped
51-
	for _, Instance in pairs(Parent:GetChildren()) do
51+
local sg = game:GetService("StarterGui")
52-
		if Instance:IsA(ClassName) and Instance.Name == Name then
52+
local ws = game:GetService("Workspace")
53-
			return Instance
53+
local cf = CFrame.new
54
local v3 = Vector3.new
55
local v3_0 = v3(0, 0, 0)
56
local inf = math.huge
57
58-
local function WaitForClass(Parent, ClassName)
58+
local c = lp.Character
59-
	local Instance = Parent:FindFirstChildOfClass(ClassName)
59+
60
if not (c and c.Parent) then
61-
	while not Instance and Parent do
61+
	return
62-
		Parent.ChildAdded:Wait()
62+
63-
		Instance = Parent:FindFirstChildOfClass(ClassName)
63+
64
c.Destroying:Connect(function()
65
	c = nil
66-
	return Instance
66+
67
68
local function gp(parent, name, className)
69-
local function WaitForClassOfName(Parent, ...)
69+
	if typeof(parent) == "Instance" then
70-
	local Instance = FindInstance(Parent, ...)
70+
		for i, v in pairs(parent:GetChildren()) do
71
			if (v.Name == name) and v:IsA(className) then
72-
	while not Instance and Parent do
72+
				return v
73-
		Parent.ChildAdded:Wait()
73+
74-
		Instance = FindInstance(Parent, ...)
74+
75
	end
76
	return nil
77-
	return Instance
77+
78
79
local function align(Part0, Part1)
80-
local Fling = { }
80+
	Part0.CustomPhysicalProperties = PhysicalProperties.new(0.0001, 0.0001, 0.0001, 0.0001, 0.0001)
81-
local Aligns = { }
81+
82-
local Blacklist = { }
82+
	local att0 = Instance.new("Attachment", Part0)
83-
local Accessories = { }
83+
	att0.Orientation = v3_0
84-
local Attachments = { }
84+
	att0.Position = v3_0
85
	att0.Name = "att0_" .. Part0.Name
86-
local Instancenew = Instance.new
86+
	local att1 = Instance.new("Attachment", Part1)
87
	att1.Orientation = v3_0
88-
local taskwait = task.wait
88+
	att1.Position = v3_0
89-
local taskspawn = task.spawn
89+
	att1.Name = "att1_" .. Part1.Name
90-
local taskdefer = task.defer
90+
91
	if (alignmode == 1) or (alignmode == 2) then
92-
local mathabs = math.abs
92+
		local ape = Instance.new("AlignPosition", att0)
93-
local mathcos = math.cos
93+
		ape.ApplyAtCenterOfMass = false
94-
local mathrandom = math.random
94+
		ape.MaxForce = inf
95
		ape.MaxVelocity = inf
96-
local stringmatch = string.match
96+
		ape.ReactionForceEnabled = false
97
		ape.Responsiveness = 200
98-
local osclock = os.clock
98+
		ape.Attachment1 = att1
99
		ape.Attachment0 = att0
100-
local tableinsert = table.insert
100+
		ape.Name = "AlignPositionRtrue"
101-
local tableclear = table.clear
101+
		ape.RigidityEnabled = true
102-
local tablefind = table.find
102+
103
104-
local CFramenew = CFrame.new
104+
	if (alignmode == 2) or (alignmode == 3) then
105-
local CFrameAngles = CFrame.Angles
105+
		local apd = Instance.new("AlignPosition", att0)
106-
local CFrameidentity = CFrame.identity
106+
		apd.ApplyAtCenterOfMass = false
107
		apd.MaxForce = inf
108-
local Vector3new = Vector3.new
108+
		apd.MaxVelocity = inf
109-
local Vector3zero = Vector3.zero
109+
		apd.ReactionForceEnabled = false
110
		apd.Responsiveness = 200
111-
local Sleep = CFrameidentity
111+
		apd.Attachment1 = att1
112-
local Velocity = Vector3new(0, 16384, 0)
112+
		apd.Attachment0 = att0
113-
local Angular = 0
113+
		apd.Name = "AlignPositionRfalse"
114-
local Linear = 0
114+
		apd.RigidityEnabled = false
115
	end
116-
local Workspace = game:FindFirstChildOfClass("Workspace")
116+
117-
local CurrentCamera = Workspace.CurrentCamera
117+
	local ao = Instance.new("AlignOrientation", att0)
118
	ao.MaxAngularVelocity = inf
119-
local Players = game:FindFirstChildOfClass("Players")
119+
	ao.MaxTorque = inf
120
	ao.PrimaryAxisOnly = false
121-
local LocalPlayer = Players.LocalPlayer
121+
	ao.ReactionTorqueEnabled = false
122-
local Mouse = LocalPlayer:GetMouse()
122+
	ao.Responsiveness = 200
123
	ao.Attachment1 = att1
124-
local PostSimulation = game:FindFirstChildOfClass("RunService").PostSimulation
124+
	ao.Attachment0 = att0
125
	ao.RigidityEnabled = false
126-
local Character = LocalPlayer.Character
126+
127-
local CharacterClone = Instancenew("Model")
127+
	if type(getNetlessVelocity) == "function" then
128-
 
128+
	    local realVelocity = v3_0
129-
local StarterGui = game:FindFirstChildOfClass("StarterGui")
129+
        local steppedcon = stepped:Connect(function()
130-
local BindableEvent = Instancenew("BindableEvent")
130+
            Part0.Velocity = realVelocity
131
        end)
132-
local UserInputService = game:FindFirstChildOfClass("UserInputService")
132+
        local heartbeatcon = heartbeat:Connect(function()
133-
local UserInputType = Enum.UserInputType
133+
            realVelocity = Part0.Velocity
134
            Part0.Velocity = getNetlessVelocity(realVelocity)
135-
local MouseButton1 = UserInputType.MouseButton1
135+
        end)
136-
local Touch = UserInputType.Touch
136+
        Part0.Destroying:Connect(function()
137
            Part0 = nil
138-
local InputBegan = UserInputService.InputBegan:Connect(function(Input, GameProcessed)
138+
            steppedcon:Disconnect()
139-
	local Type = Input.UserInputType
139+
            heartbeatcon:Disconnect()
140-
	
140+
        end)
141-
	if not GameProcessed and ( Type == MouseButton1 or Type == Touch ) then
141+
    end
142-
		local Target = Mouse.Target
142+
143-
		if Target and not Target.Anchored and not Target:IsDescendantOf(CharacterClone) and not Target:IsDescendantOf(Character) and not tablefind(Fling, Target) then
143+
144-
			local Parent = Target.Parent
144+
local function respawnrequest()
145
	local ccfr = ws.CurrentCamera.CFrame
146-
			if Parent:IsA("Model") and Parent ~= Character and Parent:FindFirstChildOfClass("Humanoid") then
146+
	local c = lp.Character
147-
				local HumanoidRootPart = FindInstance(Parent, "BasePart", "HumanoidRootPart") or FindInstance(Parent, "BasePart", "Torso") or FindInstance(Parent, "BasePart", "Head")
147+
	lp.Character = nil
148
	lp.Character = c
149-
				if HumanoidRootPart and not tablefind(Fling, HumanoidRootPart) then
149+
	local con = nil
150-
					tableinsert(Fling, HumanoidRootPart)
150+
	con = ws.CurrentCamera.Changed:Connect(function(prop)
151-
					return
151+
	    if (prop ~= "Parent") and (prop ~= "CFrame") then
152
	        return
153
	    end
154
	    ws.CurrentCamera.CFrame = ccfr
155-
			tableinsert(Fling, Target)
155+
	    con:Disconnect()
156
    end)
157
end
158
159
local destroyhum = (method == 4) or (method == 5)
160-
local function Part(Name, Size)
160+
local breakjoints = (method == 0) or (method == 4)
161-
	local Part = Instancenew("Part")
161+
local antirespawn = (method == 0) or (method == 2) or (method == 3)
162-
	Part.Name = Name
162+
163-
	Part.Size = Size
163+
hatcollide = hatcollide and (method == 0)
164-
	Part.Transparency = 1
164+
165-
	Part.Parent = CharacterClone
165+
addtools = addtools and gp(lp, "Backpack", "Backpack")
166
167-
	return Part
167+
local fenv = getfenv()
168
local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.set_hidden_prop or fenv.sethiddenprop
169
local ssr = fenv.setsimulationradius or fenv.set_simulation_radius or fenv.set_sim_radius or fenv.setsimradius or fenv.set_simulation_rad or fenv.setsimulationrad
170-
local function Motor6D(Name, Part0, Part1, C0, C1)
170+
171-
	local Motor6D = Instancenew("Motor6D")
171+
if shp and (simradius == "shp") then
172-
	Motor6D.Name = Name
172+
	spawn(function()
173-
	Motor6D.Part0 = Part0
173+
		while c and heartbeat:Wait() do
174-
	Motor6D.Part1 = Part1
174+
			shp(lp, "SimulationRadius", inf)
175-
	Motor6D.C0 = C0
175+
176-
	Motor6D.C1 = C1
176+
	end)
177-
	Motor6D.Parent = Part0
177+
elseif ssr and (simradius == "ssr") then
178
	spawn(function()
179-
	return Motor6D
179+
		while c and heartbeat:Wait() do
180
			ssr(inf)
181
		end
182-
local function Attachment(Name, CFrame, Parent)
182+
	end)
183-
	local Attachment = Instancenew("Attachment")
183+
184-
	Attachment.Name = Name
184+
185-
	Attachment.CFrame = CFrame
185+
antiragdoll = antiragdoll and function(v)
186-
	Attachment.Parent = Parent
186+
	if v:IsA("HingeConstraint") or v:IsA("BallSocketConstraint") then
187
		v.Parent = nil
188-
	tableinsert(Attachments, Attachment)
188+
189-
	return Attachment
189+
190
191
if antiragdoll then
192-
local LimbSize = Vector3new(1, 2, 1)
192+
	for i, v in pairs(c:GetDescendants()) do
193-
local TorsoSize = Vector3new(2, 2, 1)
193+
		antiragdoll(v)
194
	end
195-
local Head = Part("Head", Vector3new(2, 1, 1))
195+
	c.DescendantAdded:Connect(antiragdoll)
196-
local Torso = Part("Torso", TorsoSize)
196+
197-
local LeftArm = Part("Left Arm", LimbSize)
197+
198-
local RightArm = Part("Right Arm", LimbSize)
198+
if antirespawn then
199-
local LeftLeg = Part("Left Leg", LimbSize)
199+
	respawnrequest()
200-
local RightLeg = Part("Right Leg", LimbSize)
200+
201-
local HumanoidRootPart = Part("HumanoidRootPart", TorsoSize)
201+
202
if method == 0 then
203-
local FakeRA = Instance.new("Part")
203+
	wait(loadtime)
204-
FakeRA.Size = Vector3.new(1,2,1)
204+
	if not c then
205-
FakeRA.Transparency = 1
205+
		return
206-
FakeRA.BrickColor = BrickColor.new("Institutional White")
206+
207-
FakeRA.Parent = RightArm
207+
208
209-
local FRAW = Instance.new("Weld")
209+
if discharscripts then
210-
FRAW.Part0 = RightArm
210+
	for i, v in pairs(c:GetChildren()) do
211-
FRAW.Part1 = FakeRA
211+
		if v:IsA("LocalScript") then
212-
FRAW.C0 = CFrame.new(0, 0, 0)
212+
			v.Disabled = true
213-
FRAW.Parent = RightArm
213+
214
	end
215-
local FakeLA = Instance.new("Part")
215+
elseif newanimate then
216-
FakeLA.Size = Vector3.new(1,2,1)
216+
	local animate = gp(c, "Animate", "LocalScript")
217-
FakeLA.Transparency = 1
217+
	if animate and (not animate.Disabled) then
218-
FakeLA.BrickColor = BrickColor.new("Institutional White")
218+
		animate.Disabled = true
219-
FakeLA.Parent = LeftArm
219+
220
		newanimate = false
221-
local FLAW = Instance.new("Weld")
221+
222-
FLAW.Part0 = LeftArm
222+
223-
FLAW.Part1 = FakeLA
223+
224-
FLAW.C0 = CFrame.new(0, 0, 0)
224+
if addtools then
225-
FLAW.Parent = LeftArm
225+
	for i, v in pairs(addtools:GetChildren()) do
226
		if v:IsA("Tool") then
227-
local Part = nil
227+
			v.Parent = c
228
		end
229-
if Character then
229+
230-
	Part = FindInstance(Character, "BasePart", "HumanoidRootPart") or FindInstance(Character, "BasePart", "Head") or FindInstance(Character, "BasePart", "Torso") or FindInstance(Character, "BasePart", "UpperTorso")
230+
231
232
pcall(function()
233-
if Part then
233+
	settings().Physics.AllowSleep = false
234-
	HumanoidRootPart.CFrame = Part.CFrame
234+
	settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled
235
end)
236-
	local SpawnLocations = { }
236+
237
local OLDscripts = {}
238-
	for _, SpawnLocation in pairs(Workspace:GetDescendants()) do
238+
239-
		if SpawnLocation:IsA("SpawnLocation") then
239+
for i, v in pairs(c:GetDescendants()) do
240-
			tableinsert(SpawnLocations, SpawnLocation)
240+
	if v.ClassName == "Script" then
241
		table.insert(OLDscripts, v)
242
	end
243
end
244-
	local Amount = # SpawnLocations
244+
245
local scriptNames = {}
246-
	if Amount > 0 then
246+
247-
		local SpawnLocation = SpawnLocations[mathrandom(1, Amount)]
247+
for i, v in pairs(c:GetDescendants()) do
248-
		HumanoidRootPart.CFrame = SpawnLocation.CFrame * CFramenew(0, SpawnLocation.Size.Y / 2 + 3, 0)
248+
	if v:IsA("BasePart") then
249
		local newName = tostring(i)
250-
		HumanoidRootPart.CFrame = CFrameidentity
250+
		local exists = true
251
		while exists do
252
			exists = false
253
			for i, v in pairs(OLDscripts) do
254-
local face = Instancenew("Decal")
254+
				if v.Name == newName then
255-
face.Name = "face"
255+
					exists = true
256-
face.Parent = Head
256+
257
			end
258-
local AccessoryTable = { 
258+
			if exists then
259-
     -- Paid --
259+
				newName = newName .. "_"    
260-
	{ Mesh = "14241018198", Texture = "14251599953", Instance = Torso },
260+
261-
	{ Mesh = "14255522247", Texture = "14255543546", Instance = RightArm, CFrame = CFrameAngles(0, 1.57, 1.57) },
261+
262-
	{ Mesh = "14255522247", Texture = "14255543546", Instance = LeftArm, CFrame = CFrameAngles(0, - 1.57, 1.57) },
262+
		table.insert(scriptNames, newName)
263-
	{ Mesh = "14768684979", Texture = "14768683674", Instance = RightLeg, CFrame = CFrameAngles(0, - 1.57, 1.57) },
263+
		Instance.new("Script", v).Name = newName
264-
	{ Mesh = "14768684979", Texture = "14768683674", Instance = LeftLeg, CFrame = CFrameAngles(0, 1.57, 1.57) },
264+
265-
	
265+
266-
	-- Paid (2) --
266+
267-
	{ Mesh = "14241018198", Texture = "14251599953", Instance = Torso },
267+
c.Archivable = true
268-
	{ Mesh = "12344206657", Texture = "12344206675", Instance = RightArm, CFrame = CFrameAngles(-115, 0, 0) },
268+
local hum = c:FindFirstChildOfClass("Humanoid")
269-
	{ Mesh = "12344207333", Texture = "12344207341", Instance = LeftArm, CFrame = CFrameAngles(-115, 0, 0) },
269+
if hum then
270-
	{ Mesh = "11159370334", Texture = "11159284657", Instance = RightLeg, CFrame = CFrameAngles(0, - 1.57, 1.57) },
270+
	for i, v in pairs(hum:GetPlayingAnimationTracks()) do
271-
	{ Mesh = "11263221350", Texture = "11263219250", Instance = LeftLeg, CFrame = CFrameAngles(0, 1.57, 1.57) },
271+
		v:Stop()
272-
	
272+
273-
	-- Free --
273+
274-
	{ Mesh = "4819720316", Texture = "4819722776", Instance = Torso, CFrame = CFrameAngles(0, 0, 105) },
274+
local cl = c:Clone()
275-
	{ Mesh = "3030546036", Texture = "3033903209", Instance = RightArm, CFrame = CFrameAngles(-90, 0, -89.5) },
275+
if hum and humState16 then
276-
	{ Mesh = "3030546036", Texture = "3360978739", Instance = LeftArm, CFrame = CFrameAngles(-90, 0, 89.5) },
276+
    hum:ChangeState(Enum.HumanoidStateType.Physics)
277-
	{ Mesh = "3030546036", Texture = "3409604993", Instance = RightLeg, CFrame = CFrameAngles(-90, 0, -89.5) },
277+
    if destroyhum then
278-
	{ Mesh = "3030546036", Texture = "3033898741", Instance = LeftLeg, CFrame = CFrameAngles(-90, 0, 89.5) },
278+
        wait(1.6)
279-
   
279+
    end
280-
    -- DG 40 --
280+
281-
    { Mesh = "5135810417", Texture = "5135790044", Instance = FakeRA, CFrame = CFrameAngles(-0.10, -1.55, 1.45) * CFramenew(-2.55,0.35,0.15)},
281+
if hum and hum.Parent and destroyhum then
282-
    -- Cyber Heavy Revolver --
282+
    hum:Destroy()
283-
    { Mesh = "12830091831", Texture = "9990288940", Instance = FakeRA, CFrame = CFrameAngles(0.55, 0, 0) * CFramenew(0,-1.15,0.15)},
283+
284-
    -- Beanbag Shotgun --
284+
285-
    { Mesh = "14682184097", Texture = "14682167931", Instance = FakeRA, CFrame = CFrameAngles(0.05, 0, 3.15) * CFramenew(0,1.35,-0.25)},
285+
if not c then
286-
    -- Starslayer Railgun --
286+
    return
287-
    { Mesh = "4615369575", Texture = "4615393635", Instance = FakeRA, CFrame = CFrameAngles(-0.80, 1.55, 0) * CFramenew(1.45,-1,0)},
287+
288-
    -- MARKA-17M --
288+
289-
    { Mesh = "13753961447", Texture = "13760652946", Instance = FakeRA, CFrame = CFramenew(0,-1.45,-0.65) * CFrameAngles(0, -1.50, 0.75) },
289+
local head = gp(c, "Head", "BasePart")
290-
    -- Pogo Stick --
290+
local torso = gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart")
291-
    { Mesh = "10775011914", Texture = "10774853167", Instance = FakeRA, CFrame = CFramenew(0,-2.55,-0.65) * CFrameAngles(0, -1.55, 0.65) },
291+
local root = gp(c, "HumanoidRootPart", "BasePart")
292-
    -- Crystal Staff --
292+
if hatcollide and c:FindFirstChildOfClass("Accessory") then
293-
    { Mesh = "5548423017", Texture = "5548423938", Instance = FakeRA, CFrame = CFramenew(0,-1.65,-0) * CFrameAngles(0, -1.55, 0.60) },
293+
    local anything = c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script")
294
    if not (torso and root and anything) then
295-
}
295+
        return
296
    end
297-
for _, Table in pairs(AccessoryTable) do
297+
    torso:Destroy()
298-
	if type(Table.Mesh) ~= "string" then
298+
    root:Destroy()
299-
		Table.Mesh = ""
299+
    if shp then
300
        for i,v in pairs(c:GetChildren()) do
301-
	if type(Table.Texture) ~= "string" then
301+
            if v:IsA("Accessory") then
302-
		Table.Texture = ""
302+
                shp(v, "BackendAccoutrementState", 0)
303
            end 
304
        end
305
    end
306-
Motor6D("Right Shoulder", Torso, RightArm, CFramenew(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFramenew(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
306+
    anything:Destroy()
307-
Motor6D("Left Shoulder", Torso, LeftArm, CFramenew(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFramenew(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
307+
    if head then
308-
Motor6D("Right Hip", Torso, RightLeg, CFramenew(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFramenew(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
308+
        
309-
Motor6D("Left Hip", Torso, LeftLeg, CFramenew(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFramenew(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
309+
    end
310-
Motor6D("Neck", Torso, Head, CFramenew(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFramenew(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
310+
311-
Motor6D("RootJoint", HumanoidRootPart, Torso, CFramenew(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFramenew(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
311+
312
for i, v in pairs(cl:GetDescendants()) do
313-
Attachment("HairAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
313+
	if v:IsA("BasePart") then
314-
Attachment("HatAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
314+
		v.Transparency = 1
315-
Attachment("FaceFrontAttachment", CFramenew(0, 0, -0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
315+
		v.Anchored = false
316-
Attachment("FaceCenterAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head)
316+
317-
Attachment("NeckAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
317+
318-
Attachment("BodyFrontAttachment", CFramenew(0, 0, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
318+
319-
Attachment("BodyBackAttachment", CFramenew(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
319+
local model = Instance.new("Model", c)
320-
Attachment("LeftCollarAttachment", CFramenew(-1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
320+
model.Name = model.ClassName
321-
Attachment("RightCollarAttachment", CFramenew(1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
321+
322-
Attachment("WaistFrontAttachment", CFramenew(0, -1, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
322+
model.Destroying:Connect(function()
323-
Attachment("WaistCenterAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
323+
	model = nil
324-
Attachment("WaistBackAttachment", CFramenew(0, -1, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso)
324+
325-
Attachment("LeftShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm)
325+
326-
Attachment("LeftGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm)
326+
for i, v in pairs(c:GetChildren()) do
327-
Attachment("RightShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm)
327+
	if v ~= model then
328-
Attachment("RightGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm)
328+
		if addtools and v:IsA("Tool") then
329-
Attachment("LeftFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftLeg)
329+
			for i1, v1 in pairs(v:GetDescendants()) do
330-
Attachment("RightFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightLeg)
330+
				if v1 and v1.Parent and v1:IsA("BasePart") then
331-
Attachment("RootAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), HumanoidRootPart)
331+
					local bv = Instance.new("BodyVelocity", v1)
332
					bv.Velocity = v3_0
333-
local Humanoid = Instancenew("Humanoid", CharacterClone)
333+
					bv.MaxForce = v3(1000, 1000, 1000)
334-
Instancenew("Animator", Humanoid)
334+
					bv.P = 1250
335
					bv.Name = "bv_" .. v.Name
336-
Instancenew("LocalScript", CharacterClone).Name = "Animate"
336+
337
			end
338-
CharacterClone.PrimaryPart = Head
338+
339-
CharacterClone.Parent = Workspace
339+
		v.Parent = model
340
	end
341-
local function DescendantAdded(Instance)
341+
342-
	if Instance:IsA("Accessory") then
342+
343-
		taskspawn(function()
343+
if breakjoints then
344-
			local Handle = WaitForClassOfName(Instance, "BasePart", "Handle")
344+
	while wait(20)
345-
			local Attachment = WaitForClass(Handle, "Attachment")
345+
model.Head:Destroy()
346
end
347-
			local Clone = Instance:Clone()
347+
348
	if head and torso then
349-
			local CloneHandle = FindInstance(Clone, "BasePart", "Handle")
349+
		for i, v in pairs(model:GetDescendants()) do
350-
			CloneHandle.Transparency = 1
350+
			if v:IsA("Weld") or v:IsA("Snap") or v:IsA("Glue") or v:IsA("Motor") or v:IsA("Motor6D") then
351-
			CloneHandle:BreakJoints()
351+
				local save = false
352
				if (v.Part0 == torso) and (v.Part1 == head) then
353-
			local AccessoryWeld = Instancenew("Weld")
353+
					save = true
354-
			AccessoryWeld.Name = "AccessoryWeld"
354+
355-
			AccessoryWeld.Part0 = CloneHandle
355+
				if (v.Part0 == head) and (v.Part1 == torso) then
356-
			AccessoryWeld.C0 = Attachment.CFrame
356+
					save = true
357
				end
358-
			local Name = Attachment.Name
358+
				if save then
359
					if hedafterneck then
360-
			for _, TableAttachment in pairs(Attachments) do
360+
						hedafterneck = v
361-
				if TableAttachment.Name == Name then
361+
362-
					AccessoryWeld.Part1 = TableAttachment.Parent
362+
				else
363-
					AccessoryWeld.C1 = TableAttachment.CFrame
363+
					v:Destroy()
364
				end
365
			end
366
		end
367-
			AccessoryWeld.Parent = CloneHandle
367+
368-
			Clone.Parent = CharacterClone
368+
	if method == 3 then
369
		spawn(function()
370-
			tableinsert(Accessories, Clone)
370+
			wait(loadtime)
371
			if model then
372-
			local IsAMeshPart = CloneHandle:IsA("MeshPart")
372+
				model:BreakJoints()
373-
			local Mesh = IsAMeshPart and CloneHandle or WaitForClass(CloneHandle, "SpecialMesh")
373+
374-
			local Id = IsAMeshPart and "TextureID" or "TextureId"
374+
375
	end
376-
			for _, Table in pairs(AccessoryTable) do
376+
377-
				local Instance = Table.Instance
377+
378
cl.Parent = c
379-
				if Instance then
379+
for i, v in pairs(cl:GetChildren()) do
380-
					if stringmatch(Mesh.MeshId, Table.Mesh) and stringmatch(Mesh[Id], Table.Texture) and not tablefind(Blacklist, Instance) then
380+
	v.Parent = c
381-
						tableinsert(Blacklist, Instance)
381+
382-
						tableinsert(Aligns, { Handle, Instance, Table.CFrame or CFrameidentity })
382+
cl:Destroy()
383-
						return
383+
384
local modelDes = {}
385
for i, v in pairs(model:GetDescendants()) do
386
	if v:IsA("BasePart") then
387
		i = tostring(i)
388-
			tableinsert(Aligns, { Handle, CloneHandle, CFrameidentity })
388+
		v.Destroying:Connect(function()
389
			modelDes[i] = nil
390-
	elseif Instance:IsA("JointInstance") then
390+
391-
		taskspawn(function()
391+
		modelDes[i] = v
392-
			taskwait()
392+
393-
			Instance:Destroy()
393+
394
local modelcolcon = nil
395
local function modelcolf()
396
	if model then
397
		for i, v in pairs(modelDes) do
398-
local function CharacterAdded(Character)
398+
			v.CanCollide = false
399-
	if Character ~= CharacterClone then		
399+
400-
		PostSimulation:Wait()
400+
401
		modelcolcon:Disconnect()
402-
		local Backpack = LocalPlayer:FindFirstChildOfClass("Backpack")
402+
403
end
404-
		if Backpack then
404+
modelcolcon = stepped:Connect(modelcolf)
405-
			Backpack:ClearAllChildren()
405+
modelcolf()
406
407
for i, scr in pairs(model:GetDescendants()) do
408-
		tableclear(Aligns)
408+
	if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then
409-
		tableclear(Blacklist)
409+
		local Part0 = scr.Parent
410
		if Part0:IsA("BasePart") then
411-
		for _, Accessory in pairs(Accessories) do
411+
			for i1, scr1 in pairs(c:GetDescendants()) do
412-
			Accessory:Destroy()
412+
				if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then
413
					local Part1 = scr1.Parent
414
					if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then
415-
		local CurrentCameraCFrame = CurrentCamera.CFrame
415+
						align(Part0, Part1)
416
						break
417-
		LocalPlayer.Character = CharacterClone
417+
418-
		CurrentCamera.CameraSubject = CharacterClone.Head
418+
419
			end
420-
		taskspawn(function()
420+
421-
			CurrentCamera:GetPropertyChangedSignal("CFrame"):Wait()
421+
422-
			CurrentCamera.CFrame = CurrentCameraCFrame
422+
423
424
if (typeof(hedafterneck) == "Instance") and head then
425-
		local CharacterHumanoidRootPart = WaitForClassOfName(Character, "BasePart", "HumanoidRootPart")
425+
	local aligns = {}
426
	local con = nil
427-
		for Index, Value in pairs(Fling) do
427+
	con = hedafterneck.Changed:Connect(function(prop)
428-
			local BasePart = nil
428+
	    if (prop == "Parent") and not hedafterneck.Parent then
429
	        con:Disconnect()
430-
			if typeof(Value) == "Instance" then 
430+
    		for i, v in pairs(aligns) do
431-
				if Value:IsA("BasePart") then
431+
    			v.Enabled = true
432-
					BasePart = Value
432+
    		end
433-
				elseif Value:IsA("Humanoid") then
433+
434-
					local Model = Value.Parent
434+
	end)
435
	for i, v in pairs(head:GetDescendants()) do
436-
					if Model ~= Character and Model:IsA("Model") then
436+
		if v:IsA("AlignPosition") or v:IsA("AlignOrientation") then
437-
						BasePart = FindInstance(Model, "BasePart", "HumanoidRootPart") or FindInstance(Model, "BasePart", "Head") or Model:FindFirstChildOfClass("BasePart")
437+
			i = tostring(i)
438
			aligns[i] = v
439-
				elseif Value:IsA("Model") and Value ~= Character then
439+
			v.Destroying:Connect(function()
440-
					BasePart = FindInstance(Value, "BasePart", "HumanoidRootPart") or FindInstance(Value, "BasePart", "Head") or Value:FindFirstChildOfClass("BasePart")
440+
			    aligns[i] = nil
441
			end)
442
			v.Enabled = false
443
		end
444-
			if BasePart then
444+
445-
				local clock = osclock()
445+
446
447-
				while CharacterHumanoidRootPart and BasePart and osclock() - clock <= 1 and BasePart.AssemblyLinearVelocity.Magnitude <= 60 do
447+
for i, v in pairs(c:GetDescendants()) do
448-
					CharacterHumanoidRootPart.AssemblyAngularVelocity = Velocity
448+
	if v and v.Parent then
449-
					CharacterHumanoidRootPart.AssemblyLinearVelocity = Velocity
449+
		if v.ClassName == "Script" then
450
			if table.find(scriptNames, v.Name) then
451-
					CharacterHumanoidRootPart.CFrame = BasePart.CFrame + Vector3new(0, - 1, 0)
451+
				v:Destroy()
452-
					PostSimulation:Wait()
452+
453
		elseif not v:IsDescendantOf(model) then
454
			if v:IsA("Decal") then
455
				v.Transparency = 1
456
			elseif v:IsA("ForceField") then
457-
		tableclear(Fling)
457+
				v.Visible = false
458
			elseif v:IsA("Sound") then
459-
		if CharacterHumanoidRootPart then
459+
				v.Playing = false
460-
			CharacterHumanoidRootPart.AssemblyAngularVelocity = Vector3zero
460+
			elseif v:IsA("BillboardGui") or v:IsA("SurfaceGui") or v:IsA("ParticleEmitter") or v:IsA("Fire") or v:IsA("Smoke") or v:IsA("Sparkles") then
461-
			CharacterHumanoidRootPart.AssemblyLinearVelocity = Vector3zero
461+
				v.Enabled = false
462
			end
463-
			CharacterHumanoidRootPart.CFrame = CFramenew(HumanoidRootPart.Position + Vector3new(mathrandom(- 32, 32), 0, mathrandom(- 32, 32)))
463+
464-
			PostSimulation:Wait()
464+
465
end
466
467-
		Character:BreakJoints()
467+
if newanimate then
468
	local animate = gp(c, "Animate", "LocalScript")
469-
		for _, Instance in pairs(Character:GetDescendants()) do
469+
	if animate then
470-
			DescendantAdded(Instance)
470+
		animate.Disabled = false
471
	end
472
end
473-
		Character.DescendantAdded:Connect(DescendantAdded)
473+
474
if addtools then
475
	for i, v in pairs(c:GetChildren()) do
476
		if v:IsA("Tool") then
477-
local function Align(Part0, Part1, CFrame)
477+
			v.Parent = addtools
478-
	if Part0.ReceiveAge == 0 and not Part0.Anchored and # Part0:GetJoints() == 0 then
478+
479-
		Part0.AssemblyAngularVelocity = Vector3new(0, Angular, 0)
479+
480
end
481-
		local Part1CFrame = Part1.CFrame
481+
482-
		local LinearVelocity = Part1.AssemblyLinearVelocity * Linear
482+
local hum0 = model:FindFirstChildOfClass("Humanoid")
483-
		local Magnitude = LinearVelocity.Magnitude < Linear
483+
if hum0 then
484
    hum0.Destroying:Connect(function()
485-
		if Magnitude then
485+
        hum0 = nil
486-
			local LookVector = Part1CFrame.LookVector * Linear
486+
    end)
487-
			Part0.AssemblyLinearVelocity = Vector3new(LookVector.X, Linear, LookVector.Z)
487+
488-
		else
488+
489-
			Part0.AssemblyLinearVelocity = Vector3new(LinearVelocity.X, Linear, LinearVelocity.Z)
489+
local hum1 = c:FindFirstChildOfClass("Humanoid")
490
if hum1 then
491
    hum1.Destroying:Connect(function()
492-
		Part0.CFrame = Part1CFrame * ( Magnitude and Sleep or CFrameidentity ) * CFrame
492+
        hum1 = nil
493
    end)
494
end
495
496-
if Character then
496+
if hum1 then
497-
	CharacterAdded(Character)
497+
	ws.CurrentCamera.CameraSubject = hum1
498
	local camSubCon = nil
499
	local function camSubFunc()
500-
local Added = LocalPlayer.CharacterAdded:Connect(CharacterAdded)
500+
		camSubCon:Disconnect()
501
		if c and hum1 then
502-
local Connection = game:FindFirstChildOfClass("RunService").PostSimulation:Connect(function()
502+
			ws.CurrentCamera.CameraSubject = hum1
503-
	local osclock = osclock()
503+
504-
	local Axis = 0.004 * mathcos(osclock * 17.5)
504+
505
	camSubCon = renderstepped:Connect(camSubFunc)
506-
	Sleep = CFramenew(0, Axis, 0)
506+
	if hum0 then
507-
	Angular = mathcos(osclock)
507+
		hum0.Changed:Connect(function(prop)
508-
	Linear = 26
508+
			if hum1 and (prop == "Jump") then
509
				hum1.Jump = hum0.Jump
510-
	for _, Table in pairs(Aligns) do
510+
511-
		Align(Table[1], Table[2], Table[3])
511+
512
	else
513
		respawnrequest()
514-
	if sethiddenproperty then
514+
515-
		sethiddenproperty(LocalPlayer, "SimulationRadius", 10000000)
515+
516
517
local rb = Instance.new("BindableEvent", c)
518-
	StarterGui:SetCore("ResetButtonCallback", BindableEvent) -- This is if it gets overriden, just like in MyWorld testing place.
518+
rb.Event:Connect(function()
519
	rb:Destroy()
520
	sg:SetCore("ResetButtonCallback", true)
521-
local function Event()
521+
	if destroyhum then
522-
	CharacterClone:Destroy()
522+
		c:BreakJoints()
523
		return
524
	end
525-
BindableEvent.Event:Connect(Event)
525+
	if hum0 and (hum0.Health > 0) then
526
		model:BreakJoints()
527-
CharacterClone:GetPropertyChangedSignal("Parent"):Connect(function()
527+
		hum0.Health = 0
528-
	if not CharacterClone.Parent then
528+
529-
		Added:Disconnect()
529+
	if antirespawn then
530-
		Connection:Disconnect()
530+
	    respawnrequest()
531
	end
532-
		CharacterClone:Destroy()
532+
533
sg:SetCore("ResetButtonCallback", rb)
534-
		if BindableEvent then
534+
535-
			BindableEvent:Destroy()
535+
spawn(function()
536
	while c do
537
		if hum0 and hum1 then
538-
		StarterGui:SetCore("ResetButtonCallback", true)
538+
			hum1.Jump = hum0.Jump
539
		end
540
		wait()
541
	end
542-
BindableEvent:GetPropertyChangedSignal("Parent"):Connect(Event)
542+
	sg:SetCore("ResetButtonCallback", true)
543-
 
543+
544-
game:GetService("StarterGui"):SetCore("SendNotification", { 
544+
545-
	Title = "Melon's (FE) Converts/Scripts";
545+
R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15)
546-
	Text = "Loaded successfully!";
546+
if R15toR6 then
547-
	Icon = "rbxthumb://type=Asset&id=11561641603&w=150&h=150"})
547+
    local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "LowerTorso", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
548-
Duration = 3;
548+
	if part then
549
	    local cfr = part.CFrame
550-
script = game:GetObjects("rbxassetid://13198284674")[1]
550+
		local R6parts = { 
551-
loadstring(game:HttpGet("https://pastebin.com/raw/RHjQ6YJ4"))()
551+
			head = {
552
				Name = "Head",
553
				Size = v3(2, 1, 1),
554
				R15 = {
555
					Head = 0
556
				}
557
			},
558
			torso = {
559
				Name = "Torso",
560
				Size = v3(2, 2, 1),
561
				R15 = {
562
					UpperTorso = 0.2,
563
					LowerTorso = -0.7
564
				}
565
			},
566
			root = {
567
				Name = "HumanoidRootPart",
568
				Size = v3(2, 2, 1),
569
				R15 = {
570
					HumanoidRootPart = 0
571
				}
572
			},
573
			leftArm = {
574
				Name = "Left Arm",
575
				Size = v3(1, 2, 1),
576
				R15 = {
577
					LeftHand = -0.7,
578
					LeftLowerArm = -0.2,
579
					LeftUpperArm = 0.4
580
				}
581
			},
582
			rightArm = {
583
				Name = "Right Arm",
584
				Size = v3(1, 2, 1),
585
				R15 = {
586
					RightHand = -0.7,
587
					RightLowerArm = -0.2,
588
					RightUpperArm = 0.4
589
				}
590
			},
591
			leftLeg = {
592
				Name = "Left Leg",
593
				Size = v3(1, 2, 1),
594
				R15 = {
595
					LeftFoot = -0.7,
596
					LeftLowerLeg = -0.15,
597
					LeftUpperLeg = 0.6
598
				}
599
			},
600
			rightLeg = {
601
				Name = "Right Leg",
602
				Size = v3(1, 2, 1),
603
				R15 = {
604
					RightFoot = -0.7,
605
					RightLowerLeg = -0.15,
606
					RightUpperLeg = 0.6
607
				}
608
			}
609
		}
610
		for i, v in pairs(c:GetChildren()) do
611
			if v:IsA("BasePart") then
612
				for i1, v1 in pairs(v:GetChildren()) do
613
					if v1:IsA("Motor6D") then
614
						v1.Part0 = nil
615
					end
616
				end
617
			end
618
		end
619
		part.Archivable = true
620
		for i, v in pairs(R6parts) do
621
			local part = part:Clone()
622
			part:ClearAllChildren()
623
			part.Name = v.Name
624
			part.Size = v.Size
625
			part.CFrame = cfr
626
			part.Anchored = false
627
			part.Transparency = 1
628
			part.CanCollide = false
629
			for i1, v1 in pairs(v.R15) do
630
				local R15part = gp(c, i1, "BasePart")
631
				local att = gp(R15part, "att1_" .. i1, "Attachment")
632
				if R15part then
633
					local weld = Instance.new("Weld", R15part)
634
					weld.Name = "Weld_" .. i1
635
					weld.Part0 = part
636
					weld.Part1 = R15part
637
					weld.C0 = cf(0, v1, 0)
638
					weld.C1 = cf(0, 0, 0)
639
					R15part.Massless = true
640
					R15part.Name = "R15_" .. i1
641
					R15part.Parent = part
642
					if att then
643
						att.Parent = part
644
						att.Position = v3(0, v1, 0)
645
					end
646
				end
647
			end
648
			part.Parent = c
649
			R6parts[i] = part
650
		end
651
		local R6joints = {
652
			neck = {
653
				Parent = R6parts.torso,
654
				Name = "Neck",
655
				Part0 = R6parts.torso,
656
				Part1 = R6parts.head,
657
				C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
658
				C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
659
			},
660
			rootJoint = {
661
				Parent = R6parts.root,
662
				Name = "RootJoint" ,
663
				Part0 = R6parts.root,
664
				Part1 = R6parts.torso,
665
				C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
666
				C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
667
			},
668
			rightShoulder = {
669
				Parent = R6parts.torso,
670
				Name = "Right Shoulder",
671
				Part0 = R6parts.torso,
672
				Part1 = R6parts.rightArm,
673
				C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
674
				C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
675
			},
676
			leftShoulder = {
677
				Parent = R6parts.torso,
678
				Name = "Left Shoulder",
679
				Part0 = R6parts.torso,
680
				Part1 = R6parts.leftArm,
681
				C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
682
				C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
683
			},
684
			rightHip = {
685
				Parent = R6parts.torso,
686
				Name = "Right Hip",
687
				Part0 = R6parts.torso,
688
				Part1 = R6parts.rightLeg,
689
				C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
690
				C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
691
			},
692
			leftHip = {
693
				Parent = R6parts.torso,
694
				Name = "Left Hip" ,
695
				Part0 = R6parts.torso,
696
				Part1 = R6parts.leftLeg,
697
				C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
698
				C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
699
			}
700
		}
701
		for i, v in pairs(R6joints) do
702
			local joint = Instance.new("Motor6D")
703
			for prop, val in pairs(v) do
704
				joint[prop] = val
705
			end
706
			R6joints[i] = joint
707
		end
708
		hum1.RigType = Enum.HumanoidRigType.R6
709
		hum1.HipHeight = 0
710
	end
711
end
712
713
714
715
--find rig joints
716
717
local function fakemotor()
718
    return {C0=cf(), C1=cf()}
719
end
720
721
local torso = gp(c, "Torso", "BasePart")
722
local root = gp(c, "HumanoidRootPart", "BasePart")
723
724
local neck = gp(torso, "Neck", "Motor6D")
725
neck = neck or fakemotor()
726
727
local rootJoint = gp(root, "RootJoint", "Motor6D")
728
rootJoint = rootJoint or fakemotor()
729
730
local leftShoulder = gp(torso, "Left Shoulder", "Motor6D")
731
leftShoulder = leftShoulder or fakemotor()
732
733
local rightShoulder = gp(torso, "Right Shoulder", "Motor6D")
734
rightShoulder = rightShoulder or fakemotor()
735
736
local leftHip = gp(torso, "Left Hip", "Motor6D")
737
leftHip = leftHip or fakemotor()
738
739
local rightHip = gp(torso, "Right Hip", "Motor6D")
740
rightHip = rightHip or fakemotor()
741
742
--120 fps
743
744
local fps = 40
745
local event = Instance.new("BindableEvent", c)
746
event.Name = "120 fps"
747
local floor = math.floor
748
fps = 1 / fps
749
local tf = 0
750
local con = nil
751
con = game:GetService("RunService").RenderStepped:Connect(function(s)
752
	if not c then
753
		con:Disconnect()
754
		return
755
	end
756
    --tf += s
757
	if tf >= fps then
758
		for i=1, floor(tf / fps) do
759
			event:Fire(c)
760
		end
761
		tf = 0
762
	end
763
end)
764
local event = event.Event
765
766
local hedrot = v3(0, 5, 0)
767
768
local uis = game:GetService("UserInputService")
769
local function isPressed(key)
770
    return (not uis:GetFocusedTextBox()) and uis:IsKeyDown(Enum.KeyCode[key])
771
end
772
773
local biggesthandle = nil
774
for i, v in pairs(c:GetChildren()) do
775
    if v:IsA("Accessory") then
776
        local handle = gp(v, "Handle", "BasePart")
777
        if biggesthandle then
778
            if biggesthandle.Size.Magnitude < handle.Size.Magnitude then
779
                biggesthandle = handle
780
            end
781
        else
782
            biggesthandle = gp(v, "Handle", "BasePart")
783
        end
784
    end
785
end
786
787
if not biggesthandle then
788
    return
789
end
790
791
local handle1 = gp(gp(model, biggesthandle.Parent.Name, "Accessory"), "Handle", "BasePart")
792
if not handle1 then
793
    return
794
end
795
796
handle1.Destroying:Connect(function()
797
    handle1 = nil
798
end)
799
biggesthandle.Destroying:Connect(function()
800
    biggesthandle = nil
801
end)
802
803
--biggesthandle:BreakJoints()
804
--biggesthandle.Anchored = true
805
806
--for i, v in pairs(handle1:GetDescendants()) do
807
   -- if v:IsA("AlignOrientation") then
808
        --v.Enabled = false
809
    --end
810
--end
811
812
local mouse = lp:GetMouse()
813
local fling = false
814
mouse.Button1Down:Connect(function()
815
    fling = false
816
end)
817
mouse.Button1Up:Connect(function()
818
    fling = false
819
end)
820
local function doForSignal(signal, vel)
821
    spawn(function()
822
        while signal:Wait() and c and handle1 and biggesthandle do
823
            if fling and mouse.Target then
824
                biggesthandle.Position = mouse.Hit.Position
825
            end
826
            --handle1.RotVelocity = vel
827
        end
828
    end)
829
end
830
doForSignal(stepped, v3(0, 0, 0))
831
doForSignal(renderstepped, v3(0, 0, 0))
832
doForSignal(heartbeat, v3(200000000000000000000000000000, 200000000000000000000000000000, 200000000000000000000000000000))
833
--Hat1
834
835
local lp = game:GetService("Players").LocalPlayer
836
local rs = game:GetService("RunService")
837
local stepped = rs.Stepped
838
local heartbeat = rs.Heartbeat
839
local renderstepped = rs.RenderStepped
840
local sg = game:GetService("StarterGui")
841
local ws = game:GetService("Workspace")
842
local cf = CFrame.new
843
local v3 = Vector3.new
844
local v3_0 = Vector3.zero
845
local inf = math.huge
846
847
local cplayer = lp.Character
848
849
local v3 = Vector3.new
850
851
local function gp(parent, name, className)
852
    if typeof(parent) == "Instance" then
853
        for i, v in pairs(parent:GetChildren()) do
854
            if (v.Name == name) and v:IsA(className) then
855
                return v
856
            end
857
        end
858
    end
859
    return nil
860
end
861
862
863
864
865
local hat2 = gp(cplayer, "MeshPartAccessory", "Accessory")
866
local handle2 = gp(hat2, "Handle", "BasePart")
867
local att2 = gp(handle2, "att1_Handle", "Attachment")
868
att2.Parent = cplayer["Torso"] --any part of humanoid
869
att2.Position = Vector3.new(-0, 0.025, 0)
870
att2.Rotation = Vector3.new(180, 0, -15)--you can delete this 
871
872
873
local hat2 = gp(cplayer, "InternationalFedora2", "Accessory")
874
local handle2 = gp(hat2, "Handle", "BasePart")
875
local att2 = gp(handle2, "att1_Handle", "Attachment")
876
att2.Parent = cplayer["Left Arm"]
877
att2.Position = Vector3.new(-0.15, -0.35, -0)
878
att2.Rotation = Vector3.new(-90, -0, 90)
879
880
local hat2 = gp(cplayer, "InternationalFedora", "Accessory")
881
local handle2 = gp(hat2, "Handle", "BasePart")
882
local att2 = gp(handle2, "att1_Handle", "Attachment")
883
att2.Parent = cplayer["Right Arm"]
884
att2.Position = Vector3.new(0.15, -0.3, 0)
885
att2.Rotation = Vector3.new(-90, 0, -90) --LavanderHair
886
887
local hat2 = gp(cplayer, "Lipstick_Bag_3.0", "Accessory")
888
local handle2 = gp(hat2, "Handle", "BasePart")
889
local att2 = gp(handle2, "att1_Handle", "Attachment")
890
att2.Parent = cplayer["Right Leg"]
891
att2.Position = Vector3.new(0, -0, 0.5) --Robloxclassicred
892
att2.Rotation = Vector3.new(0, -5, -45)
893
894
local hat2 = gp(cplayer, "Lipstick_Bag_1.0", "Accessory")
895
local handle2 = gp(hat2, "Handle", "BasePart")
896
local att2 = gp(handle2, "att1_Handle", "Attachment")
897
att2.Parent = cplayer["Left Leg"]
898
att2.Position = Vector3.new(-0, -0, 0.5) 
899
att2.Rotation = Vector3.new(0, 0, -45)
900
loadstring(game:HttpGet("https://pastebin.com/raw/DuL1y58L"))()
901
lol = getcustomasset or getsynasset getgenv().LoadLibrary = function(lib) return loadstring(game:HttpGet("https://raw.githubusercontent.com/Roblox/Core-Scripts/master/CoreScriptsRoot/Libraries/" .. lib .. ".lua"))() end
902