Professional Documents
Culture Documents
Crawler
Crawler
Fe Creepy Crawler
by MyWorld#4430
discord.gg/pYVHtSJmEY
]]
local lp = game:GetService("Players").LocalPlayer
local rs = game:GetService("RunService")
local stepped = rs.Stepped
local heartbeat = rs.Heartbeat
local renderstepped = rs.RenderStepped
local sg = game:GetService("StarterGui")
local ws = game:GetService("Workspace")
local cf = CFrame.new
local v3 = Vector3.new
local v3_0 = v3(0, 0, 0)
local inf = math.huge
local c = lp.Character
c.Destroying:Connect(function()
c = nil
end)
if netboost then
local steppedcon = nil
local heartbeatcon = nil
Part0.Destroying:Connect(function()
Part0 = nil
steppedcon:Disconnect()
heartbeatcon:Disconnect()
end)
local vel = v3_0
local rotvel = noRotVel and v3_0
if typeof(netboost) == "Vector3" then
steppedcon = stepped:Connect(function()
Part0.Velocity = vel
if rotvel then
Part0.RotVelocity = rotvel
end
end)
heartbeatcon = heartbeat:Connect(function()
vel = Part0.Velocity
Part0.Velocity = netboost
if rotvel then
rotvel = Part0.RotVelocity
Part0.RotVelocity = v3_0
end
end)
elseif typeof(netboost) == "number" then
steppedcon = stepped:Connect(function()
Part0.Velocity = vel
if rotvel then
Part0.RotVelocity = rotvel
end
end)
heartbeatcon = heartbeat:Connect(function()
vel = Part0.Velocity
local newvel = vel
local mag = newvel.Magnitude
if mag < idleMag then
newvel = v3(0, netboost, 0)
else
local multiplier = netboost / mag
newvel *= v3(multiplier, multiplier, multiplier)
end
Part0.Velocity = newvel
if rotvel then
rotvel = Part0.RotVelocity
Part0.RotVelocity = v3_0
end
end)
end
end
end
if antiragdoll then
for i, v in pairs(c:GetDescendants()) do
antiragdoll(v)
end
c.DescendantAdded:Connect(antiragdoll)
end
if antirespawn then
respawnrequest()
end
if method == 0 then
wait(loadtime)
if not c then
return
end
end
if discharscripts then
for i, v in pairs(c:GetChildren()) do
if v:IsA("LocalScript") then
v.Disabled = true
end
end
elseif newanimate then
local animate = gp(c, "Animate", "LocalScript")
if animate and (not animate.Disabled) then
animate.Disabled = true
else
newanimate = false
end
end
if addtools then
for i, v in pairs(addtools:GetChildren()) do
if v:IsA("Tool") then
v.Parent = c
end
end
end
pcall(function()
settings().Physics.AllowSleep = false
settings().Physics.PhysicsEnvironmentalThrottle =
Enum.EnviromentalPhysicsThrottle.Disabled
end)
local OLDscripts = {}
for i, v in pairs(c:GetDescendants()) do
if v.ClassName == "Script" then
table.insert(OLDscripts, v)
end
end
local scriptNames = {}
for i, v in pairs(c:GetDescendants()) do
if v:IsA("BasePart") then
local newName = tostring(i)
local exists = true
while exists do
exists = false
for i, v in pairs(OLDscripts) do
if v.Name == newName then
exists = true
end
end
if exists then
newName = newName .. "_"
end
end
table.insert(scriptNames, newName)
Instance.new("Script", v).Name = newName
end
end
c.Archivable = true
local cl = c:Clone()
for i, v in pairs(cl:GetDescendants()) do
if v:IsA("BasePart") then
v.Transparency = 1
v.Anchored = false
end
end
model.Destroying:Connect(function()
model = nil
end)
for i, v in pairs(c:GetChildren()) do
if v ~= model then
if destroyhum and v:IsA("Humanoid") then
v:Destroy()
else
if addtools and v:IsA("Tool") then
for i1, v1 in pairs(v:GetDescendants()) do
if v1 and v1.Parent and v1:IsA("BasePart") then
local bv = Instance.new("BodyVelocity", v1)
bv.Velocity = v3_0
bv.MaxForce = v3(1000, 1000, 1000)
bv.P = 1250
bv.Name = "bv_" .. v.Name
end
end
end
v.Parent = model
end
end
end
local head = gp(model, "Head", "BasePart")
local torso = gp(model, "Torso", "BasePart") or gp(model, "UpperTorso",
"BasePart")
if breakjoints then
model:BreakJoints()
else
if head and torso then
for i, v in pairs(model:GetDescendants()) do
if v:IsA("Weld") or v:IsA("Snap") or v:IsA("Glue") or
v:IsA("Motor") or v:IsA("Motor6D") then
local save = false
if (v.Part0 == torso) and (v.Part1 == head) then
save = true
end
if (v.Part0 == head) and (v.Part1 == torso) then
save = true
end
if save then
if hedafterneck then
hedafterneck = v
end
else
v:Destroy()
end
end
end
end
if method == 3 then
spawn(function()
wait(loadtime)
if model then
model:BreakJoints()
end
end)
end
end
cl.Parent = c
for i, v in pairs(cl:GetChildren()) do
v.Parent = c
end
cl:Destroy()
local modelDes = {}
for i, v in pairs(model:GetDescendants()) do
if v:IsA("BasePart") then
i = tostring(i)
v.Destroying:Connect(function()
modelDes[i] = nil
end)
modelDes[i] = v
end
end
local modelcolcon = nil
local function modelcolf()
if model then
for i, v in pairs(modelDes) do
v.CanCollide = false
end
else
modelcolcon:Disconnect()
end
end
modelcolcon = stepped:Connect(modelcolf)
modelcolf()
for i, v in pairs(c:GetDescendants()) do
if v and v.Parent then
if v.ClassName == "Script" then
if table.find(scriptNames, v.Name) then
v:Destroy()
end
elseif not v:IsDescendantOf(model) then
if v:IsA("Decal") then
v.Transparency = 1
elseif v:IsA("ForceField") then
v.Visible = false
elseif v:IsA("Sound") then
v.Playing = false
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
v.Enabled = false
end
end
end
end
if newanimate then
local animate = gp(c, "Animate", "LocalScript")
if animate then
animate.Disabled = false
end
end
if addtools then
for i, v in pairs(c:GetChildren()) do
if v:IsA("Tool") then
v.Parent = addtools
end
end
end
if hum1 then
ws.CurrentCamera.CameraSubject = hum1
local camSubCon = nil
local function camSubFunc()
camSubCon:Disconnect()
if c and hum1 then
ws.CurrentCamera.CameraSubject = hum1
end
end
camSubCon = renderstepped:Connect(camSubFunc)
if hum0 then
hum0.Changed:Connect(function(prop)
if hum1 and (prop == "Jump") then
hum1.Jump = hum0.Jump
end
end)
else
respawnrequest()
end
end
local rb = Instance.new("BindableEvent", c)
rb.Event:Connect(function()
rb:Destroy()
sg:SetCore("ResetButtonCallback", true)
if destroyhum then
c:BreakJoints()
return
end
if hum0 and (hum0.Health > 0) then
model:BreakJoints()
hum0.Health = 0
end
if antirespawn then
respawnrequest()
end
end)
sg:SetCore("ResetButtonCallback", rb)
spawn(function()
while c do
if hum0 and hum1 then
hum1.Jump = hum0.Jump
end
wait()
end
sg:SetCore("ResetButtonCallback", true)
end)
local lp = game:GetService("Players").LocalPlayer
local c = lp.Character
if not (c and c.Parent) then
return print("character not found")
end
c:GetPropertyChangedSignal("Parent"):Connect(function()
if not (c and c.Parent) then
c = nil
end
end)
--getPart function
--humanoid
for i, v in pairs(hum:GetPlayingAnimationTracks()) do
v:Stop()
end
--60 fps
local fps = 60
local event = Instance.new("BindableEvent", c)
event.Name = "60 fps"
local floor = math.floor
fps = 1 / fps
local tf = 0
local con = nil
con = game:GetService("RunService").RenderStepped:Connect(function(s)
if not c then
con:Disconnect()
return
end
tf += s
if tf >= fps then
for i=1, floor(tf / fps) do
event:Fire(c)
end
tf = 0
end
end)
local event = event.Event