I am making another game called 'Code Hunters 3' and I really need to get to work on it, but I tried to fix this for about a month and no progress. I tried several scripts with UDim2.new, but the screen opens for every single player on the server.
How I want it: #1. The player clicks the button #2. The screen bounces down THAT specific players screen #3. The player closes it and it disappears
What's Happening: #1. A player opens the screen up #2. The screen bounces down for everybody's screen instead of the specific player.
I tried using script.Parent.Parent:TweenPosition(UDim2.new(0, 0.5, 0, 0.2), "In", "Bounce", 2, true)
I also tried using game.Players.LocalPlayer.PlayerGui.Screen.Frame:TweenPosition(0, 0.5, 0, 0.2), "In", "Bounce", 2, true)
Of course I use to open the frame:
script.Parent.MouseButton1Click:Connect(function(onClick)
end)
Full script:
script.Parent.MouseButton1Click:Connect(function(onClick)
game.Players.LocalPlayer.PlayerGui.Collections.Open:TweenPosition(UDim2.new(0, 0, 0.4, 0), "Out", "Bounce", 2, true)
game.Players.LocalPlayer.PlayerGui.Collections.Hint:TweenPosition(UDim2.new(-1, 0, 0.4, 0), "Out", "Bounce", 2, false) --Hint Restarts
game.Players.LocalPlayer.PlayerGui.Collections.Frame:TweenSize(UDim2.new(0, 0, 0, 0), "Out", "Bounce", 2, false) --Frame Shrinking...
wait(1.9)
game.Players.LocalPlayer.PlayerGui.Collections.Frame.BorderSizePixel = 0
wait(2)
game.Players.LocalPlayer.PlayerGui.Collections.Frame:TweenPosition(UDim2.new(0.3, 0, -1, 0), "Out", "Bounce", 2, false) --Frame Returning to its
wait(2)
game.Players.LocalPlayer.PlayerGui.Collections.Frame:TweenSize(UDim2.new(0, 0, 0, 0), "Out", "Bounce", 2, false)
end)

3 comments
When I make a script and I seem that I cannot progress, I just save the script and rewrite it, and if I break the script even more, I just use the old script.
Also, why the onClick argument name?
IS THIS A LOCAL SCRIPT!?!?