Scripting Helpers Blog

The First Person Element Of A First Person Shooter

In this post we will be talking about creating our very own filtering enabled friendly first person shooter (FPS) game. I do want to make clear though that I won't be covering how to actually make the weapon shoot in this article. All we are going to be covering is the visuals meaning having the character aim down sights, look up and down, etc. Maybe we'll talk about shooting another day.

Posted in Scripting Tips

Community Question: Solving System of Equations With CFrames

Today I recieved the following message from a user:

img1

This user is correct! There is something going on with the CFrame class that is making his calculation not work that's no fault of his own. In this blog post blog post we'll explore why that is.

Posted in Scripting Tips

How to think about Quaternions

Quaternions are always a tricky, but interesting subject. They are four dimensional in nature and provide an unparalleled usefulness when it comes to rotations. Unfortunately, they’re far from intuitive, and for most people they are avoided entirely in favour of just letting the engine do the heavy lifting. Most of my own knowledge of quaternions is technical and although I have always been able to make them do what I wanted, I never opted to use them in my day to day endeavours. That is until a few days ago when I was messing in studio and something clicked.

Posted in Scripting Tips

Reparameterization: Tips and Tricks

Awhile back I wrote an article on the wiki discussing Bezier curves. Near the end of the article I started to talk about reparameterization (arc-length parameterization) and how it could be done without calculus. Today we are going to talk about how it can be done with calculus and hopefully make it clear how you might do this with functions beyond Bezier curves.

Posted in Scripting Tips

New Ranks to Achieve on Scripting Helpers

Hello everyone,

Today, we have rolled out a new set of ranks for you all to earn for spending your time on Scripting Helpers! We've revamped the requirements for the old ranks, in addition to adding six brand new titles to the pool.

Posted in Site Updates

Screen space conversion and back again

A very common set of functions that are often used by GUI creators are:

These functions are used to either take a 3D point and convert it to 2D or vice versa (with rays). I think most people can agree that these functions are super useful, but not many people know how they actually work under the hood! As a matter of fact these functions weren't added until close to mid 2015 so what did people do before them?

Posted in Scripting Tips

Snack Break Problem #27

Snack Break problems have been a running blog series on Scripting Helpers for the past three years, originally started by Unclear. Since then, the authors and frequency of posts has changed, but the purpose is the same: Provide a quick and thought-provoking challenge for new programmers to overcome and experienced programmers to perfect. To start off our third year running of problems to solve, we have another challenge ready to go.

Snack Break 26: A Simple Game of Skill

The last snack break may have been a little too difficult or a little too technical, so this time we're stepping it back it some with a much simpler challenge.

But first, the "winners" of 25!