Catálogo/Tienda de velocidad
EconomíaMedio
Tienda de velocidad
Pad de tienda: si tienes suficientes monedas, sube WalkSpeed. Requiere el script de leaderstats (o el Mini Obby).
Valores
Dónde va
- 01
Leaderstats
Instala antes el script de Monedas o el Mini Obby.
- 02
Este script
Pégalo en ServerScriptService. El pad aparece en (10, 6, 0).
Explorer → ServerScriptService → Script “TiendaVelocidad”
TiendaVelocidad.luaScript
--[[
Tienda de velocidad · Taller Lua
Pega este Script en ServerScriptService y pulsa Play.
Es para TU juego en Roblox Studio — no es un exploit.
Necesita leaderstats.Monedas
]]
local Players = game:GetService("Players")
local COST = 25
local SPEED = 32
local old = workspace:FindFirstChild("TallerShop")
if old then
old:Destroy()
end
local pad = Instance.new("Part")
pad.Name = "TallerShop"
pad.Anchored = true
pad.Size = Vector3.new(8, 1, 8)
pad.CFrame = CFrame.new(10, 6, 0)
pad.Color = Color3.fromRGB(196, 176, 118)
pad.Material = Enum.Material.Metal
pad.Parent = workspace
local gui = Instance.new("BillboardGui")
gui.Size = UDim2.fromOffset(180, 44)
gui.StudsOffset = Vector3.new(0, 4, 0)
gui.AlwaysOnTop = true
gui.Parent = pad
local text = Instance.new("TextLabel")
text.BackgroundTransparency = 1
text.Size = UDim2.fromScale(1, 1)
text.Font = Enum.Font.SourceSansBold
text.Text = "VELOCIDAD " .. COST .. " monedas"
text.TextColor3 = Color3.new(1, 1, 1)
text.TextScaled = true
text.Parent = gui
local bought = {}
pad.Touched:Connect(function(hit)
local player = Players:GetPlayerFromCharacter(hit.Parent)
local humanoid = hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid")
if not player or not humanoid then
return
end
if bought[player.UserId] then
return
end
local stats = player:FindFirstChild("leaderstats")
local coins = stats and stats:FindFirstChild("Monedas")
if not coins or coins.Value < COST then
return
end
coins.Value -= COST
humanoid.WalkSpeed = SPEED
bought[player.UserId] = true
text.Text = "VENDIDO"
end)