#Simulator zones

19 messages · Page 1 of 1 (latest)

sacred idol
#

Hello! I need help i want to make a buyable zone (wall) for a simulator game I watched more youtube video and i tried to use scripts from the marketplace but none of them worked pls help

ruby stump
#

Simple script here:

local price = “SET THE PRICE HERE!!”

script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then continue end
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player.leaderstats.Money.Value >=  price then
script.Parent.CanCollide = false
script.Parent.Transparency = 1
player.leaderstats.Money.Value -= price
end)
#

Make sure that u have a money system set up

sacred idol
ruby stump
#

ah ik

#

2 sec

#

try now

#

@sacred idol

sacred idol
#

lemme see

sacred idol
sacred idol
# ruby stump try now

I have two currency in the game both looks like they working idk what i do wrong 🥲

dusk quartzBOT
#

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

ruby stump
#

Make sure this script is in a server script and is childed under the wall.

#

And remember to replace the price variable with a number.

sacred idol
#

I will try again