#Help

500 messages · Page 1 of 1 (latest)

loud pivot
#
Roblox

Check out [ENDLESS] Trespasser. It’s one of the millions of unique, user-generated 3D experiences created on Roblox. [PC CONTROLS] - F for Flashlight - Shift for Sprint

[HOW TO PLAY]
🧑 Meet your resident quota by allowing people into the building whilst disallowing anomalies.
😈 Identify anomalies by weird behavior, such as twitching, missing...

oblique jetty
#

but u didnt give me an answer

loud pivot
oblique jetty
#

its one script

#

uh

loud pivot
#

that does the red button

oblique jetty
#

i tried to send it normally but it said that we didnt share a server

#

so i jus made a screenshot

loud pivot
#

ok

oblique jetty
#

ur right btw

quaint lanceBOT
#

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

oblique jetty
#

with that game

#

its almost exactly the same

#

except for the studs part

loud pivot
# oblique jetty

why is the dontletthru button in the function of the letthru button?

oblique jetty
#

no idea

loud pivot
#

umm

oblique jetty
#

i jus placed all the ends somewhere else cus with the ends it didnt run the last part

oblique jetty
#

@loud pivot how do i fix it?

oblique jetty
#

alr ig

loud pivot
#

bc one function is in another function

#

which means

#

the function in the function cant be ran until the function has been ran

tardy aspen
#

thats sounds like "that's not my neighbor" copy

oblique jetty
loud pivot
#

its the exact same thing

loud pivot
tardy aspen
#

trespasser is thats not my neighbor copy 300%

#

bruh

loud pivot
#

oh

oblique jetty
#

now what

loud pivot
oblique jetty
#

yh but the red button doesnt work yet

#

alr it works

#

now the red button

#

alr

#

it works

#

thanks bro

#

now i gotta make it so that it resets

loud pivot
oblique jetty
#

one quick question

oblique jetty
#

while true do

loud pivot
oblique jetty
#

that doesnt work

#

i need the script to repeat itself infinitely after u clicked one of the buttons

loud pivot
#

oh lemme see the loop

oblique jetty
#

theres no loop

#

i tried using while true do

#

and then end at the bottom

#

but that didnt work

loud pivot
oblique jetty
#

yh

quaint lanceBOT
#

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

loud pivot
oblique jetty
#

i dont think so

#

lemme see

#

yh

#

there are 2 now

loud pivot
oblique jetty
#

there are 2 npcs

#

instead of 1

loud pivot
#

so?

oblique jetty
#

theres supposed to be one

loud pivot
#

oh

loud pivot
oblique jetty
#

yh

#

it was

#

i added a 1 second wait

#

instead of just wait()

#

and it worked

#

well

#

nah

#

but there was only one npc

#

and not 2

loud pivot
#

send the code

oblique jetty
#

i removed the while true do

loud pivot
loud pivot
oblique jetty
#

no idea

#

lemme readd it

#

there u go

#

its at the top and the bottom

loud pivot
#

no idention for loop?

oblique jetty
#

wym

loud pivot
oblique jetty
#

how do i fix it?

loud pivot
oblique jetty
#

WHAT DOES IDENT MEAN

oblique jetty
#

the hell

#

yk that didnt work right

loud pivot
#

oh

#

nvm its idented

oblique jetty
#

cant u just explain what i need to do?

#

and istg if u say i need to ident it

loud pivot
loud pivot
oblique jetty
oblique jetty
loud pivot
oblique jetty
#

nope

#

after i clicked the button

#

nothing happens

#

there wont come another npc

loud pivot
#

bruh

#

there is no function

#

detecting if u clicked the button

#

so the while loop will run before u click the button

oblique jetty
#

o

#

but that also doesnt work

#

cus it doesnt spawn 50 npcs

#

also how would i add that function?

loud pivot
oblique jetty
#

bro if i knew it i wouldnt ask it

loud pivot
oblique jetty
#

but im thinking that i cant just add a return to it or smth

#

the function is made

#

it detects whenever the button is pressed

#

after the sound the script needs to repeat

loud pivot
#

NPCClone.Torso.CFrame = workspace.NPCRoutine.StartPos.CFrame try humanoidrootpart

#

instead of torso

oblique jetty
#

and then?

quaint lanceBOT
#

studio** You are now Level 3! **studio

loud pivot
#

maybe the npcs are falling out of the map

oblique jetty
#

nope

#

bro i didnt even add a repeat function yet.

loud pivot
#

ok

loud pivot
oblique jetty
#

nothing cus i didnt add anything yet

#

cus i dont know what to do

loud pivot
#

huh

#

so u have no script

oblique jetty
#

i do

#

there is no output

#

nothing

loud pivot
#

local NPCClone = game:GetService("ServerStorage"):WaitForChild("NPCs"):WaitForChild(chosennpc):Clone() does it say infinite yeild??

oblique jetty
#

no

loud pivot
#

I think ik why

#

local chosennpc = TableNpc[math.random(#TableNpc)]

#

this line

#

u need 2 numbers in math.random

#

that is only one

#

so like

#

local chosennpc = TableNpc[math.random(1,#TableNpc)]

#

@oblique jetty

#

try that

oblique jetty
#

alr

#

with the while true do?

loud pivot
loud pivot
loud pivot
oblique jetty
#

yh but does the while true do still need to be there?

oblique jetty
#

dope

#

nope

#

doesnt work

loud pivot
oblique jetty
oblique jetty
loud pivot
oblique jetty
#

that doesnt rlly matter

#

i dont use it

loud pivot
oblique jetty
#

whats the difference?

loud pivot
oblique jetty
#

kk

#

but that doesnt stop the script from repeating

#

when the player clicks the button the script needs to repeat itself

loud pivot
#

debug it

oblique jetty
#

how

loud pivot
#

am starting to think u dont know anything about script

oblique jetty
#

i do

#

but

#

im kinda new

#

so im jus trynna learn stuff

loud pivot
oblique jetty
#

yh

#

i know that

#

but i never heard of debugging

loud pivot
#

ok

oblique jetty
#

output is nothing

quaint lanceBOT
#

studio** You are now Level 4! **studio

oblique jetty
loud pivot
#

watch a tutorial

#

on how to script

oblique jetty
#

bro?

oblique jetty
#

if i could watch a tutorial i wouldnt be here rn talking to someone

#

thanks for helping

loud pivot
#

if you don't know how to use print() then u dont know how to script which means this isn't your code and u can't fix it bc u can't script

oblique jetty
#

well it is my script

#

but i didnt bother to take my time to print()

#

i didnt know u can debug with it

tawny sleet
#

Hi

oblique jetty
#

i know u can output anything

tawny sleet
#

What is the problem

loud pivot
#

print("String")

tawny sleet
#

hi

oblique jetty
#

hi

tawny sleet
#

What's problem

loud pivot
tawny sleet
#

I may be able to help.

loud pivot
oblique jetty
#

bro

#

stfu

#

i do

tawny sleet
oblique jetty
#

i asked to debug

tawny sleet
#

getting a rope and a chair

oblique jetty
#

thats a whole different thing then fucking printing

tawny sleet
#

and tying the rope to ur neck

#

and getting on the chair

#

And tying the rope to a ceiling

#

And letting go off the chair

oblique jetty
#

funny

tawny sleet
#

@loud pivot

#

what's the actual problem

loud pivot
oblique jetty
#

no

#

i know

#

i jus put print() at the bottem

loud pivot
oblique jetty
#

bottom

#

cus maybe thats something new ai

loud pivot
#

print() uses a string

#

u need "" marks

#

to insert a string

#

then u put any text

#

in the ""

oblique jetty
#

no shit

#

smart

loud pivot
#

thats how u debug

#

👍

oblique jetty
#

how is that debugging

loud pivot
oblique jetty
#

so if i do

tawny sleet
#

send the script mikai

oblique jetty
#

print("Cheeseballs")

loud pivot
#

ur learning

oblique jetty
#

it debugs the script

#

that makes 0 sence

loud pivot
#

no

loud pivot
oblique jetty
#

why

loud pivot
tawny sleet
#

bro

#

Ok.

#

What's his problem

oblique jetty
#

i want the script to repeat itself after u clicked on one of the buttons

#

which clearly is really hard to do

tawny sleet
#

loop it

#

wait no

#

that's dumb

#

remote functions

#

use remote functions

#

I think

oblique jetty
#

look

tawny sleet
#

lol

oblique jetty
#

that is something i never heard of

#

well i mean

tawny sleet
#

alright bro

oblique jetty
#

i heard of it

#

but

#

no idea what they do

tawny sleet
#

Two way communication between the client and server

#

it's like

#

idk

loud pivot
#

Using print() helps u debug stuff. Because it prints a string in the output. For example if workspace then the script isn't working so u add a print under the if statement. If it prints u know the code is passing the if statement which means something else is wrong in ur script. This is debugging. To use print() put "" so that you can use a string like print("Hello World"). When u create a script this is the first like print("Hello World").

quaint lanceBOT
#

studio** You are now Level 23! **studio

tawny sleet
#

u clicka. Button and the server responds

#

And then it does what u want it to do

#

which I suppose would match ur problem

loud pivot
oblique jetty
#

bro

#

thanks

#

but

#

i know what print is.

#

i jus didnt know how to debug

#

u didnt have to rub it in so badly

oblique jetty
loud pivot
#

100%

oblique jetty
#

wait how am i lvl 23

loud pivot
oblique jetty
#

nvm

oblique jetty
oblique jetty
loud pivot
oblique jetty
#

but theres nothing wrong with the script

tawny sleet
loud pivot
oblique jetty
#

there jus isnt a loop function yet

loud pivot
tawny sleet
#

I don't think he has to debug it

#

He wants it to repeat infinitely

loud pivot
#

cuz idk

tawny sleet
#

dude

loud pivot
tawny sleet
#

He got it from somewhere it can't be wrong

oblique jetty
#

NO

tawny sleet
#

But he wants it to make something special

oblique jetty
#

bro

tawny sleet
#

so he has to add something

oblique jetty
#

i did it myself

#

wtf man

tawny sleet
#

so u gotta add a remote function

oblique jetty
#

nah screw this

#

night people

tawny sleet
#

and make it check if there's a player

oblique jetty
#

thanks for helping tho

tawny sleet
#

And then check if there's a

#

there's a

#

uhhh

#

click

loud pivot
tawny sleet
loud pivot
#

no need for a remote function

loud pivot
tawny sleet
#

because it just loops it continuously

#

unless

#

he uses a COROUTINE

loud pivot
tawny sleet
#

which I don't know how to use it

oblique jetty
loud pivot
tawny sleet
oblique jetty
#

NO

tawny sleet
oblique jetty
#

yh

#

after u clicked the button

tawny sleet
#

OK

#

let's clear it out.

#

so

#

you've got a button

#

YEA??

loud pivot
oblique jetty
#

yh

#

in workspace

tawny sleet
#

and that button does something

loud pivot
#

ok

oblique jetty
#

yh

tawny sleet
#

when u click it

oblique jetty
#

it works

#

mhm

tawny sleet
#

and it only does it ONCE

oblique jetty
#

YES

tawny sleet
#

and you want it to do infinitely?

oblique jetty
#

mhm

tawny sleet
#

so you can click it everytime u want

loud pivot
tawny sleet
#

And make it be able to

#

Do that

#

Action

oblique jetty
tawny sleet
#

Every time u click it

#

?

oblique jetty
#

only when theres an npc infront of u

tawny sleet
#

oh

#

that's difficult

oblique jetty
#

no

#

it already works man

tawny sleet
#

oh so

#

the evacuation button

oblique jetty
#

the only thing that doesnt work

tawny sleet
#

for that's not my neighbor

oblique jetty
#

is the repeating thingy

tawny sleet
#

I suppose

#

Ok

#

I understand

loud pivot
oblique jetty
#

yh

#

it runs once

#

then it stops

loud pivot
#

oh ok

tawny sleet
#

Can u ss the code here

#

I can't multitask two apps

oblique jetty
#

its to big

#

to fit in one screenshot

loud pivot
#

wait

#

ik why it runs once

tawny sleet
#

Why white mode

#

hurts my eyes

oblique jetty
#

second person who said that

#

i like it

loud pivot
#

game.Players.PlayerAdded:Connect(function()

loud pivot
oblique jetty
#

wait

#

lemme

#

remove

#

that

loud pivot
tawny sleet
#

there's a lot of things I haven't learned yet

#

but I'm sure u gotta use a remote function

#

wait

#

no

#

I'm dumb

tawny sleet
#

so he can press it whenever he wants

#

but only wants to run

loud pivot
#

yay

#

it works

oblique jetty
#

uh

#

wait

tawny sleet
#

When there's a npc

loud pivot
#

u can close the post now 👍

oblique jetty
#

why did my msgs get removed

loud pivot
tawny sleet
#

I thinkkk

#

U gotta use a boolean

oblique jetty
tawny sleet
#

Andddd

#

a tween

loud pivot
oblique jetty
#

nahh

#

it needs to enable whenever the player clicks the button

loud pivot
oblique jetty
loud pivot
oblique jetty
#

u click button

tawny sleet
#

That's aaaaa

oblique jetty
#

npc go away

tawny sleet
#

Remote function

oblique jetty
#

script repeats itself

#

so new npc

#

new math.random outcome

tawny sleet
#

This is very complex code

#

We might need a s2 or s3

loud pivot
tawny sleet
#

because I can't do this

#

In all hony

#

honesty

oblique jetty
#

the same as in that game u said

loud pivot
oblique jetty
#

red destroys the npcs

loud pivot
#

this is not how u script the game

oblique jetty
#

green makes it walk

#

after u clicked one of those buttons

#

eventualy the npc will be destroyed

loud pivot
#

then why do u have it loop endlessly

oblique jetty
#

then it needs to spawn a new one

loud pivot
#

if u only want it to happen when the player clicks the button

oblique jetty
#

but only after the old one is destroyed

oblique jetty
loud pivot
#

am done

#

u no nothing about code

#

couldn't even use print()

#

if u had coded this u would understand

oblique jetty
#

i could tho

#

thats why im trynna learn

#

but alr

#

ciao

loud pivot
#

Welcome aboard folks, in this video we briefly get started on a long journey to mastering the skill of scripting in Roblox Studio.


In this video we discuss what a service is, what a print statement is, the syntax involved in print statements, where to put your server scripts, what an argument is in a print statement, and what...

▶ Play video
loud pivot
loud pivot
tawny sleet
#

watch avercile

loud pivot
#

k

loud pivot
#

then come back to me or volt

tawny sleet