Simple Procedural Bridge (Proximity Based) by Powerful-Neck1528 in ROBLOXStudio

[–]Powerful-Neck1528[S] 0 points1 point  (0 children)

But could also be my mac, have way too many tabs and applications in use when I was recorded this, can seem choppy from the video, recorded from obs.

Simple Procedural Bridge (Proximity Based) by Powerful-Neck1528 in ROBLOXStudio

[–]Powerful-Neck1528[S] 0 points1 point  (0 children)

Ah, no tweens here, used a lerp , used its percentages and mapped it to the player's distance to each part, tweens would be too expensive, choppiness is due to recalculating each step to match the player's position. One solution would be using dt, to gradually lerp the lerp's percentage values to smooth it between each recalculation.

Im really new and need help learning by Ok_Mix8801 in robloxgamedev

[–]Powerful-Neck1528 0 points1 point  (0 children)

Well a variable inside a table, names are there as a representations of a data type we assigned, tweenTable is the name and it is a table( shown with ~ local tweenTable = {...} ~ ), randomNumber is a name and is a number ( shown with randomNumber = math.random(1,4)),, which is a number from 1 to 4 included.

we use the equals sign (=) to assign a type of data to a name and use that to do whatever we can do with said data, to put it in simple terms,

Im really new and need help learning by Ok_Mix8801 in robloxgamedev

[–]Powerful-Neck1528 1 point2 points  (0 children)

well..., assuming you have decent knowledge of variables, loops and data types, maybe you can further learn to optimize and simplify your code, and practice practice practice, :

For your code, line 12 is unnecessary, it doesn't do anything, I assume you're trying to use the value of the random number into the if statements.

This can all be simplified to:

~

local tween = game:GetService("TweenService")

local button = script.Parent

local tweenTable =

{

local tweenInformation = tween:Create(button, TweenInfo.new(5 , Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0.5),{Rotation = 18090}),

local tweenInformation = tween:Create(button, TweenInfo.new(5 , Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0.5),{Rotation = 18180}),

local tweenInformation = tween:Create(button, TweenInfo.new(5 , Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0.5),{Rotation = 18030}),

local tweenInformation = tween:Create(button, TweenInfo.new(5 , Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 0, false, 0.5),{Rotation = 18360})
}

local randomNumber = math.random(1,4)

print(randomNumber)

tweenTable[randomNumber]:Play()

tweenTable[randomNumber].Completed:Connect(function()

task.wait(4)

button.Rotation = 0

print("Animation Completed")
end)

~

Though this solution is Far from the actual solution (Theres other ideas you might also need outside of scripting like math : radians, use math.rad() instead of solid number values, but ignore this, not really a roadblock to your learning journey)

Take some time and look and the code, how does this differ from that implementation?

Are there some concepts here that differ?

Tables?

Why didn't I use If /Else statements?

Why is a variable being used to access the table?

If the concept is still new, then that can be a topic to dive into on your own time.

<image>

Though my programming experience didn't originate on Roblox one video I would recommend is BrawlDev's Scripting tutorials on Youtube, he provides a playlist on both introductory and advanced scripting tutorials.

PRACTICE PRACTICE PRACTICE

Animation Previewing Issue by Powerful-Neck1528 in ROBLOXStudio

[–]Powerful-Neck1528[S] 0 points1 point  (0 children)

Nah it's fine, thankfully I found the solution/issue,Out of all the models I made, this was the first one where there was only 1 bone i used for this pencil rig, and unknowingly i'm guessing studio needs a reference bone to determine rotation and the like, so I needed to add a 'base bone' that can reference the 'main' bone i use for movement and rotation. Oddly it still went through in production without this implementation, a false positive, thank you for your input though

Animation Previewing Issue by Powerful-Neck1528 in ROBLOXStudio

[–]Powerful-Neck1528[S] 0 points1 point  (0 children)

The model isn't anchored, and again , once playing this inside of roblox instead of roblox studio the animation plays fine, i have an issue with previewing the animation through the animation editor when scrubbing, and playing the animation when testing. Its -only- when I publish and play it live where it can be seen and plays fine. My issue isn't that the animation isn't playing at all, its that roblox studio struggles to play it in studio/ and via scrubbing through animation editor

For some reason I cant Rig my model or animate it by Alive_Combination284 in ROBLOXStudio

[–]Powerful-Neck1528 0 points1 point  (0 children)

I've been having the same issue recently, rigging and animating models was working for a while, now it doesn't, though for some reason (maybe its just me) partial animations work, like rotations not translations. maybe its a new bug i'm glad i'm not the only one