#I need help with an interaction system and its script.

1 messages · Page 1 of 1 (latest)

dark pendant
#

When i press the click on the item it doesnt show the Item and its text labels

urban jungleBOT
#

studio** You are now Level 3! **studio

sly shadow
#

What are you trying to do?

dark pendant
#

Let me show y

sly shadow
#

If I'm able to help, I will.

sly shadow
dark pendant
#

no

sly shadow
#

so you want it when you click the “part”, the GUI appears?

dark pendant
dark pendant
sly shadow
#

Yes please, I’ll have a look to see if I can fix it for Yas

dark pendant
#

ok

#

First have a look at the directory:

#

Inspect script:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Event = ReplicatedStorage:WaitForChild("Events"):WaitForChild("InspectItem")

local part = script.Parent
local clickDetector = part:FindFirstChild("ClickDetector") or part:WaitForChild("Cylinder.001"):WaitForChild("ClickDetector")

clickDetector.MouseClick:Connect(function(player)
    Event:FireClient(player, part)
end)
#
  • the remain directory:
sly shadow
#

Wait so, are you wanting it to have the option to refill the sanity or?

dark pendant
sly shadow
#

Aaah, how is the sanity controlled

#

Guessing via remote events?

dark pendant
#

the sanity is controlled, as you can see, from a local script i sent you which says it will increases with reate 5.

dark pendant