Automatic buttons

hey I have a button simulator game and I want if your standing on a button you get automatic multipliers
my game:robloxapp-20200322-1513500.wmv (614.7 KB)

how I want it:robloxapp-20200322-1515345.wmv (841.3 KB)

2 Likes

I don’t really understand your question.

I want if your standing on a button you get automatic multipliers

What is your goal? I don’t see what you mean by automatic multipliers.

Also, the goal of the Scripting Support category is not to feed you code… please upload pictures for reference onto your post so developers can help you better.

2 Likes

is this what you wanted to see

I still don’t understand what you mean by automatic multipliers… please elaborate.

now eatch time you need to run over the button but i whant that u can stay on the button and still get multipliers

Do you know what i mean or not?

If I am not wrong, do you mean the player gets points without moving and standing on the button? If so then I suggest you use region3 to check if the player is in a particular region and then multiply the points.

Other alternatives would be to use .TouchEnded event with Disconnect().

1 Like

yea that is what i want, i will look for region 3

cant i make a script where it set the cancollide to false and true everytime ?

I am so bad in scripting I don’t understand the half of it

Yes, that will work too.

Alright dont worry it takes time; take a look at these tutorials

If you dont understand something, you can ask me

is region3 only for blocks or olso for circkels

Yes region3 is only for blocks. Although @EgoMoose made a very wonderful module
for supporting wedges and many other shapes. Though using this module might make it a little more complicated.

Using blocks in your context is best.

okay thanks i will look at the video now and maybe ask more things if thats okay

1 Like

i followed the full video but i get an error

pls help me with this i dont get why it is an error

May you show the code so that I can take a look at it?

o yea here is the code

Yes I am here, sorry for the delay; try this

local region3 = Region3.new(Vector3.new(5,0,5), Vector3.new(15,15,15))

local part = Instance.new("Part")
part.Anchored = true
part.Size = region3.Size
part.CanCollide = false
part.Transparency = 0.9
part.CFrame = region3.CFrame -- You had forgot to position the part in your code earlier
part.Parent = workspace -- Parent your instance at the last

while wait() do
	local PartsInRegion = workspace:FindPartsInRegion3(region3,part, 1000)
	for i,v in pairs(PartsInRegion) do
		if v.Parent:FindFirstChild("Humanoid") then
			print("works") -- prints "Works"
		end
	end
end

it works know thx but how do i add it for the buttons