#What's wrong with my script

1 messages · Page 1 of 1 (latest)

hearty folioBOT
#

studio** You are now Level 1! **studio

fading gazelle
#

HEY

fringe spruce
fading gazelle
#

do you have a clickdetector in said cube?

fringe spruce
#

i dont know

fading gazelle
#

ok

#

i will help you step by step

fringe spruce
#

k

fading gazelle
#

what is the first variable?

fringe spruce
#

its naming the cube in the workspace part

fading gazelle
#

perfect

#

how about the second variable

odd cloud
#

There is so much wrong with this code, lol

fringe spruce
#

its getting the clickdetector in cube 4 and naming it clicked

fading gazelle
fringe spruce
fading gazelle
#

so shut it

#

eggy ignore

fringe spruce
#

k

fading gazelle
#

is there a clickdetector in cube 4?

odd cloud
fringe spruce
#

would it be in the properties?

fading gazelle
#

a clickdetector is not included in a part

#

it is a seperate entity so you would see it in the workspace

fringe spruce
#

oh

fading gazelle
#

yup

fringe spruce
#

i understand

fading gazelle
#

perfect

#

do you know how to add clickdetector to the cube?

fringe spruce
#

yea i just click the plus and search click detector

fading gazelle
#

perfect

odd cloud
#

You've solved 1 of 3 immediate problems

fading gazelle
#

thats why your code got stuck

odd cloud
#

In total, you've solved 1 of 7 problems

fading gazelle
#

now make sure the name of that ClickDetector matches the one in the cube

#

since it's default it already does

fringe spruce
fading gazelle
#

ok perfect

#

the way you are adding can work

#

so in the function you made

#

you did not reference "number" at all

#

wait im lying

#

you did

fringe spruce
fading gazelle
#

also what is the variable "grabbed"?

#

@fringe spruce ?

fringe spruce
#

it says 16:32:36.397 Workspace.Cube.004.Script:10: attempt to call a string value - Server - Script:10

hearty folioBOT
#

studio** You are now Level 2! **studio

odd cloud
#

@fringe spruce, do you know what a function is?

fringe spruce
fringe spruce
odd cloud
#

In a broader sense, a function is a packaged piece of dormant, configurable code. Functions are often made to create reusable code

#

Arguments & parameters are what make functions configurable. The basic syntax is as follows:

local function name(parameter)
    -- ...
end
name(--[[Argument]])
#

Parameters act as placeholder variables within the function body. Think of it like holes where information needs to be provided. That information is provided when the function is called in the form of an argument (example 2)

#
local function printMessage(message)
    print(message)
end
printMessage("Hello, world!")
#

As you can see, a function is called upon by stating its name and following it with a pair of parentheses

#
name()
#

Here, you're attempting to call the "Text" property of a TextLabel

#

That property is not a function. It's a string:

fading gazelle
#

newbie wont understand this

#

and thats fine

odd cloud
#

He's way out of his depth right now

fringe spruce
#

yea there is literally smoke coming out of my head

odd cloud
#

Good sign that you're in too deep

#

Continue to study the basics before attempting to implement game mechanics

fading gazelle
#

lol

#

@fringe spruce i got you big dawg

#

basically

#

functions are just repeatable code you can put variables in to change later

odd cloud
fading gazelle
#

you just have to practice teaching friend

odd cloud
#

Variables
Datatypes
Arithmetic operators
If statements
Relational operators
Logical operators
Boolean logic
Scope
Loops
Functions
Arguments & parameters
Higher-order functions & callbacks
Tables
String library / miscellaneous operators
Task & coroutine library
Client-Server model
Events
Algorithms and data structures

fading gazelle
#

@fringe spruce dm me this guy is trying to intimidate you

odd cloud
#

Learn these things before you start, @fringe spruce

fringe spruce
#

k

odd cloud
#

You're gonna be at this for a while, and all for no real gain

#

He still needs to study these things explicitly

ebon yew
#

Start by modifying the player’s playergui instead of the starter gui

#

Use script.Parent instead of workspace.Part when its the Part’s parent

#

And there isn’t any ClickDetector in your part

#

Conclusion: learn the basics

fringe spruce
ebon yew
#

What are you talking about

#

I am not mean ?

#

I’m helping

#

But clearly you’re missing important basics, so that’s why I recommend learning them

#

So recommending someone to learn is mean ? How sensitive

#

Additionally, I’ve never said you were not doing your best

#

You just need to learn it’s fine

fringe spruce
ebon yew
#

The documentation is perfect to learn more stuff

#

In your case, the problem is the lack of practice

#

Practice what you learn until you remember it easily

fringe spruce
#

what do you think i was trying to do

ebon yew
#

Attempting to use a ClickDetector without knowing how to use it

fringe spruce
#

like i said, i dont have a good memory

ebon yew
#

And like I said, it’s just a lack of practice

#

Practicing will help

fringe spruce
#

i have memory loss dude just stop arguing with me

ebon yew
#

It’ll help

ebon yew
#

It’s not my problem anyways

#

Good luck fixing your system by getting demotivated and taking personally helping comments

#

People are so ungrateful

#

Denying your lack of practice by justifying it with memory loss won’t make you better

fading gazelle
#

Get lost

#

Say something meaningful instead of responding

ebon yew
#

That’s what I did lmfao

fading gazelle
#

No you didn’t

ebon yew
fading gazelle
#

You’re talking to a wall

#

That’s not how you teach brother

ebon yew
#

I told him his errors, shared him a link to the doc and told what he needed to get better

fading gazelle
#

You’re not willing to sit and explain it

ebon yew
#

Because he is not willing to sit and learn and practice

fading gazelle
#

So don’t get offended when they don’t know where to start

#

Docs are confusing

ebon yew
#

So why would I waste my time trying to help if he doesn’t want to get better

fading gazelle
#

You just gotta bring that out of somebody

ebon yew
ebon yew
fading gazelle
ebon yew
fading gazelle
ebon yew
#

peak of "MT. Stupid"

fading gazelle
#

See

#

You claim to be so good at teaching but you’re already stooping to insults

#

Just self reflect man

fading gazelle
#

You did

#

It’s okay man

ebon yew
#

It’s not easy to teach, especially when the person you teach has no interest in investing time to get better

ebon yew
#

Than me or Ziffix

fading gazelle
fading gazelle
ebon yew
#

Nuh uh

fading gazelle
#

While you guys are sitting and degrading him

ebon yew
#

Just expecting them to take the time to practice

fading gazelle
#

We moved to dms and he fixed it and I didn’t give him any answers

fading gazelle
fading gazelle
#

They’re coming here for help not to get told to practice lol

ebon yew
fading gazelle
#

insult once again

ebon yew
fading gazelle
#

lol

ebon yew
#

To fix the script and say goodbye ?

fading gazelle
#

I don’t propose anything I already helped this fella and you didn’t

#

Good day

ebon yew
#

Lmfao

fading gazelle
#

Not an insult

#

But I see what you mean

ebon yew
#

Still disrespectful

fading gazelle
#

You’re right

#

And I apologize that wasn’t right

fading gazelle
ebon yew
#

And why isn’t the post marked as solved ?

fading gazelle
#

Refer to my previous message