Tutorial page
This article is an easy tutorial.
All tutorials · Scripting tutorials
Scripting
This page is a tutorial about Scripting.
This page is incomplete.
Please continue to add information to this page until it is complete.
Have you ever wanted to make a speed coil? Well, here is a quick tutorial how to!
Steps
Step 1
First, let's create our tool. Insert a tool in the workspace. Don't move it into StarterGui yet.
Step 2
Now, make a part inside the tool called "Handle". Then parent your speed coil model into the Handle part. Make sure all your parts are unanchored and welded together!
Step 3
Position your handle to where you want your player to hold it in. Once you find a good position, make it invisible.
Step 4
Now let's make the script! Insert a script inside the tool. Name it "SpeedCoil" or something like that.
Step 5
First, we need to write our variables. Write the following code into your script:
local speedCoilSpeed = 60
local defaultSpeed = 15
local tool = script.Parent
Step 6
Now, let's make an event that is called every time we equip our tool. Write the following code:
| Scripting (44) |
| ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| GUI (8) |
| ||||||||||
| Building (3) |
| ||||||||||
| Platform (8) |
| ||||||||||