You can write your topic however you want, but you need to answer these questions:
- *I want to use the FindFirstChild but it used to work it does not seem to work anymore.
- Include screenshots / videos if possible!
Expected ‘:’ not ‘.’ calling member function FindFirstChild -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I looked on the Developer Hub
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local Disk = script.Parent
local Seat = Disk.Seat
local Speed = 50
local Sit = game.Workspace.Sit
Seat.touched:connect(function(hit)
if hit.Parent.FindFirstChild("Humanoid") then
if hit.Parent.Humanoid.sit == true then
Sit = true
while Sit == true do
wait(.5)
Disk.Velocity = Disk.CFrame.LookVector*Speed
if hit.Parent.Humanoid.sit == false then
Sit = false
end
end
end
end
end)