#Random script ending while tweening

1 messages · Page 1 of 1 (latest)

pale escarp
#

While running my script and trying to run this tween, it randomly stops after setting the tween goal. There is more code after and before this so dont mind if some of it doesnt make complete sense,

#
local gCUpperlids = {
    gCHeadData.RightUpperEyelid,
    gCHeadData.LeftUpperEyelid
}
local gCLowerLids = {
    gCHeadData.RightLowerEyelid,
    gCHeadData.LeftLowerEyelid
}
local tweenInfo = TweenInfo.new(
    1.5,
    Enum.EasingStyle.Bounce,
    Enum.EasingDirection.Out,
    -1
)
local tweenGoalOpen = {
    Orientation = Vector3.new(gCUpperlids.Orientation.X, gCUpperlids.Orientation.Y, 150)
}
local openTween = tweenServ:Create(gCUpperlids, tweenInfo, tweenGoalOpen)

local gCcontainer = cupcake:WaitForChild("cupcakeZone")
local gCZone = zonesPlus.new(gCcontainer)

local lerpAlpha = 0.05

gCZone.localPlayerEntered:Connect(function()
    local gCLoop
    
    openTween:Play()
#

wwhile testing, it ends the script here:

   Orientation = Vector3.new(gCUpperlids.Orientation.X, gCUpperlids.Orientation.Y, 150)
silk oar
#

No offense at all, and I’m PROBABLY wrong, but it looks like the issue is that you’re trying to access .Orientation on a table, not a single part. 😅

pale escarp
silk oar
#

ouuuuu okay

#

thisll be sick to see

#

why are my caps off oml

pale escarp
#

the only downside rn is the delay when you enter the room, and that is because if the cupcake tries to track you before the tween finishes, it screws everything up on the other axis. I would try to fix it but im co-making this game with my cousin and the past 3 days ive been working on this cupcake alone.

silk oar
#

TweenService and CFrame math don’t always play nice if they're touching the same properties fr

#

but youre doing amazing for focusing on just this cupcake for that long

pale escarp
#

no kidding

silk oar
#

is the tracking delayed until the eyelid tweens finish?

pale escarp
#

me and my cousin usually just make games for fun just cos we r too lazy and have no idea but this one will be cool

silk oar
pale escarp
silk oar
pale escarp
#

its gonna be like dead by daylight but with fnaf

pale escarp
#

but were adding some like fast-paced movement with abilities and whatnot so its definitely coming along

pale escarp
silk oar
#

talking with them feels draining

pale escarp
#

cant be bothered to fix it

silk oar
#

ohhh

#

then yeah keeping the delay would be better for now unless you find a more viable option

pale escarp
#

legit never touching this script again

#

oki well thanks for actually being interested, i added you backfunnyface

silk oar
#

if u need any help feel free to hmu

tardy knollBOT
#

studio** You are now Level 2! **studio

silk oar
#

im a decent scripter

#

totally...

pale escarp
pale escarp
bronze island
#

yo you good the eyes working looks goodThumbs

pale escarp
bronze island
#

help me with my problem nowevilcat

bronze island
#

yo @pale escarp i got a question for you

#
local TextChatServiceV2 = require(game.ServerScriptService.TextChatServiceV2)
local Types = require(game.ServerScriptService.TextChatServiceV2.Types)

local newPuplicChannel : Types.PublicChannel = TextChatServiceV2.New("PublicChannel")
newPuplicChannel.Register()

is this confusing you?

pale escarp