#I need help with this script.

1 messages · Page 1 of 1 (latest)

foggy solar
#

Script:

local function runGame()
script.Disabled = true
local Frame = script.Frame:Clone()
Frame.Parent = game.Workspace.GameInfo.Ui.TimeLabel
Frame:TweenSize(UDim2.new(0, 0, 1, 0), "In", "Linear, 6")
wait(6)
Frame:Destroy()
for i, v in pairs(game.Players:GetChildren()) do
if v.InLift.Value == true then
v.InGame.Value = true
end
end
print("Game is working!")
wait(4)
script.Disabled = false
end

game.Workspace.WaitingRegion.Touched:Connect(function()
runGame()
end)

#

The error is saying the error is coming from Line 5.

#

If you need screenshots of the game please help me.

scenic grail
#

you are using strings

#

6 is supposed to be a number

#

not a kinda half string?

#

here

#
Frame:TweenSize(UDim2.new(0, 0, 1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Linear, 6)```
foggy solar
#

put that in line 6 instead of what i have?

scenic grail
#

no replace ur tween with that new one

foggy solar
#

thank you so much

foggy solar
#

hey @scenic grail can you also help me with this script

#

it is saying that new is not a part of cframe

#

game.Players.LocalPlayer.InLift.Changed:Connect(function()
if game.Players.LocalPlayer.InLift.Value == true then
local Camera = game.Workspace.CurrentCamera
Camera.CameraType = "Scriptable"
Camera.CFrame.new(2.98088765, 8.37649345, 40.5890999, -0.999952018, 0.000368298759, -0.00979733001, -0, 0.999294281, 0.0375652127, 0.00980425067, 0.0375634097, -0.99924612)
else
local Camera = game.Workspace.CurrentCamera
Camera.CameraType = "Custom"
end
end)

scenic grail
#

yeah uh

#
Camera.CFrame = CFrame.new(2.98088765, 8.37649345, 40.5890999, -0.999952018, 0.000368298759, -0.00979733001, -0, 0.999294281, 0.0375652127, 0.00980425067, 0.0375634097, -0.99924612)
#

and cameratype is AN ENUM

#
Enum.CameraType.Custom```
#

oh

#

it does

#

bro ive been doing this like 4 years

#

HOW DID I NOT KNOW THAT

#

ok

foggy solar
#

i just did a command and it gave me those coords, but i have rounded them down and up now

foggy solar
#

ill do it tommorrow if you tell me what i need to replace

foggy solar
#

@scenic grail I have tried fixing it by replacing the line, but I don't know which line it is