✓ Accepted answer
Ok what you are doing is wrong because the gui is IN THE PLAYERS STARTER GUI.
instead of saying game.startergui
you make a RemoteEvent in the replictatedstorage
im not good at using remoteevents so im looking at the wiki a bit **(I cant memorize...)**
here
so in the script intead of saying
function onClicked()
print("Clicked!")
game.StarterGui.ChekIn.Frame::TweenPosition(UDim2.new(0.5, -343,0.5, -147)
end)
to this:
local Event = game.ReplicatedStorage.(The name of the remoteEvent)
function onClicked(player)
print("Clicked!")
Event:FireClient(player)
end)
and put a local script in the frame in Checkin.Frame
then type in the local script
local Event = game.ReplicatedStorage.(The name of the remoteEvent)
function OnClick()
Whatever happens
end
Event.OnClientEvent:connect(OnClick)
if this worked upvote
3 comments
Is there a error message?
No Error Messages
script.Parent.ClickDetector.MouseClick:Connect(function(click)