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)
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)
Locked by TheeDeathCaster and Shawnyg
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?