#PLS help me its for my tycoon
37 messages · Page 1 of 1 (latest)
i cant send a screenshot of the code but this is the code
local values = script.Parent.Parent.Parent.Parent.Values
script.Parent.Touched:Connect(function(hit)
if hit.Name == "DropperPart" and hit:IsA("BasePart") then
values.MoneyValue.Value += hit:FindFirstChild("CashValue").Value
hit:Destroy()
end
end)
local values = script.Parent.Parent.Parent.Parent.Values
script.Parent.Touched:Connect(function(hit)
if hit.Name == "DropperPart" and hit.parent:IsA("BasePart") then
values.MoneyValue.Value += hit:FindFirstChild("CashValue").Value
hit:Destroy()
end
end)
@subtle yarrow so like this?
bcs it doesn't work either
bro
wait
wyd
why you checking if the player or part that touched the Touchable Part name is dropper part and that it is a basepart?
any ways this correct version btw
local values = script.Parent.Parent.Parent.Parent.Values
script.Parent.Touched:Connect(function(hit)
if hit.Parent.Name == "DropperPart" and hit.Parent:IsA("BasePart") then
values.MoneyValue.Value += hit:FindFirstChild("CashValue").Value
hit.Parent:Destroy()
end
end)
i ckeck it bcs nothing else can get destroyed
Did you solve your problem yet
no it doesnt work 😦
** You are now Level 1! **
Send ss of console and send your entire script
this is a video of my code and the error
Send me a screenshot of your code
i cant send screenshots for some reason
Dm it to me
tbh i think the whole script it self is wrong
Everyone starts somewhere
wdym.
Like it’s terrible code but you can’t expect everyone to have good code as a beginner
I found the problem with his code tho
what was it
It’s not fully fixed cus he has another problem now but it was just an problem with naming being inconsistent across 2 scripts