Okay so I want like if u click on the green button the door opens, i dont mind the way it opens btw lol, but the button i dont want to be like clicking i want like if u hold e it opens, and the same but with the red button but if u press it it closes. (Sorry for my english level lol im not good at it, hope that can someone help me)
#Door opening script
1 messages · Page 1 of 1 (latest)
btw i already know that this is not a difficult script but i dont make scripts for years
which way do you want the door to open? like slide over or just disappear?
i would use a ProximityPrompt for the interaction and connect a function to it
then you can use TweenService and modify the position property
how do i do that lol
okay so first add a ProximityPrompt under the door
then configure the properties like what button to press, the max distance for it to appear, and the hold duration
local TweenService = game:GetService("TweenService")
use tweenserver
if you add me on roblox i will do it for you: Jake574570_ALT
i can script you door for free
how do i add a prox prompt? 😭
then add a script that gets the ProximityPrompt as a variable and connect a function to whatever event it fire (i cant remember)
** You are now Level 1! **
lol im so lost
oh alr
this task is so fking easy lmao
bro how did you only get verified tag
i dont want all this junk udner my account
@cinder sleet tell me when you sent the friend request
added
dawg idk
** You are now Level 1! **
how can I invite u to studio btw
save to roblox
then invite collaborate
did you friend me on roblox?
sorry my computer is a bit slow
i dont see
oh
its fine
SoyMark561
ok added
up in this cornery
there should be a white button
saying Colaborate
or something
yeah saw it
uhm
send ss if you need help
done
yes
with proximity prompt?
but like
can i delete your scripts?
on the green and red buttons
yeah idk what did I put
i tried with roblox AI but thats shit
bro what?
i dont even know you 😭
im def deleteing
i joined today how tf do i know you
bro somebody ban ts guy
freaking weirdo
that was almost 3 years of work
better pay me or something
he’s tryna be corny to cover himself
up
such a loser you need a life deleting peoples work for fun
bro i get more money than you
** You are now Level 4! **
uhm its ok
i wish i was delusional like you @rancid quartz
like ty but idm if he even deletes something and ik he wont, and if he did i dont even have a map done so
im not
this kid is trolling
and i joined this server not even an hour ago
ikr
so idk what ts kid is talking about "you remember me from yesterday"
LMAO 😭
gaslighter on hof
and he’s believing ts is crazy but suit yourself
oh ofc
** You are now Level 2! **
i need to fix a bug in it rq, because user can open it multiple times
i can see
ok check now
sure
i tried it works for me
like proximity is not showing?
you just have to jump
if thats the case
no like
its like reversed yk
if i click on close it opens
and if i click on open it closed
yeah i thought you already added me
oh on dc
ok you dont have to worry about door rotation
it will always open up to the right
yea
idk how to explain better but the original script i did, it always moved to the same exact position so it wouldnt be good
and you would always need to change the script
yeah i understand like if i want to move the door to other place js to make me know dat
i will tell u if I c hange positions or smth
open door script
local DoorSystem:ModuleScript = require(game.ReplicatedStorage.DoorSystem)
local ProxPrompt:ProximityPrompt = script.Parent.ProximityPrompt
local Door:Part = game.Workspace:FindFirstChild("Door")
ProxPrompt.Triggered:Connect(function()
-- the door, and then how many studs it should move to be open
DoorSystem.OpenDoor(Door, 8)
end)
close door script
local DoorSystem:ModuleScript = require(game.ReplicatedStorage.DoorSystem)
local ProxPrompt:ProximityPrompt = script.Parent.ProximityPrompt
local Door:Part = game.Workspace:FindFirstChild("Door")
ProxPrompt.Triggered:Connect(function()
-- just the door
DoorSystem.CloseDoor(Door)
end)
well you should be able to change positions without needing to edit code, like the main module script
i can help you with other stuff when you need it
ofc like i will need in a future like a UI that shows up how many coins u got this is the principal idea i have
i got all the other ones listed
if u wanna see em
like
wait
i need for a future
but idk how long lol
like a package spawning that spawns boxes per x seconds
thats easy
easy
so easy lol