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

I need help with Filtering Enabled. Confused?!

How can I make this compatible with Filtering Enabled so that it fires upon click?

script.Parent.ChildAdded:connect(function(Object) if Object.Name == "SeatWeld" then local Player = game.Players:GetPlayerFromCharacter(Object.Part1.Parent) local Clone = script.Parent.CheckInGUI:Clone()

	script.Parent.Parent.OverHead.PlayerGUI.Value = Clone
	Clone.Parent = Player.PlayerGui
	script.Parent.PlayerGUI.Value = Clone.Frame
	script.Parent.Airline.TextLabel.Value = Clone.Frame.AirlineName
	script.Parent.Opening.TextLabel.Value = Clone.Frame.Open
	script.Parent.Closing.TextLabel.Value = Clone.Frame.Close
	script.Parent.DecalID.TextLabel.Value = Clone.Frame.DecalID
	script.Parent.FlightNumber.TextLabel.Value = Clone.Frame.FlightNum
	script.Parent.Class.TextLabel.Value = Clone.Frame.Class
	Clone.InPlayer.Value = true
end

end)

2 answers

Use RemoteEvents that are triggered by one script

(YourRemoteEventInReplicatedStorage:FireServer(arguments)) 
--if you want to modify one players cam or gui use a localscript either in the players PlayerGui or in the StarterPlayerScripts which is in the StarterPlayer
For what you're doing right now i recommend using remote events in replicated storage. you also need a script on the main server that can tell when there's an event. 
function YourFunction(player,arguments)
--put what your server script does here; arguments is the information you can send through and player is the client who's local script called :FireServer()
end
YourEventInReplicatedStorage.OnServerEvent:Connect(YourFunction)

Use MouseButton1Click and MouseClick to fire on click. FE should not interfere with this part.

To make the response compatible with FE, fire a RemoteEvent to have a server script handle the rest.

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