its script
001 | local rp = game:GetService( "ReplicatedStorage" ) |
002 | local World = rp:WaitForChild( "KingRemotes" ):WaitForChild( "World" ) |
003 | local TweenService = game:GetService( "TweenService" ) |
004 | local Debris = game:GetService( "Debris" ) |
005 | local TEsound = game.Workspace.SFX.KC.TimeErase |
006 | local range = 300 |
007 | local duration = 10 |
008 | local TIMEEARASEEFFECT = script.uginga |
009 |
010 | World.OnServerEvent:Connect( function (Player) |
011 | local Stand = workspace:FindFirstChild(Player.Name.. " Stand" ):WaitForChild( "King" ) |
012 |
013 | if Stand then |
014 | local Character = Player.Character |
015 | local Humanoid = Character:WaitForChild( "Humanoid" ) |
Hopefully this works for you:
01 | --// How does this work? |
02 | --// It gets the children of the character (a lighter use of getdescendants), but with our checks it only gets the accessory as the 'maketransparent' value. |
03 | --// With this value it can find the Handle and the properties of it. |
04 |
05 |
06 | for _, maketransparent in pairs (Character:GetChildren()) do |
07 | if (maketransparent.ClassName = = "Accessory" ) then |
08 | maketransparent.Handle.Transparency = 1 |
09 | end |
10 | end |
I added explaining to the script to make sure you can understand / learn how to use this function again and can develop your progress in learning lua