Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Cart Block Script Firing Failure? ( I need assistance. ); )

`local Ride = script.Parent

Ride.CanCollide = true

local function RideGO(part)
      	
	Ride.CanCollide = false
	Ride = part
	wait(6)

end

Ride.Touched:connected(RideGO)`

I want this to fire when my Cart for a ride would touch it, but it doesn't seem to want to fire. Any suggestions?

1 answer

The proper way to connect events is by using the Connect function istener. You supplied a non-existing function: connected on line 13 :)

local Ride = script.Parent

Ride.CanCollide = true

local function RideGO(part)
    Ride.CanCollide = false
    Ride = part
    wait(6)
end

Ride.Touched:Connect(RideGO)`

2 comments

0

Thank you!

0

accept my answer if it helped

This discussion is preserved as it was. New answers, comments, and votes are closed.