Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

SCP-173 Works in studios before its published, can anyone fix this? [closed]

Asked by 6 years ago
Edited 6 years ago

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.

1
you firstly should learn about FilteringEnabled as its always on, even if u turn it off User#23365 30 — 6y
0
can you help? DenisVsDoge -31 — 6y
0
did u make this ur self User#23365 30 — 6y
0
no DenisVsDoge -31 — 6y
View all comments (13 more)
0
please help me DenisVsDoge -31 — 6y
0
Can anybody help DenisVsDoge -31 — 6y
0
funny story.... We don't know what it does.. greatneil80 2647 — 6y
0
Or at least what it is suppose to do greatneil80 2647 — 6y
0
its supost to move DenisVsDoge -31 — 6y
0
where did u get this script User#23365 30 — 6y
0
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 DenisVsDoge -31 — 6y
0
I need a script that works when i publish DenisVsDoge -31 — 6y
0
We don't fix free model scripts here Optikk 499 — 6y
0
we dont help people that use free model scripts User#23365 30 — 6y
0
Step 1: Don't use free models ee0w 458 — 6y
0
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. Lugical 425 — 6y
0
also, that model might be back from years, cuz from what u said, its broke, and there are hefty amount of deprecated terms. Lugical 425 — 6y

Closed as Not Constructive by User#23365, Lugical, DaCrazyDev, theking48989987, and valchip

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?