e hehe what so, i make a build gui and you go up to a noob to open it because he is shop and i put code in there for him to when touched change a value to 1. he is running the statement (because i threw a print in there and tested it.) but, he does not change the value. waht is going on? here is me code:
local debounce = false
function onHit(hit)
local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil) and debounce == false then
debounce = true
if game.Workspace.turtorailno.Value == 5 then
workspace.talking.Value = 1
workspace.talktext.Value = "hi there! im bibby the builder. i can build anything you want if you have the items to build it."
workspace.talkguy.Value = "billy"
workspace.choice1.Value = "can you help us?"
workspace.choice2.Value = "build a mansion."
workspace.return1.Value = "okay dokay!"
workspace.return2.Value = "NO."
end
if game.Workspace.turtorailno.Value == 7 then
workspace.talking.Value = 1
workspace.talktext.Value = "i see you have some wood"
workspace.talkguy.Value = "billy"
workspace.choice1.Value = "yeah. can you build a hut for us?"
workspace.choice2.Value = "now, build a mansion."
workspace.return1.Value = "okay!"
workspace.return2.Value = "maybye... not."
end
if game.Workspace.turtorailno.Value == 9 then
workspace.talking.Value = 1
workspace.talktext.Value = "done!"
workspace.talkguy.Value = "billy"
workspace.choice1.Value = "hut... thats not that good."
workspace.choice2.Value = "ok!"
workspace.return1.Value = "i only had a few planks of wood."
workspace.return2.Value = "i know right?"
end
if game.Workspace.tutorail.Value == 0 then
print("what")
workspace.buildgui.Value = 1
end
debounce = false
end
end
script.Parent.Touched:connect(onHit)

1 comment
help me