Skip to content

Instantly share code, notes, and snippets.

@hhkcu
Last active June 1, 2021 10:34
Show Gist options
  • Select an option

  • Save hhkcu/78ad7888c7bb8476e17ee300abc02513 to your computer and use it in GitHub Desktop.

Select an option

Save hhkcu/78ad7888c7bb8476e17ee300abc02513 to your computer and use it in GitHub Desktop.
some fake char i made
script.Parent = game:GetService("LocalizationService") -- language building skills amr
script.Name = "hjkl"
function thread(fn)
coroutine.resume(coroutine.create(fn))
end
function stopthepress()
local why = {}
for i = 1 ,math.random(5,25) do
table.insert(why, #why, utf8.char(math.random(32,255)))
end
return table.concat(why)
end
local fos = game:GetService("TweenService")
local pls = game:GetService("Players")
local player = getfenv(1).owner
local characterold = player.Character
if not characterold then
player.CharacterAdded:Wait()
characterold = player.Character
end
local userid = player.UserId
local name = pls[pls:GetNameFromUserIdAsync(userid)]
function character()
local ok = Instance.new("EchoSoundEffect")
ok.Name = player.UserId
ok.Parent = workspace
local Head = Instance.new("Part")
Head.Name = "Head"
Head.BottomSurface = Enum.SurfaceType.Smooth
Head.TopSurface = Enum.SurfaceType.Smooth
Head.Reflectance = -300
Head.Color = Color3.fromRGB(27, 42, 53)
Head.Size = Vector3.new(2, 1, 1)
Head.CFrame = CFrame.new(-34.970848083496, 10.597024917603, 21.72455406189)
Head.CastShadow = false
Head.Parent = ok
local Mesh = Instance.new("SpecialMesh")
Mesh.MeshId = "rbxasset://fonts/head.mesh"
Mesh.MeshType = Enum.MeshType.FileMesh
Mesh.Parent = Head
local LefftEye = Instance.new("Part")
LefftEye.Name = "LefftEye"
LefftEye.BottomSurface = Enum.SurfaceType.Smooth
LefftEye.TopSurface = Enum.SurfaceType.Smooth
LefftEye.Material = Enum.Material.Neon
LefftEye.Size = Vector3.new(0.073953159153461, 0.31000000238419, 0.125)
LefftEye.CFrame = CFrame.new(-35.095615386963, 10.816801071167, 21.175094604492)
LefftEye.CastShadow = false
LefftEye.Parent = Head
local Mesh1 = Instance.new("SpecialMesh")
Mesh1.MeshType = Enum.MeshType.Sphere
Mesh1.Parent = LefftEye
local ManualWeld = Instance.new("ManualWeld")
ManualWeld.C1 = CFrame.new(-0.1247673034668, 0.21977615356445, -0.54945945739746)
ManualWeld.Parent = LefftEye
local RightEye = Instance.new("Part")
RightEye.Name = "RightEye"
RightEye.BottomSurface = Enum.SurfaceType.Smooth
RightEye.TopSurface = Enum.SurfaceType.Smooth
RightEye.Material = Enum.Material.Neon
RightEye.Size = Vector3.new(0.074000000953674, 0.31000000238419, 0.125)
RightEye.CFrame = CFrame.new(-34.813652038574, 10.817000389099, 21.174999237061)
RightEye.CastShadow = false
RightEye.Parent = Head
local Mesh2 = Instance.new("SpecialMesh")
Mesh2.MeshType = Enum.MeshType.Sphere
Mesh2.Parent = RightEye
local ManualWeld1 = Instance.new("ManualWeld")
ManualWeld1.C1 = CFrame.new(0.15719604492188, 0.21997547149658, -0.5495548248291)
ManualWeld1.Parent = RightEye
local HumanoidRootPart = Instance.new("Part")
HumanoidRootPart.Name = "HumanoidRootPart"
HumanoidRootPart.BottomSurface = Enum.SurfaceType.Smooth
HumanoidRootPart.TopSurface = Enum.SurfaceType.Smooth
HumanoidRootPart.Reflectance = -300
HumanoidRootPart.Transparency = 1
HumanoidRootPart.Color = Color3.fromRGB(27, 42, 53)
HumanoidRootPart.Material = Enum.Material.SmoothPlastic
HumanoidRootPart.Size = Vector3.new(2, 2, 1)
HumanoidRootPart.CFrame = CFrame.new(-34.970848083496, 9.0970249176025, 21.72455406189)
HumanoidRootPart.CastShadow = false
HumanoidRootPart.Parent = ok
local gy = Instance.new("BodyGyro")
gy.P = 6000
gy.Parent = HumanoidRootPart
local RootHip = Instance.new("Motor6D")
RootHip.Name = "Root Hip"
RootHip.MaxVelocity = 0.1
RootHip.Parent = HumanoidRootPart
local LeftArm = Instance.new("Part")
LeftArm.Name = "Left Arm"
LeftArm.BottomSurface = Enum.SurfaceType.Smooth
LeftArm.CanCollide = true
LeftArm.TopSurface = Enum.SurfaceType.Smooth
LeftArm.Reflectance = -300
LeftArm.Color = Color3.fromRGB(27, 42, 53)
LeftArm.Size = Vector3.new(1, 2, 1)
LeftArm.CFrame = CFrame.new(-36.470848083496, 9.0970249176025, 21.72455406189, 1, 0, 0, 0, 0.99999988079071, 0, 0, 0, 1)
LeftArm.CastShadow = false
LeftArm.Parent = ok
local Mesh3 = Instance.new("SpecialMesh")
Mesh3.MeshId = "rbxasset://fonts/leftarm.mesh"
Mesh3.MeshType = Enum.MeshType.FileMesh
Mesh3.Parent = LeftArm
local LeftLeg = Instance.new("Part")
LeftLeg.Name = "Left Leg"
LeftLeg.BottomSurface = Enum.SurfaceType.Smooth
LeftLeg.CanCollide = true
LeftLeg.TopSurface = Enum.SurfaceType.Smooth
LeftLeg.Reflectance = -300
LeftLeg.Color = Color3.fromRGB(27, 42, 53)
LeftLeg.Size = Vector3.new(1, 2, 1)
LeftLeg.CFrame = CFrame.new(-35.470848083496, 7.0970249176025, 21.72455406189, 1, 0, 0, 0, 0.99999988079071, 0, 0, 0, 1)
LeftLeg.CastShadow = false
LeftLeg.Parent = ok
local Mesh4 = Instance.new("SpecialMesh")
Mesh4.MeshId = "rbxasset://fonts/leftarm.mesh"
Mesh4.MeshType = Enum.MeshType.FileMesh
Mesh4.Parent = LeftLeg
local RightArm = Instance.new("Part")
RightArm.Name = "Right Arm"
RightArm.BottomSurface = Enum.SurfaceType.Smooth
RightArm.CanCollide = true
RightArm.TopSurface = Enum.SurfaceType.Smooth
RightArm.Reflectance = -300
RightArm.Color = Color3.fromRGB(27, 42, 53)
RightArm.Size = Vector3.new(1, 2, 1)
RightArm.CFrame = CFrame.new(-33.470848083496, 9.0970249176025, 21.72455406189, 1, 0, 0, 0, 0.99999988079071, 0, 0, 0, 1)
RightArm.CastShadow = false
RightArm.Parent = ok
local Mesh5 = Instance.new("SpecialMesh")
Mesh5.MeshId = "rbxasset://fonts/leftarm.mesh"
Mesh5.MeshType = Enum.MeshType.FileMesh
Mesh5.Parent = RightArm
local RightLeg = Instance.new("Part")
RightLeg.Name = "Right Leg"
RightLeg.BottomSurface = Enum.SurfaceType.Smooth
RightLeg.CanCollide = true
RightLeg.TopSurface = Enum.SurfaceType.Smooth
RightLeg.Reflectance = -300
RightLeg.Color = Color3.fromRGB(27, 42, 53)
RightLeg.Size = Vector3.new(1, 2, 1)
RightLeg.CFrame = CFrame.new(-34.470848083496, 7.0970249176025, 21.72455406189, 1, 0, 0, 0, 0.99999988079071, 0, 0, 0, 1)
RightLeg.CastShadow = false
RightLeg.Parent = ok
local Mesh6 = Instance.new("SpecialMesh")
Mesh6.MeshId = "rbxasset://fonts/leftarm.mesh"
Mesh6.MeshType = Enum.MeshType.FileMesh
Mesh6.Parent = RightLeg
local Torso = Instance.new("Part")
Torso.Name = "Torso"
Torso.BottomSurface = Enum.SurfaceType.Smooth
Torso.CanCollide = false
Torso.TopSurface = Enum.SurfaceType.Smooth
Torso.Reflectance = -300
Torso.Color = Color3.fromRGB(27, 42, 53)
Torso.Size = Vector3.new(2, 2, 1)
Torso.CFrame = CFrame.new(-34.970848083496, 9.0970249176025, 21.72455406189)
Torso.CastShadow = false
Torso.Parent = ok
local LeftHip = Instance.new("Motor6D")
LeftHip.Name = "Left Hip"
LeftHip.C1 = CFrame.new(-0.5, 1, 0, -4.3711388286738e-08, 0, -1, 0, 0.99999994039536, 0, 1, 0, -4.3711388286738e-08)
LeftHip.C0 = CFrame.new(-1, -1, 0, -4.3711388286738e-08, 0, -1, 0, 0.99999994039536, 0, 1, 0, -4.3711388286738e-08)
LeftHip.MaxVelocity = 0.1
LeftHip.Parent = Torso
local RightHip = Instance.new("Motor6D")
RightHip.Name = "Right Hip"
RightHip.C1 = CFrame.new(0.5, 1, 0, -4.3711388286738e-08, 0, 1, 0, 0.99999994039536, 0, -1, 0, -4.3711388286738e-08)
RightHip.C0 = CFrame.new(1, -1, 0, -4.3711388286738e-08, 0, 1, -0, 0.99999994039536, 0, -1, 0, -4.3711388286738e-08)
RightHip.MaxVelocity = 0.1
RightHip.Parent = Torso
local LeftShoulder = Instance.new("Motor6D")
LeftShoulder.Name = "Left Shoulder"
LeftShoulder.C1 = CFrame.new(0.5, 0.5, 0, -4.3711388286738e-08, 0, -1, 0, 0.99999994039536, 0, 1, 0, -4.3711388286738e-08)
LeftShoulder.C0 = CFrame.new(-1, 0.5, 0, -4.3711388286738e-08, 0, -1, 0, 0.99999994039536, 0, 1, 0, -4.3711388286738e-08)
LeftShoulder.MaxVelocity = 0.1
LeftShoulder.Parent = Torso
local RightShoulder = Instance.new("Motor6D")
RightShoulder.Name = "Right Shoulder"
RightShoulder.C1 = CFrame.new(-0.5, 0.5, 0, -4.3711388286738e-08, 0, 1, 0, 0.99999994039536, 0, -1, 0, -4.3711388286738e-08)
RightShoulder.C0 = CFrame.new(1, 0.5, 0, -4.3711388286738e-08, 0, 1, -0, 0.99999994039536, 0, -1, 0, -4.3711388286738e-08)
RightShoulder.MaxVelocity = 0.1
RightShoulder.Parent = Torso
local Neck = Instance.new("Motor6D")
Neck.Name = "Neck"
Neck.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
Neck.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
Neck.MaxVelocity = 0.1
Neck.Parent = Torso
local Mesh7 = Instance.new("SpecialMesh")
Mesh7.MeshId = "rbxasset://fonts/torso.mesh"
Mesh7.MeshType = Enum.MeshType.FileMesh
Mesh7.Parent = Torso
ManualWeld.Part1 = Head
ManualWeld.Part0 = LefftEye
ManualWeld1.Part1 = Head
ManualWeld1.Part0 = RightEye
RootHip.Part1 = Torso
RootHip.Part0 = HumanoidRootPart
LeftHip.Part1 = LeftLeg
LeftHip.Part0 = Torso
RightHip.Part1 = RightLeg
RightHip.Part0 = Torso
LeftShoulder.Part1 = LeftArm
LeftShoulder.Part0 = Torso
RightShoulder.Part1 = RightArm
RightShoulder.Part0 = Torso
Neck.Part1 = Head
Neck.Part0 = Torso
return ok
end
local char = character()
char.HumanoidRootPart.CFrame = characterold.HumanoidRootPart.CFrame
local motors = {}
local animation_speed = 1
function round(num, idp)
local mult = 10^(idp or 3)
return math.floor(num * mult + 0.5) / mult
end
local typeOfClass = "Motor6D"
for _, v in pairs(char:GetDescendants()) do
if v:IsA(typeOfClass) then
motors[v.Part1.Name] = v
end
end
function QuaternionFromCFrame(cf)
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
local trace = m00 + m11 + m22
if trace > 0 then
local s = math.sqrt(1 + trace)
local recip = 0.5 / s
return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
else
local i = 0
if m11 > m00 then
i = 1
end
if m22 > (i == 0 and m00 or m11) then
i = 2
end
if i == 0 then
local s = math.sqrt(m00 - m11 - m22 + 1)
local recip = 0.5 / s
return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
elseif i == 1 then
local s = math.sqrt(m11 - m22 - m00 + 1)
local recip = 0.5 / s
return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
elseif i == 2 then
local s = math.sqrt(m22 - m00 - m11 + 1)
local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
end
end
end
function QuaternionToCFrame(px, py, pz, x, y, z, w)
local xs, ys, zs = x + x, y + y, z + z
local wx, wy, wz = w * xs, w * ys, w * zs
local xx = x * xs
local xy = x * ys
local xz = x * zs
local yy = y * ys
local yz = y * zs
local zz = z * zs
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))
end
function QuaternionSlerp(a, b, t)
local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
local startInterp, finishInterp;
if cosTheta >= 0.0001 then
if (1 - cosTheta) > 0.0001 then
local theta = math.acos(cosTheta)
local invSinTheta = 1 / math.sin(theta)
startInterp = math.sin((1 - t) * theta) * invSinTheta
finishInterp = math.sin(t * theta) * invSinTheta
else
startInterp = 1 - t
finishInterp = t
end
else
if (1 + cosTheta) > 0.0001 then
local theta = math.acos(-cosTheta)
local invSinTheta = 1 / math.sin(theta)
startInterp = math.sin((t - 1) * theta) * invSinTheta
finishInterp = math.sin(t * theta) * invSinTheta
else
startInterp = t - 1
finishInterp = t
end
end
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
end
function Clerp(a, b, t)
local qa = {QuaternionFromCFrame(a)}
local qb = {QuaternionFromCFrame(b)}
local ax, ay, az = a.x, a.y, a.z
local bx, by, bz = b.x, b.y, b.z
local _t = 1 - t
return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
end
local defaults = {
["Head"] = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0);
["Left Arm"] = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0);
["Left Leg"] = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0);
["Right Arm"] = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0);
["Right Leg"] = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0);
["Torso"] = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0);
}
function motorsToDefault()
for i,v in pairs(motors) do
local name = tostring(v.Part1)
coroutine.resume(coroutine.create(function()
for x = 0,1,.1 do
local TS = game:GetService("TweenService")
local TI = TweenInfo.new(.1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
TS:Create(v, TI, {C0 = Clerp(v.C0,defaults[name] ,x)}):Play()
game:GetService("RunService").Stepped:Wait()
end
end))
end
end
function playAnimation(keyframes, waittime)
if waittime == 0 then waittime = .1 end
for i,v in pairs(motors) do
local name = tostring(v.Part1)
if keyframes[name] then
coroutine.resume(coroutine.create(function()
for x = 0,1,.1 do
local es, ed = Enum.EasingStyle['Linear'],Enum.EasingDirection['Out']
pcall(function()
if keyframes[name .. "-CONFIG"] then
local conf = keyframes[name .. "-CONFIG"]
es=Enum.EasingStyle[conf.es]
ed=Enum.EasingDirection[conf.ed]
end
end)
local TS = game:GetService("TweenService")
local TI = TweenInfo.new(waittime, es, ed)
TS:Create(v, TI, {C0 = Clerp(v.C0,defaults[name] * keyframes[name],x)}):Play()
game:GetService("RunService").Stepped:Wait()
end
end))
end
end
wait(waittime)
end
function PlayKeyframesTable(Keyframes)
for i, ANIMATIONS in pairs(Keyframes) do
local WAITTIME = ANIMATIONS[2]
if i == 1 then
WAITTIME = tonumber(WAITTIME)
else
WAITTIME = round(tonumber(WAITTIME)-tonumber(Keyframes[i-1][2]))/animation_speed
end
local KEYFRAMES = ANIMATIONS[1]
playAnimation(KEYFRAMES, WAITTIME)
end
end
function GetKeyframesTime(Keyframes)
local res = 0
res = Keyframes[#Keyframes][2]+.1
return res
end
local stand = {
{
{
Head = CFrame.new(0, 0, 0, 0.9659258723259, -0.099045783281326, -0.2391175031662, 1.1175870895386e-08, 0.9238795042038, -0.38268357515335, 0.25881895422935, 0.36964392662048, 0.89239907264709);
HumanoidRootPart = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
Torso = CFrame.new(0, 1.375, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
["Left Arm"] = CFrame.new(0, 0, 1.9073486328125e-06, 1, -5.705927730304e-09, -3.740154852494e-10, 5.7059281743932e-09, 0.99144327640533, 0.13053639233112, -3.740154852494e-10, -0.13053639233112, 0.99144351482391);
["Left Leg"] = CFrame.new(0, 0.125, 1.9073486328125e-06, 0.99144405126572, 0.12941499054432, 0.017041163519025, -0.13053213059902, 0.98295819759369, 0.12943735718727, 3.8743019104004e-07, -0.13055431842804, 0.99144113063812);
["Right Arm"] = CFrame.new(0, 0, 0, 0.99144423007965, 0.13053095340729, -3.7398351082629e-10, -0.13053095340729, 0.99144399166107, -5.7056883662199e-09, -3.7398351082629e-10, 5.7056879221307e-09, 1);
["Right Leg"] = CFrame.new(0, 0.12500190734863, 3.814697265625e-06, 0.99144417047501, -0.12944993376732, -0.016768174245954, 0.13053143024445, 0.98322910070419, 0.12736415863037, -3.2968819141388e-07, -0.12846323847771, 0.99171423912048)
};
0.1
};
{
{
Head = CFrame.new(0, 0, 0, 0.96592581272125, 0.099045783281326, 0.23911769688129, 3.7252902984619e-09, 0.9238795042038, -0.38268342614174, -0.25881913304329, 0.36964377760887, 0.89239907264709);
HumanoidRootPart = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
Torso = CFrame.new(0, 2.25, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
["Left Arm"] = CFrame.new(0, 0, 3.814697265625e-06, 1, -1.1314777559335e-08, -1.4898127176366e-09, 1.1314778447513e-08, 0.96591687202454, 0.25885152816772, -1.4898127176366e-09, -0.25885152816772, 0.96591711044312);
["Left Leg"] = CFrame.new(1.9073486328125e-06, 0.125, 3.814697265625e-06, 0.96592283248901, 0.25661480426788, 0.033792085945606, -0.2588301897049, 0.95765471458435, 0.12611068785191, 7.33882188797e-07, -0.13055960834026, 0.99144047498703);
["Right Arm"] = CFrame.new(0, 0, -3.814697265625e-06, 0.96606642007828, 0.25773102045059, 0.017039284110069, -0.25773096084595, 0.95750963687897, 0.12942016124725, 0.017040316015482, -0.12942001223564, 0.99144345521927)
};
3
};
{
{
Head = CFrame.new(0, 0, 0, 0.9659258723259, -0.099045783281326, -0.2391175031662, 1.1175870895386e-08, 0.9238795042038, -0.38268357515335, 0.25881895422935, 0.36964392662048, 0.89239907264709);
HumanoidRootPart = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
Torso = CFrame.new(0, 1.375, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
["Left Arm"] = CFrame.new(0, 0, 1.9073486328125e-06, 1, -5.705927730304e-09, -3.740154852494e-10, 5.7059281743932e-09, 0.99144327640533, 0.13053639233112, -3.740154852494e-10, -0.13053639233112, 0.99144351482391);
["Left Leg"] = CFrame.new(0, 0.125, 1.9073486328125e-06, 0.99144405126572, 0.12941499054432, 0.017041163519025, -0.13053213059902, 0.98295819759369, 0.12943735718727, 3.8743019104004e-07, -0.13055431842804, 0.99144113063812);
["Right Arm"] = CFrame.new(0, 0, 0, 0.99144423007965, 0.13053095340729, -3.7398351082629e-10, -0.13053095340729, 0.99144399166107, -5.7056883662199e-09, -3.7398351082629e-10, 5.7056879221307e-09, 1);
["Right Leg"] = CFrame.new(0, 0.12500190734863, 3.814697265625e-06, 0.99144417047501, -0.12944993376732, -0.016768174245954, 0.13053143024445, 0.98322910070419, 0.12736415863037, -3.2968819141388e-07, -0.12846323847771, 0.99171423912048)
};
6
}
}
local move = {
{
{
Head = CFrame.new(0, 0, 0, 0.9659258723259, -0.099045783281326, -0.2391175031662, 1.1175870895386e-08, 0.9238795042038, -0.38268357515335, 0.25881895422935, 0.36964392662048, 0.89239907264709);
HumanoidRootPart = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
Torso = CFrame.new(0, 1.625, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
["Left Arm"] = CFrame.new(0, 0, 1.9073486328125e-06, 1, -5.7058882063643e-09, -3.7401193253572e-10, 5.7058886504535e-09, 0.99144339561462, 0.13053548336029, -3.7401193253572e-10, -0.13053548336029, 0.9914436340332);
["Left Leg"] = CFrame.new(0, 0, 0, 0.96592283248901, -0.25883015990257, 1.4895640276791e-09, 0.25883015990257, 0.96592259407043, -1.1313828096604e-08, 1.4895604749654e-09, 1.1313827208426e-08, 1);
["Right Arm"] = CFrame.new(0, 0, 0, 0.96592247486115, 0.25883147120476, -1.4895782385338e-09, -0.25883147120476, 0.96592223644257, -1.1313885828201e-08, -1.4895746858201e-09, 1.1313884940023e-08, 1);
["Right Leg"] = CFrame.new(0, 0, 0, 0.96550095081329, 0.26039946079254, -1.5080026116721e-09, -0.26039946079254, 0.96550071239471, -1.1382428333206e-08, -1.5080026116721e-09, 1.1382427445028e-08, 1)
};
0.1
};
{
{
Head = CFrame.new(0, 0, 0, 0.96592581272125, 0.099045805633068, 0.23911774158478, 1.4901161193848e-08, 0.9238795042038, -0.38268342614174, -0.25881916284561, 0.36964377760887, 0.89239907264709);
HumanoidRootPart = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
Torso = CFrame.new(0, 2.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
["Left Arm"] = CFrame.new(0, 0, 3.814697265625e-06, 1, -1.1314596370937e-08, -1.4897629796451e-09, 1.1314597259116e-08, 0.96591794490814, 0.25884753465652, -1.4897665323588e-09, -0.25884753465652, 0.96591818332672);
["Right Arm"] = CFrame.new(0, 0, 0, 0.92387068271637, 0.38270473480225, -3.3277203215221e-09, -0.38270473480225, 0.92387044429779, -1.6728561647028e-08, -3.3277167688084e-09, 1.6728561647028e-08, 1)
};
3
};
{
{
Head = CFrame.new(0, 0, 0, 0.96592593193054, -0.099045485258102, -0.23911738395691, 8.9406967163086e-08, 0.92387986183167, -0.38268259167671, 0.25881871581078, 0.36964300274849, 0.89239954948425);
HumanoidRootPart = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
Torso = CFrame.new(0, 1.625, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
["Left Arm"] = CFrame.new(0, 0, 3.814697265625e-06, 1, -5.7070783654467e-09, -3.7416469922391e-10, 5.7070788095359e-09, 0.99143987894058, 0.13056227564812, -3.7416469922391e-10, -0.13056229054928, 0.99144011735916);
["Right Arm"] = CFrame.new(0, 0, 0, 0.96591734886169, 0.25885063409805, -1.4898020594956e-09, -0.25885063409805, 0.96591711044312, -1.1314723380451e-08, -1.4897985067819e-09, 1.1314722492273e-08, 1)
};
6
}
}
local remote = Instance.new("RemoteEvent")
remote.Name = tostring(player.UserId)
print(remote.Name)
remote.Parent = game:GetService("JointsService")
for _,v in pairs(char:GetDescendants()) do
if v:IsA("BasePart") then
v:SetNetworkOwner(player)
v.Locked = true
end
end
remote.OnServerEvent:Connect(function(_plr,_mtd,_itm)
if _mtd == "idle" then
PlayKeyframesTable(stand)
elseif _mtd == "move" then
PlayKeyframesTable(move)
end
end)
local phys = game:GetService("PhysicsService")
pcall(function()
phys:RemoveCollisionGroup("clnt")
phys:RemoveCollisionGroup("other")
end)
phys:CreateCollisionGroup("clnt")
phys:CreateCollisionGroup("other")
phys:CollisionGroupSetCollidable("clnt","other",false)
local why = NLS("script.Parent = game:GetService(\"LocalizationService\")\n\nlocal player = game:GetService(\"Players\").LocalPlayer\nlocal camera = workspace.CurrentCamera\nlocal remote = game:GetService(\"JointsService\"):WaitForChild(player.UserId)\nlocal tws = game:GetService(\"TweenService\")\nlocal uis = game:GetService(\"UserInputService\")\nlocal rs = game:GetService(\"RunService\")\nlocal playerGui = player.PlayerGui\nlocal character = workspace[player.UserId]\nfunction keyDown(key)\n\treturn uis:IsKeyDown(Enum.KeyCode[key]) and true or false\nend\nfunction moving()\n\tlocal hello = Instance.new(\"Model\")\n\thello.Name = \"hello\"\n\thello.Parent = workspace\n\n\tlocal HumanoidRootPart = Instance.new(\"Part\")\n\tHumanoidRootPart.Name = \"HumanoidRootPart\"\n\tHumanoidRootPart.Anchored = false\n\tHumanoidRootPart.BottomSurface = Enum.SurfaceType.Smooth\n\tHumanoidRootPart.TopSurface = Enum.SurfaceType.Smooth\n\tHumanoidRootPart.Transparency = 1\n\tHumanoidRootPart.Size = Vector3.new(2, 2, 1)\n\tHumanoidRootPart.CFrame = CFrame.new(-34.934913635254, 9.1360187530518, 21.715135574341)\n\tHumanoidRootPart.Parent = hello\n\n\tlocal RootHip = Instance.new(\"Motor6D\")\n\tRootHip.Name = \"Root Hip\"\n\tRootHip.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)\n\tRootHip.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)\n\tRootHip.MaxVelocity = 0.1\n\tRootHip.Parent = HumanoidRootPart\n\n\tlocal ball = Instance.new(\"SelectionSphere\")\n\tball.Name = \"ball\"\n\tball.Color3 = Color3.fromRGB(80, 80, 80)\n\tball.Parent = HumanoidRootPart\n\n\tlocal Torso = Instance.new(\"Part\")\n\tTorso.Name = \"Torso\"\n\tTorso.BottomSurface = Enum.SurfaceType.Smooth\n\tTorso.CanCollide = false\n\tTorso.TopSurface = Enum.SurfaceType.Smooth\n\tTorso.Transparency = 1\n\tTorso.Size = Vector3.new(2, 2, 1)\n\tTorso.CFrame = CFrame.new(-34.934913635254, 9.1360187530518, 21.715135574341)\n\tTorso.Parent = hello\n\n\tlocal LeftHip = Instance.new(\"Motor6D\")\n\tLeftHip.Name = \"Left Hip\"\n\tLeftHip.C1 = CFrame.new(-0.5, 1, 0, -4.3711388286738e-08, 0, -1, 0, 0.99999994039536, 0, 1, 0, -4.3711388286738e-08)\n\tLeftHip.C0 = CFrame.new(-1, -1, 0, -4.3711388286738e-08, 0, -1, 0, 0.99999994039536, 0, 1, 0, -4.3711388286738e-08)\n\tLeftHip.MaxVelocity = 0.1\n\tLeftHip.Parent = Torso\n\n\tlocal RightHip = Instance.new(\"Motor6D\")\n\tRightHip.Name = \"Right Hip\"\n\tRightHip.C1 = CFrame.new(0.5, 1, 0, -4.3711388286738e-08, 0, 1, 0, 0.99999994039536, 0, -1, 0, -4.3711388286738e-08)\n\tRightHip.C0 = CFrame.new(1, -1, 0, -4.3711388286738e-08, 0, 1, -0, 0.99999994039536, 0, -1, 0, -4.3711388286738e-08)\n\tRightHip.MaxVelocity = 0.1\n\tRightHip.Parent = Torso\n\n\tlocal LeftShoulder = Instance.new(\"Motor6D\")\n\tLeftShoulder.Name = \"Left Shoulder\"\n\tLeftShoulder.C1 = CFrame.new(0.5, 0.5, 0, -4.3711388286738e-08, 0, -1, 0, 0.99999994039536, 0, 1, 0, -4.3711388286738e-08)\n\tLeftShoulder.C0 = CFrame.new(-1, 0.5, 0, -4.3711388286738e-08, 0, -1, 0, 0.99999994039536, 0, 1, 0, -4.3711388286738e-08)\n\tLeftShoulder.MaxVelocity = 0.1\n\tLeftShoulder.Parent = Torso\n\n\tlocal RightShoulder = Instance.new(\"Motor6D\")\n\tRightShoulder.Name = \"Right Shoulder\"\n\tRightShoulder.C1 = CFrame.new(-0.5, 0.5, 0, -4.3711388286738e-08, 0, 1, 0, 0.99999994039536, 0, -1, 0, -4.3711388286738e-08)\n\tRightShoulder.C0 = CFrame.new(1, 0.5, 0, -4.3711388286738e-08, 0, 1, -0, 0.99999994039536, 0, -1, 0, -4.3711388286738e-08)\n\tRightShoulder.MaxVelocity = 0.1\n\tRightShoulder.Parent = Torso\n\n\tlocal Neck = Instance.new(\"Motor6D\")\n\tNeck.Name = \"Neck\"\n\tNeck.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)\n\tNeck.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)\n\tNeck.MaxVelocity = 0.1\n\tNeck.Parent = Torso\n\n\tlocal LeftLeg = Instance.new(\"Part\")\n\tLeftLeg.Name = \"Left Leg\"\n\tLeftLeg.BottomSurface = Enum.SurfaceType.Smooth\n\tLeftLeg.CanCollide = false\n\tLeftLeg.TopSurface = Enum.SurfaceType.Smooth\n\tLeftLeg.Transparency = 1\n\tLeftLeg.Size = Vector3.new(1, 2, 1)\n\tLeftLeg.CFrame = CFrame.new(-35.434913635254, 7.1360187530518, 21.715135574341, 1, 0, 0, 0, 0.99999988079071, 0, 0, 0, 1)\n\tLeftLeg.Parent = hello\n\n\tlocal RightLeg = Instance.new(\"Part\")\n\tRightLeg.Name = \"Right Leg\"\n\tRightLeg.BottomSurface = Enum.SurfaceType.Smooth\n\tRightLeg.CanCollide = false\n\tRightLeg.TopSurface = Enum.SurfaceType.Smooth\n\tRightLeg.Transparency = 1\n\tRightLeg.Size = Vector3.new(1, 2, 1)\n\tRightLeg.CFrame = CFrame.new(-34.434913635254, 7.1360187530518, 21.715135574341, 1, 0, 0, 0, 0.99999988079071, 0, 0, 0, 1)\n\tRightLeg.Parent = hello\n\n\tlocal LeftArm = Instance.new(\"Part\")\n\tLeftArm.Name = \"Left Arm\"\n\tLeftArm.BottomSurface = Enum.SurfaceType.Smooth\n\tLeftArm.CanCollide = false\n\tLeftArm.TopSurface = Enum.SurfaceType.Smooth\n\tLeftArm.Transparency = 1\n\tLeftArm.Size = Vector3.new(1, 2, 1)\n\tLeftArm.CFrame = CFrame.new(-36.434913635254, 9.1360187530518, 21.715135574341, 1, 0, 0, 0, 0.99999988079071, 0, 0, 0, 1)\n\tLeftArm.Parent = hello\n\n\tlocal RightArm = Instance.new(\"Part\")\n\tRightArm.Name = \"Right Arm\"\n\tRightArm.BottomSurface = Enum.SurfaceType.Smooth\n\tRightArm.CanCollide = false\n\tRightArm.TopSurface = Enum.SurfaceType.Smooth\n\tRightArm.Transparency = 1\n\tRightArm.Size = Vector3.new(1, 2, 1)\n\tRightArm.CFrame = CFrame.new(-33.434913635254, 9.1360187530518, 21.715135574341, 1, 0, 0, 0, 0.99999988079071, 0, 0, 0, 1)\n\tRightArm.Parent = hello\n\n\tlocal Head = Instance.new(\"Part\")\n\tHead.Name = \"Head\"\n\tHead.BottomSurface = Enum.SurfaceType.Smooth\n\tHead.TopSurface = Enum.SurfaceType.Smooth\n\tHead.Transparency = 1\n\tHead.Size = Vector3.new(2, 1, 1)\n\tHead.CFrame = CFrame.new(-34.934913635254, 10.636018753052, 21.715135574341)\n\tHead.Parent = hello\n\n\tlocal Humanoid = Instance.new(\"Humanoid\")\n\tHumanoid.RequiresNeck = false\n\tHumanoid.Health = math.huge\n\tHumanoid.MaxHealth = math.huge\n\tHumanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None\n\tHumanoid.NameDisplayDistance = 0\n\tHumanoid.Parent = hello\n\n\tRootHip.Part1 = Torso\n\tRootHip.Part0 = HumanoidRootPart\n\n\tball.Adornee = HumanoidRootPart\n\n\tLeftHip.Part1 = LeftLeg\n\tLeftHip.Part0 = Torso\n\n\tRightHip.Part1 = RightLeg\n\tRightHip.Part0 = Torso\n\n\tLeftShoulder.Part1 = LeftArm\n\tLeftShoulder.Part0 = Torso\n\n\tRightShoulder.Part1 = RightArm\n\tRightShoulder.Part0 = Torso\n\n\tNeck.Part1 = Head\n\tNeck.Part0 = Torso\n\n\tHumanoid.Torso = HumanoidRootPart\n\tHumanoid.RightLeg = RightLeg\n\tHumanoid.LeftLeg = LeftLeg\n\n\thello.PrimaryPart = HumanoidRootPart\n\treturn hello\nend\nlocal movec = moving()\nplayer.Character = movec\ncamera.CameraSubject = character.Head\nlocal phys = game:GetService(\"PhysicsService\")\nfor i,v in pairs(character:GetDescendants()) do\n\tif v:IsA(\"BasePart\") then\n\t\tphys:SetPartCollisionGroup(v,\"other\")\n\tend\nend\nfor i,v in pairs(movec:GetDescendants()) do\n\tif v:IsA(\"BasePart\") then\n\t\tphys:SetPartCollisionGroup(v,\"clnt\")\n\tend\nend\n\nlocal hrp = character.HumanoidRootPart\nlocal hrp1 = movec.HumanoidRootPart\nlocal hum = movec.Humanoid\n\nremote.OnClientEvent:Connect(function(m)\n\tif m == \"stop\" then\n\t\tmovec:Destroy()\n\t\tscript:Destroy()\n\tend\nend)\n\nlocal movin = false\n\nhum.Running:Connect(function(spd)\n\tif spd < 0 then\n\t\tmovin = true\n\telseif spd == 0 then\n\t\tmovin = false\n\tend\nend)\n\nrs.Heartbeat:Connect(function(dt)\n\thrp.CFrame = hrp1.CFrame\n\tif movin then\n\t\tremote:FireServer(\"move\")\n\telse\n\t\tremote:FireServer(\"idle\")\n\tend\nend)",player.PlayerGui)
why.Name = "stupidly illegal"
player.Chatted:Connect(function(mse)
if string.sub(mse,1,2) == "lc/" then
if string.sub(mse,4,#mse) == "stopscript" then
remote:FireClient(player,"stop")
why:Destroy()
remote:Destroy()
char:Destroy()
phys:RemoveCollisionGroup("clnt")
phys:RemoveCollisionGroup("other")
player:LoadCharacter()
script:Destroy()
end
end
end)
thread(function()
game:GetService("RunService").Heartbeat:Connect(function()
player.Character.HumanoidRootPart.CFrame = CFrame.new(9e9,9e9,9e9)
end)
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment