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

im trying to make bomb tag, and the tagger has a highlight. its not working right?

Asked by 2 years ago

the highlight stays on the person who had the bomb first, and it doesnt come back next round. when i run this code V

01local currentTagged = Instance.new("ObjectValue")
02currentTagged.Name = "CURRENT TAGGED PLAYER"
03currentTagged.Parent = rs
04currentTagged: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
10    end
11end)

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

0
if you need more code, ill edit it hudstir 0 — 2y
0
i really need answers hudstir 0 — 2y

Answer this question