Hat Fling Script - Feb 2023
Hat Fling Script - Feb 2023
local Configuration = {
PermDeath = true,
RemoveMesh = false,
RemoveHead = true
}
if Configuration.PermDeath then
Player.Character = nil
Player.Character = Character
wait(Players.RespawnTime + .05)
Humanoid:ChangeState(Enum.HumanoidStateType.Dead)
end
-- Drop Hats
Torso:Destroy()
RootPart:Destroy()
for _, x in next, Character:GetChildren() do
if x:IsA("BasePart") and not tostring(x):match("Head") then -- Head has to be
deleted last
x:Destroy()
end
end
if Configuration.RemoveMesh then
local GetClass = function(x, v)
return x:FindFirstChildWhichIsA(v, true)
end
for _, x in next, Humanoid:GetAccessories() do
local Mesh = GetClass(x, "SpecialMesh") or GetClass(x, "MeshPart") or
GetClass(x, "Mesh")
if Mesh then
Mesh:Destroy()
end
end
end
if Configuration.RemoveHead then
local Head = Character:FindFirstChild("Head")
if Head then
Head:Destroy()
end
end
local bodypart = "Handle"
local char = game.Players.localPlayer.Character
local player = game.Players.LocalPlayer
local num = 0
local mouse = player:GetMouse()
local uis = game:GetService("UserInputService")
local bp = Instance.new("BodyPosition")
local newhum = Instance.new("Humanoid")
local newhum2 = Instance.new("Humanoid")
local char = game.Players.LocalPlayer.Character
local hum = char.Humanoid
for _, v in next, game:GetDescendants() do
if v:isA("Part") or v:isA("MeshPart") and v.Anchored == false then
game.RunService.Heartbeat:Connect(function()
v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
v.Velocity = Vector3.new(25.70,0,0)
v.RotVelocity = Vector3.new(9e9,9e9,9e9)
v.CanCollide = false
end)
end
end
bp.Parent = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Accessory")
[bodypart]
bp.Position =
game.Players.LocalPlayer.Character:FindFirstChildOfClass("Accessory")
[bodypart].Position
for i,v in pairs(game.workspace:GetDescendants()) do if v:isA("Part") and v.Parent
~= char and v.Name == "HumanoidRootPart" and v.Parent:FindFirstChild("Humanoid")
and v.Parent.Humanoid.Health ~= 0 then
do
local target = v
game:GetService("RunService").Heartbeat:wait()
workspace.Camera.CameraSubject =
game.Players.LocalPlayer.Character:FindFirstChildOfClass("Accessory")[bodypart]
end
end)
end
end
end