I have got a localpart that loads into my game when the player connects, I have used the script off of the wiki page to do this:
local container = Workspace:FindFirstChild("LocalBin")
if not container then
container = Instance.new("Camera")
container.Name = "LocalBin"
container.Parent = Workspace
end
local platform = Instance.new("playerdoor")
platform.CFrame = platform.CFrame * CFrame.new(23, 3.5, -119.5)
platform.Anchored = true
platform.Size = Vector3.new(2, 7, 7)
platform.Parent = container
and it worked perfectly. The localpart shows up for the client just as I wanted, however I tried to add a switch that the player could touch in order to make the localpart disappear when the player completes a task, but it does not run the script when touched, and no error comes into the output either...
This is the script I placed into the switch block
function touch()
game.Workspace.LocalBin.playerdoor.Transparency = 1
end
script.Parent.Touched:connect(touch)

2 comments
playerdoor is not a valid Instance. Line 8.
Yees ignore that part, I changed the playerdoor's back to 'Part', and the first script works perfectly well, I'm just still struggling to get the touch switch to communicate with the localpart...