Hi, I want to make a script when you press a button you make a sort of dash and turn invisible for a short time. I am almost done with it but i dont know how i turn accessories invisible.
script.Parent.SoruEv.OnServerEvent:Connect(function(player)
local char = player.Character
local children = char:GetChildren()
char.Humanoid.WalkSpeed = 100
for i , v in pairs(children) do
if v:IsA("BasePart") and then
v.Transparency = 1
end
end
wait(0.7)
char.Humanoid.WalkSpeed = 16
for i , v in pairs(children) do
if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
v.Transparency = 0
end
end
end)
Does anyone know how to find a handle of a accessory and how to add that in my script?
Thanks