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.
What is the issue? Include screenshots / videos if possible!
The other duplicated models are interfering with the model I am referring to
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
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)
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
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.
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)