Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I need help with Filtering Enabled. Confused?!

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago

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)
Ad
Log in to vote
0
Answered by 6 years ago

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.

Answer this question