is there a way to get value changed when it connects to another block so

Elevator.Value.Value = 0 firstFloor.Value.Value = 1 SeconedFloor.Value.Value = 2

when elevator touches any of the floors I want it to get that value and makes the elevator value the same.

local mover = script.Parent.Mover
local FirstFloor = script.Parent.Parent.FirstFloor.Level
local seconedFloor = script.Parent.Parent.SeconedFloor.Level
local FFCU = script.Parent.Parent.FirstFloor.CallUp
local FFB = script.Parent.Parent.Elivator.FirstFB
local SFB = script.Parent.Parent.Elivator.SeconedFB
local canClick = true
local Floor = script.Parent.Parent.Floor

mover is the part that moves the elevator and floor is what defines what floor it is on so when mover connects to firstfloor or seconedfloor the floor.value changes to the first or seconed floor.value

4 comments

0

Yes there is a way.

0

If you would like us to show you how you would go about this, then we are going to need more information. A script for the elevator would help.

0

Could you provide a script for the elevator?

0

i dont have nothing fo the script i was going to make the script around that script but this my parts i have