Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make a model transparent?

Asked by 4 years ago

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?

0
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 :) KDarren12 705 — 4y

1 answer

Log in to vote
0
Answered by
KDarren12 705 Donator Moderation Voter
4 years ago
Edited 4 years ago
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

0
oHhHh when standing on something KDarren12 705 — 4y
0
hold on KDarren12 705 — 4y
0
i have edited my answer for ou. if it doesn't work just tell me KDarren12 705 — 4y
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. Unhumanly 152 — 4y
Ad

Answer this question