#player touch detection module script
1 messages · Page 1 of 1 (latest)
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.
oh ok
so can you teach me wth is even a module scrpit
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
tysm so much, but how do i detect a player is touching a part
--get your part
local part = script.Parent -- wherever your part is
part.Touched:Connect(function(hit)
end)
The hit is the thing that touched the part
yea but its kinda buggy
And it's also used for OOP (Object-Oritentented Programming)
There are multiple ways to make it work just go learn scripting before trying to make anything
WHERE
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
** You are now Level 1! **
Brawldev
@old veldt if scripting is not for you you can hire scripters instead. Ai is bad
nah i wanna do it mysself
yt channel?
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
but i think ai is gud at teaching script
or is it?
No its bad. Go to BrawlDev in youtube
k, thx
btw, there are many greeny-avatar with a hood on a head
its flodding every game, wtf is that
it just happend 2 day ago
Skill issue
my roblox studio skill?
Its an avatar what do you expect
littary it spreading like a virus
but i dont see the negative impact when people wearing it
Why are u telling me this