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

Invisble on keybind press? [closed]

Asked by
lopte1 -5
4 years ago

So, im sure it's not that complicated but for some reason I can't it to work. Im trying to make it so when the player presses "q" it make them go invisible until they let go of It. Any ideas?

0
Post an attempt of your script kingblaze_1000 359 — 4y
0
Yes that would be handy so we could tell you what else to add instead of giving you the whole script. SprinkledFruit101 135 — 4y
0
Also do you want the player to become invisible on only their screen or on everybody's screen? SprinkledFruit101 135 — 4y
0
It would be for evrybody's screen. I know im forgetting something in this and i know it's super easy but i just can't put my finger on it but here is the script lopte1 -5 — 4y

Closed as Not Constructive by kingblaze_1000, ScuffedAI, and youtubemasterWOW

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
-1
Answered by 4 years ago

You could loop through all the parts of the character to change their transparency

for i,v in pairs(character:GetChildren()) do
    if v:IsA("BasePart") then
        if v.Name ~= "HumanoidRootPart" then
            v.Transparency = 1
        end
    end
end
0
Well he hasn't come out with his script yet so we can't assume what exactly we need to add but we can't give him the whole script. SprinkledFruit101 135 — 4y
0
I'm just giving ideas virushunter9 943 — 4y
0
Okay then SprinkledFruit101 135 — 4y
0
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key) if key == "q" then body.Parent:findFirstChild("Humanoid") body.CanCollide = false body.Parent.Torso.Transparency = 1 body.Parent.Head.Transparency = 1 body.Parent["Left Arm"].Transparency = 1 body.Parent["Right Arm"].Transparency = 1 body.Parent["Left Leg"].Transparency = 1 body.Parent["Right Leg"].Transparency = 1 end end lopte1 -5 — 4y
Ad