#how to make a laser beam

1 messages Ā· Page 1 of 1 (latest)

clear badger
#

my other post closed for some reason

dire oriole
#

probably was too inactive.

#

i saw it. you were linked a very helpful tutorial and then did nothing

clear badger
#

hi

#

ok am back

#

I just need to add a cooldown to the laser

#

and then am done

dire oriole
#

OK. thanks for the update šŸ‘

clear badger
#

wait

#

can someone help me

#

idk how to make a cooldown

#

also I used that tutorial

#

so

#

pls help me

noble mango
#

set {_x} to difference between {item.cooldown::%player's uuid%} and now

clear badger
#

what

#

huh

#

idk

noble mango
#

if only there was a way to find out what that was

clear badger
#

there is no link

ruby rapids
#

1 google search is too difficult when you can just get someone else to search it up for u

clear badger
#

what is skirptsnippets?

#

just tell me how to skirpt a cooldown into my laser

#

here is the code

#

on right click with blaze rod:
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8

clear badger
#

oh ok

dire oriole
clear badger
#

ok

clear badger
#

idk

dire oriole
#

Udk what?

#

If you expect help we need to know what youre struggling with

clear badger
#

?

#

what that mean

#

am struggling with whatever link u guys aee trying to get me to

#

idk how to get to link

#

I just want a cooldown : (

#

wdym "telepathy"?

noble mango
#

reading minds

clear badger
#

oh ok

#

idk how to read minds

#

how hell am I suppose to read ur mines

dire oriole
#

No, we meant that instead of you explaining we should read your mind

#

Sarcasm, of course

clear badger
#

oh

#

ok

dire oriole
clear badger
#

ok

#

how I do that?

#

am assuming I have to remove the thing that says "0.1 times:"

dire oriole
#

No, you still want it to loop

clear badger
#

oh

dire oriole
#

You just want to take the line where you damage out of the loop

clear badger
#

oh ok

#

let me try taht\

#

that*

#

afk eating dinner

clear badger
#

AM BACK"

#

lemme do that thing

#

so u mean remove that middle part right there?

dire oriole
#

?

#

the middle line? no

#

thats what "moves" the lazer forwards

#

you want to (not delete) the bottom line, but take it out of the section where you are looping

knotty rivet
#

@clear badger if you put anything in the loop its going to loop a ton of times. Oh btw if you just want the beam to hit anywhere and just not on an entity replace target entity with target block

#

it worked for me

clear badger
#

i dont see any loop bruh

#

oh I see loop now

#

but idk what u mean

clear badger
#

I just need to add a cooldown

#

then onemore thing

#

idk how to add cooldown tho

dire oriole
#

you can set a variable/metadata to now when someone uses it, and then check the time since that variable/metadata when they try to use it again

clear badger
#

how i do that

noble mango
#

you set a variable to now

#

then check the difference between variable and now

clear badger
#

this to complex for me bruh

#

am better oof skirpting in roblox studio

noble mango
#

🤨

dire oriole
clear badger
#

yes

noble mango
#

what would those things be

clear badger
#

umm

#

trying to understand what yall talking about'

#

trying to go to links

noble mango
#

?

wary orbit
#

You still haven’t got this figured out yet? Lol

dire oriole
#

i meant, have you tried putting any ideas into code?

#

if you dont write code youll never get anywhere

clear badger
#

idk tho

fast ocean
#

bro on the struggle bus

prime kite
#

😬

dire oriole
wary orbit
#

2

wary orbit
# clear badger idk tho
    if player's target entity is set:
        if item cooldown of event-item for player = 0 seconds: 
            set item cooldown of event-item for player to 5 seconds
            set {_v} to vector from player to target entity
            set vector length of {_v} to 0.8
            set {_loc} to location of player
            loop (distance between {_loc} and target entity) / 0.1 times:
                draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
                set {_loc} to {_loc} ~ {_v}
                damage target entity by 8  ```
noble mango
#

smh bro giving him the code for free

#

give him a loop 10k times draw 10 flame

wary orbit
#

It’s a cool down, not the best cooldown but a pretty easy one to understand

dire oriole
#

Honestly i dont think he has sknee

wary orbit
#

never heard of that

dire oriole
#

?

#

oh, skbee. typo

knotty rivet
# wary orbit ```on right click with blaze rod: if player's target entity is set: ...
on right click with blaze rod:
    if player's target entity is set:
        if item cooldown of event-item for player = 0 seconds: 
            set item cooldown of event-item for player to 5 seconds
            set {_v} to vector from player to target entity
            set vector length of {_v} to 0.8
            set {_loc} to location of player
            loop (distance between {_loc} and target entity) / 1000 times:
                draw 100 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
                set {_loc} to {_loc} ~ {_v}
                damage target entity by 8  ``` Real code @clear badger
#

the last man didnt do it right

clear badger
#

am back

#

i have skbee

wary orbit
#

lmk how it goes @clear badger

clear badger
#

ok

wary orbit
#

Its no an ideal cooldown, but it is A cooldown

clear badger
#

ok

#

umm

clear badger
clear badger
#

W

#

ur skirpt works

#

yay

#

ty

#

i did try it

#

it works

#

yayayyayayayya

#

ok

#

one more thing

#

I want it to check if blaze rod has enchantment "luck of the sea 100" if it doesnt laser wont work that way the laser doesnt just on any blaze rod but a specifc one that I gave a unobtainable enchantment to

wary orbit
#

You’d just add a check there after line 1

If event-item is enchanted with x:

clear badger
#

ok

#

what is x

#

am I suppose to put enchantment there

wary orbit
#

That makes the most sense yes

clear badger
#

ok

#

do I put the name

#

or the level

#

am assuming name but then where do I put the level

#

on right click with blaze rod:
If event-item is enchanted with luck of the sea:
if player's target entity is set:
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 2 seconds
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8

wary orbit
#

Search the discord for ā€œis enchanted withā€ and see what kind of syntax you can come up with

clear badger
#

ok

wary orbit
#

Yes try it

clear badger
#

where i search that

wary orbit
#

Since you added a condition, everything else underneath needs tabbed 1

clear badger
#

uh

#

so like

#

adding more spaces

wary orbit
#

Basic sk stuff

clear badger
#

ok

wary orbit
#

I’m on phone now so I can’t see what you’re doing if u post anything btw

clear badger
#

oh ok

#

on right click with blaze rod:
If event-item is enchanted with luck of the sea:
if player's target entity is set:
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 2 seconds
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8

wary orbit
#

As far as code goes

clear badger
#

like this

#

oh ok

wary orbit
#

If a line ends in a :

The next line is tabbed 1 space

clear badger
#

i tabbed everything with a space

#

eveyr line

noble mango
clear badger
#

bro

#

i keep gettung erros about spaces now

#

errors

#

do i add space there

#

or what

#

i counfused

#

Error on
Line 2
Goto Line
Can't compare an item stack with 'enchanted with luck of sea'
If event-item is enchanted with luck of sea:
Error on
Line 4
Goto Line
indentation error: expected 6 spaces, but found 8 spaces
if item cooldown of event-item for player = 0 seconds:
Error on
Line 5
Goto Line
indentation error: expected 6 spaces, but found 12 spaces
set item cooldown of event-item for player to 2 seconds
Error on
Line 6
Goto Line
indentation error: expected 6 spaces, but found 12 spaces
set {_v} to vector from player to target entity
Error on
Line 7
Goto Line
indentation error: expected 6 spaces, but found 12 spaces
set vector length of {_v} to 0.8
Error on
Line 8
Goto Line
indentation error: expected 6 spaces, but found 12 spaces
set {_loc} to location of player
Error on
Line 9
Goto Line
indentation error: expected 6 spaces, but found 12 spaces
loop (distance between {_loc} and target entity) / 0.1 times:
Error on
Line 10
Goto Line
indentation error: expected 6 spaces, but found 16 spaces
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
Error on
Line 11
Goto Line
indentation error: expected 6 spaces, but found 16 spaces
set {_loc} to {_loc} ~ {_v}
Error on
Line 12
Goto Line
indentation error: expected 6 spaces, but found 16 spaces
damage target entity by 8

#

i counfused

wary orbit
#

And should be done

clear badger
#

ummmmm

#

huh

#

wdym indent

wary orbit
#

Google it

clear badger
#

bruh ok

#

so start another line?

wary orbit
#

Man please

#

Why are u like this

#

Indent means just space it

clear badger
#

oh ok

regal onyx
#

i lost all my braincells reading through this thread

clear badger
#

bruh

#

lemme test now

#

i hope it works

#

it doesn't work any more

#

on right click with blaze rod:
If event-item is enchanted with luck of the sea:
if player's target entity is set:
if item cooldown of event-item for player = 0 seconds:
set item cooldown of event-item for player to 2 seconds
set {_v} to vector from player to target entity
set vector length of {_v} to 0.8
set {_loc} to location of player
loop (distance between {_loc} and target entity) / 0.1 times:
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
set {_loc} to {_loc} ~ {_v}
damage target entity by 8

#

it doesnt work at all anymore

#

Warning on
Line 2
Goto Line
Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section.
if player's target entity is set:
Error on
Line 3
Goto Line
Can't understand this condition: 'item cooldown of event-item for player = 0 seconds'
if item cooldown of event-item for player = 0 seconds:
Error on
Line 4
Goto Line
indentation error: expected 16 spaces, but found 12 spaces
set item cooldown of event-item for player to 2 seconds
Error on
Line 5
Goto Line
indentation error: expected 16 spaces, but found 12 spaces
set {_v} to vector from player to target entity
Error on
Line 6
Goto Line
indentation error: expected 16 spaces, but found 12 spaces
set vector length of {_v} to 0.8
Error on
Line 7
Goto Line
indentation error: expected 16 spaces, but found 12 spaces
set {_loc} to location of player
Error on
Line 8
Goto Line
indentation error: expected 16 spaces, but found 12 spaces
loop (distance between {_loc} and target entity) / 0.1 times:
Error on
Line 9
Goto Line
indentation error: expected 16 spaces, but found 12 spaces
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
Error on
Line 10
Goto Line
indentation error: expected 16 spaces, but found 13 spaces
set {_loc} to {_loc} ~ {_v}
Error on
Line 11
Goto Line
indentation error: expected 16 spaces, but found 12 spaces
damage target entity by 8

noble mango
#

because there is an indentation error, and an empty configuration section

clear badger
#

idk how to fix

#

i have tryed like 10 times

meager wyvern
#

Do you have proper indentation?

clear badger
#

idk

#

indentation confusing

#

u dont have to do that in roblox studio'

meager wyvern
#

You click tab to indent

#

Also what text editor are you using?

clear badger
#

umm'

#

idk

meager wyvern
#

Like where do you type the code

clear badger
#

parsper

noble mango
clear badger
#

but the guy that made the code used spaces

meager wyvern
#

You just press tab

noble mango
#

1 tab = 4 spaces

clear badger
#

cuz i got the code from a yt video

#

and edited it'

#

tik

#

ik

noble mango
#

cannot use both together

clear badger
#

yeah'

noble mango
#

yeah

clear badger
#

that what am saying

#

it wont work

#

so what i do

noble mango
#

fix the indentation

noble mango
#

mobile drawing is pain

clear badger
#

oh ok

#

how i fix

#

tabs

#

or spaces?

noble mango
#

make them uniform, and not have random single spaces

clear badger
#

??????????

#

like

#

reset all their spaces?

#

then add them properly?

noble mango
#

lines 2 and 3

clear badger
#

oh ok

#

how many tabs?

#

like 2 tabs'

#

or 3 tabs

#

or 1 tab

#

@noble mango

noble mango
#

you should probably look at some skript tutorials if you don't know how many tabs you need

dire oriole
#

whatever you increase them by, just make sure its consitent

#

thats literally it

#

also, please use code blocks

#

especially with inddentation errors

prime kite
clear badger
#

what are cod blocks

clear badger
clear badger
prime kite
dire oriole
#

why are you asking twice

#

and please dont ping me with replys

dire oriole
#

code blocks are this

  other stuff:
   yabagrawyfg
  stomnsebn( 123)```
#

```code here```

clear badger
#

how u use that

#

oh

#

'''hi''''

#

bruh

#

idk

#

how I use code blocks

meager wyvern
#

```text```

clear badger
#

''' e

meager wyvern
#

(the button under escape)

clear badger
#

oh

meager wyvern
#

```code```

clear badger
#
e```
#

oh

#

yay

meager wyvern
#

yup

clear badger
#

e

#

yay it works

#

text

#

ok let me do code blocks

#
if player's target entity is set:
    if item cooldown of event-item for player = 0 seconds: 
            set item cooldown of event-item for player to 2 seconds
            set {_v} to vector from player to target entity
            set vector length of {_v} to 0.8
            set {_loc} to location of player
            loop (distance between {_loc} and target entity) / 0.1 times:
            draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
             set {_loc} to {_loc} ~ {_v}
            damage target entity by 8```
#

there

prime kite
#

It looks like there's something wrong with your first indentation

clear badger
#

ok

#

well

#

idk

prime kite
#

(there isn't any)

clear badger
#

?????????

#

oh ok

#

where indent errors then and how I fix them

prime kite
#

Add a tab or spaces whatever is consistent with the rest of your code

clear badger
#

?

#

that doesn't make sense or help at all

prime kite
#

Do you speak English or is it a second language

clear badger
#

i speak english

#

am native english

prime kite
#

Alright what don't you understand from what I said before

#

I'll try explain better

clear badger
#

umm

#

Ok

prime kite
#

Google: what is indentation?

wary orbit
#

throughout your code, each time you indent (adding a space of some type at the beginning of a line), the spacing type has to be consistent all the way through your code, from top to bottom. So you can either indent with 4 spaces, or 1 tab. Most people use 1 tab.

Add 1 indent to every line down starting at line 2, that should fix your issue

clear badger
#

ik what indentation

#

i already googled that

meager wyvern
wary orbit
wary orbit
prime kite
#

Once your indents are fixed (fix them now) then we can see the rest of the errors and work through them

clear badger
#

ok

meager wyvern
#

But who tf uses 2 spaces bro

clear badger
#

let me try

meager wyvern
#

It's so uncomfortable

prime kite
#

When I do complex stuff

wary orbit
#

I use no spaces

prime kite
#

Without scrolling left right

meager wyvern
wary orbit
#

I got a 50" wide screen so i can see my code better, no scrolling left and right

clear badger
#
    if player's target entity is set:
        if item cooldown of event-item for player = 0 seconds: 
            set item cooldown of event-item for player to 2 seconds
                set {_v} to vector from player to target entity
                    set vector length of {_v} to 0.8
                        set {_loc} to location of player
                            loop (distance between {_loc} and target entity) / 0.1 times:
                                draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
                                    set {_loc} to {_loc} ~ {_v}
                                        damage target entity by 8```
#

like this>

noble mango
#

bro

prime kite
#

Ah yeah whatever works for whoever, I migrated from tabs cause of that tho

wary orbit
#

That looks alot better axolotl

clear badger
#

yay

prime kite
#

Ok, yeah but don't indent things unless they're conditions

meager wyvern
#

Anyways 2 space is alr but I saw somebody using ONE

clear badger
#

um'

wary orbit
#

oh god

#

lol

#

FUCK

prime kite
#

If they don't have a :

meager wyvern
#

yup

clear badger
#

what is a codition again

noble mango
#

if you ask what a condition is

prime kite
#

Don't add space below

clear badger
#

oh ok

prime kite
#

:

prime kite
#

Condition

clear badger
#

ok

prime kite
#

Anyway i uh quit for a while cause my brain sore. Next victim parr up

clear badger
#

its a wod with :

#

i mean word*\

wary orbit
#
    if event-item is enchanted with luck of the sea:
        if player's target entity is set:
            if item cooldown of event-item for player = 0 seconds: 
                set item cooldown of event-item for player to 5 seconds
                set {_v} to vector from player to target entity
                set vector length of {_v} to 0.8
                set {_loc} to location of player
                loop (distance between {_loc} and target entity) / 0.1 times:
                    draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
                    set {_loc} to {_loc} ~ {_v}
                    damage target entity by 8  ```

try this
#

how old are you axolotl

prime kite
#

You forgot to add the while loop with no delay...

wary orbit
#

lol

#

tired of seeing this thread open 🤣

noble mango
#

just wait till you discover the 'how do i teleport players along a circle' thread

#

(it was open for like 3 weeks+)

wary orbit
#

oh fuck no

#

🤣

#

skript-help be wildin

clear badger
#

oh

wary orbit
clear badger
#

12

wary orbit
#

understandable

noble mango
#

bro did NOT read discord tos

wary orbit
#

who does

clear badger
#

also is this how u give a blaze rod luck of the sea?

wary orbit
#

fricking FB having ass at 9

noble mango
#

real ones D:

#

bro finna get suspended from discord scanning messages

wary orbit
#

when i signed up, i said i was 25

noble mango
#

that is not an ID

wary orbit
noble mango
#

why luck of the sea though

wary orbit
#

but uh.. i think thats wrong anyways

clear badger
#

idk

noble mango
#

that is not doin shit

wary orbit
#

he doesnt know about differentiation yet, so hes using something else

clear badger
#

random enchantment

noble mango
#

use unbreaking, power or lure if you want an enchant glint

clear badger
#

ok

noble mango
prime kite
clear badger
#

its not working

clear badger
#

does it ever check what level of lure it is?

#

or does it not care

noble mango
#

why would it care if you never tell it to

clear badger
#

Error on
Line 2
Goto Line
Can't compare an item stack with 'enchanted with lure of the sea'
if event-item is enchanted with lure of the sea:

#

idk

#

that the erro parser said

noble mango
#

tf lure of the sea

clear badger
#

error*

#

wiat what

noble mango
#

your code man

prime kite
#

Luck of the sea my dude

clear badger
#

its not lure of the sea

noble mango
#

your code

#

ĀÆ_(惄)_/ĀÆ

prime kite
#

Or idfk hahaha

clear badger
#

oops

#

Error on
Line 2
Goto Line
Can't compare an item stack with 'enchanted with lure of the sea'
if event-item is enchanted with lure of the sea:

prime kite
clear badger
#

oops

#

sorry'

#

parsper says this error now Error on
Line 4
Goto Line
Can't understand this condition: 'item cooldown of event-item for player = 0 seconds'
if item cooldown of event-item for player = 0 seconds:

#

u know what

#

I think it willl work now

#

cuz i changed "lure of the sea"

#

to "lure"

#

wait

#

when I put the lure enchantment in my horbar

#

hotbar*

#

the enchantment dissappers

#
    if event-item is enchanted with lure:
        if player's target entity is set:
            if item cooldown of event-item for player = 0 seconds: 
                set item cooldown of event-item for player to 5 seconds
                set {_v} to vector from player to target entity
                set vector length of {_v} to 0.8
                set {_loc} to location of player
                loop (distance between {_loc} and target entity) / 0.1 times:
                    draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
                    set {_loc} to {_loc} ~ {_v}
                    damage target entity by 8  ```
#

ok maybe it doesnt remove the enchantment but it just doesnt work at all anymore

#

also why do u need a if statement to add a cool down?

#

also why doesnt the lure enchantment show up for the blaze rod

#

but shows up for sharpness?

#

OMG BRUH I FIGURED IT OUT

#

FOR SOME REASON LURE DIDNT WORK

#

but sharpness works so I changed it

#

and it works now

#

yay

#

I need to changed another thing now

#

AM pretty sure the laser comes from ur feet I want it to come from ur head

#

or like body

#
    if event-item is enchanted with sharpness:
        if player's target block is set:
            if item cooldown of event-item for player = 0 seconds: 
                set item cooldown of event-item for player to 2 seconds
                set {_v} to vector from player to block entity
                set vector length of {_v} to 0.8
                set {_loc} to location of player
                loop (distance between {_loc} and target block) / 0.1 times:
                    draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
                    set {_loc} to {_loc} ~ {_v}
                    damage target entity by 8```
#

I changed the code to target block and now the partucle wont show up anymore

#

particle

#

oh

#

oops

wary orbit
clear badger
#

nvm

#

I saw mistake

#

pls dont shame

#

ik saw the mistake

#

still doesnt work

#
    if event-item is enchanted with sharpness:
        if player's target block is set:
            if item cooldown of event-item for player = 0 seconds: 
                set item cooldown of event-item for player to 2 seconds
                set {_v} to vector from player to block
                set vector length of {_v} to 0.8
                set {_loc} to location of player
                loop (distance between {_loc} and target block) / 0.1 times:
                    draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
                    set {_loc} to {_loc} ~ {_v}
                    damage target entity by 8  ```
#

i gtg

#

so

#

bye

wary orbit
#

Heres the thing, you started with one of the most difficult aspects of skript, theres definitely harder things, but vectors arent a thing many people mess with. I suggest maybe starting with some asier stuff some time, seeya

clear badger
#

ok

#

but I changed it to block before and it worked

#

but bye

wary orbit
#

target block

#

set {_v} to vector from player to block

knotty rivet
# clear badger on right click with blaze rod: If event-item is enchanted with luck of the sea: ...
on right click with blaze rod:
If event-item is enchanted with luck of the sea:
    if player's target entity is set:
        send "yeet" to player
        if item cooldown of event-item for player = 0 seconds: 
            set item cooldown of event-item for player to 2 seconds
            set {_v} to vector from player to target entity
            set vector length of {_v} to 0.8
            set {_loc} to location of player
            loop (distance between {_loc} and target entity) / 10 times:
                draw 1000 dust_color_transition using dustTransition(red, orange, 20) at {_loc} with force
                set {_loc} to {_loc} ~ {_v}
                damage target entity by 8```
#

i found the real code for you

#

it makes the cooldown a bit better

ruby rapids
#

axolotl is fr 1000IQ

clear badger
#

am not learning anything

#

am just destprtaley copying skirpts

#

so

#

lets start with something simple

#

the laser works

#

thats all that matters

#

shoudl I create a new post for this or what

#

also idk where to start

#

also am sorry am like this

dire oriole
#

i think it would be easier to grasp if you just set a metadata

clear badger
#

?

#

whats taking so long

dire oriole
#
  if difference between now and (player's metadata tag "DiamondCooldown") <= 10 seconds:
    send "You have not waited the full 10 seconds! You must still wait %difference between 10 seconds and (difference between now and (player's metadata tag "DiamondCooldown"))%" to player
    stop

  set (player's metadata tag "DiamondCooldown") to now
  send "You have clicked me! Setting your cooldown to 10 seconds..." to player

  wait 10 seconds
  difference between now and (player's metadata tag "DiamondCooldown") >= 10 seconds
  delete (player's metadata tag "DiamondCooldown")```
#

play around with that

clear badger
#

ok

meager wyvern
clear badger
#

what about events

dire oriole
#

let me check

dire oriole
clear badger
#

that skirpt is boring

meager wyvern
#

Ah so it's kinda like a var but you don't have to delete it yourself

clear badger
#

we should do a example of like every type if code

#

like ecents

dire oriole
clear badger
#

or something

#

ih ok

clear badger
#

theres not much to do with the skirpt

#

u change change what button ur press

#

what item it is

#

and the cooldown

#

thats all

#

oh and maybe what it says

#

also what are logic erros

#

errors

#

@dire oriole

dire oriole
#

means you are trying to do something not possible

#

like if you are trying to use something but its been deleted/not set

dire oriole
clear badger
#

oh

#

well

#

idc about laser anymore

#

am trying to learn how to skirpt : )

wary orbit
#

Logical error is when the skript loads just fine with no error, but the result does not match when you were intending or what it was supposed to do

clear badger
#

oh ok

wary orbit
#

Aka

You make a command to take arg-1 and add it to arg-2

Arg-1 = 4
Arg-2 is 6

These 2 added together is 10, but if you get 24 instead, that’s a logical error

clear badger
#

oh ok

#

so if am trying to learn how to skirpt where do I start?

meager wyvern
#

That's a good place to start

#

Where I learned

#

the basics at least lol

clear badger
#

ok

knotty rivet
clear badger
#

why

#

it says yeet

#

its a laser

#

not a yeeter

quick walrus
#

why this post has 500 comments? moderators should lock this a long time ago

quick walrus
#

no

#

this is very entertaining

wary orbit
#

Agreed

dire oriole
#

we take shifts 🤣

noble mango
#

unpaid :(

clear badger
#

bruh

#

sorry

#

i can pay u all 1 rbx

#

cuz that all I have

#

guys I have a new idea for a simple skirpt because of that thing @meager wyvern sent me

#

i want to make a potato give u full hunger bars šŸ™‚

meager wyvern
#

What'd I send you

#

lol

clear badger
#

but uhh docs are confusing

clear badger
#

sent*

meager wyvern
#

oh yea

#

lol mb

clear badger
#

seatch food

#

search food

#

and u will see it

meager wyvern
#

hunger maybe

clear badger
#

yeah

#

search it in skirpt thing

meager wyvern
#

yeah?

clear badger
#

so

#

on consumoe posion potato

#

give player full hunger bar

#

something like that

meager wyvern
#

Well, there's this

clear badger
#

ok

#

bruh

#

what about on consume

meager wyvern
#

uhhh

#

lemme see

#

on consume of ___:

clear badger
#

skirpt docs sucks bruh

#

i literaayl searched that up

#

nvm

#
set the player's food level to 10
#

does this look good?

jovial merlin
#

I'd say, try it and see.

clear badger
#

ummmmmmmmmmmmm

#

ok

#

yay

#

parsper said no errors

#

after I indented it

jovial merlin
#

: D

clear badger
#

am testing it now

#

my ping 8k tho

#

so its really hard

#

IT WORKS

#

YAY

#

AM A SKIRPTER

#

now I need to make posnious potato

#

the new god apple

#

or something else

meager wyvern
#

Nice

clear badger
#

wait

#

what if I made a drug (in minecraft of course)

#

so u eat it and it sets ur hunger to 0

#

so u want to eat it again

#

and cycle

jovial merlin
#

You could maybe apply hunger effect instead, to make it gradually remove your food level over time.?

clear badger
#

ok

#

good idea

#

how I apply effects now

#

give me a doc

jovial merlin
#

like, hunger 10 for 6 seconds

meager wyvern
#

Just check the docs

clear badger
#

ok

meager wyvern
#

It's so simple to check

clear badger
#

docs confusing

meager wyvern
#

Bru

clear badger
#

give me a link to the thing

meager wyvern
#

They make stuff so ez

clear badger
#

so I dont have to search it up

jovial merlin
meager wyvern
clear badger
#

it says nothing

jovial merlin
#

what.?

#

Can you send me a screenshot?

meager wyvern
#

?????

clear badger
#

ok

meager wyvern
#

What docs are you using

#

Just click the link I sent

jovial merlin
#

app version blessing fr

meager wyvern
#

NAH

#

THErES AN APP VERSION?

clear badger
jovial merlin
#

y e s

clear badger
#

bruh

meager wyvern
#

It's your filter

#

smh

#

Look at the filters

#

Below search

clear badger
#

ur right

#

weird

#

i never turned that filter on

meager wyvern
#

bruh

jovial merlin
#

thats weird

meager wyvern
#

f

jovial merlin
#

o h

#

rip lol

clear badger
#

docs make everything so confusin bruh

meager wyvern
#

You must've misclicked

#

No they don't

#

They make stuff SO simple

clear badger
#

like wtf is all this

meager wyvern
#

For skripters

#

You should

#

Read one of the pages of the gitbook

jovial merlin
clear badger
#

what ambient mean

meager wyvern
#

Read the syntax and what each of it means

clear badger
#

ok

#

i mean

#

ik what ambient mean

#

but like

meager wyvern
#

I still get confused reading docs honestly but examples help a ton

clear badger
#

yeah

jovial merlin
meager wyvern
#

Yup

clear badger
#

there is a ambient type of haste?

jovial merlin
#

theres ambient type of everything i think.

clear badger
#

bruh

#

what that mean then

meager wyvern
#

What even is ambient for potion effects anyways

jovial merlin
#

I think it makes the particles transparent.

#

Like a beacon does

clear badger
#

oh

jovial merlin
#

and i think a blue outline along the potion icon.?

meager wyvern
#

Particle free potion effects? or what

jovial merlin
#

Yeah, can do that do.

meager wyvern
#

Oh wow

jovial merlin
#

apply speed 1 without particles to player for 1 day

meager wyvern
#

That's nice

#

Yeah

clear badger
#

ok

meager wyvern
#

Btw is with all flags hidden to hide enchantments & attributes?

jovial merlin
#

yeah.

meager wyvern
jovial merlin
#

You could also use add nbt from "{HideFlags:255}" to nbt of tool wich i usually do :p

meager wyvern
#

Yeah

#

SkBee is useful either way lol

jovial merlin
#

Very much so

meager wyvern
#

Probably the most used skript addon?

clear badger
#

wait how I add time limt

meager wyvern
#

Wdym

clear badger
#

and what abient do to effect again?

#

limit

#

to effect

#

time limit to effect

#

like set it for 10 seconds

meager wyvern
clear badger
#
    set the player's food level to 10
    apply ambient hunger 10 to the player```
meager wyvern
#

Look at that

#

And read the last line there

clear badger
#

no

meager wyvern
#

:/

clear badger
#

it says before 1.19.4

jovial merlin
#

apply hunger 10 without particles to player for 10 seconds

clear badger
#

also I need it in seconds

meager wyvern
#

Yea

clear badger
#

yes

meager wyvern
#

Bro

jovial merlin
#

magic

clear badger
#

should I add aprticles tho?

#

particles?

meager wyvern
#

You can write the word seconds right? Is that physically possible

jovial merlin
#

If you'd like

meager wyvern
#

Anybody here play minehut? if so

clear badger
#

ok

#

i play minehut

meager wyvern
#

ITS THE RHINO RC CAR

#

BATTERIES NOT INCLUDED

clear badger
#

that what I test my skirpts on

#

frick the adds bruh

#

so fricking annoying

jovial merlin
#

server.pro is my most used host for free servers. It's pretty neat.

clear badger
#

ok

#

give me ip[

meager wyvern
#

nice

jovial merlin
#

Reccomend it

meager wyvern
#

MH is terrible now

clear badger
#

ip

#

ip

#

ip

#

pls

#

ik

meager wyvern
#

They limited free servers to 2 hours

clear badger
#

Ik

meager wyvern
#

What ip???????

clear badger
#

minehut used to be good

dire oriole
#

I thought it was 4?

jovial merlin
#

Axo, I'm using some mods on my test servers so you'd have to download them.

meager wyvern
#

It's a server hosting isn't it?

meager wyvern
#

To 2

clear badger
#

bruhhhhhhhhhhhh

meager wyvern
#

Very stupid

dire oriole
#

Oh i didnt bother reading that update

meager wyvern
#

Yeah

#

It's just gonna go down from here

clear badger
#

give us ip to good server host thing

meager wyvern
#

They finna delete free servers

jovial merlin
clear badger
#

it not ip

jovial merlin
#

You might have to wait in line at peak hours for ur server to start, but once it started you can keep it online all day.

meager wyvern
#

Bro

#

You have to make your own server on it

jovial merlin
#

You'd just need to do an anti bot check every hour

clear badger
#

wait

#

bruh

dire oriole
clear badger
#

BRuh'

#

also what would make my drug better

#

i got hunger

#

what elese

jovial merlin
#

nausea :>

clear badger
#

why

#

ok

jovial merlin
#

slowness?

#

Or maybe some positive effects too

#

coz drugs

clear badger
#

YES

jovial merlin
#

like speed or something

#

mixed with negative effects

clear badger
#

ok

#

so speed

jovial merlin
#

So you'd be willing to profit the positive effects at the cost of the negatives

clear badger
#

yes

meager wyvern
jovial merlin
#

Maybe make more types of drugs.
One that focusses on speed (Speed, Haste, Dolhpin's Grace)

clear badger
#

ok]

meager wyvern
#

A ton of jump boost

#

And speed for like 10m then you get slowness

jovial merlin
#

And other that focus on resistences like fire reisstance, absorbtion and resistance?

meager wyvern
#

Wait how am I getting these ideas lol

clear badger
#

u sure I should add nausea?

jovial merlin
#

nahh nausea way to annoying lol

clear badger
#

ik

#

what if I made a loop

#

of speed and slowness

jovial merlin
#

Maybe make the nausea last 10 seconds at the start

#

And the other effects longer

clear badger
#

ok

#

i made it 5 seconds

#

the rest 25

#
    set the player's food level to 10
    apply hunger 100 without particles to player for 25 seconds
    apply speed 5 without particles to player for 25 seconds
    apply nausea 1 without particles to player for 5 seconds```
meager wyvern
#

You should give them a bunch of speed & jump boost

#

And then wait a bit

clear badger
#

ok

meager wyvern
#

And then give them a tonna slowness

clear badger
#

ok

#

its "jumpboost" right?

meager wyvern
#

jump boost maybe

#

Idk

clear badger
#

so I need and event when they lose there speed they gain slowness

jovial merlin
#
on consume:
  if name of tool is "&7Funny Speed druggies":
    apply nausea to player for 10 seconds
    apply speed 2 to player for 30 seconds
    apply haste 4 to player for 30 seconds
    apply dolphins grace to player for 30 seconds
  else if name of tool is "&7Resistant druggies":
    apply nausea to player for 10 seconds
    apply resistance 1 to player for 30 seconds
    apply fire resistance 1 to player for 30 
    apply absorption 4 to player for 60 seconds seconds
#

Just an idea

clear badger
#

uhh

meager wyvern
#

You could do offhand too

#

You'd need to include offhand tool

clear badger
#

offhand?

jovial merlin
#

o h

#

Clever...

#

NEVEr thought it that way, mymy.

clear badger
#

am just gonna do this for posnious potato tho

meager wyvern
#

yea

jovial merlin
#

Beaten at my own game

clear badger
#

so

#

is there a event like when they lose there speed they gain anothe effect'

#

how i skirpt that

meager wyvern
#

Well

dire oriole
#

Just a wait would work

meager wyvern
#

You can clear their effects

dire oriole
#

Apply speed for x, wait x then do y

meager wyvern
#

A wait then apply a new effect

clear badger
#

so they get speed like u @meager wyvern and then get slowness after u lose speed

meager wyvern
#

Yeah

#

Yup

jovial merlin
#

šŸ„„

meager wyvern
#

šŸ„„

clear badger
#

oh there way a wait

#

was*

#

i didnt know

meager wyvern
clear badger
#
    set the player's food level to 10
    apply hunger 100 without particles to player for 25 seconds
    apply speed 5 without particles to player for 25 seconds
    apply jumpboost 3 without particles to player for 25 seconds
    apply nausea 1 without particles to player for 5 seconds
    wait 25 seconds
    apply slowness 10 to player for 20 seconds```
#

here is skirpt

dire oriole
#

Honestly i would just stringify the two of them

meager wyvern
#

stringify the two of what

clear badger
#

what stringify mean?

meager wyvern
#

make them into strings

#

text

clear badger
#

oh

dire oriole
#

ā€%name of player’s tool%%name of player’s offhand tool%ā€ contains ā€œStuffā€

meager wyvern
#

"stuff" I think

#

yeah

clear badger
#

well

dire oriole
clear badger
#

parsper only says error on line 3

meager wyvern
#

I don't think he wants any name tho

clear badger
#

Error on
Line 5
Goto Line
Can't understand this condition/effect: apply jumpboost 3 without particles to player for 25 seconds
apply jumpboost 3 without particles to player for 25 seco

meager wyvern
#

Isn't it called the parser?

jovial merlin
dire oriole
clear badger
#

ok

jovial merlin
#

jump boost*

meager wyvern
#

It's up there but yea send_code again

jovial merlin
#

space in between

clear badger
#
    set the player's food level to 10
    apply hunger 100 without particles to player for 25 seconds
    apply speed 5 without particles to player for 25 seconds
    apply jumpboost 3 without particles to player for 25 seconds
    apply nausea 1 without particles to player for 5 seconds
    wait 25 seconds
    apply slowness 10 to player for 20 seconds```
#

oh

jovial merlin
#

gets me everytime too, lol

clear badger
#

NO ERRORS

#

YAYAYYAYAYYAYAYYA

meager wyvern
#

Nice

clear badger
#

ok

#

is drug ready?

meager wyvern
#

Maybe apply nausea after the wait 25 seconds

#

So that they get nauseous and slow at same time

clear badger
#

I added strength

#

ok

#

so

#

is it ready?

jovial merlin
#

If you think it is!

clear badger
#

wait how u add a commet?

#

comment

jovial merlin
#
#comment

#

clear badger
#

ok

#

ok

#

here final code

#
    set the player's food level to 10
    apply hunger 100 without particles to player for 25 seconds
    apply speed 5 without particles to player for 25 seconds
    apply jump boost 3 without particles to player for 25 seconds
    apply nausea 1 without particles to player for 5 seconds
    apply strength 10 without particles to player for 25 seconds
    wait 25 seconds
    apply slowness 10 to player for 20 seconds
    apply nausea 1 without particles to player for 5 seconds```
#

No errors found
You're good to go!

Just to let you know, the Parser can't catch logic errors. So make sure your script works before sharing it.
Click to Parse

#

ill test it now

#

it works

meager wyvern
#

typing #hwmkalrbm in discord search pops up only this one post

#

I'm way too bored rn

clear badger
#

bruh

#

I got in minehut

#

now I have this random dude calling me dumb cuz i miss spelled skirpt

#

someone ban this dud

meager wyvern
#

:/

clear badger
#

dude*

#

join my server

#

for minecraft drugs

#

join in minehut the do "/join LadderSecret"

#

IN MINECRAFT"

#

what if I make it give the player 1 diamond when they eat it

#

how I do that

dire oriole
#

The docs are the first thing you check if you want to know how to do something

clear badger
#

ok

clear badger
#

am back guys

#

i was eating dinner

meager wyvern
#

help lol

#

Idk what I was thinking when I made this but

#

For some reason it don't trigger the loop and it randomly sends the you bypasss this cooldown for this ability. You may use it freely. part

#

Ohh I see 1 of the problems

#

What kinda logic did i even USE there

#

That logic is trash dude

jovial merlin
#

THE

#

That's a very powerful weapon.

meager wyvern
#

Yep

#

I was gonna increase cd to 30m

jovial merlin
#

It's just

#

The stick of "begone."

meager wyvern
#

Yup

#

Exactly lol

#

Dammmmm almost 900 posts on this one tithing

#

Thing

jovial merlin
#

I'm pretty fond of weapons and magic, I can help at times.

clear badger
#

hi

clear badger
#

PLS HELPp

#

I NEED LINK TO DOCS

#

SO I CAN SKIRPT

#

HOW I GIVE PEOPLE ITEM

split abyss
clear badger
#

ok

#

ty'

#

but

#

what I searc up

#

search up to get the docs to item

#

item giver

#

what do I search up in the bar to have like the docs for what I need (item giver)

split abyss
#

Just do give [player] [item]

clear badger
#

so it gives them a item

#

oh

#

ty

#

how do u make it so the player cant eat any other food

#

like for my skirpt when they eat this food they cannot eat any other food

#

but they only can now eat that food that they just ate

hexed wedge
#

well, start with the on comsume event, check what items you want the player to be able to eat and if it isn't the item, cancel event

clear badger
#

on consume of potato
only eat potato

#

something like that

#

i already know that

#

on conmsume

#

only potato

#

so once they eat a potato they can only eat potato

#

for ever

#

or for time limt'

hexed wedge
#
on consume:
  event-item is a potato:
    do stuff
  else:
    cancel event```
clear badger
#

ok

#
    set the player's food level to 8
    apply hunger 255 without particles to player for 50 seconds
    apply speed 5 without particles to player for 25 seconds
    apply jump boost 3 without particles to player for 25 seconds
    apply strength 10 without particles to player for 25 seconds
    apply regeneration 5 without particles to player for 25 seconds
    give player poisonous potato
    wait 25 seconds
    apply slowness 5 to player for 5 seconds```
#

how would I apply that to this?

#

oh ok

#

idk how to apply that

#

help

#

PLS HELEPPELEPE'

#
    event-item if a poisonous potato:
        set the player's food level to 8
        apply hunger 255 without particles to player for 50 seconds
        apply speed 5 without particles to player for 25 seconds
        apply jump boost 3 without particles to player for 25 seconds
        apply strength 10 without particles to player for 25 seconds
        apply regeneration 5 without particles to player for 25 seconds
        give player poisonous potato
        wait 25 seconds
        apply slowness 5 to player for 5 seconds
        ```
#
    event-item if a poisonous potato:
        set the player's food level to 8
        apply hunger 255 without particles to player for 50 seconds
        apply speed 5 without particles to player for 25 seconds
        apply jump boost 3 without particles to player for 25 seconds
        apply strength 10 without particles to player for 25 seconds
        apply regeneration 5 without particles to player for 25 seconds
        give player poisonous potato
        wait 25 seconds
        apply slowness 5 to player for 5 seconds``` help
dire oriole
#

Sovdes github goes over bow to use the docs

clear badger
#

huh

#

wtf is that

clear badger
#

uh

#

idk

#

other guy tryed to help me

#

and

dire oriole
clear badger
#

am confused

#

can u help me

#

plssssssss

dire oriole
#

Dont beg

#

And i cant help if idk the error

noble mango
#

tutorial >

dire oriole
#

But im assuming line 2..

clear badger
#

well idk what to do

noble mango
#

us asf

dire oriole
clear badger
#

am trying to make when they eat potato they cant eat any other food but potato

#

i was trying to add that with line 2

noble mango
#

gl!

clear badger
#
        set the player's food level to 8
        apply hunger 255 without particles to player for 50 seconds
        apply speed 5 without particles to player for 25 seconds
        apply jump boost 3 without particles to player for 25 seconds
        apply strength 10 without particles to player for 25 seconds
        apply regeneration 5 without particles to player for 25 seconds
        give player poisonous potato
        wait 25 seconds
        apply slowness 5 to player for 5 seconds```
#

bruh

#

wdym gl

#

i need help

noble mango
#

I mean gl

clear badger
#

ur supoose to help me

noble mango
#

you're supposed to say whats wrong with it

clear badger
#

nothing is

#

am trying to add something

noble mango
#

and no, im not supposed to help

clear badger
#

thats what a post if for

#

to get help from other people

noble mango
clear badger
#

am trying to add something

#

but idk how

noble mango
#

thats very helpful šŸ‘

clear badger
#

bruh

#

ill tell u whata m aadggingqpwsrjghBjenkl

#

when they eat posion potato they cant eat any other food but posion potato

#

that what am trying to do bruh

noble mango
#

so set a variable unique to the player to true

clear badger
#

what???????

noble mango
#

then check if that variable is true, if event item isnt poisonous potato, cancel the event

clear badger
#

bruh'

#

idk hwo I do that

#

send me docs or somthing

noble mango
clear badger
#

o

#

send me link

noble mango
#

I cannot send you a link

clear badger
#

bruh

noble mango
#

you must find it yourself

clear badger
#

ur the worst help ever

noble mango
#

so true

#

can't send it bc im in the middle of shit, and im on my phone

clear badger
#

oh ok'

noble mango
#

go look for github acc sovdeeth, then find his skript-tutorials

clear badger
#

nah'

#

to complex

noble mango
clear badger
#

help

dire oriole
#

You need to try to figure out how to do some thing’s yourself

clear badger
#

bruh

#

thats what I have been doing

#

but now I need ur help

#

um

#

send me a link then

#

to docs

noble ibex
#

How tf does this Post have 1.000+ messages and still isnt solved?

clear badger
#

uhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

dire oriole
clear badger
#

bruhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

#

i dont even know what to search

dire oriole
#

Just read through it

#

Its designed like a book with chapters

clear badger
#

what ddo I search

#

give me link pls

clear badger
#

oh

dire oriole
#

It was sent in here earlier