#TweenService won't work

1 messages · Page 1 of 1 (latest)

oak hazel
#

Here's script for reference:

character = player.Character
local cam = workspace.CurrentCamera
cam.CameraType = Enum.CameraType.Scriptable

local gui = script.Parent.Parent
gui.Enabled = true

local black = script.Parent.Parent.Fade

local twinser = game:FindService("TweenService")
local twinfo = TweenInfo.new(1, Enum.EasingStyle.Exponential,Enum.EasingDirection.InOut,0,false,0)
local twinfo2 = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In,0,false,0)

local maincam = workspace:WaitForChild("MainCam")
local votecam = workspace:WaitForChild("VoteCam")

function GoVote()
    twinser:Create(cam,twinfo,{CFrame = votecam.CFrame})
    print("hi")
end

function GoBack()
    twinser:Create(cam,twinfo,{CFrame = maincam.CFrame})
end

function Black(n)
    if n then
        twinser:Create(black,twinfo2,{BackgroundTransparency = 0})
    else
        twinser:Create(black,twinfo2,{BackgroundTransparency = 1})
    end
end

local match = workspace:WaitForChild("Match").Value

cam.CFrame = maincam.CFrame

script.Parent.MouseButton1Click:Connect(function()
    if match then
        --wip
    else
        GoVote()
    end
end)```
sly river
#

is this in a gui?

oak hazel
sly river
#

I think StarterGui cannot edit workspace thats your problem

sudden fiber
#

You don’t actually play the tweens

oak hazel
#

what

#

OH MY GOD

#

I'M SO DUMB

sudden fiber
#

You gotta do :Play() to actually play it

oak hazel
#

😭

sudden fiber
#

😭

oak hazel
#

IK I GUESS I FORGOT???

fluid radish
#

function GoVote()
local tween = twinser:Create(cam, twinfo, {CFrame = votecam.CFrame})
tween:Play()
print("hi")
end

function GoBack()
local tween = twinser:Create(cam, twinfo, {CFrame = maincam.CFrame})
tween:Play()
end

function Black(n)
local targetTransparency = n and 0 or 1
local tween = twinser:Create(black, twinfo2, {BackgroundTransparency = targetTransparency})
tween:Play()
end

#

Here is the fixed version @oak hazel

oak hazel
#

tyy

fallen blaze
#

have you tried asking chatgpt

oak hazel
#

fuck ai

#

;-;

fallen blaze
#

ask ai what he thinks abt that opinion of yours

oak hazel
#

stupid

fallen blaze
#

have you asked ai to make sure im stupid

oak hazel
fallen blaze
#

dont bring ppls moms into this

oak hazel
#

💜

fallen blaze
#

you talking abt ppls moms cuz of ai 💔

oak hazel
fallen blaze
oak hazel
fallen blaze
oak hazel
oak hazel
fallen blaze
#

saying she doesnt love me flesh or ghost

oak hazel
#

cuz making fun of the earth dying to ai is finny

#

funny

#

🤦🏻‍♀️

fallen blaze
#

yeah ima js report bro

oak hazel
#

yeah you too

#

ijbol

long plaza
#

no need at all