#Door opening script

1 messages · Page 1 of 1 (latest)

cinder sleet
#

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)

#

btw i already know that this is not a difficult script but i dont make scripts for years

remote sphinx
#

which way do you want the door to open? like slide over or just disappear?

cinder sleet
#

slide over

#

like u know that typic garage door

remote sphinx
#

i would use a ProximityPrompt for the interaction and connect a function to it

#

then you can use TweenService and modify the position property

cinder sleet
#

how do i do that lol

remote sphinx
#

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

rough obsidian
#

use tweenserver

#

if you add me on roblox i will do it for you: Jake574570_ALT

#

i can script you door for free

cinder sleet
#

how do i add a prox prompt? 😭

remote sphinx
#

then add a script that gets the ProximityPrompt as a variable and connect a function to whatever event it fire (i cant remember)

brazen spearBOT
#

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

cinder sleet
#

lol im so lost

rough obsidian
#

this task is so fking easy lmao

rough obsidian
#

i dont want all this junk udner my account

#

@cinder sleet tell me when you sent the friend request

cinder sleet
#

added

remote sphinx
brazen spearBOT
#

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

cinder sleet
#

how can I invite u to studio btw

rough obsidian
#

then invite collaborate

#

did you friend me on roblox?

cinder sleet
#

yea

#

im soymark561

rough obsidian
cinder sleet
#

sorry my computer is a bit slow

rough obsidian
#

i dont see

cinder sleet
#

oh

rough obsidian
cinder sleet
rough obsidian
#

wiat whats your user

#

i can just sned you a request

cinder sleet
#

SoyMark561

rough obsidian
#

ok added

#

up in this cornery

#

there should be a white button

#

saying Colaborate

#

or something

cinder sleet
#

yeah saw it

rough obsidian
#

then type my username: Jake574750_ALT

#

tell me once you invited

cinder sleet
#

uhm

rough obsidian
cinder sleet
#

what the fuck this appears

#

oh nvm

rough obsidian
cinder sleet
#

done

rough obsidian
#

ok

#

so you just want

#

door to open?

cinder sleet
#

yes

rough obsidian
#

with proximity prompt?

cinder sleet
#

like holding a letter then it oppens

#

idk whgats that

#

..

cinder sleet
rough obsidian
#

can i delete your scripts?

cinder sleet
#

on the green and red buttons

#

yeah idk what did I put

#

i tried with roblox AI but thats shit

rancid quartz
#

don’t share with him

#

he’s a known game deleter

#

he deleted my whole game before

rough obsidian
#

bro what?

rough obsidian
rough obsidian
rancid quartz
#

yes u do bro remember me

#

from yesterday

rough obsidian
#

weirdo

rough obsidian
rancid quartz
#

bro somebody ban ts guy

#

freaking weirdo

#

that was almost 3 years of work

#

better pay me or something

rancid quartz
#

he’s tryna be corny to cover himself
up

#

such a loser you need a life deleting peoples work for fun

rough obsidian
brazen spearBOT
#

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

cinder sleet
cinder sleet
#

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

rough obsidian
#

this kid is trolling

#

and i joined this server not even an hour ago

cinder sleet
#

ikr

rough obsidian
#

so idk what ts kid is talking about "you remember me from yesterday"

cinder sleet
#

LMAO 😭

rancid quartz
#

and he’s believing ts is crazy but suit yourself

rough obsidian
#

@cinder sleet

#

can you check it rq

#

see if thats good for opening

cinder sleet
#

oh ofc

brazen spearBOT
#

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

cinder sleet
#

let me check

#

WOA

#

THATS FIRE

#

can u do it for closing or is too much

rough obsidian
#

i need to fix a bug in it rq, because user can open it multiple times

rough obsidian
#

jsust giimie a sec

rough obsidian
#

ok check now

cinder sleet
#

ofc

#

the open button doesnt works

#

want a vid

rough obsidian
#

sure

cinder sleet
#

or can u try too

#

hold on

rough obsidian
#

i tried it works for me

#

like proximity is not showing?

#

you just have to jump

#

if thats the case

cinder sleet
#

no like

#

its like reversed yk

#

if i click on close it opens

#

and if i click on open it closed

rough obsidian
#

oh yeah

#

ok try now

cinder sleet
#

YEAAAA

#

TY

rough obsidian
#

yw

#

really quickly

#

i need to test something

cinder sleet
#

can I add u tho

#

ofc

rough obsidian
#

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

cinder sleet
#

idk whats that but ty

#

its okay

rough obsidian
#

like for example

#

if you rotate the door

#

to somewhere else

cinder sleet
#

yea

rough obsidian
#

instead of its current position

#

then it will always go to the right

cinder sleet
#

oh sure

#

i get it

rough obsidian
#

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

cinder sleet
#

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

rough obsidian
#
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)
rough obsidian
#

i can help you with other stuff when you need it

cinder sleet
#

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

cinder sleet
#

a pickup system like if u click it it appears in ur inv

#

a delivery area

#

like

rough obsidian
#

easy

cinder sleet
#

if u enter an area using touched it detects if u got one

#

an UI as I said

rough obsidian
cinder sleet
#

upgrade system

#

special packages give more money

#

limit time of packages

#

unlock more areas of the map with more difficult

#

create quests

#

anddddd

#

thats it

rough obsidian
#

so like a delivery simulator?

#

or something