I want to make a scp-173 game. but when i publish it, the script doesn't work, i have tried everything, please help me, please. I want you to edit the script so it works when i publish it, please, and thank you PROBLEM: SCP-173 DOESN'T MOVE
local soundIds = {150185006,150184965,150185025}
local sounds = {}
for i=1,#soundIds do
local s = Instance.new("Sound")
s.SoundId = "http://www.roblox.com/asset/?id=" .. soundIds[i]
s.Volume = 1
s.Parent = script.Parent
sounds[#sounds + 1] = s
end
fpor = game.Workspace.FindPartOnRay
seen_dist = 200
function canSee(subject,viewer)
if (not subject) or (not viewer) then return false end
local sh = subject:findFirstChild("Death")
local vh = viewer:findFirstChild("Head")
if (not sh) or (not vh) then return false end
local vec = sh.Position - vh.Position
local isInFOV = (vec:Dot(vh.CFrame.lookVector) > 0)
if (isInFOV) and (vec.magnitude < seen_dist) then
local ray = Ray.new(vh.Position,vec.unit*200)
local por = fpor(workspace,ray,viewer,false)
return (por == nil) or (por:IsDescendantOf(subject))
end
return false
end
function canSee2(subject,viewer)
if (not subject) or (not viewer) then return false end
local sh = subject:findFirstChild("Death")
local vh = viewer:findFirstChild("Head")
if (not sh) or (not vh) then return false end
local vec = sh.Position - vh.Position
if (vec.magnitude < seen_dist) then
local ray = Ray.new(vh.Position,vec.unit*200)
local por = fpor(workspace,ray,viewer,false)
return (por == nil) or (por:IsDescendantOf(subject))
end
return false
end
function stick(x, y)
weld = Instance.new("Weld")
weld.Part0 = x
weld.Part1 = y
local HitPos = x.Position
local CJ = CFrame.new(HitPos)
local C0 = x.CFrame:inverse() *CJ
local C1 = y.CFrame:inverse() * CJ
weld.C0 = C0
weld.C1 = C1
weld.Parent = x
x.Anchored = false
y.Anchored = false
end
stick(script.Parent, script.Parent.Parent.Phys)
function stick2(x, y)
weld = Instance.new("Weld")
weld.Part0 = x
weld.Part1 = y
local HitPos = x.Position
local CJ = CFrame.new(HitPos)
local C0 = x.CFrame:inverse() *CJ
local C1 = y.CFrame:inverse() * CJ
weld.C0 = C0
weld.C1 = C1
weld.Parent = x
x.Anchored = false
y.Anchored = false
end
stick(script.Parent, script.Parent.Parent.Phys4)
function stick2(x, y)
weld = Instance.new("Weld")
weld.Part0 = x
weld.Part1 = y
local HitPos = x.Position
local CJ = CFrame.new(HitPos)
local C0 = x.CFrame:inverse() *CJ
local C1 = y.CFrame:inverse() * CJ
weld.C0 = C0
weld.C1 = C1
weld.Parent = x
x.Anchored = false
y.Anchored = false
end
stick(script.Parent, script.Parent.Parent.Phys5)
stick(script.Parent, script.Parent.Face)
function stick2(x, y)
weld = Instance.new("Weld")
weld.Part0 = x
weld.Part1 = y
local HitPos = x.Position
local CJ = CFrame.new(HitPos)
local C0 = x.CFrame:inverse() *CJ
local C1 = y.CFrame:inverse() * CJ
weld.C0 = C0
weld.C1 = C1
weld.Parent = x
x.Anchored = false
y.Anchored = false
end
stick(script.Parent, script.Parent.Parent.Phys5)
stick(script.Parent, script.Parent.FaceEarLeft)
function stick2(x, y)
weld = Instance.new("Weld")
weld.Part0 = x
weld.Part1 = y
local HitPos = x.Position
local CJ = CFrame.new(HitPos)
local C0 = x.CFrame:inverse() *CJ
local C1 = y.CFrame:inverse() * CJ
weld.C0 = C0
weld.C1 = C1
weld.Parent = x
x.Anchored = false
y.Anchored = false
end
stick(script.Parent, script.Parent.Parent.Phys5)
stick(script.Parent, script.Parent.FaceEarRight)
function stick2(x, y)
weld = Instance.new("Weld")
weld.Part0 = x
weld.Part1 = y
local HitPos = x.Position
local CJ = CFrame.new(HitPos)
local C0 = x.CFrame:inverse() *CJ
local C1 = y.CFrame:inverse() * CJ
weld.C0 = C0
weld.C1 = C1
weld.Parent = x
x.Anchored = false
y.Anchored = false
end
stick(script.Parent, script.Parent.Parent.Phys3)
function stick2(x, y)
weld = Instance.new("Weld")
weld.Part0 = x
weld.Part1 = y
local HitPos = x.Position
local CJ = CFrame.new(HitPos)
local C0 = x.CFrame:inverse() *CJ
local C1 = y.CFrame:inverse() * CJ
weld.C0 = C0
weld.C1 = C1
weld.Parent = x
x.Anchored = false
y.Anchored = false
end
stick2(script.Parent, script.Parent.Parent.Phys2)
while true do
local minmag = nil
local minply = nil
local mindir = nil
local beingwatched = false
players = game:GetService("Players"):GetChildren()
for i=1,#players do
char = players[i].Character
if char then
local foundhead = char:FindFirstChild("Head")
local foundtorso = char:FindFirstChild("Torso")
local foundHumanoidRootPart = char:FindFirstChild("HumanoidRootPart")
local foundhum = char:FindFirstChild("Humanoid")
if foundhead and foundtorso and foundHumanoidRootPart and foundhum and foundhum.Health > 0 then
local sub = (script.Parent.CFrame.p - foundhead.CFrame.p)
local dir = sub.unit
local mag = sub.magnitude
if not minmag or minmag > mag then
minmag = mag
minply = char:FindFirstChild("HumanoidRootPart")
mindir = dir
if canSee(script.Parent.Parent, char) then beingwatched = true end
end
end
end
end
if minply and not beingwatched and canSee2(script.Parent.Parent, minply.Parent) then
if minmag and minmag <= 200 then
local unit = (script.Parent.Position-minply.Position).unit
unit = Vector3.new(unit.X,0,unit.Z)
script.Parent.CFrame = CFrame.new(script.Parent.Position + (unit*-15), Vector3.new(minply.Position.X, script.Parent.Position.Y, minply.Position.Z))
script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(0,math.rad(180),0)
script.Parent.Slide:Play()
wait(0.000001)
if minmag < 10 and minply.Parent:FindFirstChild("Humanoid") and minply.Parent.Humanoid.Health > 0 and not beingwatched then
script.Parent.CFrame = CFrame.new(script.Parent.Position, Vector3.new(minply.Position.X, script.Parent.Position.Y, minply.Position.Z))
minply.Parent:BreakJoints()
script.Parent.Kill:Play()
end
end
end
wait(.000001)
script.Parent.Slide:Pause()
wait(.000001)
end
the script wont work when i publish this,, SCP-173 SCRIPT ISN'T WORKING WHEN I PUBLISH IT! i've even made it into a local script. it doesn't seem to work when i published this, its very importent to my theme it just doesn't move, it wont move when i look away, but if i don't publish it, it works, i dont know whats going on and here is the sound, it doesn't work to
local head = script.Parent
local sound = head:findFirstChild("Sound")
function onTouched(part)
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
sound:play()
end
end
script.Parent.Touched:connect(onTouched)
this works but doesn't actually do anything else, just plays a sound, Nothing Wrong With This One.

17 comments
you firstly should learn about FilteringEnabled as its always on, even if u turn it off
can you help?
did u make this ur self
no
please help me
Can anybody help
funny story.... We don't know what it does..
Or at least what it is suppose to do
its supost to move
where did u get this script
From The Free Model (Cause IDK HOW 2 make a scp-173 and im well aware of it being a virus in some models, and cringey models
I need a script that works when i publish
We don't fix free model scripts here
we dont help people that use free model scripts
Step 1: Don't use free models
even if its a free model, AT LEAST TELL US THE ISSUE. I don't know what the script does in a complete sense, or where the error is.
also, that model might be back from years, cuz from what u said, its broke, and there are hefty amount of deprecated terms.