Trying to make an item highlight effect

  1. What do you want to achieve?
    A glowing highlight effect like this guy did
    What are you working on currently? (2019) - #2662 by tyridge77

  2. What is the issue?
    It keeps doing this instead
    https://media.giphy.com/media/QBSWx9390I41jMuXvk/giphy.gif

see for yourself

  1. What solutions have you tried so far?
  • Multiple different ways of CFraming
  • Messaging the guy who did this this. This is what he said:
    "On renderstep set the viewport frame part’s CFrame to the original part’s CFrame. Original part should be neon, viewport frame part should just be whatever you want shown." – tyridge77

This is the code inside the place:

ViewportFrame = script.Parent.ViewportFrame
ViewportFrame.CurrentCamera = workspace.CurrentCamera

game["Run Service"].RenderStepped:connect(function()
	ViewportFrame.Part.CFrame = workspace.Part.CFrame
end)

And this is how the explorer is set up

6 Likes

Maybe try asking @tyridge77 how he did his? If he’s willing to share.

1 Like

Oh yes, I should have mentioned that I updated the original post.
I already asked him

1 Like

He said in that thread how he accomplished it.

Yes, that’s what I tried doing.
It’s not working for me the same way it worked for him.

Try enabling IgnoreGuiInset or whatever it’s called on the ScreenGui. It looks like it works fine, it’s just offset from the actual part.

6 Likes

Awesome, that fixed it.
Thanks!

2 Likes

Yep, this made it work fine. Can’t believe I didn’t see that before. :man_facepalming:

The offset is coming from the GuiInset. Without it, looks beautiful.

image

When it comes to this kind of camera stuff, I always forget that the blasted GuiInset makes everything ugly. Same with camera functions which is why ViewportPointToRay is advised over ScreenPointToRay for constructing unit rays from the camera.

4 Likes

Late to reply, was gone all day. Glad you found the solution!

4 Likes