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

Why doesn't the one way door work anymore?

Asked by 6 years ago
Edited 6 years ago
script.Parent.Touched:Connect(function(hit)
    if game.Players:GetPlayerFromCharacter(hit.Parent) then
        local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
        local char = plr.Character
        local tor = char.Torso
        tor.Velocity=script.Parent.CFrame.lookVector * 100
    end
end)

This is a "One-way door". It used to work but now it doesnt? What is the deal with roblox?

Is it the torso's velocity or the lookvector

0
I would assume it's line 2 that is the problem, I would say use for example "FindFirstChild" or something. CrazyTwinkle -1 — 6y
0
sorry, could not find an answer at all. i did all i could. good luck! wookey12 174 — 6y
0
That's ok. Thanks so much for trying anyways! MusicalDisplay 173 — 6y

Answer this question