#i decided to make scripts with all i know
36 messages · Page 1 of 1 (latest)
What did you try to do?
make the rig move to waypoints
Oh you’re starting off with something difficult, alright
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?
depends on my options
what can i make thats easier than this
(BESIDES SIMULATORS AND OBBIES I HATE THEM)
I would not start off with a full game
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
what should i do then
Make small parts of gamws
like
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.
hold on lemme cook a sandwich with no cheese no ham ust the bread
A different other easy starting place can be a sprint script (like one where you need to hold shift to walk faster(
You forgot half of the loop, the wait() won’t do anything for you
It’s a miracle it even tried to loop
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
Use a Text/Image button. They have an event called MouseButton1Click
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
Button.MouseButton1Click:Connect(function())
print(“e”)
end
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
how do i make functions global
??