How stop other models from interfering with my remote event

  1. What do you want to achieve? Keep it simple and clear!
    I want my Model to run in just 1 remote event and I want it not to interfere with other duplicated models if its fired, I want other duplicated models to mind on their own business.

  2. What is the issue? Include screenshots / videos if possible!

The other duplicated models are interfering with the model I am referring to

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

Just so you know it took me 6 hours to find nothing

ServerScript:

game.ReplicatedStorage.CanariaBoarding.OnServerEvent:Connect(function(player, bt, fn, fdecal)
	for _, v in pairs(script.Parent.Parent.Models:GetDescendants()) do
		if v:IsA("TextLabel") then
			if v.Name == "BTime" then
				v.Text = bt
			end
			if v.Name == "FlightNum" then
				v.Text = fn
			end

		end
		if v:IsA("ImageLabel") and v.Name == "AirlinePic" then
			v.Image = "rbxassetid://" ..fdecal
		else 
			print("No asset named")

		end
	end
end)

Local:

editbtn.MouseButton1Click:Connect(function()
	local bt = BTime.Text
	local fn = frame.FlightNum.Text
	local fdecal = frame.FDecal.Text
	game.ReplicatedStorage.CanariaBoarding:FireServer(bt, fn, fdecal)
	
end)

UGH PLS HELP ME I DONT WANT IT TO INTERFERE AND I ONLY WANT ONE REMOTE EVEN HUHUHUHUHU

8 Likes

I tried doing duplicates remote event but its so ugly liek bro

4 Likes

plz describe the problem more because i have no idea what ur talking about

4 Likes

Me too i have absolutly no idea what’s the problem

4 Likes

so like the other model that uses the same remote event basically interferes my beloved model which is also same as the other model, I just don’t want other scripts that has :Fire interfere with this model in which it does interfere so I tried the way of duplicated remote events but its not organized. I only want one Remote event that the boarding system uses(model)

6 Likes

For Example a boarding system per gate has flight information

and the local script changes it but it changes for every gate bro u know how annoying is that

it doesnt do it do when i use 2 remote events for 2 models i hope u guys understand

4 Likes

I don’t understand completly but you can send a string and check if the string is the same as the model’s name

5 Likes

Alright here so:

A model: Has remoteevent script to fire
B model: Has remoteevent script to fire

^

Both model uses the same remote event

but when I fire for one model the other model fires too

do u understand?

3 Likes

I think i know why it’s not because the remote event is firing two times it’s because you change the text for every model inside the models folder or whatever

3 Likes

What you can do is to pass the model that you want to change when you fire the remote event in the local script

3 Likes

When the models fire the event, it must be firing it TO something. Such as another script.
The models need to send some sort of identification, so that the receiving script can understand which model the ‘fire’ came from.

You will have to somehow either generate an ID for each model that is created, and send that with the Fire event.

5 Likes

because youre getting ALL the models in the onserverevent and changing the text/image on all of them, pass the model you want to change in the remotevent and change only its properties (i still kinda dont understand what u mean)

4 Likes

I show everyone

image

I dont understand what youve guys said

3 Likes

Can you show the entire local script ?

3 Likes

The local script is inside GateThing ?

3 Likes

I don’t know the only solution that i see is creating new remote events

3 Likes

Yup, thats what I did but I think its not really possible.

4 Likes

Thank you tho for your time i i love oyu bro

4 Likes