Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Will someone actually ANSWER my question on tweenPositioning of a GUI?

somebody please actually ANSWER my question i've asked about 8 questions now and haven't got ANYTHING back on them no feedback not a single little comment jesus is this too hard to ask??

whenever my menu frame tweens into the players view theres a button that will cause it to tween out of their view when clicked but when that is clicked nothing happens...

Here's the script that causes it to come into view

local target = workspace.CamPart
local angle = 0
local camera = workspace.CurrentCamera
local GUI = script.Parent.Parent
local GUI2 = script.Parent.Parent.Parent.Menu

	
script.Parent.MouseEnter:connect(function(Enter)
	script.Parent.Size = UDim2.new(0, 215, 0, 55)
	script.Parent.FontSize = "Size36"
end)

script.Parent.MouseLeave:connect(function(Leave)
	script.Parent.Size = UDim2.new(0, 200, 0, 50)
	script.Parent.FontSize = "Size24"
end)


script.Parent.MouseButton1Down:connect(function(click)
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target
 
while wait() do
	GUI:TweenPosition(UDim2.new(1, 0, 1, 0), "Out", "Quad", 3)
	GUI2:TweenPosition(UDim2.new(0, 0, 0, 0), "In", "Quad", 2)
	
	    camera.CoordinateFrame = CFrame.new(target.Position)  
                           * CFrame.Angles(0, angle, 0)
                           * CFrame.new(0, 0, 5)   
    angle = angle + math.rad(1)
end
end)

Here's script 2 that causes it to leave the view

	local GUI = script.Parent.Parent
	local GUI2 = script.Parent.Parent.Parent.Join
	
	
script.Parent.MouseEnter:connect(function(Enter)
	script.Parent.Size = UDim2.new(0, 215, 0, 55)
	script.Parent.FontSize = "Size36"
end)

script.Parent.MouseLeave:connect(function(Leave)
	script.Parent.Size = UDim2.new(0, 200, 0, 50)
	script.Parent.FontSize = "Size24"
end)


script.Parent.MouseButton1Down:connect(function(click)
print(game.Players.LocalPlayer.Name..' is now being Teleported..')
GUI:TweenPosition(UDim2.new(1, 0, 1, 0), "Out", "Quad", 3)
wait(1)
GUI2:TweenPosition(UDim2.new(0, 0, 0, 0), "In", "Quad", 2)
end)

1 comment

0

I don't understand why people disliked my post for my Brutal Honesty it seems this community spends more time answering non-constructive / request questions instead of just locking them and helping people with legitimate questions that need to be helped..

1 answer

✓ Accepted answer

You could also accept the fact that not everyone knows everything and rude people, like you, no one wants to help.

The problem is you put while wait() do and tweened the gui which will make it always that position. Try using this for the first script.

local target = workspace.CamPart
local angle = 0
local camera = workspace.CurrentCamera
local GUI = script.Parent.Parent
local GUI2 = script.Parent.Parent.Parent.Menu


script.Parent.MouseEnter:connect(function(Enter)
    script.Parent.Size = UDim2.new(0, 215, 0, 55)
    script.Parent.FontSize = "Size36"
end)

script.Parent.MouseLeave:connect(function(Leave)
    script.Parent.Size = UDim2.new(0, 200, 0, 50)
    script.Parent.FontSize = "Size24"
end)


script.Parent.MouseButton1Down:connect(function(click)
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target
GUI:TweenPosition(UDim2.new(1, 0, 1, 0), "Out", "Quad", 3)
GUI2:TweenPosition(UDim2.new(0, 0, 0, 0), "In", "Quad", 2)
while wait() do
	camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(0, angle, 0) * CFrame.new(0, 0, 5)   
	angle = angle + math.rad(1)
end
end)

4 comments

0

okay #1 I've put up many questions and days have gone by and nobody has answered my and its really annoying i'm the only person working on my games and this is my only way to get help is by this site but what kind of scriptinghelpers site would it be if people aren't getting the help needed so you need to stop since you don't know what you're talking about.. -_-

1

I haven't seen your posts.

0

Also even though you we're rude in the beginning thank you for answering my question with a working solution

0

No problem. Just a simple error.

This discussion is preserved as it was. New answers, comments, and votes are closed.