Jump to content

RoStrap Rippler Help

Recommended Posts

Hi! I have been trying to use RoStrap as it is a fantastic tool to make better guis. However, I have a custom button that I want the ripple effect on. My guess is it would use the Rippler feature. I looked at the documentation and it didn’t have any examples of code so I tried my best. I have made a piece of code that creates a ripple just fine. The only problem is it is not contained in just the text button, it goes all over the screen. If you could show me an example of how to set it up correctly that would be great!


local ReplicatedStorage = game:GetService("ReplicatedStorage")

local Resources = require(ReplicatedStorage:WaitForChild("Resources"))

local Color = Resources:LoadLibrary("Color")

local PseudoInstance = Resources:LoadLibrary("PseudoInstance")

local ReplicatedPseudoInstace = Resources:LoadLibrary("ReplicatedPseudoInstance")

local Enumeration = Resources:LoadLibrary("Enumeration")



local PrimaryColor3 = Color.Teal[500] -- This is just a Color3 value

local LoginPage = script.Parent.Login


local Ripple = PseudoInstance.new("Rippler")

Ripple.Container = LoginPage.Login

Ripple.Style = Enumeration.RipplerStyle.Full

Ripple.BorderRadius = 0

Ripple.RippleFadeDuration = 0.30

Ripple.RippleExpandDuration = 0.15

Ripple.RippleColor3 = PrimaryColor3

Ripple.RippleTransparency = 0.6

Ripple:Ripple(0.5, 0.7, 0.15) end)```

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.