Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does this TweeningPosition script open the frame up to every player?

Asked by 6 years ago

Please Help!

I am trying to make my game a well scripted game, but the script below is when you click a button the frame comes bouncing down and when you click the X button it bounces right back to the original position. Why when my friend opens the button it appears for him and myself. I want the frame to only open with tweenposition for the player clicking it... not for the whole server! Please Help!

Frame Current Position when it's invisible = {0.3, 0},{-1, 0}

Open Script:

script.Parent.MouseButton1Click:Connect(function(onClick)
    script.Parent:TweenPosition(UDim2.new(-1, 0, 0.5, 0), "Out", "Bounce", 2, true)
    script.Parent.Parent.Frame:TweenPosition(UDim2.new(0.3, 0, 0.3, 0), "Out", "Bounce", 2, true)
end)

Close Script:

script.Parent.MouseButton1Click:Connect(function(onClick)
    script.Parent.Parent.Parent.Open:TweenPosition(UDim2.new(0, 0, 0.5, 0), "Out", "Bounce", 2, true)
    script.Parent.Parent:TweenPosition(UDim2.new(0.3, 0, -1, 0), "Out", "Bounce", 2, true)
end)

Remember, I do not want to make the script Visible and Invisible I want it to go high up where you cannot see it and down where you can. I am trying to make it where it opens for the player who clicks it for their screen ONLY!

0
use filtering enabled or experimental mode off, since it only works for the client, and not for the other clients and the server[you could use remote events to fire events to the server,every client, or just a certain client] saSlol2436 716 — 6y

Answer this question