#need help in getting local player variable in server script

12 messages · Page 1 of 1 (latest)

delicate path
#
local CollectionService = game:GetService("CollectionService")


for i, v in CollectionService:GetTagged("EquipValue") do
    v.Changed:Connect(function()
        if v.Value == true then
        end
    end)
end```

can anyone help me get the player character variable in this script ??
scenic rain
#

what you are trying to achieve

delicate path
# scenic rain what you are trying to achieve

i was trying to make equip script that automatically equips a pet when the boolValue is true and i wanted to make the pet which is the parent of the value in the player character

#

I used player added event idk if there's a better way to make it

scenic rain
#

like where is value stored

delicate path
#

Inside the sword and the sword is in a file in replicated storage

scenic rain
#

then you should remake the code to work in the way you want

#

i suggest using CharacterAdded

delicate path
delicate path