Skip to content

Commit

Permalink
Fixed Issues with it not playing
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Feb 25, 2024
1 parent 1d39760 commit 249d14d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,18 @@ Hooks.once('ready', function () {
const xOffset = 40;
const yOffset = 0
const duration = 5000;
const fadeOutDuration = 1000;
const scale = 1/3;
new Sequence()
.effect()
.file(file)
.screenSpace()
.screenSpaceAnchor(anchor)
.screenSpacePosition({ x: chatWidth + xOffset, y: yOffset })
.duration(duration)
.fadeOut(fadeOutDuration)
.scale(scale)
.play()
}
})
});
Expand Down

0 comments on commit 249d14d

Please sign in to comment.