script.Parent.Triggered:Connect(function(speedUp) -- Proximity promt btw
speedUp.Parent.Parent.Workspace[speedUp].Humanoid.WalkSpeed = 30 -- here
wait(10)
speedUp.Parent.Parent.Workspace[speedUp].Humanoid.WalkSpeed = 16 -- here too
end)
-- I am new to scripting btw
Output Error:
Workspace.Spilled Coke.Model.Part.ProximityPrompt.Script:2: invalid argument #2 (string expected, got Instance)
You're only getting the player's instance, not the player's username. You will need to put a .Name after it.
speedUp.Parent.Parent.Workspace[speedUp.Name].Humanoid.WalkSpeed = 30
And please use a code block next time. It should be above your question/answer box.