#I need help with an interaction system and its script.
1 messages · Page 1 of 1 (latest)
** You are now Level 3! **
What are you trying to do?
Let me show y
If I'm able to help, I will.
Are you trying to make it so when they click the "item" it will give them the tool?
so you want it when you click the “part”, the GUI appears?
As you can see in the video i have a bar at left which is the sanity ui which increaes. In this video is how it supposed to work
Do you want to provide you with scripts?
Yes please, I’ll have a look to see if I can fix it for Yas
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)
Client script
InspectModule
Local script for SanityUI
- the remain directory:
Wait so, are you wanting it to have the option to refill the sanity or?
exaclty i have the text label Use in order whne i press E to low the sanity
the sanity is controlled, as you can see, from a local script i sent you which says it will increases with reate 5.