How can I do as where when a player is standin on something the model is visible but when he isnt the model is transparent?
COMMUNITY QUESTION
How do you make a model transparent?
1 answer
game:GetService("RunService").Stepped:Connect(function()
wait(1)
workspace.ModelNameHere.Touched:Connect(function(hit)
for i,v in pairs(workspace.ModelNameHere:GetChildren()) do
if v:IsA('Part') then
v.Transparency = 1
end
end
end)
end
replace workspace.ModelNameHere with te model
4 comments
0
oHhHh when standing on something
0
hold on
0
i have edited my answer for ou. if it doesn't work just tell me
0
.Touched is not an event of a Model. This code wouldn't even do what the guy is asking even if it was. He actively wants the model to be visible while someone one is stepping on a specified part, and he wants it to be transparent while no one is stepping on the specified part. All this code would do is wait for a part in the model to be touched.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Next time, could you please compile some code so it's easier to understand? It can be as simple as stating a variable for the model. I understand that it may be hard in some cases but just try :)