I went to StarterGui and added a ScreenGui and then a TextButton.. but idk the script for when you click the button, it turns the player invisible. Can someone please help?
Put a Local Script inside the Text Button with the following code:
local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:Connect(function() char = player.Character char.Head.Transparency = 1 char.Torso.Transparency = 1 char["Left Arm"].Transparency = 1 char["Left Leg"].Transparency = 1 char["Right Arm"].Transparency = 1 char["Right Leg"].Transparency = 1 char.Head.face.Transparency = 1 for i,v in pairs(char:GetChildren()) do -- This is to go through things like hair, wings, etc. if v.ClassName == "Accessory" then v.Handle.Transparency = 1 end end end)
That code should work I think. If this helps, be sure to mark me as an answer. It would've been better if you'd shown us some coding in your question though.
Closed as Not Constructive by User#19524 and Zafirua
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?