#Random script ending while tweening
1 messages · Page 1 of 1 (latest)
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)
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. 😅
after some painful and probably innefficient testing, I think I got it to work in its super scuffed manner, give me a sec.
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.
even wants to make me puke and im a beginner scripter
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
no kidding
is the tracking delayed until the eyelid tweens finish?
yeah, i do actually have some confidence in this game
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
sorry i had a brain fart
yeah
it looks like a genuine passion project im stoked
its gonna be like dead by daylight but with fnaf
peakk
but were adding some like fast-paced movement with abilities and whatnot so its definitely coming along
im gladdd, feels like some of the scripters in this server are zombies, so
no offense to them, but i totally agree
talking with them feels draining
this is what happens when i get rid of the delay
cant be bothered to fix it
ohhh
then yeah keeping the delay would be better for now unless you find a more viable option
legit never touching this script again
oki well thanks for actually being interested, i added you back
if u need any help feel free to hmu
** You are now Level 2! **
lolll
hey i mean like its just us working on the game, and thats only because we dont know anybody who would want to help with the game
yo you good the eyes working looks good
tyty
i also fixed it easily, I was too tired to figure ti out. I just had to move all the variables handling the tween info into the loop so it was updating
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?
uhh yeah i dont know abt any of this unfortunately
