heloo!! i want a GUI to appear to the player in the vehicle seat (indicated in the green circle) when both parts in the blue circle touch each other
so far i’ve only tried using remote events to enable the GUI for the player
Server Script:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local SignalA = script.Parent.Parent.SignalALights
local SignalB = script.Parent.Parent.SignalBLights
script.Parent.Touched:Connect(function(hit)
if hit.Name == "Trig" then
if SignalA.Red.Color == Color3.fromRGB(229, 71, 23) then
hit.Speed.Value.MaxSpeed.Value = "0"
task.wait(10)
hit.Speed.Value.MaxSpeed.Value = "20"
ReplicatedStorage.SPSBot:FireClient("20 SPS")
elseif SignalA.Red.Color == Color3.fromRGB(59, 17, 6) then
hit.Speed.Value.MaxSpeed.Value = "20"
ReplicatedStorage.SPSBot:FireClient("20 SPS")
end
end
end)
Local Script:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
ReplicatedStorage.SPSBot.OnClientEvent:Connect(function(Player, Request)
if Request == "20 SPS" then
script.Parent["20_SPS"]:TweenPosition(UDim2.new(0, 0, 0, 0), "InOut", "Quad", 1.25, true)
task.wait(5)
script.Parent["20_SPS"]:TweenPosition(UDim2.new(0, 0, -0.3, 0), "InOut", "Quad", 1.5, true)
end
end)
If these are of any help:
The server script is inside the bottom center part of the image above
Local script’s located in a folder in StarterGui