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 ^^^

4 comments
Oh. Well anyways, thx!
I'd assume you'd get 'userdata expected, got string', like BlueTaslem. Maybe ROBLOX programmed in a useless overload for FindFirstChild?
I thought there was a specific error that said something like "You used .FindFirstChild instead of :FindFirstChild", not sure where that went in this case
It says, "Expected ':' not '.' calling member function FindFirstChild"