I thought I made this script without any errors, but i got this error. And I dont know how to fix it.
script.Parent.Touched:connect(function(devil) plr = devil.Parent local w = Instance.new("Message", game.Players[plr].PlayerGui) w.Text = "Congratz! You have found the Doku Doku no Mi fruit!" local g = game.ReplicatedStorage.FindFirstChild("Doku Doku no Mi"):Clone() g.Parent = game.Players[plr].Backpack end)
Script ^^^
You use .FindFirstChild
, but FindFirstChild
is a method -- that means you have to use :FindFirstChild
.
That error is strange, I would expect something similar, but not that; besides, ROBLOX should have a separate error specifically for this. Odd.