im trying to make bomb tag, and the tagger has a highlight. its not working right?
the highlight stays on the person who had the bomb first, and it doesnt come back next round. when i run this code V
01 | local currentTagged = Instance.new( "ObjectValue" ) |
02 | currentTagged.Name = "CURRENT TAGGED PLAYER" |
03 | currentTagged.Parent = rs |
04 | currentTagged:GetPropertyChangedSignal( "Value" ):Connect( function () |
05 | if currentTagged.Value:IsA( "Model" ) then |
06 | local taggerh = game.ReplicatedStorage.BombTagReplicatedStorage.Highlights.TaggerH |
07 | local clonedtag = taggerh:Clone() |
08 | taggerh.Parent = currentTagged.Value |
09 | taggerh.Adornee = currentTagged.Value |
these errors pop up
error 1: ServerScriptService.BombTagServer:73: attempt to index nil with 'IsA' - Server - BombTagServer:73 error 2: TaggerH is not a valid member of Folder "ReplicatedStorage.BombTagReplicatedStorage.Highlights" - Server - BombTagServer:74