Owenskie_77
(SoulessContagious)
February 14, 2024, 9:31am
#1
SO i looked up a walk to shop tutorial but there was only shop gui’s
Then i looked at the devforum and saw this as my first result.
Here is an image of the shop:
[Capture]
Im trying to make it so if you are … Close to the shop a GUI Opens, if not the GUI is closed,
Here is my code in startplayer:
local rs = game:GetService("RunService")
local plr = game.Players.LocalPlayer
local character = plr.Character or plr.CharacterAdded:wait()
local boostshop = game.Workspace.Boosts.UpgradePart
rs.Heartbeat:Connect(function()
local boostmag = (character.HumanoidRootPart.Position - boostshop.Position).Magnitude
if boostmag < 5…
But it doesn’t exactly tell me How to do it anyone got suggestions or scripts i can use?
(If you want to be credited, Just ask me)
2 Likes
12345koip
(12345koip)
February 14, 2024, 9:36am
#2
So are you trying to make the player walk to the shop?
If yes, you can use Humanoid:MoveTo(targetPart)
to do so.
700000002
(Tenny)
February 14, 2024, 10:50am
#3
Perhaps use a beam. Put an attachment in a part within the door. After that, insert an attachment in the player’s HumanoidRootPart. Set the beam’s attachment properties to the two attachments. Now the player will be able to find the shop like they’re using a GPS.
Exozorcus
(Exozorcus)
February 14, 2024, 10:55am
#4
if u wanna do that you’ll have to spam it cause it times out after like 8 seconds
and if theres any obstacles then it can practically do nothing
pathfinding service is a better option
Owenskie_77
(SoulessContagious)
February 14, 2024, 12:13pm
#5
I mean like one of those game shops where you don’t buy gamepasses but instead game items in simulators
12345koip
(12345koip)
February 14, 2024, 12:14pm
#6
Do you want them to walk there or teleport there?
Owenskie_77
(SoulessContagious)
February 14, 2024, 12:15pm
#7
well walk because i am creating a gui where they can buy stuff from it for cash that they have earned
12345koip
(12345koip)
February 14, 2024, 12:17pm
#8
Then you’re gonna need to use the Pathfinding Service or MoveTo()
unless there’s another way to make a character walk somewhere.
I’m assuming it’s an area that will open a GUI.
Owenskie_77
(SoulessContagious)
February 14, 2024, 12:18pm
#9
not make them walk to it so the player has to walk their manually
12345koip
(12345koip)
February 14, 2024, 12:19pm
#10
Oh, you mean like a pointer? “Walk” was a bit misleading. You can use some kind of GUI and then set the length to the distance between the character and the part.
Owenskie_77
(SoulessContagious)
February 14, 2024, 12:20pm
#11
give me ten mins i will send u a screen shot of what it looks like
Owenskie_77
(SoulessContagious)
February 14, 2024, 12:21pm
#12
I gotta create it unless u dont want to see
12345koip
(12345koip)
February 14, 2024, 12:22pm
#13
I mean, if it is a pointer/guide to the shop, what I described above might work.
Owenskie_77
(SoulessContagious)
February 14, 2024, 12:23pm
#14
maybe, i just need like a script in the model that i am trying to get help for, i am only a new scripter
12345koip
(12345koip)
February 14, 2024, 12:24pm
#15
Can you describe what you’re trying to do in a bit more detail? I’m struggling to understand.
Owenskie_77
(SoulessContagious)
February 14, 2024, 12:26pm
#16
SO i am creating a shop model that sends the player a gui That they use to buy stuff with their cash and when they walk out or click the Red X it closes.
Owenskie_77
(SoulessContagious)
February 14, 2024, 12:27pm
#17
Like if there s a glowing ring around the front of the shop
Owenskie_77
(SoulessContagious)
February 14, 2024, 12:28pm
#18
inside it will be a invisible part im guessing and they will be the trigger
12345koip
(12345koip)
February 14, 2024, 12:50pm
#19
I guess you could make the inside ring open it and the outside ring close it, if you want a guide for the player to the shop you need to get the distance between them.