Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Two Script Questions?

Asked by 10 years ago
  1. I'm trying to make an NPC who gives out a shop from his dialogs EXCEPT.

I want the NPC to say a few DialogChoices before giving the Player the option to choose what weapon to have.

They are only letting me have Dialog>DialogChoice>(Weapon Name Dialog Choice)

I want to have a Dialog> Dialog Choice > Dialog Choice >Dialog Choice > (Weapon Name Dialog Choice) but I am unable to do this.

  1. Second, How do I make the "key tool" visible instead because when you select it from your inventory. Currently, it just invisible without the humanoid holding out the key with his hand.
bin = script.Parent



function onButton1Down(mouse)

mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"

local hit = mouse.Target

if (hit == nil) then return end

if (hit.Name == "BlueDoor") then

hit.Transparency = 0.8

hit.CanCollide = false

wait(2)

hit.CanCollide = true

hit.Transparency = 0


mouse.Icon = "rbxasset://textures\\GunCursor.png"

end

end







function onSelected(mouse)

print("Action Tool Selected")

mouse.Icon = "rbxasset://textures\\GunCursor.png"

mouse.Button1Down:connect(function() onButton1Down(mouse) end)

end



bin.Selected:connect(onSelected)




Answer this question