Im trying to get a click detector to fire on the server because that seems like the only way the click detector will work. But when i test it nothing happens
i dont get any errors or anything in the output besides the "re works"
--Script
local button = script.Parent
local click = script.Parent:WaitForChild("Click")
local RE = script.Parent:WaitForChild("ClickEvent")
click.MouseClick:Connect(function(player)
RE:FireClient(player)
if RE then
print("re works")
end
end)
--Local Script
local button = script.Parent
local click = script.Parent:WaitForChild("Click")
local Remote = script.Parent:WaitForChild("ClickEvent")
local TS = game:GetService("TweenService")
local TI = TweenInfo.new(
1,
Enum.EasingStyle.Quad,
Enum.EasingDirection.InOut,
0,
true,
0
)
local buttonprop = {
Color = Color3.fromRGB(255,255,255)
}
local Tween = TS:Create(button,TI,buttonprop)
local function buttonPressed(player)
print("Test")
end
Remote.OnClientEvent:Connect(buttonPressed)

2 comments
im getting an error in the output saying "TweenService:Create failed because Instance is null"
nvm got it fixed