#player touch detection module script

1 messages · Page 1 of 1 (latest)

old veldt
#

i want some sort of module script that detect player that have some sort of syntax like this:
if [call the module script] then
[script]
end

pale tangle
#

first of all why the hell would you do that? cant you just do the script when its called. U dont need the if statement. And second no ones gonna make free code here. We are here to fix and help you with codes not writing codes for you.

old veldt
#

so can you teach me wth is even a module scrpit

pale tangle
# old veldt oh ok

So its like making a function and call it when you need to for example in your modulescript:

local module = {}

-- create a new function like this
function module.Print(text) -- u can name the Print to whatever u want depending on the action. and the text is the variable you need to send
print(text)
end

return module {}

#

and in a script you require the module script
local module = require(--path to your script)

#

and call it
module.Print("Hello world") in this case you use "Hello world" as the variable so it will print hello world

#

you can try searching a document/tutorial

old veldt
pale tangle
#

The hit is the thing that touched the part

kind cape
pale tangle
old veldt
#

roblox developer hub is too hard to read for begginer

#

not only mention that they only teach the "basic", most of them are unrelated to stuff i wanna know like how to even make a brick that spin

stiff lavaBOT
#

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

pale tangle
#

@old veldt if scripting is not for you you can hire scripters instead. Ai is bad

old veldt
#

btw vice, can i use ai to teach me code (i used ai to write code but its mostly sucks)

#

littary ai teached me what is findfirstchild and waitforchild

#

like i thought it is advanced scripting, but it not

pale tangle
#

Ai is bad like I told u

#

Go learn from YouTube

old veldt
#

or is it?

pale tangle
#

No its bad. Go to BrawlDev in youtube

old veldt
old veldt
#

its flodding every game, wtf is that

#

it just happend 2 day ago

pale tangle
#

Skill issue

old veldt
pale tangle
#

Its an avatar what do you expect

old veldt
#

but i dont see the negative impact when people wearing it

pale tangle
#

Why are u telling me this