of     1   

ari462
#227641023Friday, November 17, 2017 7:21 PM GMT

function getPlayer(humanoid) local players = game.Players:children() for i = 1, #players do if players[i].Character.Humanoid == humanoid then return players[i] end end end Door = script.Parent function onTouched(hit) print("Door Hit") local human = hit.Parent:findFirstChild("Humanoid") if (human ~= nil ) then print("Human touched door") local player = getPlayer(human) if (player == nil) then return end local stats = player:findFirstChild("leaderstats") local sp = stats:findFirstChild("Prestige") if sp == nil then return false end if (sp.Value >= 100) then print("Human passed test") Door.Transparency = .5 Door.CanCollide = false wait(3) Door.CanCollide = true Door.Transparency = 0 end end end connection = Door.Touched:connect(onTouched)
SinisterMemories
#227641052Friday, November 17, 2017 7:22 PM GMT

stop using deprecated methods attempt to index global 'soul' (a nil value)
ari462
#227641855Friday, November 17, 2017 7:52 PM GMT

Which part is out of date?
iLordOfAviation
#227644388Friday, November 17, 2017 9:20 PM GMT

I just restarted the whole thing with up to date methods and made it pretty, and I tested, this should work for you! local Door, db = script.Parent, false Door.Touched:Connect(function(hit) if hit.Name == "HumanoidRootPart" and game:GetService("Players"):GetPlayerFromCharacter(hit.Parent) then local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent) if player:FindFirstChild("leaderstats") and player.leaderstats:FindFirstChild("Prestige") then if player.leaderstats.Prestige.Value >= 100 then db = true print("Human passed test") Door.Transparency = .5 Door.CanCollide = false wait(3) Door.CanCollide = true Door.Transparency = 0 db = false end end end end)
ari462
#227644653Friday, November 17, 2017 9:29 PM GMT

Wait what, wow thank you so much this is amazing. I'll test it soon when I get on my computer. So in general, what parts are out of date? I was trying to learn some basics by editing other scripts but now that I'm learning about things being out of date it may not be the best idea and I should probably just look up up to date videos to learn.
ari462
#227645112Friday, November 17, 2017 9:44 PM GMT

Hey, so it still doesnt work with FE on. it does work when testing in studio just not in server with FE
MiAmasKafon
#227645575Friday, November 17, 2017 9:59 PM GMT

ari462
#227649594Saturday, November 18, 2017 12:07 AM GMT

I'll look at that see if I can get anywhere with this

    of     1