So I am trying to get player and then get in to player scripts but doesn't work and idk why here is code:
script.Parent.Touched:Connect(function(hit)
if(hit.Parent:WaitForChild("Humanoid"))then
local pplayer = game.Players:GetPlayerFromCharacter(hit.Parent)
pplayer.PlayerScripts.Open_Close2.Disabled = false
pplayer.PlayerScripts.Open_Close.Disabled = true
end
end)

1 comment
Sorry It Didnt Work.