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

Dialogs, NPC's and givers, How to fix?

Asked by
VXAP 0
7 years ago

ogod I am tired of ROBLOX forums beign unhelpful in 3 weeks I've got a lot of questions but I'll ask only my main First, is it possible to make an NPC breath and like have an animation like a normal player? Second thing, is it possible to fix dialogs? I've had an idea to make it so if they use the dialog itwill delete and clone it self inside the part from lighting but it's just me and my stupid ideas. Third one is: I have a tool giver but I want to allow them to take ONLY ONE meaning if they already have the tool in their inventory they won't be able to take it the code: local ToolNames = {"ThePackage"} local Storage = game:GetService("ServerStorage")

local Part = script.Parent local ClickDetector = Part:WaitForChild("ClickDetector")

ClickDetector.MouseClick:connect(function(Player) if Player and Player.Character then local Backpack = Player:WaitForChild("Backpack") for i = 1, #ToolNames do local Tool = Storage:FindFirstChild(ToolNames[i]) if Tool then Tool:clone().Parent = Backpack end end end end)

I believe it's something like that: if game.Players:FindFirstChild(part.Parent.Name) then if game.Players:FindFirstChild(part.Parent.Name).BackpackFindFirstChild("ThePackage") == nil then

1 answer

Log in to vote
0
Answered by
VXAP 0
7 years ago

oo ty I had problems with it I also made a custome script to make him look at the person <3

Ad

Answer this question