So I am doing a game and acs guns aren’t working, so I thought that it might be maybe with a script so I copied the building into another game and the spawns just don’t work, like when you die you spawn at the exact same location.
A script would be handy to see
What do you need and I will send it
Like what script you need,I have 3 custom scripts lemme send them
function teamFromColor(color)
for _,t in pairs(game:GetService(“Teams”):GetChildren()) do
if t.TeamColor==color then return t end
end
return nil
end
function onSpawned(plr)
local tools = teamFromColor(plr.TeamColor):GetChildren()
for _,c in pairs(tools) do
c:Clone().Parent = plr.Backpack
end
end
function onChanged(prop,plr)
if prop==“Character” then
onSpawned(plr)
end
end
function onAdded(plr)
plr.Changed:connect(function(prop)
onChanged(prop,plr)
end)
end
game.Players.PlayerAdded:connect(onAdded)
local MarketplaceService = game:GetService(“MarketplaceService”)
local Players = game:GetService(“Players”)
local gamePassID = 16455045 --Replace this set of numbers with your gamepass id
function onPlayerSpawned(player)
local hasPass = false
local success, message = pcall(function()
hasPass = MarketplaceService:UserOwnsGamePassAsync(player.userId, gamePassID)
end)
– The script below is for checking whether or not the player has the gamepass.
if not success then
warn("Error while checking if player has pass: " … tostring(message))
return
end
if hasPass == true then
game.ServerStorage.AK74:clone().Parent = player.Backpack --replace "SuperFlyGoldBoombox" with your item
end
end
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function()
onPlayerSpawned(player)
end)
end)
There are also some free models
I recommend learning some scripting and watching some tutorials on how to make guns. Freemodel guns aren’t exactly going to cut it in most cases. Plus, free models may have virus scripts so be careful about what you are using.
Do you know any code that is doing this?
No? Its ACS, they use a bunch of scripts and modules. It could be anyone of them. Plus, I never use freemodels, and I don’t recall ever using ACS so I can’t exactly help. What part of the guns aren’t working? Its probably that the guns don’t support FE
and broke.
Or maybe for the spawns (to fix them)
The models are being imported and everything but when in game when u select the gun it doesn’t work
But only acs other tools work like salute and at ease
Thats to vague to even begin an answer. This is scripting support, we fix scripts, not fix entire models with no context . If the ACS Freemodel guns don’t work, I suggest using ROBLOX’s gun kit and editing it or looking up some YT tutorials.
What part of it doesn’t work? Does the gun not appear? Does it not shoot? Look in the output for errors and check there. If there are errors, share them here.
I am sorry if I didn’t explain myself as I intended.But when I test to see it brings errors of lua and guns just don’t work like you equip them and nothing happens its like you don’t equip them
Ok, thats a bit more helpful. What errors does it show? If you click on them, it should bring up the script that is erroring and you could show the line that is breaking the guns.
When I test it pauses and bring errors in scripts on of them being
local CloseClick = script.Parent.Closed.ClickDetector
and it’s lua
Ok ok… I assume there are other models w/ broken scripts. That isn’t exactly relevant, what errors are coming from the guns?
Also, if you want to fix the CloseClick thing, just wait for it to load. It probably didn’t load in time:
local CloseClick = script.Parent.Closed:WaitForChild("ClickDetector")
I cant show you because I can’t go in testing because of the errors
Also the error is still coming it’s saying
Closed is not a valid member of Folder “Workspace.Body”