I made an inventory gui,it works fine on Studio but on my game it doesn't work. It keeps saying onServerEvent can only be fired on servers for example,im using MouseEnter and MouseLeave,that works on my place. But mousebutton1click does not work on my place when i want to use it,only on my studio. script example.
script.Parent.MouseButton1Click:connect(function()
frame:TweenPosition(UDim2.new(0.5,-250,0.5,-200),"Out" ,"Quint" ,0.5)
print("Test")
end
is there any solution to this? as i said,i did not use a single word saying "onServerEvent" on my script. please help me,i asked this before but didn't help.

4 comments
You obviously have some buggy code in your game that is using RemoteEvents. You need to find it and ERADICATE it :P
I only have a inventory GUI script.I havent used a single word saying remote event on it..
Do CTRL+Shift+F then search for 'RemoteEvent' or 'OnServerEvent'.
nevermind,it was a buggy code just as you said,thank you.