Making a game from a birds eye view and I want to make a map with multiple stories, and the only way to pull this off is to make the top floor invisible when your not on it and when you are, make the top floor visible.
I have that part done but the problem is that I can’t quite figure out how to change the top floor back to transparent when its not being touched again. My other problem is that everyone else experiences these changes when another player gets on the top floor and I want to make the transparency changes only be visible to the player who triggered them.
I haven’t found any solutions that quite matches mine very well.
local Part = script.Parent
local function Touched()
Part.Transparensy = 1
end)
local function Untouched()
Part.Transparensy = 0
end)
Part.Touched:Connect(Touched)
Part.TouchEnded:Connect(Untouched)
local Part = script.Parent
Part.Touched:Connect(function(Hit)
if Hit.Parent then
Part.Transparency = 0
end)
Part.TouchEnded:Connect(function(Hit)
if Hit.Parent then
Part.Transparency = 1
end)
local Part = script.Parent
Part.Touched:Connect(function(Hit)
if Hit.Parent:FindFirstChild(“Humanoid”) then
Part.Transparency = 0
end
end)
Part.TouchEnded:Connect(function(Hit)
if Hit.Parent:FindFirstChild(“Humanoid”) then
Part.Transparency = 1
end
end)