Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function changeValues(itemName, price)
- script.Parent.Value3Name.Value = itemName
- script.Parent.Value3Label.Text = itemName
- script.Parent.PriceValue.Value = price
- script.Parent.Craft.Text = "CRAFT - $"..price
- end
- --[[
- Use changeValues() to list the item, the first being the string of the tool. The tool must be in ServerStorage.Tools
- The second is the price to craft the tool.
- If you change something, DO IT TO BOTH SIDES
- --]]
- script.Parent.Value1Name.Changed:connect(function()
- if script.Parent.Value1Name.Value == "FlameDial" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("FlameSword", 2000)
- elseif script.Parent.Value1Name.Value == "FlameDial" and script.Parent.Value2Name.Value == "Katana" then
- changeValues("FlameSword", 2000)
- elseif script.Parent.Value1Name.Value == "AxeDial" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("Machete", 2000)
- elseif script.Parent.Value1Name.Value == "AxeDial" and script.Parent.Value2Name.Value == "Boxing Gloves" then
- changeValues("Claws", 2000)
- elseif script.Parent.Value1Name.Value == "FlashDial" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("FlashSword", 2000)
- elseif script.Parent.Value1Name.Value == "JetDial" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("DashKatana", 2000)
- elseif script.Parent.Value1Name.Value == "BreathDial" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("DashKatana", 2000)
- elseif script.Parent.Value1Name.Value == "BreathDial" and script.Parent.Value2Name.Value == "Katana" then
- changeValues("DashKatana", 2000)
- elseif script.Parent.Value1Name.Value == "JetDial" and script.Parent.Value2Name.Value == "Katana" then
- changeValues("DashKatana", 2000)
- elseif script.Parent.Value1Name.Value == "MilkyDial" and script.Parent.Value2Name.Value == "Blundebuss" then
- changeValues("MilkyGun", 2000)
- elseif script.Parent.Value1Name.Value == "" and script.Parent.Value2Name.Value == "Flintlock" then
- changeValues("", 2000)
- elseif script.Parent.Value1Name.Value == "LampDial" and script.Parent.Value2Name.Value == "Katana" then
- changeValues("LightSword", 2000)
- elseif script.Parent.Value1Name.Value == "LampDial" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("Lightsword", 2000)
- elseif script.Parent.Value1Name.Value == "AxeDial" and script.Parent.Value2Name.Value == "Flintlock" then
- changeValues("Shuriken", 2000)
- elseif script.Parent.Value1Name.Value == "FlashDial" and script.Parent.Value2Name.Value == "Saber" then
- changeValues("Lightsaber", 2000)
- elseif script.Parent.Value1Name.Value == "" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("", 2000)
- elseif script.Parent.Value1Name.Value == "RejectDial" and script.Parent.Value2Name.Value == "Flintlock" then
- changeValues("Lob Bomb", 2000)
- elseif script.Parent.Value1Name.Value == "ImpactDial" and script.Parent.Value2Name.Value == "Flintlock" then
- changeValues("Lob Bomb", 2000)
- elseif script.Parent.Value1Name.Value == "RejectDial" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("Boom Blade", 2000)
- elseif script.Parent.Value1Name.Value == "ImpactDial" and script.Parent.Value2Name.Value == "Katana" then
- changeValues("Boom Blade", 2000)
- else
- script.Parent.Value3Name.Value = ""
- script.Parent.Value3Label.Text = "N/A"
- script.Parent.PriceValue.Value = 0
- script.Parent.Craft.Text = "CRAFT"
- end
- end)
- script.Parent.Value2Name.Changed:connect(function()
- if script.Parent.Value1Name.Value == "FlameDial" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("FlameSword", 2000)
- elseif script.Parent.Value1Name.Value == "FlameDial" and script.Parent.Value2Name.Value == "Katana" then
- changeValues("FlameSword", 2000)
- elseif script.Parent.Value1Name.Value == "AxeDial" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("Machete", 2000)
- elseif script.Parent.Value1Name.Value == "AxeDial" and script.Parent.Value2Name.Value == "Boxing Gloves" then
- changeValues("Claws", 2000)
- elseif script.Parent.Value1Name.Value == "FlashDial" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("FlashSword", 2000)
- elseif script.Parent.Value1Name.Value == "JetDial" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("DashKatana", 2000)
- elseif script.Parent.Value1Name.Value == "BeathDial" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("DashKatana", 2000)
- elseif script.Parent.Value1Name.Value == "BreathDial" and script.Parent.Value2Name.Value == "Katana" then
- changeValues("DashKatana", 2000)
- elseif script.Parent.Value1Name.Value == "JetDial" and script.Parent.Value2Name.Value == "Katana" then
- changeValues("DashKatana", 2000)
- elseif script.Parent.Value1Name.Value == "MilkyDial" and script.Parent.Value2Name.Value == "Blunderbuss" then
- changeValues("MilkyGun", 2000)
- elseif script.Parent.Value1Name.Value == "" and script.Parent.Value2Name.Value == "Flintlock" then
- changeValues("", 2000)
- elseif script.Parent.Value1Name.Value == "LampDial" and script.Parent.Value2Name.Value == "Katana" then
- changeValues("LightSword", 2000)
- elseif script.Parent.Value1Name.Value == "LampDial" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("LightSword", 2000)
- elseif script.Parent.Value1Name.Value == "Cog" and script.Parent.Value2Name.Value == "Saber" then
- changeValues("Gear 2 Saber", 2000)
- elseif script.Parent.Value1Name.Value == "AxeDial" and script.Parent.Value2Name.Value == "Flintlock" then
- changeValues("Shuriken", 2000)
- elseif script.Parent.Value1Name.Value == "Bloodbag" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("Bloodlust", 2000)
- elseif script.Parent.Value1Name.Value == "RejectDial" and script.Parent.Value2Name.Value == "Flintlock" then
- changeValues("Lob Bomb", 2000)
- elseif script.Parent.Value1Name.Value == "ImpactDial" and script.Parent.Value2Name.Value == "Flintlock" then
- changeValues("Lob Bomb", 2000)
- elseif script.Parent.Value1Name.Value == "RejectDial" and script.Parent.Value2Name.Value == "Cutlass" then
- changeValues("Boom Blade", 2000)
- elseif script.Parent.Value1Name.Value == "ImpactDial" and script.Parent.Value2Name.Value == "Katana" then
- changeValues("Boom Blade", 2000)
- else
- script.Parent.Value3Name.Value = ""
- script.Parent.Value3Label.Text = "N/A"
- script.Parent.PriceValue.Value = 0
- script.Parent.Craft.Text = "CRAFT"
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment