how to fix that error : 16:24:10.274 Players.SerBogdan03.PlayerGui.Menu.MainFrame.Popups.TeamSwitch.Teams.Citizen.Team1.LocalScript:19: attempt to call a RBXScriptSignal value - Client - LocalScript:19
error script:
-- Gui
local StarterGui = game:GetService("StarterGui")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player.PlayerGui
local Menu = PlayerGui:WaitForChild("Menu")
local MainFrame = Menu:WaitForChild("MainFrame")
local Popups = MainFrame:WaitForChild("Popups")
-- Camera
local transition = MainFrame:WaitForChild("Transition")
local Camera = workspace.CurrentCamera
-- frame
local frame = script.Parent.Parent.Team1
-- Gui
script.Parent.Parent.Team1.MouseButton1Click(function()
Popups.TeamSwitch.Visible = false
transition.Position = UDim2.new(1,0,0,0)
transition:TweenPosition(UDim2.new(0,0,0,0), "Out","Linear",0.25,true)
wait(0.25)
Camera.CFrame = workspace.Menu.Cameras.LoadingFace.CFrame
transition:TweenPosition(UDim2.new(-1,0,0,0), "Out","Linear",0.25,true)
MainFrame.Loading.Visible = true
MainFrame.Loading.Loading.LoadingBar.LocalScript.Disabled = false
wait(7.50)
end)
Bikereh
(green_lady)
April 1, 2023, 1:29pm
#2
-- Gui
local StarterGui = game:GetService("StarterGui")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player.PlayerGui
local Menu = PlayerGui:WaitForChild("Menu")
local MainFrame = Menu:WaitForChild("MainFrame")
local Popups = MainFrame:WaitForChild("Popups")
-- Camera
local transition = MainFrame:WaitForChild("Transition")
local Camera = workspace.CurrentCamera
-- frame
local frame = script.Parent.Parent.Team1
-- Gui
script.Parent.Parent.Team1.MouseButton1Click(function()
Popups.TeamSwitch.Visible = false
transition.Position = UDim2.new(1,0,0,0)
transition:TweenPosition(UDim2.new(0,0,0,0), TweenInfo.new(.25, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 1, true))
wait(0.25)
Camera.CFrame = workspace.Menu.Cameras.LoadingFace.CFrame
transition:TweenPosition(UDim2.new(-1,0,0,0), TweenInfo.new(.25, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 1, true))
MainFrame.Loading.Visible = true
MainFrame.Loading.Loading.LoadingBar.LocalScript.Disabled = false
wait(7.50)
end)
try this
green_lady:
-- Gui
local StarterGui = game:GetService("StarterGui")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player.PlayerGui
local Menu = PlayerGui:WaitForChild("Menu")
local MainFrame = Menu:WaitForChild("MainFrame")
local Popups = MainFrame:WaitForChild("Popups")
-- Camera
local transition = MainFrame:WaitForChild("Transition")
local Camera = workspace.CurrentCamera
-- frame
local frame = script.Parent.Parent.Team1
-- Gui
script.Parent.Parent.Team1.MouseButton1Click(function()
Popups.TeamSwitch.Visible = false
transition.Position = UDim2.new(1,0,0,0)
transition:TweenPosition(UDim2.new(0,0,0,0), TweenInfo.new(.25, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 1, true))
wait(0.25)
Camera.CFrame = workspace.Menu.Cameras.LoadingFace.CFrame
transition:TweenPosition(UDim2.new(-1,0,0,0), TweenInfo.new(.25, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 1, true))
MainFrame.Loading.Visible = true
MainFrame.Loading.Loading.LoadingBar.LocalScript.Disabled = false
wait(7.50)
end)
Not helping, idk why this remaking error.
16:33:51.065 Players.SerBogdan03.PlayerGui.Menu.MainFrame.Popups.TeamSwitch.Teams.Citizen.Team1.LocalScript:19: attempt to call a RBXScriptSignal value - Client - LocalScript:19
Bikereh
(green_lady)
April 1, 2023, 1:35pm
#4
-- Gui
local StarterGui = game:GetService("StarterGui")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player.PlayerGui
local Menu = PlayerGui:WaitForChild("Menu")
local MainFrame = Menu:WaitForChild("MainFrame")
local Popups = MainFrame:WaitForChild("Popups")
-- Camera
local transition = MainFrame:WaitForChild("Transition")
local Camera = workspace.CurrentCamera
-- frame
local frame = script.Parent.Parent.Team1
-- Gui
script.Parent.Parent.Team1.MouseButton1Click:Connect(function()
Popups.TeamSwitch.Visible = false
transition.Position = UDim2.new(1,0,0,0)
transition:TweenPosition(UDim2.new(0,0,0,0), TweenInfo.new(.25, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 1, true))
wait(0.25)
Camera.CFrame = workspace.Menu.Cameras.LoadingFace.CFrame
transition:TweenPosition(UDim2.new(-1,0,0,0), TweenInfo.new(.25, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 1, true))
MainFrame.Loading.Visible = true
MainFrame.Loading.Loading.LoadingBar.LocalScript.Disabled = false
wait(7.50)
end)
u have to connect the fucnmiton like this
1 Like
We make one more error
16:44:47.026 Unable to cast TweenInfo to token - Client - LocalScript:22
-- Gui
local StarterGui = game:GetService("StarterGui")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player.PlayerGui
local Menu = PlayerGui:WaitForChild("Menu")
local MainFrame = Menu:WaitForChild("MainFrame")
local Popups = MainFrame:WaitForChild("Popups")
-- Camera
local transition = MainFrame:WaitForChild("Transition")
local Camera = workspace.CurrentCamera
-- frame
local frame = script.Parent.Parent.Team3
-- Gui
script.Parent.Parent.Team3.MouseButton1Click:Connect(function()
Popups.TeamSwitch.Visible = false
transition.Position = UDim2.new(1,0,0,0)
transition:TweenPosition(UDim2.new(0,0,0,0), TweenInfo.new(.25, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 1, true))
wait(0.25)
Camera.CFrame = workspace.Menu.Cameras.LoadingFace.CFrame
transition:TweenPosition(UDim2.new(-1,0,0,0), TweenInfo.new(.25, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 1, true))
MainFrame.Loading.Visible = true
MainFrame.Loading.Loading.LoadingBar.LocalScript.Disabled = false
wait(7.50)
end)
Bikereh
(green_lady)
April 1, 2023, 1:46pm
#6
-- Gui
local StarterGui = game:GetService("StarterGui")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player.PlayerGui
local Menu = PlayerGui:WaitForChild("Menu")
local MainFrame = Menu:WaitForChild("MainFrame")
local Popups = MainFrame:WaitForChild("Popups")
-- Camera
local transition = MainFrame:WaitForChild("Transition")
local Camera = workspace.CurrentCamera
-- frame
local frame = script.Parent.Parent.Team3
-- Gui
script.Parent.Parent.Team3.MouseButton1Click:Connect(function()
Popups.TeamSwitch.Visible = false
transition.Position = UDim2.new(1,0,0,0)
transition:TweenPosition(UDim2.new(0,0,0,0), "Out","Linear",0.25,true)
wait(0.25)
Camera.CFrame = workspace.Menu.Cameras.LoadingFace.CFrame
transition:TweenPosition(UDim2.new(-1,0,0,0), "Out","Linear",0.25,true)
MainFrame.Loading.Visible = true
MainFrame.Loading.Loading.LoadingBar.LocalScript.Disabled = false
wait(7.50)
end)
does this work?
green_lady:
-- Gui
local StarterGui = game:GetService("StarterGui")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player.PlayerGui
local Menu = PlayerGui:WaitForChild("Menu")
local MainFrame = Menu:WaitForChild("MainFrame")
local Popups = MainFrame:WaitForChild("Popups")
-- Camera
local transition = MainFrame:WaitForChild("Transition")
local Camera = workspace.CurrentCamera
-- frame
local frame = script.Parent.Parent.Team3
-- Gui
script.Parent.Parent.Team3.MouseButton1Click:Connect(function()
Popups.TeamSwitch.Visible = false
transition.Position = UDim2.new(1,0,0,0)
transition:TweenPosition(UDim2.new(0,0,0,0), "Out","Linear",0.25,true)
wait(0.25)
Camera.CFrame = workspace.Menu.Cameras.LoadingFace.CFrame
transition:TweenPosition(UDim2.new(-1,0,0,0), "Out","Linear",0.25,true)
MainFrame.Loading.Visible = true
MainFrame.Loading.Loading.LoadingBar.LocalScript.Disabled = false
wait(7.50)
end)
Yea, this is working. with no errors
1 Like
system
(system)
Closed
April 15, 2023, 1:48pm
#8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.