Prime7 - add arguments to :Wait()

Flag this post until it’s deleted

3 Likes

You can already do this:

local msg, recipient = plr.Chatted:Wait()

There is no need for this module.

unless

property:Wait()

;;;;;;;;;;;;;;;;;;;

You can do that as well.

local part = workspace.Part

part:GetPropertyChangedSignal("Name"):Wait()
print(part.Name)
1 Like

but it could get changed directly and wouldnt get the old value

The module just uses these two events and is just a wrapper around them. I see no point in this module, it also doesn’t get the old value, and to get the old value we can make a simple variable outside the event no need for an entire module for it.

local baseplate = workspace.Baseplate

local _, newName = baseplate:GetPropertyChangedSignal("Name"):Wait(), baseplate.Name

print(newName)
1 Like

What exactly is a summary of this? What do you mean by “add arguments”?

For example you can do

prop:Connect(function(arg) – there’s arg

So it basically adds that “arg” to :Wait().

1 Like

:Wait() returns the arg, right?

Yes, that’s why I made it local

Did it not work locally before?

It just does this, small explanation

local arg = prime module:WaitForProperty(pathtopart,“property”)

Please, read the “About the * category” before posting.

About the Community Resources category - Resources / Community Resources - DevForum | Roblox

I did read, what’s wrong with it

Why do you expect a 10-line script to meet the criteria?

Facepalm .

I’ll delete this and make something ACTUALLY useful next time

1 Like