Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I active this module by touching a part?

Asked by 4 years ago

I tried to active this module script: https://web.roblox.com/library/3644307275/ActiveVignette-Opensource by making a LocalScript in a part:

function onTouched(hit)
    local ActiveVignette = require(script:WaitForChild("VignetteService"))

local Vignette = ActiveVignette:CreateVignette({script.VignetteService.Physics.ParticleEmitter}) --// creates a new vignette

Vignette:Enabled(true) --// disables the particle effects associated with this vignette

--Vignette:Destroy() --// completely destroys the vignette

Vignette:SetDistance(5) --// Set's the distance from the camera (Larger can result in phasing)

Vignette:UpdateEnabled(true) --// Determines whether or not the vignette will auto adjust to new FOV's and AspectRatio changes.

wait(10)

Vignette:Enabled(false)
end
script.Parent.Touched:connect(onTouched)

And it didn't worked, no errors in the Output btw

0
LocalScripts cannot run in the Workspace, this must be a normal Script DeceptiveCaster 3761 — 4y
0
Yeah but if I make a normal script it wont run the RenderStepped @BashCaster fenix2020 7 — 4y
0
You have to put it in StarterPlayerScripts then. firestarroblox123 440 — 4y
0
Okay ill try fenix2020 7 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

Okay thanks for help everyone who answered, I manage to fix the script by placing the module in workspace and requiring it from StarterCharacterScripts! Thank you for taking your time to answer.

Ad

Answer this question