Alright, so I have one Local Script, and one script. A Script indentifies that a clickdetector is being used and sends out a remote event to the local script to bring a GUI up. I think its not sending it, any help?
Codes are down below.
Script:
local clickdetector = game.Workspace.Car.ClickDetector
clickdetector.MouseClick:Connect(function()
game.Workspace.GuiClicker:FireServer()
end)
Local Script:
local debounce = false
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local GuiClicker = game.Workspace.GuiClicker
local playerGui = player:WaitForChild("PlayerGui")
game.Workspace.GuiClicker.OnServerEvent:Connect(function()
if debounce == false then
playerGui.InfoPanel.ScrollingFrame.Visible = true
playerGui.InfoPanel.ScrollingFrame:TweenPosition(UDim2.new(0.5, -250,0.5, -200, 'Out', 'Bounce', 1))
debounce = true
else
playerGui.InfoPanel.ScrollingFrame:TweenPosition(UDim2.new(-0.5, -250,0.5, -200, 'Out', 'Bounce', 1))
debounce = false
end
end)
Thanks for any help.
Best regards, Car00071.

2 comments
You cannot use OnServerEvent in a local script, try using OnClientEvent instead.
Also Server can't access PlayerGui