#i decided to make scripts with all i know

36 messages · Page 1 of 1 (latest)

cyan night
#

im a beginner scripter so idk why this script doesnt work

`local waypoints = workspace.Waypoint
local waypoints = 0
local rig = script.Parent

for i do
waypoints = waypoints + 1
rig:MoveTo(waypoints)
end`

cyan night
#

make the rig move to waypoints

lunar merlin
#

Oh you’re starting off with something difficult, alright

lunar merlin
# cyan night make the rig move to waypoints

So a few issues you’ll notice with this script is: 1 a few syntax errors (e.g. half of the for loop is missing)
The fact it will switch between all waypoints within a few ms and then move to the last one
that “all waypoints” is only 1 instance right now

#

Are you positive you don’t wish to start off with something easier than this?

cyan night
#

depends on my options

#

what can i make thats easier than this

#

(BESIDES SIMULATORS AND OBBIES I HATE THEM)

lunar merlin
#

Trust me, you’ll very quickly run into a lot of issues you didn’t account for and even a simple clicker sim may already take you multiple attempts

cyan night
#

what should i do then

lunar merlin
#

Make small parts of gamws

cyan night
#

like

lunar merlin
#

An easy place to start is e.g. making some ui work (you don’t need actual good ui, just make some square buttons that you can script it). Maybe an options menu, some other things that move, etc.

cyan night
#

hold on lemme cook a sandwich with no cheese no ham ust the bread

lunar merlin
#

A different other easy starting place can be a sprint script (like one where you need to hold shift to walk faster(

cyan night
#

uhhhh

#

i might have forgot to put a wait() at the end of a loop

#

it crashed lol

lunar merlin
#

You forgot half of the loop, the wait() won’t do anything for you

#

It’s a miracle it even tried to loop

cyan night
#

i was doing a script that when a gui button is clicked it will print a text

#

now i have to start over again

#

what does inputbegin include

lunar merlin
cyan night
#

i typed

#

local button = script.Parent

if button.InputBegan then
print("E")
end

#

then it crashed

#

i forgot to remove the broken one

#

thats why

lunar merlin
#

MouseButton1Click is an event, so that’s why you can connect it to a function

#

Now every time you press the button it prints e

cyan night
#

how do i make functions global

lunar merlin