Highlight not showing when using viewmodels

I’m trying to make a basic FPS framework and my viewmodel’s hands have a highlight, but it just doesn’t show up.

I’ve tried setting the Adornee property but it didn’t do anything.
I’ve also tried having the original parent of the viewmodel be the workspace but that also didn’t do anything.

The main script:

local bucket=game:GetService("ReplicatedStorage").bucket
local viewmodel=game:GetService("ReplicatedStorage").viewmodel
local mmod=require(game:GetService("ReplicatedStorage").mainMod)
viewmodel.Parent=game.Workspace.Camera
viewmodel.larm.Highlight.Adornee=viewmodel.larm
viewmodel.rarm.Highlight.Adornee=viewmodel.rarm
game:GetService("RunService").RenderStepped:Connect(function(dt)
	mmod.update(viewmodel,dt)
end)

(I am following EXM_0’s FPS tutorial)

2 Likes

Not sure, but I have a couple questions you should answer before others try to help out here.

  • is this a Local or Server script?
  • where is the script located?
1 Like

It’s a local script and is located in the StarterPlayerScripts folder.

Nevermind, I just fixed it by swapping around the Adornee properties. I have no idea why this works.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.