You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
Have a working proximity prompt
- What is the issue? Include screenshots / videos if possible!
I can use the prompt once but then it just stops. I don’t have a script that disables it, but I do have scripts relating, which I’ll post below.
script.Parent.Triggered:Connect(function(player)
player.PlayerGui.CarSpawn.Enabled = true
end)
^ That script is inside of the prompt
--VAriables and such were declared beforehand--
local function spawncar(player, Name)
if Name == "FordExplorer" then
local MoneyManager = require(game.ServerScriptService.PurchaseHandler)
MoneyManager.Vehicle(player, Name)
elseif Name == "F150" then
local MoneyManager = require(game.ServerScriptService.PurchaseHandler)
MoneyManager.Vehicle(player, Name)
end
end
-- Call "onCreatePart()" when the client fires the remote event
remoteEvent.OnServerEvent:Connect(spawncar)
Those are the only scripts that would have a hand in interacting with the prompt
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve checked for scripting errors and such but I haven’t found any. It’s my first few times using this ao maybe it’s a property I missed. Also, I did look on the forums but most issues looked more technical than mine.