I suck at scripting
its for my tycoon game
here are the parts: Base, Chute, IDBar
IDBar basics: You can type in the IDBAr
Chute Basics: When a mesh touches the chute, it dissapears
but there is way more than that
This things is supposed to change you drops to a mesh, which only works if you have the gamepass and it requires a ton of scripting
So please dont hide this i really need your help :(
How it works:
You type the ID of the mesh in the IDBar. The mesh appears and drops onto the chute, making the mesh disappear. It then turns your drops into that mesh PLEASE dont hide this i need the script :(
code used for the Chute
for i,v in pairs(script.Parent.Essentials:GetChildren()) do if v.Name == "PartCollector" then v.Touched:connect(function(Part) part.destroy end end) end end
(SideNote: this looks compatible with lua, but i literally just copied it from the collectors script which was made by someone else and changed it) It failed.
code used for the IDBar
script.Parent.OnClick do FreeUpSpace.labeltext.type script.Parent.MeshID.WasTypedIn then Identify.Mesh.CalculateID OnceIdentified.spawnmesh end
(Side Note: This code was put in the text label) This obviously failed, because i don't know lua help?
code put in workspace
script.Parent OnceMeshIdentified.from TextLabel.Parent.IDBar Parent.Drop Instance.new.SpecialMesh SpecialMeshId = IndetifiedMeshID
Yeah, this failed I have no idea where to put some of the scripts and I have no idea how to make them work, your help?