I'm very new at scripting and game-building in general, and I have a question I hope someone can answer about a tycoon element I'm using. Being the noobie I am, I decided to use a tycoon kit to figure out what the heck is going on in the code, but when I tried to manipulate the properties of bricks when they went through an upgrader, nothing worked. Here is the original source code:
script.Parent.Upgrade.Touched:connect(function(hit) if hit:FindFirstChild("Cash") then hit.Cash.Value = hit.Cash.Value * 2 hit.Reflectance = hit.Reflectance + 0.1 hit.Material = [ right here ] end end)
Keep in mind that the Reflectance and Cash value manipulations both worked.
It's probably some small error I've made, but I used multiple variations trying to change the material of the brick. Here are variations I've used:
hit.Material = Cobblestone / cobblestone [neither worked]
hit.Material = hit.Cobblestone / cobblestone
hit.Material = Material.Cobblestone / cobblestone [you get the idea.]
Please bear in mind that I'm entirely new to this. I won't be writing algorithms anytime soon. XD
Thanks, Puredew
