Hello Dev Forum!
Ive come across a error in my “World Boost” script.
FindFirstChld is not a valid member of Model “Workspace.ScxiptedShark”
Here Is My Script:
local db = true
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil then
if db == true then
db = false
local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
Player.WorldBoost.Value = script.Parent["Boost Value"].Value
db = true
end
end
end)
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChld("Humanoid") ~= nil then
if db == true then
db = false
local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
Player.WorldBoost.Value = 1
db = true
end
end
end)
Also,
script.Parent["Boost Value"].Value
is underlined in red. does anyone know why?