I created a sword trail which is attached, and I am wondering how to make it optional to have the sword trail in the game. I want everyone to see whether a person has it on or not
Here's a sample that you could work with:
-- LocalScript local part = workspace:WaitForChild("Baseplate") local key = Enum.KeyCode.H -- Press H to toggle visibility of part value game:GetService("UserInputService").InputEnded:Connect(function(input, typing) if not typing and input.UserInputType == Enum.UserInputType.Keyboard then if input.KeyCode == key and part then if part.Transparency == 1 then part.Transparency = 0 else part.Transparency = 1 end end end end)