How to make a touch a part to open shop in roblox studio
ฝัง
- เผยแพร่เมื่อ 5 ก.ย. 2024
- Today i will be showing you how to make an touch a part to open a frame/shop! I hoped you liked this video and don't forget to subscribe and like! I will be posting more and i will post roblox studio tutorials or just roblox studio videos.
i can close the shop but i can't open it without going to properties and pressing visible so its not working for me
Edit: Ok nvm its fine i fixed it i put the local script in screengui instead of startergui
👍
dude same i cant open and i can close, i bot local script in startergui and still dont work????😡💢
@@futxwineditz put the script inside of screengui
IT WORKED FINALLY,
I WAS TRYING SO HARD TO THIS
THX SO MUCH SUBBED
I know that his video was made a year ago, but for the people who still need the script.
local part = game.workspace.OpenQuestPart
local frame = script.Parent.QuestGui.Quest
local player = game.Players.LocalPlayer
part.Touched:Connect(function(hit)
if hit.Parent - player.Character then
frame.Visible=true
end
end)
TYSM this worked after alot of editing, but it works really well!
Tell me how plz
nice tutorial...step by step and simple. Keep up the good work bro!
when i touch the part it wont open
For whatever reason when I test run I can’t even open my gui anymore even with going to properties but when I start the run with the gui open I can close it but not open it
it worked tysm
how do I add working items in the shop
Model plsss
It took me and hour and the “then” part 5:22 messed it up, no sub.
Doesn't work for me
Edit:what did you script on the second one
ITS NOT WORKING FOR ME
What is the error?
when i touched the part it dosnet open the shop frame did i do something wrong?
same
This video is a little bit outdated so what i would do is to either watch my newer video that is more updated or you can do instead of:
If hit.parent = player.character
Do instead:
If hit.Parent:FindFirstChild("Humanoid")
And that should work If not, you can watch my latest roblox studio video that is more updated!
Hope it helps!
@@hugge6267 Thanks
4:32
doesnt and why wont you paste the script in the descreption so i could save my time?
So u can learn from it instead of sticking to copying n pasting every script you see n learn nothing
no work
I just needed the open script
But it worked?
Yes
@@NotDannyYt 👍
dosent work
It doesn’t
Not for me sorry, didnt ok
Hugge is back again bitches
How to make it so the script only runs again if the player steps off the part???
You need to make a debounce. So for example:
local debounce = false
(When part gets touched)
If hit.Parent:FindFirstChild("Humanoid") and debounce == false then
debounce = true
(all the otyer stuff)
Wait(how long you want the cooldown to be)
debounce = false
end
end)
dont copy the script, just add the debounce
@@hugge6267 thanks but I had a different solution
𝐩𝐫𝐨𝐦𝐨𝐬𝐦
it worked
thx
doesnt work
what is the error?