so i let my character spawn, and a local script gives the player all the vfx attachments.
then i am using this function to activate the VFX:
activateVFX(plr.Character, "Right Arm", "RightArmVFXfist", "emit", 1.1)
local function activateVFX(character, rigpart, attachment, Type, time)
local rigattachment = character[rigpart][attachment]
print(rigattachment)
if Type == "beam" then
game.ReplicatedStorage.RemoteEvents.TriggerBeam:FireAllClients(rigattachment, time or 1)
elseif Type == "emit" then
game.ReplicatedStorage.TriggerVFX:FireAllClients(rigattachment, time or 1)
else -- "enable"
game.ReplicatedStorage.TriggerVFX2:FireAllClients(rigattachment, time or 1)
end
end
but for some reason it gives me nil every time on rigattachment, anyone know why and how to fix it:
this is what it prints:
RightArmVFXfist is not a valid member of Part "Workspace.kingdesam222.Right Arm"
** You are now Level 12! **