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 1 year 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

local currentTagged = Instance.new("ObjectValue")
currentTagged.Name = "CURRENT TAGGED PLAYER"
currentTagged.Parent = rs
currentTagged:GetPropertyChangedSignal("Value"):Connect(function()
    if currentTagged.Value:IsA("Model") then
        local taggerh = game.ReplicatedStorage.BombTagReplicatedStorage.Highlights.TaggerH
        local clonedtag = taggerh:Clone()
        taggerh.Parent = currentTagged.Value
        taggerh.Adornee = currentTagged.Value
    end
end)

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 — 1y
0
i really need answers hudstir 0 — 1y

Answer this question