i changed the coins in line runner template’s material to metal and now they dont show up, the sound and coin counter still work, i just cant see them
output doesnt say anything that has to do with coins
edit: sounds gone now too
another edit: i changed one coin back to smoothplastic and i can see only that, but i would still prefer the coins to be metal
also i pressed run and the coin child of coin disappears
theres not anything that has to do with material
That’s really weird… Could we see your script and also make sure it’s anchored.
im using the template but here
CoinScript
local coin = script.Parent
local coinModel = coin.Parent
local trackModel = coinModel.Parent
local tracksModel = trackModel.Parent
coin.BodyPosition.position = script.Parent.Position
coin.BodyGyro.cframe = CFrame.new(
0, 0, 0,
0, -1, 0,
0, 0, 0,
0, 0, 0
)
coin.RotVelocity = Vector3.new(0, 5, 0)
if coinModel.Parent ~= game.Workspace then
if game.Workspace:FindFirstChild("Tracks") then
if tracksModel:FindFirstChild("Coins") == nil then
local coinsModel = Instance.new("Model")
coinsModel.Name = "Coins"
coinsModel.Parent = tracksModel
end
tracksModel.ChildRemoved:connect(function(child) if child == trackModel then coinModel:Destroy() end end)
coinModel.Parent = tracksModel:FindFirstChild("Coins")
end
end
wait(1)
coin.RotVelocity = Vector3.new(0, 5, 0)
and
CoinMagnet
local character = script.Parent
local player = game.Players:GetPlayerFromCharacter(character)
script.Parent:WaitForChild("HumanoidRootPart")
local torso = script.Parent.HumanoidRootPart
game:GetService("RunService").Heartbeat:connect(function()
local playersTrack = game.Workspace.Tracks:FindFirstChild(player.Name)
if playersTrack then
if playersTrack:FindFirstChild("Coins") then
local coins = playersTrack.Coins:GetChildren()
for i = 1, #coins do
if (coins[i].Coin.Position - torso.Position).magnitude < 50 then
coins[i].Coin.BodyPosition.maxForce = Vector3.new(500000000, 500000000, 500000000)
if torso.Position.Z > coins[i].Coin.Position.Z then
coins[i].Coin.BodyPosition.position = torso.Position
coins[i].Coin.BodyPosition.P = 1500
else
--Needs to anticipate where the player is going
coins[i].Coin.BodyPosition.position = Vector3.new(torso.Position.X, torso.Position.Y, torso.Position.Z - 10)
coins[i].Coin.BodyPosition.P = 2500
end
coins[i].CoinBoundingBox.Position = coins[i].Coin.Position
if (coins[i].Coin.Position - torso.Position).magnitude < 5 then
coins[i].CoinBoundingBox.Position = Vector3.new(torso.Position.X, torso.Position.Y, torso.Position.Z - 3)
end
end
end
end
end
end)
im not sure exactly what they do cuz i didnt make them
anchoring fixed it! thank you!
1 Like